aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-25 06:32:07 +0000
committerChris Lattner <sabre@nondot.org>2006-03-25 06:32:07 +0000
commite42dbed53ae145bd1b9b88c1903f0360904fea4e (patch)
treed30d6f35484e34c8920a15f01ebdf82a9588ebf7
parent9c61dcf1aaf275a1733b6785c54d34eda5426ae1 (diff)
Add a programatic interface to intrinsic names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27107 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Intrinsics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Intrinsics.h b/include/llvm/Intrinsics.h
index 9014473183..e439476914 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