summaryrefslogtreecommitdiffstats
path: root/include/llvm/AutoUpgrade.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/AutoUpgrade.h')
-rw-r--r--include/llvm/AutoUpgrade.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/AutoUpgrade.h b/include/llvm/AutoUpgrade.h
index e3a32b9..d0d8e95 100644
--- a/include/llvm/AutoUpgrade.h
+++ b/include/llvm/AutoUpgrade.h
@@ -20,8 +20,10 @@ namespace llvm {
class BasicBlock;
/// This is a more granular function that simply checks an intrinsic function
- /// 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);
/// This is the complement to the above, replacing a specific call to an
/// intrinsic function with a call to the specified new function.