summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/IRBuilder.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-05-29 18:06:50 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-05-29 18:06:50 +0000
commit64c6ab445e9a59e7f97cf4cbf342db070979a6f5 (patch)
treed214288f1150b48c3d86918b082b3ea48df846f1 /llvm/lib/IR/IRBuilder.cpp
parentceafc55e5a1a4796e48d0d09b589c0e77aa28944 (diff)
downloadbcm5719-llvm-64c6ab445e9a59e7f97cf4cbf342db070979a6f5.tar.gz
bcm5719-llvm-64c6ab445e9a59e7f97cf4cbf342db070979a6f5.zip
IRBuilder: Add overload for intrinsics without args
llvm-svn: 333443
Diffstat (limited to 'llvm/lib/IR/IRBuilder.cpp')
-rw-r--r--llvm/lib/IR/IRBuilder.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/IR/IRBuilder.cpp b/llvm/lib/IR/IRBuilder.cpp
index 71bdc35d4c1..f80be2d1b72 100644
--- a/llvm/lib/IR/IRBuilder.cpp
+++ b/llvm/lib/IR/IRBuilder.cpp
@@ -669,6 +669,14 @@ CallInst *IRBuilderBase::CreateBinaryIntrinsic(Intrinsic::ID ID,
}
CallInst *IRBuilderBase::CreateIntrinsic(Intrinsic::ID ID,
+ Instruction *FMFSource,
+ const Twine &Name) {
+ Module *M = BB->getModule();
+ Function *Fn = Intrinsic::getDeclaration(M, ID);
+ return createCallHelper(Fn, {}, this, Name);
+}
+
+CallInst *IRBuilderBase::CreateIntrinsic(Intrinsic::ID ID,
ArrayRef<Value *> Args,
Instruction *FMFSource,
const Twine &Name) {
OpenPOWER on IntegriCloud