[llvm] [GISel][NewPM] Port LoadStoreOpt (PR #217190)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 23:32:04 PDT 2026
================
@@ -75,11 +76,24 @@ LLVM_ABI bool instMayAlias(const MachineInstr &MI, const MachineInstr &Other,
using namespace GISelAddressing;
-class LLVM_ABI LoadStoreOpt : public MachineFunctionPass {
+class LLVM_ABI LoadStoreOptLegacy : public MachineFunctionPass {
public:
static char ID;
-private:
+ LoadStoreOptLegacy();
+
+ StringRef getPassName() const override { return "LoadStoreOpt"; }
+
+ MachineFunctionProperties getRequiredProperties() const override {
+ return MachineFunctionProperties().setIsSSA();
+ }
+
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
+
+ bool runOnMachineFunction(MachineFunction &MF) override;
+};
+
+class LoadStoreOptImpl {
----------------
aengelke wrote:
Move this class to the .cpp file?
https://github.com/llvm/llvm-project/pull/217190
More information about the llvm-commits
mailing list