[llvm] [RISCV][GlobalISel] Legalize Scalable Vector Loads and Stores (PR #84965)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 23:07:35 PDT 2024


================
@@ -649,6 +680,61 @@ bool RISCVLegalizerInfo::legalizeExt(MachineInstr &MI,
   return true;
 }
 
+bool RISCVLegalizerInfo::legalizeLoadStore(MachineInstr &MI,
+                                           MachineIRBuilder &MIB) const {
+  MachineRegisterInfo &MRI = *MIB.getMRI();
+  MachineFunction *MF = MI.getParent()->getParent();
----------------
arsenm wrote:

```suggestion
  MachineFunction &MF = MI.getMF();
```

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


More information about the llvm-commits mailing list