The Alpha (tm) intrinsics have never been used anywhere

llvm-svn: 17340
This commit is contained in:
Misha Brukman 2004-10-29 18:43:17 +00:00
parent 8600a7ac84
commit 8d8fc6529e
2 changed files with 0 additions and 47 deletions

View File

@ -181,38 +181,7 @@ unsigned Function::getIntrinsicID() const {
assert(getName().size() != 5 && "'llvm.' is an invalid intrinsic name!"); assert(getName().size() != 5 && "'llvm.' is an invalid intrinsic name!");
// a table of all Alpha intrinsic functions
struct {
std::string name; // The name of the intrinsic
unsigned id; // Its ID number
} alpha_intrinsics[] = {
{ "llvm.alpha.ctlz", Intrinsic::alpha_ctlz },
{ "llvm.alpha.cttz", Intrinsic::alpha_cttz },
{ "llvm.alpha.ctpop", Intrinsic::alpha_ctpop },
{ "llvm.alpha.umulh", Intrinsic::alpha_umulh },
{ "llvm.alpha.vecop", Intrinsic::alpha_vecop },
{ "llvm.alpha.pup", Intrinsic::alpha_pup },
{ "llvm.alpha.bytezap", Intrinsic::alpha_bytezap },
{ "llvm.alpha.bytemanip", Intrinsic::alpha_bytemanip },
{ "llvm.alpha.dfp_bop", Intrinsic::alpha_dfpbop },
{ "llvm.alpha.dfp_uop", Intrinsic::alpha_dfpuop },
{ "llvm.alpha.unordered", Intrinsic::alpha_unordered },
{ "llvm.alpha.uqtodfp", Intrinsic::alpha_uqtodfp },
{ "llvm.alpha.uqtosfp", Intrinsic::alpha_uqtosfp },
{ "llvm.alpha.dfptosq", Intrinsic::alpha_dfptosq },
{ "llvm.alpha.sfptosq", Intrinsic::alpha_sfptosq },
};
const unsigned num_alpha_intrinsics =
sizeof(alpha_intrinsics) / sizeof(*alpha_intrinsics);
switch (getName()[5]) { switch (getName()[5]) {
case 'a':
if (getName().size() > 11 &&
std::string(getName().begin()+4, getName().begin()+11) == ".alpha.")
for (unsigned i = 0; i < num_alpha_intrinsics; ++i)
if (getName() == alpha_intrinsics[i].name)
return alpha_intrinsics[i].id;
break;
case 'd': case 'd':
if (getName() == "llvm.dbg.stoppoint") return Intrinsic::dbg_stoppoint; if (getName() == "llvm.dbg.stoppoint") return Intrinsic::dbg_stoppoint;
if (getName() == "llvm.dbg.region.start")return Intrinsic::dbg_region_start; if (getName() == "llvm.dbg.region.start")return Intrinsic::dbg_region_start;

View File

@ -736,22 +736,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
case Intrinsic::memmove: NumArgs = 4; break; case Intrinsic::memmove: NumArgs = 4; break;
case Intrinsic::memset: NumArgs = 4; break; case Intrinsic::memset: NumArgs = 4; break;
case Intrinsic::alpha_ctlz: NumArgs = 1; break;
case Intrinsic::alpha_cttz: NumArgs = 1; break;
case Intrinsic::alpha_ctpop: NumArgs = 1; break;
case Intrinsic::alpha_umulh: NumArgs = 2; break;
case Intrinsic::alpha_vecop: NumArgs = 4; break;
case Intrinsic::alpha_pup: NumArgs = 3; break;
case Intrinsic::alpha_bytezap: NumArgs = 2; break;
case Intrinsic::alpha_bytemanip: NumArgs = 3; break;
case Intrinsic::alpha_dfpbop: NumArgs = 3; break;
case Intrinsic::alpha_dfpuop: NumArgs = 2; break;
case Intrinsic::alpha_unordered: NumArgs = 2; break;
case Intrinsic::alpha_uqtodfp: NumArgs = 2; break;
case Intrinsic::alpha_uqtosfp: NumArgs = 2; break;
case Intrinsic::alpha_dfptosq: NumArgs = 2; break;
case Intrinsic::alpha_sfptosq: NumArgs = 2; break;
case Intrinsic::not_intrinsic: case Intrinsic::not_intrinsic:
assert(0 && "Invalid intrinsic!"); NumArgs = 0; break; assert(0 && "Invalid intrinsic!"); NumArgs = 0; break;
} }