[llvm] [CodeGen][Spill2Reg] Initial patch (PR #118832)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 04:07:30 PST 2025


================
@@ -294,6 +294,11 @@ class TargetInstrInfo : public MCInstrInfo {
     return isLoadFromStackSlot(MI, FrameIndex);
   }
 
+  virtual const MachineOperand *isLoadFromStackSlotMO(const MachineInstr &MI,
+                                                      int &FrameIndex) const {
+    llvm_unreachable("target did not implement");
----------------
RKSimon wrote:

Why not just return nullptr by default?

https://github.com/llvm/llvm-project/pull/118832


More information about the llvm-commits mailing list