[NFC] Rename Function::isDebugInfoForProfiling to shouldEmit[...]
authorMircea Trofin <mtrofin@google.com>
Thu, 22 Dec 2022 02:36:59 +0000 (18:36 -0800)
committerMircea Trofin <mtrofin@google.com>
Thu, 22 Dec 2022 02:36:59 +0000 (18:36 -0800)
commit946831ea2d7717a56383e284426527bc6de3808d
tree754ec840fd3b57429c07a43f139c7b23468d7849
parentb9a9b0fb87af81bae0f3837840de7c164b8f5faf
[NFC] Rename Function::isDebugInfoForProfiling to shouldEmit[...]

The function name was misleading - the expectation set both by the name
and by other members of Function (like isDeclaration or isIntrinsic)
would be that the function somehow would "be" "debug info for
profiling". But that's not the case - the property indicates (as the
comment over the declaration also explains) whether debug info should be
emitted (for profiling).
llvm/include/llvm/IR/Function.h
llvm/lib/CodeGen/MIRFSDiscriminator.cpp
llvm/lib/IR/Metadata.cpp
llvm/lib/Transforms/Utils/LoopUnroll.cpp
llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp