Commit Graph

381 Commits

Author SHA1 Message Date
Sylvester Hesp
28b675d2eb Update wording on --no-spirt
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2023-03-15 02:02:17 -07:00
Sylvester Hesp
eaab5101ce Made --spirt the default, added --no-spirt 2023-03-15 02:02:17 -07:00
Sylvester Hesp
2f1a102c36 Updated tempfile to 0.3.4 2023-03-14 07:44:53 -07:00
Sylvester Hesp
e4a41cda19 Renamed rust-toolchain to rust-toolchain.toml
to improve workflow with vscode
2023-02-17 01:51:34 +02:00
Sylvester Hesp
b1670298e9 Use skip_binder in favor of subst_identity
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2023-02-16 12:32:11 +02:00
Sylvester Hesp
d78c301799 Update to 2023-01-21 2023-02-16 12:32:11 +02:00
Eduard-Mihai Burtescu
2a77f6ee86 Apply Rust 2021 clippy fixes. 2023-02-01 11:08:36 +02:00
Eduard-Mihai Burtescu
8bde624b74 spirt-passes: add fuse_selects pass for merging same-condition if-elses. 2023-02-01 11:08:36 +02:00
Eduard-Mihai Burtescu
27c698b302 spirt-passes: add reduce pass for replacing ops with their inputs/constants. 2023-02-01 11:08:36 +02:00
Eduard-Mihai Burtescu
6ed51e87b2 linker: add --spirt-passes codegen args and underlying abstraction. 2023-02-01 11:08:36 +02:00
Eduard-Mihai Burtescu
2ccdb4651d Apply clippy::uninlined_format_args suggestions for Rust 2021 (panic/assert). 2023-01-30 23:00:43 +02:00
Eduard-Mihai Burtescu
335a637973 Support all panic entry-points equally - mainly for Rust 2021's panic!("..."). 2023-01-30 23:00:43 +02:00
Sylvester Hesp
bab728f205 Formatting fixes 2023-01-05 14:50:13 +02:00
Sylvester Hesp
33c2f80835 Clippy fixes 2023-01-05 14:50:13 +02:00
Sylvester Hesp
86d6042204 Update to nightly-2022-12-18
This nightly includes a clippy fix that we need (https://github.com/rust-lang/rust-clippy/pull/10055)
2023-01-05 14:50:13 +02:00
Sylvester Hesp
87dc07c623 More clippy fixes 2023-01-05 14:50:13 +02:00
Sylvester Hesp
54587b1816 Update to nightly-2022-12-10 2023-01-05 14:50:13 +02:00
Sylvester Hesp
2cb10b2771 Update to nightly-2022-11-28 2023-01-05 14:50:13 +02:00
Sylvester Hesp
816c3409e2 Updated to nightly-2022-11-14 2023-01-05 14:50:13 +02:00
Sylvester Hesp
4eb14fc218 Fixed rust-toolchain error message 2023-01-03 16:02:24 +02:00
Sylvester Hesp
ecceedab92 Some tweaks to docs 2022-12-20 10:43:57 -08:00
Sylvester Hesp
8bf791d0c4 Included README.md files for published crates 2022-12-20 10:43:57 -08:00
Eduard-Mihai Burtescu
85e4df3136 Include identifying information (e.g. crate names) in --dump-* filenames. 2022-12-13 06:18:03 +02:00
Eduard-Mihai Burtescu
6fb35ffeeb outputs: ⋯.spv⋯.spv.json, ⋯.spv.dir/⋯⋯.spvs/⋯.spv (or ⋯.spv). 2022-12-12 17:15:12 +02:00
Eduard-Mihai Burtescu
3fca36ecb2 tests: run both with and without --spirt. 2022-12-12 17:14:35 +02:00
Eduard-Mihai Burtescu
8535bb3bf1 Minimally integrate SPIR-T (opt-in via RUSTGPU_CODEGEN_ARGS=--spirt). 2022-12-12 17:14:35 +02:00
Eduard-Mihai Burtescu
32db2b4c3f linker/test: enable DCE (adding new Exports where necessary). 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
12172b3f17 linker/test: keep Exports around, even after import->export resolution. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
00bb9be12d linker/test: add in the missing (mandatory) OpMemoryModel instructions. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
0274eb9500 linker/test: "desugar" deprecated "decoration groups" (not supported by SPIR-T). 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
fb393a9566 linker/test: add #[track_caller] to without_header_eq. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
eea44854a7 linker/inline: handle OpPhis. 2022-12-09 11:50:01 +02:00
Eduard-Mihai Burtescu
b3c280424c Migrate rustc_codegen_spirv env vars to codegen args. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
47d5577a93 spirv-builder: add RUSTGPU_RUSTFLAGS/RUSTGPU_CODEGEN_ARGS env vars. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
ab69706640 CodegenArgs::parse: support --help to show an "usage" message. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
8d53076a13 CodegenArgs::parse: replace optflagopt (-X and -X=Y) with optflag (only -X). 2022-12-09 11:46:27 +02:00
Sylvester Hesp
8bd42bcc3a Get rid of run_in_thread_pool_with_globals altogether, 2022-12-02 01:58:11 -08:00
Sylvester Hesp
94a752d9db Format fixes 2022-12-02 01:58:11 -08:00
Sylvester Hesp
17523e06d7 Fix for run_in_thread_pool_with_globals being no longer public 2022-12-02 01:58:11 -08:00
Sylvester Hesp
f0aace570b Linter fixes 2022-12-02 01:58:11 -08:00
Sylvester Hesp
fb7e13cdeb Update to nightly-2022-10-29 2022-12-02 01:58:11 -08:00
Eduard-Mihai Burtescu
d000e9699b Use Spans to detect "system crate"s, for error deferral (zombie) purposes. 2022-12-01 17:24:48 +02:00
Sylvester Hesp
ccf920d54f Actually use FnAbi in the call 🙄 2022-11-30 09:38:54 -08:00
Sylvester Hesp
1ac63d3a49 Added passing of FnAbi 2022-11-30 09:38:54 -08:00
Sylvester Hesp
fc19ab58fb Update to nightly-2022-10-15 2022-11-30 09:38:54 -08:00
Eduard-Mihai Burtescu
dfd285e735 linker/test: create Session manually to inject a custom diagnostic writer. 2022-11-30 09:15:12 -08:00
Eduard-Mihai Burtescu
9d639d3ad5 linker/test: catch FatalErrors to ensure they print any error output at all. 2022-11-30 09:15:12 -08:00
Eduard-Mihai Burtescu
acb05d3799 Arena-allocate slices to replace Vecs in SpirvType and SpirvConst. 2022-11-30 17:03:58 +02:00
Eduard-Mihai Burtescu
1000dece4a symbols: avoid using to_ident_string when {}-formatting works. 2022-11-30 17:03:58 +02:00
Eduard-Mihai Burtescu
d76211384e Replace bimap dependency with a more efficient pair of maps. 2022-11-30 17:03:58 +02:00