From e42dbed53ae145bd1b9b88c1903f0360904fea4e Mon Sep 17 00:00:00 2001 From: Chris Lattner <sabre@nondot.org> Date: Sat, 25 Mar 2006 06:32:07 +0000 Subject: [PATCH] Add a programatic interface to intrinsic names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27107 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Intrinsics.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Intrinsics.h b/include/llvm/Intrinsics.h index 90144731833..e439476914f 100644 --- a/include/llvm/Intrinsics.h +++ b/include/llvm/Intrinsics.h @@ -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