[llvm] [RISCV][GlobalISel] Select G_PTR_ADD (PR #67605)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 28 15:57:05 PDT 2023
================
@@ -245,6 +261,39 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
}
}
+bool RISCVInstructionSelector::replacePtrWithInt(MachineOperand &Op,
+ MachineIRBuilder &MIB,
+ MachineRegisterInfo &MRI) {
+ assert(Op.isReg() && "Operand is not a register!");
----------------
mshockwave wrote:
`getReg` will do the assertion of `isReg` so I don't think this is needed here.
https://github.com/llvm/llvm-project/pull/67605
More information about the llvm-commits
mailing list