aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRSampleProfile.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-10-20 13:50:39 -0700
committerGitHub <noreply@github.com>2025-10-20 13:50:39 -0700
commit670fb3e7683c1fc83bcfff04bb15488617ff2a34 (patch)
tree9df64a28e853342c1edc3d62302e498dfdf9c3e9 /llvm/lib/CodeGen/MIRSampleProfile.cpp
parent9e9d67dc9c4788d39da3c5612565d6e603015715 (diff)
downloadllvm-670fb3e7683c1fc83bcfff04bb15488617ff2a34.tar.gz
llvm-670fb3e7683c1fc83bcfff04bb15488617ff2a34.tar.bz2
llvm-670fb3e7683c1fc83bcfff04bb15488617ff2a34.zip
[NFC][LLVM][CodeGen] Create header file for MIRFSDiscriminator options (#163438)
Extract extern variable declaration into a header per https://discourse.llvm.org/t/rfc-cs-changes-for-standalone-variables/88581
Diffstat (limited to 'llvm/lib/CodeGen/MIRSampleProfile.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRSampleProfile.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MIRSampleProfile.cpp b/llvm/lib/CodeGen/MIRSampleProfile.cpp
index 9bba50e8e692..d44f57755861 100644
--- a/llvm/lib/CodeGen/MIRSampleProfile.cpp
+++ b/llvm/lib/CodeGen/MIRSampleProfile.cpp
@@ -15,6 +15,7 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Analysis/BlockFrequencyInfoImpl.h"
+#include "llvm/CodeGen/MIRFSDiscriminatorOptions.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
@@ -62,9 +63,6 @@ static cl::opt<bool> ViewBFIAfter("fs-viewbfi-after", cl::Hidden,
cl::init(false),
cl::desc("View BFI after MIR loader"));
-namespace llvm {
-extern cl::opt<bool> ImprovedFSDiscriminator;
-}
char MIRProfileLoaderPass::ID = 0;
INITIALIZE_PASS_BEGIN(MIRProfileLoaderPass, DEBUG_TYPE,