Skip to content

Commit

Permalink
Add missing OpUntypedPrefetchKHR (#441)
Browse files Browse the repository at this point in the history
* Missed from #439
  • Loading branch information
alan-baker authored Jul 29, 2024
1 parent a41bc92 commit f013f08
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.bf
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,7 @@ namespace Spv
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down
14 changes: 14 additions & 0 deletions include/spirv/unified1/spirv.core.grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,6 +4568,20 @@
{ "kind" : "LiteralInteger", "name" : "'Array member'" }
]
},
{
"opname" : "OpUntypedPrefetchKHR",
"class" : "Memory",
"opcode" : 4426,
"capabilities" : [ "UntypedPointersKHR" ],
"version" : "None",
"operands" : [
{ "kind" : "IdRef", "name" : "'Pointer Type'" },
{ "kind" : "IdRef", "name" : "'Num Bytes'" },
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'RW'" },
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'Locality'" },
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'Cache Type'" }
]
},
{
"opname" : "OpSubgroupAllKHR",
"class" : "Group",
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,7 @@ public enum Op
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,7 @@ typedef enum SpvOp_ {
SpvOpUntypedPtrAccessChainKHR = 4423,
SpvOpUntypedInBoundsPtrAccessChainKHR = 4424,
SpvOpUntypedArrayLengthKHR = 4425,
SpvOpUntypedPrefetchKHR = 4426,
SpvOpSubgroupAllKHR = 4428,
SpvOpSubgroupAnyKHR = 4429,
SpvOpSubgroupAllEqualKHR = 4430,
Expand Down Expand Up @@ -2541,6 +2542,7 @@ inline void SpvHasResultAndType(SpvOp opcode, bool *hasResult, bool *hasResultTy
case SpvOpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case SpvOpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case SpvOpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
case SpvOpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
case SpvOpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
case SpvOpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
case SpvOpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
Expand Down Expand Up @@ -4334,6 +4336,7 @@ inline const char* SpvOpToString(SpvOp value) {
case SpvOpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
case SpvOpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
case SpvOpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
case SpvOpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
case SpvOpSubgroupAllKHR: return "OpSubgroupAllKHR";
case SpvOpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
case SpvOpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,7 @@ enum Op {
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down Expand Up @@ -2537,6 +2538,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
case OpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case OpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case OpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
case OpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
case OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
case OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
case OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
Expand Down Expand Up @@ -4330,6 +4332,7 @@ inline const char* OpToString(Op value) {
case OpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
case OpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
case OpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
case OpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
case OpSubgroupAllKHR: return "OpSubgroupAllKHR";
case OpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
case OpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.hpp11
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,7 @@ enum class Op : unsigned {
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down Expand Up @@ -2537,6 +2538,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
case Op::OpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case Op::OpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
case Op::OpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
case Op::OpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
case Op::OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
case Op::OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
case Op::OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
Expand Down Expand Up @@ -4330,6 +4332,7 @@ inline const char* OpToString(Op value) {
case OpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
case OpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
case OpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
case OpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
case OpSubgroupAllKHR: return "OpSubgroupAllKHR";
case OpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
case OpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.json
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,7 @@
"OpUntypedPtrAccessChainKHR": 4423,
"OpUntypedInBoundsPtrAccessChainKHR": 4424,
"OpUntypedArrayLengthKHR": 4425,
"OpUntypedPrefetchKHR": 4426,
"OpSubgroupAllKHR": 4428,
"OpSubgroupAnyKHR": 4429,
"OpSubgroupAllEqualKHR": 4430,
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@ spv = {
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,7 @@
'OpUntypedPtrAccessChainKHR' : 4423,
'OpUntypedInBoundsPtrAccessChainKHR' : 4424,
'OpUntypedArrayLengthKHR' : 4425,
'OpUntypedPrefetchKHR' : 4426,
'OpSubgroupAllKHR' : 4428,
'OpSubgroupAnyKHR' : 4429,
'OpSubgroupAllEqualKHR' : 4430,
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spv.d
Original file line number Diff line number Diff line change
Expand Up @@ -1843,6 +1843,7 @@ enum Op : uint
OpUntypedPtrAccessChainKHR = 4423,
OpUntypedInBoundsPtrAccessChainKHR = 4424,
OpUntypedArrayLengthKHR = 4425,
OpUntypedPrefetchKHR = 4426,
OpSubgroupAllKHR = 4428,
OpSubgroupAnyKHR = 4429,
OpSubgroupAllEqualKHR = 4430,
Expand Down

0 comments on commit f013f08

Please sign in to comment.