This is the complement to the above, replacing a specific call to an intrinsic function with a call to the specified new function.

Synopsis

Declared in <llvm/IR/AutoUpgrade.h>

void
UpgradeIntrinsicCall(
    CallBase* CB,
    Function* NewFn);

Parameters

Name

Description

CB

Call to the old intrinsic to rewrite.

NewFn

Replacement function, or null to rewrite the call as non‐call instructions.

Created with MrDocs