[PATCH] D114383: [InstrProfiling] Add -runtime-counter-relocation=function mode
Roland McGrath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 22 10:59:24 PST 2021
mcgrathr created this revision.
mcgrathr added a reviewer: phosek.
Herald added a subscriber: hiraditya.
mcgrathr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The -runtime-counter-relocation switch is changed from a Boolean to a
three-way switch: none, variable, or function. The previous
-runtime-counter-relocation=true behavior is now selected with
-runtime-counter-relocation=variable. In the new ...=function mode,
instead of loading the global variable __llvm_profile_counter_bias,
instrumented code calls the function __llvm_profile_counter_dynamic_bias
with no arguments to return the bias. This can be a runtime function or
it can be defined in the translation unit to be inlined.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114383
Files:
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfData.inc
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114383.388975.patch
Type: text/x-patch
Size: 6871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211122/d7bbe0f6/attachment.bin>
More information about the llvm-commits
mailing list