[llvm] [ABI] Thread alloca address space through getNaturalAlignIndirect (PR #225301)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 02:51:27 PDT 2026
================
@@ -80,21 +80,22 @@ class TargetInfo {
/// store a derived object and return that as an ABICompatInfo reference.
virtual const ABICompatInfo &getABICompatInfo() const = 0;
+ /// Address space in which indirect arguments are allocated (the target's
+ /// alloca/stack space).
+ virtual unsigned getAllocaAddrSpace() const { return 0; }
----------------
skc7 wrote:
Thanks for the feedback.
AFAIU, ABI library needs to be independent and can't take any `MLIR/CIRDataLayout` dependency. So `getAllocaAddrSpace()` stays here as a plain unsigned. May be unification can happen CIR side.
https://github.com/llvm/llvm-project/pull/225301
More information about the llvm-commits
mailing list