[llvm] 8ee55ab - [IR] Remove deprecated GetElementPtrInst constructors
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 02:50:26 PST 2021
Author: Nikita Popov
Date: 2021-12-01T11:50:20+01:00
New Revision: 8ee55ab6c06ec9f769f1086e3761c92286d56339
URL: https://github.com/llvm/llvm-project/commit/8ee55ab6c06ec9f769f1086e3761c92286d56339
DIFF: https://github.com/llvm/llvm-project/commit/8ee55ab6c06ec9f769f1086e3761c92286d56339.diff
LOG: [IR] Remove deprecated GetElementPtrInst constructors
Remove deprecated constructors that are incompatible with opaque
pointers. These have been deprecated since before the LLVM 13
release.
Added:
Modified:
llvm/include/llvm/IR/Instructions.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index 6d32a898b668..046e9b5e809e 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -975,15 +975,6 @@ class GetElementPtrInst : public Instruction {
NameStr, InsertAtEnd);
}
- LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds(
- Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr = "",
- Instruction *InsertBefore = nullptr),
- "Use the version with explicit element type instead") {
- return CreateInBounds(
- Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList,
- NameStr, InsertBefore);
- }
-
/// Create an "inbounds" getelementptr. See the documentation for the
/// "inbounds" flag in LangRef.html for details.
static GetElementPtrInst *
@@ -996,15 +987,6 @@ class GetElementPtrInst : public Instruction {
return GEP;
}
- LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds(
- Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr,
- BasicBlock *InsertAtEnd),
- "Use the version with explicit element type instead") {
- return CreateInBounds(
- Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList,
- NameStr, InsertAtEnd);
- }
-
static GetElementPtrInst *CreateInBounds(Type *PointeeType, Value *Ptr,
ArrayRef<Value *> IdxList,
const Twine &NameStr,
More information about the llvm-commits
mailing list