Commit Graph

1247 Commits

Author SHA1 Message Date
khyperia
bc003cf6a2 Apparently I pseudo-ADHD'd away from this comment in the middle of writing it and never came back to finish it 2020-09-18 09:56:23 +02:00
Jasper Bekkers
9697c22740
Linker perf (#33)
* Improve linker performance - this should loop over data significantly less

* Remove Rc and RefCell because they weren't needed in the end

* Moved some code into a DefUseAnalyer

* Point to same rspirv

* Link to rspirv git instead of locally
2020-09-17 10:55:44 +02:00
khyperia
85e7a6a951 Caching constant system 2020-09-16 17:32:21 +02:00
khyperia
0a2629ef13 Documentation! 2020-09-16 16:08:08 +02:00
khyperia
213db43d68 Remove all references to wasm 2020-09-16 14:18:10 +02:00
khyperia
c2996046ed Split codegen_cx.rs into modules 2020-09-16 10:50:57 +02:00
khyperia
4e3f1db15a Add entry attribute 2020-09-15 17:17:48 +02:00
khyperia
24e03a5c0b Extract spirv attribute parsing to its own function 2020-09-15 16:11:53 +02:00
khyperia
fd1471066d right! non-cdylibs dylibs exist. neat! 2020-09-15 16:03:26 +02:00
khyperia
d6a1e0372f Pass through inline attribute 2020-09-15 15:32:40 +02:00
khyperia
2a66153840 Add spirv-std crate 2020-09-15 15:17:27 +02:00
khyperia
b345d519bf Add storage class attribute 2020-09-15 14:42:39 +02:00
khyperia
ec6608f1b5 Export zombie link information
To support the linker being able to do zombie shenans
2020-09-15 10:55:15 +02:00
khyperia
2b1e8a26df rustup update 2020-09-14 15:09:43 +02:00
khyperia
3a895f80b2 Rename poison to zombie
Poison means something else in compilers: https://llvm.org/docs/LangRef.html#poison-values
2020-09-14 15:01:13 +02:00
khyperia
ede5a1ab7f Poison reason tracking 2020-09-14 15:01:13 +02:00
khyperia
31ac70ea07 Don't use xargo 2020-09-14 15:01:13 +02:00
Jasper Bekkers
3bba335477
Add binary back 2020-09-14 12:18:04 +01:00
khyperia
e26d1a7616 Fix the horrible no-good very bad u32 sub linkage 2020-09-11 16:08:01 +02:00
khyperia
c5dfee6e1e Start work on integrating linker 2020-09-11 13:09:06 +02:00
Johan Andersson
f890ce0fcc Switch from Slack to Discord 2020-09-10 18:28:37 +02:00
khyperia
07bf66cb8f OpenCL intrinsics 2020-09-10 16:58:19 +02:00
khyperia
c1134788cd Sort blocks topologically
Also lots of spirv-val work
2020-09-10 16:37:12 +02:00
khyperia
89065c1db0 Deal with a bunch of spirv-val issues 2020-09-09 18:24:02 +02:00
khyperia
575490b25e Start work on making spirv-val pass 2020-09-09 15:20:11 +02:00
khyperia
a7603597a4 Prettier function names 2020-09-09 14:39:51 +02:00
khyperia
7a5aa3b241 Poison system 2020-09-09 14:17:26 +02:00
khyperia
3a20252b4c spirv-val 2020-09-09 12:37:24 +02:00
khyperia
b560d5e0b1 Make modules reparseable
Mostly by handling u128
2020-09-09 12:25:57 +02:00
khyperia
ac53d9395e libcore compiles, drop some printlns 2020-09-08 17:33:17 +02:00
khyperia
913e19f696 Extension instructions 2020-09-08 16:21:55 +02:00
khyperia
3a9d6f87ca Fix up some integer weirdness 2020-09-07 18:53:32 +02:00
khyperia
e9d9be316a Get final emit steps working 2020-09-07 18:03:11 +02:00
khyperia
7591e582d9 Remove spv lifetime
Turns out it wasn't actually needed, doh
2020-09-07 15:55:39 +02:00
khyperia
9d9d418979 Move intrinsics to their own file 2020-09-07 15:45:46 +02:00
khyperia
148f7ba163 Do some atomics 2020-09-07 15:26:34 +02:00
khyperia
81f868d4ec Fix up Option<&u8> constant 2020-09-07 14:24:23 +02:00
khyperia
f557e5b54f Add some intrinsics 2020-09-07 11:45:05 +02:00
khyperia
3bfc0289d6 rustup update 2020-09-07 10:55:14 +02:00
Johan Andersson
8342b34c07
Official emoji in the README 2020-09-07 10:35:17 +02:00
khyperia
c5cf6d089b Handle recursive pointer types 2020-09-07 10:31:16 +02:00
khyperia
cd9e372ddb Refactor scalar type translation 2020-09-07 09:49:53 +02:00
Jasper Bekkers
0c64a5eb33
Proper type checking 2020-09-04 15:35:04 +01:00
Jasper Bekkers
470c2ff2e2
Test case for OpGroupDecorate 2020-09-04 15:35:03 +01:00
Jasper Bekkers
92feaf36f0
Enable test func_ctrl 2020-09-04 15:35:03 +01:00
khyperia
85601dec70 Start work on the surprisingly difficult task of recursive types 2020-09-04 14:14:23 +02:00
khyperia
e177eeed11 Always try to figure out the full type. 2020-09-03 18:01:38 +02:00
Jasper Bekkers
9cdf751643
Add another failing testcase 2020-09-03 18:00:38 +01:00
Jasper Bekkers
cc77d911d3
Add a bunch of test cases from spirv-linker and bug fixes to make these test cases work 2020-09-03 17:58:52 +01:00
Jasper Bekkers
733008a993
Add some tests 2020-09-03 17:58:51 +01:00