Jim Blandy
548cde4701
Clear Validator::valid_expression_list before validating each function.
...
If validation fails, `Validator` may be left with entries in
`valid_expression_list` and `valid_expression_set`. The validator does clear the
set before examining a function's body, but not the list, which means a
long-lived `Validator` could accumulate an unbounded amount of garbage in the
list.
(Minor cleanup: use structural update syntax where appropriate.)
2021-06-21 14:53:20 -04:00
Jim Blandy
1d0b3f3a75
Functions can take pointers to unsized structs, but no other unsized types.
2021-06-18 20:44:07 -04:00
Jim Blandy
48363fcef1
Don't accept unsized types as function arguments.
2021-05-26 12:27:29 -04:00
Dzmitry Malyshau
9fe75ed7f1
Barriers
2021-05-04 22:16:24 -04:00
Dzmitry Malyshau
4a5ff9a053
Validate that used expressions are emitted
2021-04-26 09:59:54 -04:00
Dzmitry Malyshau
e87f57d82c
Fix expression validation check
2021-03-25 09:32:55 -04:00
Dzmitry Malyshau
a0b5717fed
Validate image stores
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
7a246f6a14
Validate image queries and valid shader stages for derivatives
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
970b77abaf
Make type a part of ExpressionInfo
2021-03-22 15:17:00 -04:00
Dzmitry Malyshau
1d3f2bbdb1
Merge FunctionAnalysisError into FunctionError
2021-03-22 15:17:00 -04:00
Dzmitry Malyshau
1ddea0fdbb
Validate layouts
2021-03-21 22:27:32 -04:00
Dzmitry Malyshau
e3ae5904ba
Move AnalysisFlags into ValidationFlags, add bits for expressions and blocks
2021-03-20 22:25:49 -04:00
Dzmitry Malyshau
c992e638fe
Move all the validation into a separate meta-module
2021-03-20 22:25:49 -04:00