[llvm] [AMDGPU] Account for inline asm size in inst_pref_size calculation (PR #192306)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 11:03:59 PDT 2026
================
@@ -218,6 +222,31 @@ bool AMDGPUMCExpr::evaluateOccupancy(MCValue &Res,
return true;
}
+bool AMDGPUMCExpr::evaluateInstPrefSize(MCValue &Res,
+ const MCAssembler *Asm) const {
+ auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) {
----------------
arsenm wrote:
This identical lambda is defined in every function here, it should be moved to a real function. Maybe this should be evaluate this array of MCExpr and return array of the constants (maybe that already exists somewhere?)
https://github.com/llvm/llvm-project/pull/192306
More information about the llvm-commits
mailing list