Skip to content

Commit f013f08

Browse files
authored
Add missing OpUntypedPrefetchKHR (KhronosGroup#441)
* Missed from KhronosGroup#439
1 parent a41bc92 commit f013f08

File tree

10 files changed

+29
-0
lines changed

10 files changed

+29
-0
lines changed

include/spirv/unified1/spirv.bf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,7 @@ namespace Spv
18411841
OpUntypedPtrAccessChainKHR = 4423,
18421842
OpUntypedInBoundsPtrAccessChainKHR = 4424,
18431843
OpUntypedArrayLengthKHR = 4425,
1844+
OpUntypedPrefetchKHR = 4426,
18441845
OpSubgroupAllKHR = 4428,
18451846
OpSubgroupAnyKHR = 4429,
18461847
OpSubgroupAllEqualKHR = 4430,

include/spirv/unified1/spirv.core.grammar.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,6 +4568,20 @@
45684568
{ "kind" : "LiteralInteger", "name" : "'Array member'" }
45694569
]
45704570
},
4571+
{
4572+
"opname" : "OpUntypedPrefetchKHR",
4573+
"class" : "Memory",
4574+
"opcode" : 4426,
4575+
"capabilities" : [ "UntypedPointersKHR" ],
4576+
"version" : "None",
4577+
"operands" : [
4578+
{ "kind" : "IdRef", "name" : "'Pointer Type'" },
4579+
{ "kind" : "IdRef", "name" : "'Num Bytes'" },
4580+
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'RW'" },
4581+
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'Locality'" },
4582+
{ "kind" : "IdRef", "quantifier" : "?", "name" : "'Cache Type'" }
4583+
]
4584+
},
45714585
{
45724586
"opname" : "OpSubgroupAllKHR",
45734587
"class" : "Group",

include/spirv/unified1/spirv.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,7 @@ public enum Op
18401840
OpUntypedPtrAccessChainKHR = 4423,
18411841
OpUntypedInBoundsPtrAccessChainKHR = 4424,
18421842
OpUntypedArrayLengthKHR = 4425,
1843+
OpUntypedPrefetchKHR = 4426,
18431844
OpSubgroupAllKHR = 4428,
18441845
OpSubgroupAnyKHR = 4429,
18451846
OpSubgroupAllEqualKHR = 4430,

include/spirv/unified1/spirv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@ typedef enum SpvOp_ {
17861786
SpvOpUntypedPtrAccessChainKHR = 4423,
17871787
SpvOpUntypedInBoundsPtrAccessChainKHR = 4424,
17881788
SpvOpUntypedArrayLengthKHR = 4425,
1789+
SpvOpUntypedPrefetchKHR = 4426,
17891790
SpvOpSubgroupAllKHR = 4428,
17901791
SpvOpSubgroupAnyKHR = 4429,
17911792
SpvOpSubgroupAllEqualKHR = 4430,
@@ -2541,6 +2542,7 @@ inline void SpvHasResultAndType(SpvOp opcode, bool *hasResult, bool *hasResultTy
25412542
case SpvOpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25422543
case SpvOpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25432544
case SpvOpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
2545+
case SpvOpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
25442546
case SpvOpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
25452547
case SpvOpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
25462548
case SpvOpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
@@ -4334,6 +4336,7 @@ inline const char* SpvOpToString(SpvOp value) {
43344336
case SpvOpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
43354337
case SpvOpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
43364338
case SpvOpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
4339+
case SpvOpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
43374340
case SpvOpSubgroupAllKHR: return "OpSubgroupAllKHR";
43384341
case SpvOpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
43394342
case SpvOpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";

include/spirv/unified1/spirv.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,7 @@ enum Op {
17821782
OpUntypedPtrAccessChainKHR = 4423,
17831783
OpUntypedInBoundsPtrAccessChainKHR = 4424,
17841784
OpUntypedArrayLengthKHR = 4425,
1785+
OpUntypedPrefetchKHR = 4426,
17851786
OpSubgroupAllKHR = 4428,
17861787
OpSubgroupAnyKHR = 4429,
17871788
OpSubgroupAllEqualKHR = 4430,
@@ -2537,6 +2538,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
25372538
case OpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25382539
case OpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25392540
case OpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
2541+
case OpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
25402542
case OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
25412543
case OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
25422544
case OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
@@ -4330,6 +4332,7 @@ inline const char* OpToString(Op value) {
43304332
case OpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
43314333
case OpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
43324334
case OpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
4335+
case OpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
43334336
case OpSubgroupAllKHR: return "OpSubgroupAllKHR";
43344337
case OpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
43354338
case OpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";

include/spirv/unified1/spirv.hpp11

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,7 @@ enum class Op : unsigned {
17821782
OpUntypedPtrAccessChainKHR = 4423,
17831783
OpUntypedInBoundsPtrAccessChainKHR = 4424,
17841784
OpUntypedArrayLengthKHR = 4425,
1785+
OpUntypedPrefetchKHR = 4426,
17851786
OpSubgroupAllKHR = 4428,
17861787
OpSubgroupAnyKHR = 4429,
17871788
OpSubgroupAllEqualKHR = 4430,
@@ -2537,6 +2538,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
25372538
case Op::OpUntypedPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25382539
case Op::OpUntypedInBoundsPtrAccessChainKHR: *hasResult = true; *hasResultType = true; break;
25392540
case Op::OpUntypedArrayLengthKHR: *hasResult = true; *hasResultType = true; break;
2541+
case Op::OpUntypedPrefetchKHR: *hasResult = false; *hasResultType = false; break;
25402542
case Op::OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
25412543
case Op::OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
25422544
case Op::OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
@@ -4330,6 +4332,7 @@ inline const char* OpToString(Op value) {
43304332
case OpUntypedPtrAccessChainKHR: return "OpUntypedPtrAccessChainKHR";
43314333
case OpUntypedInBoundsPtrAccessChainKHR: return "OpUntypedInBoundsPtrAccessChainKHR";
43324334
case OpUntypedArrayLengthKHR: return "OpUntypedArrayLengthKHR";
4335+
case OpUntypedPrefetchKHR: return "OpUntypedPrefetchKHR";
43334336
case OpSubgroupAllKHR: return "OpSubgroupAllKHR";
43344337
case OpSubgroupAnyKHR: return "OpSubgroupAnyKHR";
43354338
case OpSubgroupAllEqualKHR: return "OpSubgroupAllEqualKHR";

include/spirv/unified1/spirv.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,7 @@
17841784
"OpUntypedPtrAccessChainKHR": 4423,
17851785
"OpUntypedInBoundsPtrAccessChainKHR": 4424,
17861786
"OpUntypedArrayLengthKHR": 4425,
1787+
"OpUntypedPrefetchKHR": 4426,
17871788
"OpSubgroupAllKHR": 4428,
17881789
"OpSubgroupAnyKHR": 4429,
17891790
"OpSubgroupAllEqualKHR": 4430,

include/spirv/unified1/spirv.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,7 @@ spv = {
17731773
OpUntypedPtrAccessChainKHR = 4423,
17741774
OpUntypedInBoundsPtrAccessChainKHR = 4424,
17751775
OpUntypedArrayLengthKHR = 4425,
1776+
OpUntypedPrefetchKHR = 4426,
17761777
OpSubgroupAllKHR = 4428,
17771778
OpSubgroupAnyKHR = 4429,
17781779
OpSubgroupAllEqualKHR = 4430,

include/spirv/unified1/spirv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,7 @@
17231723
'OpUntypedPtrAccessChainKHR' : 4423,
17241724
'OpUntypedInBoundsPtrAccessChainKHR' : 4424,
17251725
'OpUntypedArrayLengthKHR' : 4425,
1726+
'OpUntypedPrefetchKHR' : 4426,
17261727
'OpSubgroupAllKHR' : 4428,
17271728
'OpSubgroupAnyKHR' : 4429,
17281729
'OpSubgroupAllEqualKHR' : 4430,

include/spirv/unified1/spv.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ enum Op : uint
18431843
OpUntypedPtrAccessChainKHR = 4423,
18441844
OpUntypedInBoundsPtrAccessChainKHR = 4424,
18451845
OpUntypedArrayLengthKHR = 4425,
1846+
OpUntypedPrefetchKHR = 4426,
18461847
OpSubgroupAllKHR = 4428,
18471848
OpSubgroupAnyKHR = 4429,
18481849
OpSubgroupAllEqualKHR = 4430,

0 commit comments

Comments
 (0)