[llvm] [AMDGPU] Account for inline asm size in inst_pref_size calculation (PR #192306)
Adel Ejjeh via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 15:52:42 PDT 2026
================
@@ -190,6 +189,29 @@ bool AMDGPUMCExpr::evaluateOccupancy(MCValue &Res,
return true;
}
+/// Get the inst_pref_size field width for the given subtarget.
+static unsigned getInstPrefSizeFieldWidth(const MCSubtargetInfo *STI) {
+ auto Version = getIsaVersion(STI->getCPU());
+ assert(Version.Major >= 11 && "inst_pref_size only exists on GFX11+");
+ if (Version.Major == 11)
----------------
adelejjeh wrote:
I pushed a change that uses isGFX12Plus. Let me know that is not an acceptable solution.
https://github.com/llvm/llvm-project/pull/192306
More information about the llvm-commits
mailing list