[llvm-branch-commits] [clang] [llvm][CallGraphSection] Handle type id metadata (PR #87573)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 20 14:08:51 PST 2024
================
@@ -5693,6 +5699,36 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
AllocAlignAttrEmitter AllocAlignAttrEmitter(*this, TargetDecl, CallArgs);
Attrs = AllocAlignAttrEmitter.TryEmitAsCallSiteAttribute(Attrs);
+ if (CGM.getCodeGenOpts().CallGraphSection) {
+ // Create operand bundle only for indirect calls, not for all
+ if (callOrInvoke && *callOrInvoke && (*callOrInvoke)->isIndirectCall()) {
----------------
Prabhuk wrote:
`llvm::CallBase **callOrInvoke` is one of the function parameters.
https://github.com/llvm/llvm-project/blob/ec5b729e651c48dfff67487e6bb24c218c35cda9/clang/lib/CodeGen/CGCall.cpp#L5080-L5086
https://github.com/llvm/llvm-project/pull/87573
More information about the llvm-branch-commits
mailing list