projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42dbed
)
Implement Intrinsic::getName
author
Chris Lattner
<sabre@nondot.org>
Sat, 25 Mar 2006 06:32:47 +0000
(06:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 25 Mar 2006 06:32:47 +0000
(06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27108
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Function.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Function.cpp
b/lib/VMCore/Function.cpp
index ba07386f7e8ed033d8e4fd463efa1bf7870c4915..eb3bf250a7308b296061457a692ee82669624760 100644
(file)
--- a/
lib/VMCore/Function.cpp
+++ b/
lib/VMCore/Function.cpp
@@
-213,6
+213,17
@@
unsigned Function::getIntrinsicID() const {
return 0;
}
+const char *Intrinsic::getName(ID id) {
+ assert(id < num_intrinsics && "Invalid intrinsic ID!");
+ const char * const Table[] = {
+ "not_intrinsic",
+#define GET_INTRINSIC_NAME_TABLE
+#include "llvm/Intrinsics.gen"
+#undef GET_INTRINSIC_NAME_TABLE
+ };
+ return Table[id];
+}
+
Value *IntrinsicInst::StripPointerCasts(Value *Ptr) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr)) {
if (CE->getOpcode() == Instruction::Cast) {