[llvm] [AMDGPU] Make SGPR occupancy the exact inverse of getMaxNumSGPRs (PR #201342)
Janek van Oirschot via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 21:51:50 PDT 2026
================
@@ -50,6 +53,29 @@ const AMDGPUMCExpr *AMDGPUMCExpr::create(VariantKind Kind,
return new (Ctx) AMDGPUMCExpr(Kind, Args, Ctx);
}
+unsigned AMDGPUMCExpr::getNumExpectedArgs(VariantKind Kind) {
+ switch (Kind) {
+ case AGVK_None:
----------------
JanekvO wrote:
Should probably bail on `AGVK_None` instead of considering it part of the variadics
https://github.com/llvm/llvm-project/pull/201342
More information about the llvm-commits
mailing list