summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-12-05 22:31:02 -0800
committerJason Ekstrand <[email protected]>2017-12-11 22:28:34 -0800
commitbb1e6ff161c9a438243392ca2cbebac781293658 (patch)
tree550b04c7a8ff34e4fc4eaa2304422829d23cb512 /src/compiler/spirv/vtn_private.h
parent2c84b49ddff2c03a9a1f2d1e132d4002fd7c070b (diff)
spirv: Add a prepass to set types on vtn_values
This autogenerated pass will automatically find and set the type field on all vtn_values. This way we always have the type and can use it for validation and other checks. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r--src/compiler/spirv/vtn_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
index 6d4ad3cc2f6..a0a4f3a4fae 100644
--- a/src/compiler/spirv/vtn_private.h
+++ b/src/compiler/spirv/vtn_private.h
@@ -620,6 +620,10 @@ vtn_value(struct vtn_builder *b, uint32_t value_id,
return val;
}
+bool
+vtn_set_instruction_result_type(struct vtn_builder *b, SpvOp opcode,
+ const uint32_t *w, unsigned count);
+
struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b,