diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-29 18:43:17 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-29 18:43:17 +0000 |
commit | e7a3f3e7287a0688a689cbf66cfc6f4f1cd8920e (patch) | |
tree | 74e91f9cecee549fd67608610b5d28d96ddd4f2b | |
parent | a6ad12d4faf62c8e6499fa62ebcd8d8ed4e8dbf5 (diff) | |
download | external_llvm-e7a3f3e7287a0688a689cbf66cfc6f4f1cd8920e.zip external_llvm-e7a3f3e7287a0688a689cbf66cfc6f4f1cd8920e.tar.gz external_llvm-e7a3f3e7287a0688a689cbf66cfc6f4f1cd8920e.tar.bz2 |
The Alpha (tm) intrinsics have never been used anywhere
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17340 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Function.cpp | 31 | ||||
-rw-r--r-- | lib/VMCore/Verifier.cpp | 16 |
2 files changed, 0 insertions, 47 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index c937d8e..46cb4c2 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -181,38 +181,7 @@ unsigned Function::getIntrinsicID() const { 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]) { - 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': if (getName() == "llvm.dbg.stoppoint") return Intrinsic::dbg_stoppoint; if (getName() == "llvm.dbg.region.start")return Intrinsic::dbg_region_start; diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 97bc006..38fbabb 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -736,22 +736,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) { case Intrinsic::memmove: 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: assert(0 && "Invalid intrinsic!"); NumArgs = 0; break; } |