Grammar update: OpPhi now uses PairIdRefIdRef as the last operand.

This commit is contained in:
Lei Zhang 2016-04-13 11:50:27 -04:00
parent 11636fb100
commit 489786465a
2 changed files with 8 additions and 1 deletions

View File

@ -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" ]
}
]
}

View File

@ -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'