Ashley Hauck
62548134d2
Add test for issue #329 ( #781 )
2021-10-28 13:07:47 +03:00
Ashley Hauck
8fb4f10995
Don't ICE on ZST union ( #780 )
2021-10-28 08:13:00 +00:00
Ashley Hauck
902c51c242
Inline calls that look like f(&s.x) ( #777 )
2021-10-27 13:28:35 +00:00
Ashley Hauck
c10a1ca756
Implement bool fusion pass ( #776 )
...
Fixes #677
2021-10-27 12:52:31 +00:00
Ashley Hauck
f58c6f20af
rustup update, and edition = 2021 ( #775 )
2021-10-26 10:24:44 +00:00
Ashley Hauck
3f22a897f3
Handle OpCopyMemory in mem2reg ( #772 )
...
* Handle OpCopyMemory in mem2reg
* Update tests
2021-10-25 11:01:53 +03:00
Ashley Hauck
8d019e4e37
Detect recursion in inline.rs and bail ( #770 )
...
* Detect recursion in inline.rs and bail
* Bail on inline error
2021-10-25 10:42:45 +03:00
Eduard-Mihai Burtescu
111bebdd68
abi: readjust FnAbi
s to remove unsupported PassMode
s, via query hooks.
2021-10-20 22:13:03 +03:00
Markus Siglreithmaier
acda7716db
asm: add support for noreturn option ( #717 )
...
* asm: add support for noreturn option
OpUnreachable will be appended as terminator at the end of the asm block.
* asm: implicit label after return or abort terminator
* rework handling
* fix tests and add few comments
* fix tests
2021-08-13 08:50:44 +02:00
Ashley Hauck
1a3a12f505
Implement some float packing/unpacking instructions ( #709 )
...
* Implement some float packing/unpacking instructions
* Rename f32xN to vecN in packing functions
2021-08-10 13:54:44 +02:00
Eduard-Mihai Burtescu
cf56b95dc1
Add #[track_caller]
test.
2021-08-10 12:43:15 +03:00
Eduard-Mihai Burtescu
f951203534
Add test accounting for https://github.com/rust-lang/rust/pull/87723 .
2021-08-10 10:55:39 +03:00
Alex Es
bca7656c8c
Added a transformation that gets rid of temporary composites. ( #690 )
...
* Added an optimization that gets rid of temporary composites.
Those temporary composites result from inlining of multi-argument
closures. Not only are they rather useless, they're also sometimes
invalid, when an argument to said closure is e.g. a pointer.
* Correctness fixes to transitive unused removal:
- delay only if the instruction is in reference set
- properly mark composites being inserted into composites as used
* cargo fmt
* clippy
* Make transformation per-function & rely on DCE for eliminating dead constructs.
* Forgot to mark CompositeInsert as pure & additional line cleaning
* Rustfmt
* Remove duplicate lines only once
2021-08-06 10:52:56 +02:00
Eduard-Mihai Burtescu
95bc1914e2
compiletests: add missing use spirv_std as _;
imports. ( #665 )
2021-06-11 08:36:03 +00:00
Ashley Hauck
f3888d1bb3
Invert glam dependency ( #641 )
2021-06-02 09:28:01 +02:00
Ashley Hauck
47d1e75327
Always emit json metadata, and emit entry point names ( #622 )
...
* Always emit json metadata
* Codegen shader entry point names
* Fix tests
2021-05-24 09:45:58 +02:00
Ashley Hauck
943f09fef7
Emit OpLine instructions ( #616 )
...
* Emit OpLine instructions
2021-05-07 08:57:47 +00:00
XAMPPRocky
9c19414858
Add is_helper_invocation, and cleanup arch & asm functions ( #612 )
2021-05-04 10:51:20 +00:00
Eduard-Mihai Burtescu
bb7adc912f
asm: infer the result type of OpAccessChain (when indexing into arrays).
2021-04-16 09:00:45 +03:00
Ashley Hauck
9679e615bd
Disable variable pointers by default ( #591 )
2021-04-13 11:30:16 +02:00
Eduard-Mihai Burtescu
7c568ab219
Allow constant references (to constant data), when they're valid SPIR-V.
2021-04-12 11:09:50 +03:00
Eduard-Mihai Burtescu
6c3ce3fac2
entry: use a Builder
instead of manually emitting into the entry stub.
2021-04-05 20:45:59 +03:00
Henno
05ce407278
Add basic support for struct DSTs ( #504 )
...
* Add basic support for struct DSTs
* Add tests
* cleanup tests
* Update with entry changes, address review
* Address review
* Update allocate_const_scalar.stderr
* Add ArrayStride decoration to OpTypeRuntimeArray
2021-03-29 18:02:09 +02:00
khyperia
eccd3b2559
run format on tests
2021-03-26 13:15:29 +01:00
Eduard-Mihai Burtescu
908487ae1d
entry: use T
instead of &T
for Input
s.
2021-03-23 09:30:24 +01:00
Eduard-Mihai Burtescu
e04e1f53fc
Replace spirv_std::storage_class::X<T> with &T/&mut T and optionally #[spirv(x)].
2021-03-23 09:30:24 +01:00
Eduard-Mihai Burtescu
3274778d98
link: don't use {:?}
with paths because it turns \ into \\.
2021-03-22 08:01:22 +02:00
Eduard-Mihai Burtescu
e6a9dcec1c
Allow running cargo compiletest
from any sub-directory in the workspace.
2021-03-22 08:01:22 +02:00
XAMPPRocky
27eb1d1413
Refactor validation tests to use compiletest ( #464 )
...
* Refactor validation tests to use compiletest
* Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
2021-03-18 17:16:21 +00:00