Change Function::getIntrinsicID() to return an Intrinsic::ID. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 20 May 2015 17:16:39 +0000 (17:16 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 20 May 2015 17:16:39 +0000 (17:16 +0000)
commit9584e07a9cf5261011e70951a3e6286d54643bb1
treefb5dfb049d73e30d1713f5361b9196c99291237e
parent1563a4a416a14a21925e63bd06f850f45e5971f4
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237810 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/IR/Function.h
include/llvm/IR/IRBuilder.h
include/llvm/IR/InstVisitor.h
include/llvm/IR/IntrinsicInst.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/InstructionSimplify.cpp
lib/CodeGen/GCRootLowering.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/IR/AutoUpgrade.cpp
lib/IR/IRBuilder.cpp
lib/IR/Verifier.cpp
lib/Target/AArch64/AArch64FastISel.cpp
lib/Transforms/ObjCARC/ARCInstKind.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
lib/Transforms/Vectorize/BBVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp