[llvm] [MemProf] Add remarks for matched allocs and calls (PR #170379)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 14:02:54 PST 2025
================
@@ -454,6 +454,15 @@ handleAllocSite(Instruction &I, CallBase *CI,
InlinedCallStack.size())] = {
AllocInfo->Info.getTotalSize(), AllocType};
}
+ ORE.emit(
+ OptimizationRemark(DEBUG_TYPE, "MemprofContext", CI)
----------------
teresajohnson wrote:
Looking at the uses, it appears to be only emitted into the YAML remarks format. I usually just pick something sensible. Maybe I should make it "MemProfUse" to be consistent with the pass name? Looking at other invocations across LLVM I don't even see a consistent format (upper camel, lower camel, lower hyphenated, ...), probably because under most circumstances it isn't emitted and I couldn't find any guidance.
https://github.com/llvm/llvm-project/pull/170379
More information about the llvm-commits
mailing list