[llvm-branch-commits] [llvm] AMDGPU: Start using subarch in attributor instead of subtarget (PR #212207)

Robert Imschweiler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 27 02:39:25 PDT 2026


================
@@ -153,7 +153,13 @@ class AMDGPUInformationCache : public InformationCache {
                          BumpPtrAllocator &Allocator,
                          SetVector<Function *> *CGSCC, TargetMachine &TM)
       : InformationCache(M, AG, Allocator, CGSCC), TM(TM),
-        CodeObjectVersion(AMDGPU::getAMDHSACodeObjectVersion(M)) {}
+        CodeObjectVersion(AMDGPU::getAMDHSACodeObjectVersion(M)),
+        HasApertureRegs(
+            AMDGPU::hasApertureRegs(M.getTargetTriple().getSubArch())),
+        SupportsGetDoorbellID(
+            AMDGPU::supportsGetDoorbellID(M.getTargetTriple().getSubArch())),
+        ArchAttr(AMDGPU::getArchAttrAMDGCN(
----------------
ro-i wrote:

can be simplified with other overload? `LLVM_ABI unsigned getArchAttrAMDGCN(Triple::SubArchType SubArch);`

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


More information about the llvm-branch-commits mailing list