[llvm] [AArch64] Emit async PAuth epilogue CFI for outlined functions (PR #189924)

Amina Chabane via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 06:53:38 PDT 2026


Amichaxx wrote:

Hi Gergely, thanks for the approval. Apologies, I should have added more context in my PR message. 
Outlined functions are marked MinSize by the MachineOutliner, so by needsAsyncDwarfUnwindInfo() return false and do not receive their necessary markers, even with uwtable::Async.

```
bool AArch64FunctionInfo::needsAsyncDwarfUnwindInfo(
    const MachineFunction &MF) const {
  if (!NeedsAsyncDwarfUnwindInfo) {
    const Function &F = MF.getFunction();
    const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>();
    //  The check got "minsize" is because epilogue unwind info is not emitted
    //  (yet) for homogeneous epilogues, outlined functions, and functions
    //  outlined from.
    NeedsAsyncDwarfUnwindInfo =
        needsDwarfUnwindInfo(MF) &&
        ((F.getUWTableKind() == UWTableKind::Async && !F.hasMinSize()) ||
         AFI->hasStreamingModeChanges());
  }
  return *NeedsAsyncDwarfUnwindInfo;  
```

Hopefully that provides more context.

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


More information about the llvm-commits mailing list