[llvm] [ABI][AMDGPU] Add AMDGPU target ABI classifier to the LLVM ABI library (PR #220177)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 23:46:00 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:
#224994 is merged. Rebased this PR to latest main and this now uses `isSingleElementStruct` from `TargetInfo`.
https://github.com/llvm/llvm-project/pull/220177
More information about the llvm-commits
mailing list