[llvm] [TableGen][RISCV][GlobalISel] Select G_ICMP, G_SELECT, G_PTR_ADD (PR #67185)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 13:34:27 PDT 2023
================
@@ -338,6 +348,24 @@ bool RISCVInstructionSelector::selectConstant(MachineInstr &MI,
return true;
}
+bool RISCVInstructionSelector::selectSelect(MachineInstr &MI,
+ MachineIRBuilder &MIB,
+ MachineRegisterInfo &MRI) const {
+ assert(MI.getOpcode() == TargetOpcode::G_SELECT);
+ Register DstReg = MI.getOperand(0).getReg();
+ Register CondReg = MI.getOperand(1).getReg();
+ Register TruReg = MI.getOperand(2).getReg();
----------------
topperc wrote:
Don't abbreviate True and False
https://github.com/llvm/llvm-project/pull/67185
More information about the llvm-commits
mailing list