Dzmitry Malyshau
df14c4b7ca
[spv-in] fix OpString and OpLine parsing
2021-02-24 09:10:26 -05:00
Dzmitry Malyshau
0cefc1c46c
Remove mutation from the Call expression
2021-02-22 23:37:26 -05:00
Matúš Talčík
fa7d4d8b51
spv-in: fix if condition when merge node == false node
...
format
2021-02-20 10:41:54 -05:00
Dzmitry Malyshau
26e6c2bdac
Use source attribute of errors
2021-02-19 22:10:25 -05:00
Dzmitry Malyshau
8a0382a89d
Move global use flags into FunctionInfo
2021-02-17 15:37:37 -05:00
Joshua Groves
f42dc0c377
Fix some typos
2021-02-14 22:50:12 -05:00
Dzmitry Malyshau
61d711b58f
Remove the Header from IR
2021-02-14 20:23:31 -05:00
Systemcluster
b642c5b89b
[spv-in] support string instruction
2021-02-14 11:57:26 -05:00
Dzmitry Malyshau
8e96085caf
[spv-in] support image load/store ops
2021-02-14 11:55:35 -05:00
Dzmitry Malyshau
de5bd77279
ImageStore statement in IR
2021-02-14 11:55:35 -05:00
Dzmitry Malyshau
de39e7f4d1
[spv-in] patch function calls before deriving the global use
2021-02-13 12:33:15 -05:00
Dzmitry Malyshau
38f3c4eb19
[spv-in] support dynamic vector insert/extract
2021-02-11 10:58:52 -05:00
Dzmitry Malyshau
49eb93cf7d
[spv-in] support boolean constants
2021-02-11 10:58:52 -05:00
Dzmitry Malyshau
2507794bc6
[spv-in] add more capabilities we support
2021-02-11 10:58:52 -05:00
Dzmitry Malyshau
3aa11838c7
Refactor the global usage code into a separate module, fix inheriting from the callees
2021-02-10 11:02:56 -05:00
Dzmitry Malyshau
5b94ecd9b2
Add a snapshot for parsing spirv input
2021-02-08 15:59:47 -05:00
Dzmitry Malyshau
cf0a86afd4
[spv-in] move all the image-related logic into a sub-module
2021-02-08 15:59:47 -05:00
Dzmitry Malyshau
6b9d3eafc8
[spv-in] Rewrite the comparison image/sample handling.
...
Keep track of the comparison property per global variable instead of type.
Only track images that can actually be comparison-sampled.
Instead of mutating the type, just add a new type in the end
if we detect it to be necessary, cloning the old name.
2021-02-08 15:59:47 -05:00
Dzmitry Malyshau
10867879d4
[spv-in] support projection sampling and sampling from arrays
2021-02-08 11:31:45 -05:00
Dzmitry Malyshau
960aabec20
[spv-in] Implement OpCompositeInsert
2021-02-07 11:49:52 -05:00
Dzmitry Malyshau
75427cf95c
[spv-in] handle matrix decorations
2021-02-07 11:44:47 -05:00
Dzmitry Malyshau
d0c84a5ffa
[spv-in] support for void function calls
2021-02-06 10:42:54 -05:00
Dzmitry Malyshau
b1fa7471d2
Basic image query support in SPV and WGSL frontends
2021-02-05 15:26:45 -05:00
Dzmitry Malyshau
f563b5810b
[spv-in] support OpImage, OpImageFetch, OpLogicalOr, OpLogicalAnd, relational functions, and fix OpUndef
2021-02-04 09:49:40 -05:00
Dzmitry Malyshau
423ccc2074
[spv-in] parse OpConstantNull and OpUndef
2021-02-04 09:49:40 -05:00
Dzmitry Malyshau
0970ef0ea5
[spv-in] derive the block status of a structure from its members
2021-02-04 09:49:40 -05:00
Dzmitry Malyshau
6f5ff27701
Sample mask support
2021-01-15 01:08:15 -05:00
Dzmitry Malyshau
73cb6d4bdf
[spv] Relax decoration checks for global variables
2021-01-11 09:32:27 -05:00
Pelle Johnsen
6710f5954e
Fix clippy issues
2021-01-04 09:51:32 -05:00
Dzmitry Malyshau
001336b457
Tidy up constants IR
2020-12-20 17:42:00 +01:00
Dzmitry Malyshau
b95346877a
Remove MemberOrigin in favor of spans
2020-12-18 16:11:12 -05:00
Dzmitry Malyshau
98857f09a2
Move Transpose into math functions
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
211bec44a1
Improve texture sampling IR, update WGSL parsing of it
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
dafca34877
Add block boolean to the structure types in IR
...
Also update WGSL syntax for structures.
Move the boids code into snapshots.
2020-12-12 12:46:24 -05:00
Dzmitry Malyshau
edf5d857b1
Add workgroup id and size builtins
2020-12-10 09:38:56 -03:30
Dzmitry Malyshau
b35e901249
Add all standard library functions to the IR
2020-12-09 15:43:36 -05:00
Dzmitry Malyshau
66d994566c
[spv] force treating the built-in scalar types as unsigned
2020-12-08 22:55:21 -05:00
Dzmitry Malyshau
f7ca7f2aff
Refactor Switch statement, implement on WGSL
2020-12-05 00:22:39 -05:00
Dzmitry Malyshau
4d4e1cd4cb
[spv] support GLSL's Distance
2020-11-12 12:38:35 -05:00
Dzmitry Malyshau
5e77653c55
[ir] select expression
2020-11-12 17:43:33 +01:00
Dzmitry Malyshau
8b56f3ef96
[ir] support function argument names ( #270 )
2020-11-11 21:34:37 +01:00
Dzmitry Malyshau
ac5e91b31a
Fix and refactor the constant array sizes
2020-11-11 08:02:06 -05:00
Dzmitry Malyshau
41b3865e5b
Make variable initializers to be const
2020-11-04 16:38:55 -05:00
Matúš Talčík
173bb0de42
spv-in: more loop fixes
2020-10-31 10:02:47 -04:00
Dzmitry Malyshau
80bdd23fd4
Add scalar_kind() accessor to IR Type ( #251 )
2020-10-30 21:25:55 -04:00
Matus Talcik
871139431a
spv-in: fix while loop traverse ( #253 )
2020-10-30 20:58:29 -04:00
Dzmitry Malyshau
529225ce4c
Option to dump spirv flow graphs ( #249 )
2020-10-30 16:44:59 -04:00
Matus Talcik
4b43e282fc
spv-in: fix flowgraph ( #247 )
...
Header blocks were incorrectly overwritten.
format
2020-10-29 10:43:12 -04:00
Dzmitry Malyshau
ce49afa391
Clean up the storage classes ( #245 )
2020-10-27 09:10:55 -04:00
Dzmitry Malyshau
c1830901c7
Simplify bitshift IR ( #244 )
2020-10-27 09:05:14 -04:00