mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
AMDGPU: Fix missing OPERAND_IMMEDIATE
llvm-svn: 375365
This commit is contained in:
parent
3067b42bd6
commit
b3f888f809
@ -871,6 +871,18 @@ def ExpTgtMatchClass : AsmOperandClass {
|
||||
let RenderMethod = "printExpTgt";
|
||||
}
|
||||
|
||||
def SWaitMatchClass : AsmOperandClass {
|
||||
let Name = "SWaitCnt";
|
||||
let RenderMethod = "addImmOperands";
|
||||
let ParserMethod = "parseSWaitCntOps";
|
||||
}
|
||||
|
||||
def VReg32OrOffClass : AsmOperandClass {
|
||||
let Name = "VReg32OrOff";
|
||||
let ParserMethod = "parseVReg32OrOff";
|
||||
}
|
||||
|
||||
let OperandType = "OPERAND_IMMEDIATE" in {
|
||||
def SendMsgImm : Operand<i32> {
|
||||
let PrintMethod = "printSendMsg";
|
||||
let ParserMatchClass = SendMsgMatchClass;
|
||||
@ -886,22 +898,11 @@ def EndpgmImm : Operand<i16> {
|
||||
let ParserMatchClass = EndpgmMatchClass;
|
||||
}
|
||||
|
||||
def SWaitMatchClass : AsmOperandClass {
|
||||
let Name = "SWaitCnt";
|
||||
let RenderMethod = "addImmOperands";
|
||||
let ParserMethod = "parseSWaitCntOps";
|
||||
}
|
||||
|
||||
def VReg32OrOffClass : AsmOperandClass {
|
||||
let Name = "VReg32OrOff";
|
||||
let ParserMethod = "parseVReg32OrOff";
|
||||
}
|
||||
|
||||
def WAIT_FLAG : Operand <i32> {
|
||||
let ParserMatchClass = SWaitMatchClass;
|
||||
let PrintMethod = "printWaitFlag";
|
||||
let OperandType = "OPERAND_IMMEDIATE";
|
||||
}
|
||||
} // End OperandType = "OPERAND_IMMEDIATE"
|
||||
|
||||
include "SIInstrFormats.td"
|
||||
include "VIInstrFormats.td"
|
||||
|
Loading…
Reference in New Issue
Block a user