Commit 3ccffbf2 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Fixed syntax for STORE instruction

parent 31745239
......@@ -150,7 +150,7 @@ inst
| instResult instName 'SHIFTIREF' (ptr='PTR'?) '<' refTy=type offTy=type '>' opnd=value offset=value # InstShiftIRef
| instResult instName 'GETVARPARTIREF' (ptr='PTR'?) '<' refTy=type '>' opnd=value # InstGetVarPartIRef
| instResult instName 'LOAD' (ptr='PTR'?) memord? '<' type '>' loc=value excClause? # InstLoad
| instResult instName 'STORE' (ptr='PTR'?) memord? '<' type '>' loc=value newVal=value excClause? # InstStore
| instName 'STORE' (ptr='PTR'?) memord? '<' type '>' loc=value newVal=value excClause? # InstStore
| pairResult instName 'CMPXCHG' (ptr='PTR'?) (isWeak='WEAK'?) ordSucc=memord ordFail=memord '<' type '>' loc=value expected=value desired=value excClause? # InstCmpXchg
| instResult instName 'ATOMICRMW' (ptr='PTR'?) memord atomicrmwop '<' type '>' loc=value opnd=value excClause? # InstAtomicRMW
| instName 'FENCE' memord # InstFence
......@@ -158,8 +158,8 @@ inst
| instResults instName 'WATCHPOINT' wpid typeList dis=destClause ena=destClause ('WPEXC' '(' wpExc=destClause ')')? keepaliveClause? # InstWatchPoint
| instName 'WPBRANCH' wpid dis=destClause ena=destClause # InstWPBranch
| instResults instName 'CCALL' callConv '<' funcTy=type funcSig '>' callee=value argList excClause? keepaliveClause? # InstCCall
| instResult instName 'NEWTHREAD' stack=value ('THREADLOCAL' '(' threadLocal=value ')')? newStackClause excClause? # InstNewThread
| instResults instName 'SWAPSTACK' swappee=value curStackClause newStackClause excClause? keepaliveClause? # InstSwapStack
| instResult instName 'NEWTHREAD' stack=value ('THREADLOCAL' '(' threadLocal=value ')')? newStackClause excClause? # InstNewThread
| instResults instName 'SWAPSTACK' swappee=value curStackClause newStackClause excClause? keepaliveClause? # InstSwapStack
| instResults instName 'COMMINST' commInst ('[' flags+=flag* ']')? ('<' tys+=type* '>')? ('<[' sigs+=funcSig* ']>')? ('(' args+=value* ')')? excClause? keepaliveClause? # InstCommInst
;
......
This diff is collapsed.
......@@ -1159,7 +1159,6 @@ public:
antlr4::Token *ptr = nullptr;
UIRParser::ValueContext *loc = nullptr;
UIRParser::ValueContext *newVal = nullptr;
InstResultContext *instResult();
InstNameContext *instName();
TypeContext *type();
std::vector<ValueContext *> value();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment