[llvm] [ctx_prof] API to get the instrumentation of a BB (PR #105468)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 17:08:44 PDT 2024
================
@@ -202,6 +202,13 @@ InstrProfCallsite *CtxProfAnalysis::getCallsiteInstrumentation(CallBase &CB) {
return nullptr;
}
+InstrProfIncrementInst *CtxProfAnalysis::getBBInstrumentation(BasicBlock &BB) {
+ for (auto &I : BB)
----------------
boomanaiden154 wrote:
I think explicitly typing `Instruction` would improve readability a bit.
https://github.com/llvm/llvm-project/pull/105468
More information about the llvm-commits
mailing list