[clang] [llvm] [LLVMABI][AMDGPU] Add an AMDGPU target to the ABI library (PR #223259)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 01:12:18 PDT 2026


================
@@ -37,8 +41,66 @@ bool TargetInfo::isPromotableInteger(const IntegerType *IT) const {
   return BitWidth < 32;
 }
 
-ArgInfo TargetInfo::getNaturalAlignIndirect(const Type *Ty, bool ByVal) const {
-  return ArgInfo::getIndirect(Ty->getAlignment(), ByVal);
+ArgInfo TargetInfo::getNaturalAlignIndirect(const Type *Ty, bool ByVal,
+                                            unsigned AddrSpace) const {
+  return ArgInfo::getIndirect(Ty->getAlignment(), ByVal, AddrSpace);
+}
+
+const Type *TargetInfo::isSingleElementStruct(const Type *Ty) const {
----------------
aobolensk wrote:

Reverted this part for now. Yes, let's re-apply it later

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


More information about the cfe-commits mailing list