Skip to content

Commit

Permalink
C++: Also implement the predicate in the raw stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasVP committed Apr 26, 2024
1 parent dcc4ad2 commit 70e9c48
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70e9c48

Please sign in to comment.