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

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 00:26:03 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;
----------------
skc7 wrote:

Created #224994 to hoist isSingleElementStruct into TargetInfo.

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


More information about the llvm-commits mailing list