[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:24 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:

btw, what if there is no subarch? Is this backwards compatible?

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


More information about the llvm-branch-commits mailing list