[llvm-branch-commits] [GISel][NewPM] Port localizer (PR #217209)

Alexis Engelke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 18 23:32:42 PDT 2026


================
@@ -40,11 +43,24 @@ class TargetTransformInfo;
 /// Moreover, it only materializes constants in blocks where they
 /// are used. PHI uses are considered happening at the end of the
 /// related predecessor.
-class LLVM_ABI Localizer : public MachineFunctionPass {
+class LLVM_ABI LocalizerLegacy : public MachineFunctionPass {
 public:
   static char ID;
 
-private:
+  LocalizerLegacy();
+
+  StringRef getPassName() const override { return "Localizer"; }
+
+  MachineFunctionProperties getRequiredProperties() const override {
+    return MachineFunctionProperties().setIsSSA();
+  }
+
+  void getAnalysisUsage(AnalysisUsage &AU) const override;
+
+  bool runOnMachineFunction(MachineFunction &MF) override;
+};
+
+class LocalizerImpl {
----------------
aengelke wrote:

Move this class to the .cpp file?

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


More information about the llvm-branch-commits mailing list