diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-03 00:19:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-03 00:19:58 +0000 |
commit | ad3c974a777329066c59f9f15013822027e675d0 (patch) | |
tree | 987c972c3b19ab254ee789f18fef5ed268ff146c /llvm/lib/VMCore/Verifier.cpp | |
parent | f7d616278ec512f6842746fccef3d55e88d0ab5a (diff) | |
download | bcm5719-llvm-ad3c974a777329066c59f9f15013822027e675d0.tar.gz bcm5719-llvm-ad3c974a777329066c59f9f15013822027e675d0.zip |
remove the read/write port/io intrinsics.
llvm-svn: 26479
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index be08a11824d..ef88f0d87a1 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/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); |