[llvm] [ABI] Thread alloca address space through getNaturalAlignIndirect (PR #225301)

Steffen Larsen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 03:31:28 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:

I think eventual unification would be nice, but I suppose this is a conservative enough start.

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


More information about the llvm-commits mailing list