[llvm] 0a0f077 - AMDGPU: Add missing static to cl::opt (#152747)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 16:33:12 PDT 2025
Author: Matt Arsenault
Date: 2025-08-09T08:33:09+09:00
New Revision: 0a0f077b9474f6b746418f38360ab28db6f5a1e1
URL: https://github.com/llvm/llvm-project/commit/0a0f077b9474f6b746418f38360ab28db6f5a1e1
DIFF: https://github.com/llvm/llvm-project/commit/0a0f077b9474f6b746418f38360ab28db6f5a1e1.diff
LOG: AMDGPU: Add missing static to cl::opt (#152747)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
index 49425d57187cb..8a1120321af9f 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
@@ -33,7 +33,7 @@ using namespace llvm;
// optimal RC for Opc and Dest of MFMA. In particular, there are high RP cases
// where it is better to produce the VGPR form (e.g. if there are VGPR users
// of the MFMA result).
-cl::opt<bool> MFMAVGPRForm(
+static cl::opt<bool> MFMAVGPRForm(
"amdgpu-mfma-vgpr-form", cl::Hidden,
cl::desc("Whether to force use VGPR for Opc and Dest of MFMA. If "
"unspecified, default to compiler heuristics"),
More information about the llvm-commits
mailing list