[llvm] AMDGPU: Add missing static to cl::opt (PR #152747)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 08:36:31 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/152747
None
>From 9bd5ab5436385f5b25da646278e2be5e34493842 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Fri, 25 Jul 2025 18:26:41 +0900
Subject: [PATCH] AMDGPU: Add missing static to cl::opt
---
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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