diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/include/llvm/IR/IRBuilder.h @@ -1006,28 +1006,6 @@ NormalDest, UnwindDest, Args, Name); } - // Deprecated [opaque pointer types] - InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest, - BasicBlock *UnwindDest, ArrayRef Args, - ArrayRef OpBundles, - const Twine &Name = "") { - return CreateInvoke( - cast( - cast(Callee->getType())->getElementType()), - Callee, NormalDest, UnwindDest, Args, OpBundles, Name); - } - - // Deprecated [opaque pointer types] - InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest, - BasicBlock *UnwindDest, - ArrayRef Args = None, - const Twine &Name = "") { - return CreateInvoke( - cast( - cast(Callee->getType())->getElementType()), - Callee, NormalDest, UnwindDest, Args, Name); - } - /// \brief Create a callbr instruction. CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee, BasicBlock *DefaultDest, @@ -2349,23 +2327,6 @@ OpBundles, Name, FPMathTag); } - // Deprecated [opaque pointer types] - CallInst *CreateCall(Value *Callee, ArrayRef Args = None, - const Twine &Name = "", MDNode *FPMathTag = nullptr) { - return CreateCall( - cast(Callee->getType()->getPointerElementType()), Callee, - Args, Name, FPMathTag); - } - - // Deprecated [opaque pointer types] - CallInst *CreateCall(Value *Callee, ArrayRef Args, - ArrayRef OpBundles, - const Twine &Name = "", MDNode *FPMathTag = nullptr) { - return CreateCall( - cast(Callee->getType()->getPointerElementType()), Callee, - Args, OpBundles, Name, FPMathTag); - } - CallInst *CreateConstrainedFPCall( Function *Callee, ArrayRef Args, const Twine &Name = "", Optional Rounding = None, diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/include/llvm/IR/Instructions.h @@ -199,40 +199,6 @@ MaybeAlign Align, AtomicOrdering Order, SyncScope::ID SSID, BasicBlock *InsertAtEnd); - // Deprecated [opaque pointer types] - explicit LoadInst(Value *Ptr, const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - InsertBefore) {} - LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - InsertAtEnd) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, - Instruction *InsertBefore = nullptr) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, InsertBefore) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, - BasicBlock *InsertAtEnd) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, InsertAtEnd) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, MaybeAlign Align, - Instruction *InsertBefore = nullptr) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, Align, InsertBefore) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, MaybeAlign Align, - BasicBlock *InsertAtEnd) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, Align, InsertAtEnd) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, MaybeAlign Align, - AtomicOrdering Order, SyncScope::ID SSID = SyncScope::System, - Instruction *InsertBefore = nullptr) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, Align, Order, SSID, InsertBefore) {} - LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, MaybeAlign Align, - AtomicOrdering Order, SyncScope::ID SSID, BasicBlock *InsertAtEnd) - : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr, - isVolatile, Align, Order, SSID, InsertAtEnd) {} - /// Return true if this is a load from a volatile memory location. bool isVolatile() const { return getSubclassDataFromInstruction() & 1; } @@ -1543,58 +1509,6 @@ NameStr, InsertAtEnd); } - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, NameStr, InsertBefore); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef Args, - const Twine &NameStr, - Instruction *InsertBefore = nullptr) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, Args, NameStr, InsertBefore); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef Args, - ArrayRef Bundles = None, - const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, Args, Bundles, NameStr, InsertBefore); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, const Twine &NameStr, - BasicBlock *InsertAtEnd) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef Args, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, Args, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef Args, - ArrayRef Bundles, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, Args, Bundles, NameStr, InsertAtEnd); - } - /// Create a clone of \p CI with a different set of operand bundles and /// insert it before \p InsertPt. /// @@ -3804,49 +3718,6 @@ IfException, Args, Bundles, NameStr, InsertAtEnd); } - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef Args, - const Twine &NameStr, - Instruction *InsertBefore = nullptr) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, None, NameStr, - InsertBefore); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef Args, - ArrayRef Bundles = None, - const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, Bundles, NameStr, - InsertBefore); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef Args, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef Args, - ArrayRef Bundles, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast( - cast(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, Bundles, NameStr, - InsertAtEnd); - } - /// Create a clone of \p II with a different set of operand bundles and /// insert it before \p InsertPt. ///