[llvm] [ABI][AMDGPU] Add AMDGPU target ABI classifier to the LLVM ABI library (PR #220177)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 10:15:51 PDT 2026


================
@@ -92,6 +92,10 @@ class TargetInfo {
   /// return Ty unchanged.
   LLVM_ABI const Type *useFirstFieldIfTransparentUnion(const Type *Ty) const;
 
+  /// If the record reduces to a single scalar element,
+  /// return that element type; otherwise null.
+  LLVM_ABI const Type *isSingleElementStruct(const Type *Ty) const;
----------------
shiltian wrote:

I'm not sure why we need this as a generic interface. This doesn't seem to be something about ABI, does it?

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


More information about the llvm-commits mailing list