llvm::UpgradeCallsToIntrinsic

Upgrade an old intrinsic function and all of its call sites.

Synopsis

Declared in <llvm/IR/AutoUpgrade.h>

void
UpgradeCallsToIntrinsic(Function* F);

Description

This is an auto-upgrade hook for any old intrinsic function syntaxes which need to have both the function updated as well as all calls updated to the new function. This should only be run in a post-processing fashion so that it can update all calls to the old function.

Parameters

NameDescription
FIntrinsic function whose declaration and calls are upgraded.