diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 17:16:39 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-20 17:16:39 +0000 |
commit | 9e1d335697bcc5ac02e4c097a03c3478b76f7ec6 (patch) | |
tree | f4e965c41d62f7047f8dcfa6d46f22a75796c554 /llvm/lib/Transforms/Vectorize/BBVectorize.cpp | |
parent | 0ebbe74b73c6b1e9167a7fe89cbccc6522b392e2 (diff) | |
download | bcm5719-llvm-9e1d335697bcc5ac02e4c097a03c3478b76f7ec6.tar.gz bcm5719-llvm-9e1d335697bcc5ac02e4c097a03c3478b76f7ec6.zip |
Change Function::getIntrinsicID() to return an Intrinsic::ID. NFC.
Now that Intrinsic::ID is a typed enum, we can forward declare it and so return it from this method.
This updates all users which were either using an unsigned to store it, or had a now unnecessary cast.
llvm-svn: 237810
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/BBVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/BBVectorize.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp index 6f0180e7db0..215d6f9a1eb 100644 --- a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp @@ -662,7 +662,7 @@ namespace { Function *F = I->getCalledFunction(); if (!F) return false; - Intrinsic::ID IID = (Intrinsic::ID) F->getIntrinsicID(); + Intrinsic::ID IID = F->getIntrinsicID(); if (!IID) return false; switch(IID) { @@ -1098,7 +1098,7 @@ namespace { CallInst *CI = dyn_cast<CallInst>(I); Function *FI; if (CI && (FI = CI->getCalledFunction())) { - Intrinsic::ID IID = (Intrinsic::ID) FI->getIntrinsicID(); + Intrinsic::ID IID = FI->getIntrinsicID(); if (IID == Intrinsic::powi || IID == Intrinsic::ctlz || IID == Intrinsic::cttz) { Value *A1I = CI->getArgOperand(1), @@ -2770,7 +2770,7 @@ namespace { continue; } else if (isa<CallInst>(I)) { Function *F = cast<CallInst>(I)->getCalledFunction(); - Intrinsic::ID IID = (Intrinsic::ID) F->getIntrinsicID(); + Intrinsic::ID IID = F->getIntrinsicID(); if (o == NumOperands-1) { BasicBlock &BB = *I->getParent(); |