From f63dfbb1985aa55b9daab3895acb230f329e474b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 30 Jul 2013 21:11:17 +0000 Subject: Remove isCastable since nothing uses it now llvm-svn: 187448 --- llvm/include/llvm/IR/InstrTypes.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'llvm/include') diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h index e12bb03a403..e32af766ca8 100644 --- a/llvm/include/llvm/IR/InstrTypes.h +++ b/llvm/include/llvm/IR/InstrTypes.h @@ -209,7 +209,7 @@ public: BO->setHasNoSignedWrap(true); return BO; } - + static BinaryOperator *CreateNUW(BinaryOps Opc, Value *V1, Value *V2, const Twine &Name = "") { BinaryOperator *BO = Create(Opc, V1, V2, Name); @@ -228,7 +228,7 @@ public: BO->setHasNoUnsignedWrap(true); return BO; } - + static BinaryOperator *CreateExact(BinaryOps Opc, Value *V1, Value *V2, const Twine &Name = "") { BinaryOperator *BO = Create(Opc, V1, V2, Name); @@ -247,7 +247,7 @@ public: BO->setIsExact(true); return BO; } - + #define DEFINE_HELPERS(OPC, NUWNSWEXACT) \ static BinaryOperator *Create ## NUWNSWEXACT ## OPC \ (Value *V1, Value *V2, const Twine &Name = "") { \ @@ -261,7 +261,7 @@ public: (Value *V1, Value *V2, const Twine &Name, Instruction *I) { \ return Create ## NUWNSWEXACT(Instruction::OPC, V1, V2, Name, I); \ } - + DEFINE_HELPERS(Add, NSW) // CreateNSWAdd DEFINE_HELPERS(Add, NUW) // CreateNUWAdd DEFINE_HELPERS(Sub, NSW) // CreateNSWSub @@ -277,7 +277,7 @@ public: DEFINE_HELPERS(LShr, Exact) // CreateExactLShr #undef DEFINE_HELPERS - + /// Helper functions to construct and inspect unary operations (NEG and NOT) /// via binary operators SUB and XOR: /// @@ -525,12 +525,6 @@ public: BasicBlock *InsertAtEnd ///< The block to insert the instruction into ); - /// @brief Check whether it is valid to call getCastOpcode for these types. - static bool isCastable( - Type *SrcTy, ///< The Type from which the value should be cast. - Type *DestTy ///< The Type to which the value should be cast. - ); - /// @brief Check whether a bitcast between these types is valid static bool isBitCastable( Type *SrcTy, ///< The Type from which the value should be cast. -- cgit v1.2.3