C++: Also implement the predicate in the raw stage.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-26 13:48:13 +01:00
parent dcc4ad2550
commit 70e9c48a47

View File

@@ -377,6 +377,10 @@ CppType getInstructionResultType(TStageInstruction instr) {
result = getVoidType()
}
IRType getInstructionResultIRType(Instruction instr) {
result = instr.getResultLanguageType().getIRType()
}
predicate getInstructionOpcode(Opcode opcode, TStageInstruction instr) {
getInstructionTranslatedElement(instr).hasInstruction(opcode, getInstructionTag(instr), _)
or