[llvm] [NewPM] Adds a port for AArch64PostLegalizerLowering (PR #190718)

Anshul Nigham via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 23:56:00 PDT 2026


================
@@ -1258,11 +1260,33 @@ AArch64PostLegalizerLoweringImpl::AArch64PostLegalizerLoweringImpl(
 {
 }
 
-class AArch64PostLegalizerLowering : public MachineFunctionPass {
+bool runPostLegalizerLowering(
+    MachineFunction &MF,
+    const AArch64PostLegalizerLoweringImplRuleConfig &RuleConfig) {
+  if (MF.getProperties().hasFailedISel())
+    return false;
+  assert(MF.getProperties().hasLegalized() && "Expected a legalized function?");
----------------
nigham wrote:

Done.

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


More information about the llvm-commits mailing list