[llvm] [ABI] Thread alloca address space through getNaturalAlignIndirect (PR #225301)
Steffen Larsen via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 00:31:26 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; }
----------------
steffenlarsen wrote:
`CIRDataLayout` already has some logic for this. Any way we could use at least parts of it and unify?
https://github.com/llvm/llvm-project/pull/225301
More information about the llvm-commits
mailing list