ΒΆllvm::Instruction* promoteCall(
    llvm::CallSite CS,
    llvm::Function* Callee,
    llvm::CastInst** RetBitCast = nullptr)

Description

Promote the given indirect call site to unconditionally call \p Callee. This function promotes the given call site, returning the direct call or invoke instruction. If the function type of the call site doesn't match that of the callee, bitcast instructions are inserted where appropriate. If \p RetBitCast is non-null, it will be used to store the return value bitcast, if created.

Declared at: llvm/include/llvm/Transforms/Utils/CallPromotionUtils.h:38

Parameters

llvm::CallSite CS
llvm::Function* Callee
llvm::CastInst** RetBitCast = nullptr