[flang-commits] [flang] [RFC][flang] Trampolines for internal procedures. (PR #66157)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed Oct 11 10:09:34 PDT 2023


vzakhari wrote:

FWIW, you may look up the ABI rule used by LLVM for the static chain handling in `llvm/lib/Target/*/*.td`.  The register used for the static chain is defined by `CCIfNest`, e.g. in `AArch64CallingConvention.td`:
```
def CC_AArch64_AAPCS : CallingConv<!listconcat(
  // The 'nest' parameter, if any, is passed in X18.
  // Darwin and Windows use X18 as the platform register and hence 'nest' isn't
  // currently supported there.
  [CCIfNest<CCAssignToReg<[X18]>>],
  AArch64_Common
)>;
```

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


More information about the flang-commits mailing list