[llvm] [X86] [NewPM] Add New Pass Manager wiring for x86-avoid-trailing-call (PR #166723)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 17:00:31 PST 2025


================
@@ -104,7 +105,19 @@ FunctionPass *createX86LowerTileCopyPass();
 /// CALL instruction. The pass does the same for each funclet as well. This
 /// ensures that the open interval of function start and end PCs contains all
 /// return addresses for the benefit of the Windows x64 unwinder.
-FunctionPass *createX86AvoidTrailingCallPass();
+class X86AvoidTrailingCallPass
+    : public PassInfoMixin<X86AvoidTrailingCallPass> {
+private:
+  const TargetMachine *TM;
----------------
arsenm wrote:

```suggestion
  const X86TargetMachine *TM;
```

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


More information about the llvm-commits mailing list