mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-13 18:00:05 +00:00
Grammar update: OpPhi now uses PairIdRefIdRef as the last operand.
This commit is contained in:
parent
11636fb100
commit
489786465a
@ -2224,7 +2224,7 @@
|
||||
"operands" : [
|
||||
{ "kind" : "IdResultType" },
|
||||
{ "kind" : "IdResult" },
|
||||
{ "kind" : "IdRef", "quantifier" : "*", "name" : "'Variable, Parent, ...'" }
|
||||
{ "kind" : "PairIdRefIdRef", "quantifier" : "*", "name" : "'Variable, Parent, ...'" }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -5094,6 +5094,11 @@
|
||||
"category" : "Composite",
|
||||
"kind" : "PairIdRefLiteralInteger",
|
||||
"bases" : [ "IdRef", "LiteralInteger" ]
|
||||
},
|
||||
{
|
||||
"category" : "Composite",
|
||||
"kind" : "PairIdRefIdRef",
|
||||
"bases" : [ "IdRef", "IdRef" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -99,6 +99,8 @@ def convert_operand_kind(operand_tuple):
|
||||
kind = 'LiteralIntegerId'
|
||||
elif kind == 'PairIdRefLiteralInteger':
|
||||
kind = 'IdLiteralInteger'
|
||||
elif kind == 'PairIdRefIdRef': # Used by OpPhi in the grammar
|
||||
kind = 'Id'
|
||||
|
||||
if kind == 'FPRoundingMode':
|
||||
kind = 'FpRoundingMode'
|
||||
|
Loading…
Reference in New Issue
Block a user