aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/CMakeLists.txt
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2022-07-19 22:56:45 +0000
committerPaul Kirth <paulkirth@google.com>2022-07-27 21:13:51 +0000
commit6047deb7c2aa94d9bc2b70b49799d22cce778bd4 (patch)
tree0980e161128b3a6244ef0172d76f70fb38bcc1e5 /llvm/lib/IR/CMakeLists.txt
parent719ab04acf97dde76249835b25ab3d246ff95877 (diff)
downloadllvm-6047deb7c2aa94d9bc2b70b49799d22cce778bd4.zip
llvm-6047deb7c2aa94d9bc2b70b49799d22cce778bd4.tar.gz
llvm-6047deb7c2aa94d9bc2b70b49799d22cce778bd4.tar.bz2
[llvm] Provide utility function for MD_prof
Currently, there is significant code duplication for dealing with MD_prof metadata throughout the compiler. These utility functions can improve code reuse and simplify boilerplate code when dealing with profiling metadata, such as branch weights. The inent is to provide a uniform set of APIs that allow common tasks, such as identifying specific types of MD_prof metadata and extracting branch weights. Future patches can build on this initial implementation and clean up the different implementations across the compiler. Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D128858
Diffstat (limited to 'llvm/lib/IR/CMakeLists.txt')
-rw-r--r--llvm/lib/IR/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index 3e542e4..13a28f5 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -49,6 +49,7 @@ add_llvm_component_library(LLVMCore
PassRegistry.cpp
PassTimingInfo.cpp
PrintPasses.cpp
+ ProfDataUtils.cpp
SafepointIRVerifier.cpp
ProfileSummary.cpp
PseudoProbe.cpp