ΒΆllvm::CallBase& versionCallSite(
    llvm::CallBase& CB,
    llvm::Value* Callee,
    llvm::MDNode* BranchWeights)

Description

Predicate and clone the given call site. This function creates an if-then-else structure at the location of the call site. The "if" condition compares the call site's called value to the given callee. The original call site is moved into the "else" block, and a clone of the call site is placed in the "then" block. The cloned instruction is returned.

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

Parameters

llvm::CallBase& CB
llvm::Value* Callee
llvm::MDNode* BranchWeights