aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-03 00:19:58 +0000
committerChris Lattner <sabre@nondot.org>2006-03-03 00:19:58 +0000
commit41edaa0529997e41a2bd64efd5f3e8027c67d99f (patch)
tree714eaf941e2d5d4866e3b9c7f92afdd3ca4f2b78 /lib/VMCore
parent472c0ebea486237b8df386a142a37bbebc28f19d (diff)
downloadexternal_llvm-41edaa0529997e41a2bd64efd5f3e8027c67d99f.zip
external_llvm-41edaa0529997e41a2bd64efd5f3e8027c67d99f.tar.gz
external_llvm-41edaa0529997e41a2bd64efd5f3e8027c67d99f.tar.bz2
remove the read/write port/io intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Function.cpp6
-rw-r--r--lib/VMCore/Verifier.cpp45
2 files changed, 0 insertions, 51 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 2412e09..15fd436 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -265,8 +265,6 @@ unsigned Function::getIntrinsicID() const {
break;
case 'r':
if (Name == "llvm.returnaddress") return Intrinsic::returnaddress;
- if (Name == "llvm.readport") return Intrinsic::readport;
- if (Name == "llvm.readio") return Intrinsic::readio;
if (Name == "llvm.readcyclecounter") return Intrinsic::readcyclecounter;
break;
case 's':
@@ -283,10 +281,6 @@ unsigned Function::getIntrinsicID() const {
if (Name == "llvm.va_end") return Intrinsic::vaend;
if (Name == "llvm.va_start") return Intrinsic::vastart;
break;
- case 'w':
- if (Name == "llvm.writeport") return Intrinsic::writeport;
- if (Name == "llvm.writeio") return Intrinsic::writeio;
- break;
}
// The "llvm." namespace is reserved!
assert(!"Unknown LLVM intrinsic function!");
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index be08a11..ef88f0d 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -702,51 +702,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
NumArgs = 1;
break;
- // Verify that read and write port have integral parameters of the correct
- // signed-ness.
- case Intrinsic::writeport:
- Assert1(FT->getNumParams() == 2,
- "Illegal # arguments for intrinsic function!", IF);
- Assert1(FT->getParamType(0)->isIntegral(),
- "First argument not unsigned int!", IF);
- Assert1(FT->getParamType(1)->isUnsigned(),
- "First argument not unsigned int!", IF);
- NumArgs = 2;
- break;
-
- case Intrinsic::writeio:
- Assert1(FT->getNumParams() == 2,
- "Illegal # arguments for intrinsic function!", IF);
- Assert1(FT->getParamType(0)->isFirstClassType(),
- "First argument not a first class type!", IF);
- Assert1(isa<PointerType>(FT->getParamType(1)),
- "Second argument not a pointer!", IF);
- NumArgs = 2;
- break;
-
- case Intrinsic::readport:
- Assert1(FT->getNumParams() == 1,
- "Illegal # arguments for intrinsic function!", IF);
- Assert1(FT->getReturnType()->isFirstClassType(),
- "Return type is not a first class type!", IF);
- Assert1(FT->getParamType(0)->isUnsigned(),
- "First argument not unsigned int!", IF);
- NumArgs = 1;
- break;
-
- case Intrinsic::readio: {
- const PointerType *ParamType = dyn_cast<PointerType>(FT->getParamType(0));
- const Type *ReturnType = FT->getReturnType();
-
- Assert1(FT->getNumParams() == 1,
- "Illegal # arguments for intrinsic function!", IF);
- Assert1(ParamType, "First argument not a pointer!", IF);
- Assert1(ParamType->getElementType() == ReturnType,
- "Pointer type doesn't match return type!", IF);
- NumArgs = 1;
- break;
- }
-
case Intrinsic::isunordered_f32:
Assert1(FT->getNumParams() == 2,
"Illegal # arguments for intrinsic function!", IF);