Add a programatic interface to intrinsic names.
authorChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 06:32:07 +0000 (06:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 06:32:07 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27107 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.h

index 9014473183388ae34fcaad7a7a44ed2d06f57670..e439476914f069b118d3dbb236fd6c9cd65cd0e5 100644 (file)
@@ -30,7 +30,12 @@ namespace Intrinsic {
 #define GET_INTRINSIC_ENUM_VALUES
 #include "llvm/Intrinsics.gen"    
 #undef GET_INTRINSIC_ENUM_VALUES
+    , num_intrinsics
   };
+  
+  /// Intrinsic::getName(ID) - Return the LLVM name for an intrinsic, such as
+  /// "llvm.ppc.altivec.lvx".
+  const char *getName(ID id);
 } // End Intrinsic namespace
 
 } // End llvm namespace