- /// for upgrading, and if it requires upgrading provides the new function.
- Function* UpgradeIntrinsicFunction(Function *F);
+ /// for upgrading, and returns true if it requires upgrading. It may return
+ /// null in NewFn if the all calls to the original intrinsic function
+ /// should be transformed to non-function-call instructions.
+ bool UpgradeIntrinsicFunction(Function *F, Function *&NewFn);