efriedma updated this revision to Diff 254971. efriedma added a comment. Herald added a project: LLVM.
Commited the non-header changes separately Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76269/new/ https://reviews.llvm.org/D76269 Files: llvm/include/llvm/IR/IRBuilder.h llvm/include/llvm/IR/Instructions.h
Index: llvm/include/llvm/IR/Instructions.h =================================================================== --- llvm/include/llvm/IR/Instructions.h +++ 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<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, NameStr, InsertBefore); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef<Value *> Args, - const Twine &NameStr, - Instruction *InsertBefore = nullptr) { - return Create(cast<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, Args, NameStr, InsertBefore); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> Bundles = None, - const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) { - return Create(cast<FunctionType>( - cast<PointerType>(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<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef<Value *> Args, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, Args, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static CallInst *Create(Value *Func, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> Bundles, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast<FunctionType>( - cast<PointerType>(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<Value *> Args, - const Twine &NameStr, - Instruction *InsertBefore = nullptr) { - return Create(cast<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, None, NameStr, - InsertBefore); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> Bundles = None, - const Twine &NameStr = "", - Instruction *InsertBefore = nullptr) { - return Create(cast<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, Bundles, NameStr, - InsertBefore); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef<Value *> Args, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast<FunctionType>( - cast<PointerType>(Func->getType())->getElementType()), - Func, IfNormal, IfException, Args, NameStr, InsertAtEnd); - } - - // Deprecated [opaque pointer types] - static InvokeInst *Create(Value *Func, BasicBlock *IfNormal, - BasicBlock *IfException, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> Bundles, - const Twine &NameStr, BasicBlock *InsertAtEnd) { - return Create(cast<FunctionType>( - cast<PointerType>(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. /// Index: llvm/include/llvm/IR/IRBuilder.h =================================================================== --- llvm/include/llvm/IR/IRBuilder.h +++ llvm/include/llvm/IR/IRBuilder.h @@ -1068,28 +1068,6 @@ NormalDest, UnwindDest, Args, Name); } - // Deprecated [opaque pointer types] - InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest, - BasicBlock *UnwindDest, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> OpBundles, - const Twine &Name = "") { - return CreateInvoke( - cast<FunctionType>( - cast<PointerType>(Callee->getType())->getElementType()), - Callee, NormalDest, UnwindDest, Args, OpBundles, Name); - } - - // Deprecated [opaque pointer types] - InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest, - BasicBlock *UnwindDest, - ArrayRef<Value *> Args = None, - const Twine &Name = "") { - return CreateInvoke( - cast<FunctionType>( - cast<PointerType>(Callee->getType())->getElementType()), - Callee, NormalDest, UnwindDest, Args, Name); - } - /// \brief Create a callbr instruction. CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee, BasicBlock *DefaultDest, @@ -2488,23 +2466,6 @@ OpBundles, Name, FPMathTag); } - // Deprecated [opaque pointer types] - CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args = None, - const Twine &Name = "", MDNode *FPMathTag = nullptr) { - return CreateCall( - cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee, - Args, Name, FPMathTag); - } - - // Deprecated [opaque pointer types] - CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args, - ArrayRef<OperandBundleDef> OpBundles, - const Twine &Name = "", MDNode *FPMathTag = nullptr) { - return CreateCall( - cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee, - Args, OpBundles, Name, FPMathTag); - } - CallInst *CreateConstrainedFPCall( Function *Callee, ArrayRef<Value *> Args, const Twine &Name = "", Optional<fp::RoundingMode> Rounding = None,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits