Print accurate run instructions for when testing LLC
[oota-llvm.git] / lib / VMCore / Function.cpp
index 89195a34a42cd294d559e72ecb6fd68ca6993aeb..6d78711411bef9a83623b3df3ad46b15e251281c 100644 (file)
@@ -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;