aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Utils/CommandLineOpts.cpp
diff options
context:
space:
mode:
authorshaw young <58664393+shawbyoung@users.noreply.github.com>2024-06-24 15:29:44 -0700
committerGitHub <noreply@github.com>2024-06-24 15:29:44 -0700
commit5e097c79d820683b72e2bac8e56df93801ad85ec (patch)
treeca1cd7a473c612f2dec63ac253dfacc1d3a297eb /bolt/lib/Utils/CommandLineOpts.cpp
parenta3a44bfbdfefe0928124f9e40d242507f75b87f4 (diff)
downloadllvm-5e097c79d820683b72e2bac8e56df93801ad85ec.zip
llvm-5e097c79d820683b72e2bac8e56df93801ad85ec.tar.gz
llvm-5e097c79d820683b72e2bac8e56df93801ad85ec.tar.bz2
[BOLT] Hash-based function matching (#95821)
Using the hashes of binary and profiled functions to recover functions with changed names. Test Plan: added hashing-based-function-matching.test.
Diffstat (limited to 'bolt/lib/Utils/CommandLineOpts.cpp')
-rw-r--r--bolt/lib/Utils/CommandLineOpts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp
index 41c89bc..0724e62 100644
--- a/bolt/lib/Utils/CommandLineOpts.cpp
+++ b/bolt/lib/Utils/CommandLineOpts.cpp
@@ -128,6 +128,11 @@ cl::opt<bool>
cl::desc("instrument code to generate accurate profile data"),
cl::cat(BoltOptCategory));
+cl::opt<bool>
+ MatchProfileWithFunctionHash("match-profile-with-function-hash",
+ cl::desc("Match profile with function hash"),
+ cl::Hidden, cl::cat(BoltCategory));
+
cl::opt<std::string>
OutputFilename("o",
cl::desc("<output file>"),