mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
Implement Intrinsic::getName
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e42dbed53a
commit
b847423fc6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user