diff options
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 89195a34a4..6d78711411 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -164,6 +164,12 @@ unsigned Function::getIntrinsicID() const { return 0; // All intrinsics start with 'llvm.' switch (getName()[5]) { + case 'a': + if (getName() == "llvm.alpha.ctlz") return LLVMIntrinsic::alpha_ctlz; + if (getName() == "llvm.alpha.cttz") return LLVMIntrinsic::alpha_cttz; + if (getName() == "llvm.alpha.ctpop") return LLVMIntrinsic::alpha_ctpop; + if (getName() == "llvm.alpha.umulh") return LLVMIntrinsic::alpha_umulh; + break; case 'l': if (getName() == "llvm.longjmp") return LLVMIntrinsic::longjmp; break; |