Skip to content

Commit 902970b

Browse files
committed
IRBuilder.h: remove deprecations
1 parent c9fceef commit 902970b

File tree

1 file changed

+27
-55
lines changed

1 file changed

+27
-55
lines changed

include/llvm/IR/IRBuilder.h

+27-55
Original file line numberDiff line numberDiff line change
@@ -1667,27 +1667,21 @@ class IRBuilderBase {
16671667
}
16681668

16691669
// Deprecated [opaque pointer types]
1670-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr,
1671-
const char *Name),
1672-
"Use the version that explicitly specifies the "
1673-
"loaded type instead") {
1670+
LoadInst *CreateLoad(Value *Ptr,
1671+
const char *Name) {
16741672
return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, Name);
16751673
}
16761674

16771675
// Deprecated [opaque pointer types]
1678-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr,
1679-
const Twine &Name = ""),
1680-
"Use the version that explicitly specifies the "
1681-
"loaded type instead") {
1676+
LoadInst *CreateLoad(Value *Ptr,
1677+
const Twine &Name = "") {
16821678
return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, Name);
16831679
}
16841680

16851681
// Deprecated [opaque pointer types]
1686-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateLoad(Value *Ptr,
1682+
LoadInst *CreateLoad(Value *Ptr,
16871683
bool isVolatile,
1688-
const Twine &Name = ""),
1689-
"Use the version that explicitly specifies the "
1690-
"loaded type instead") {
1684+
const Twine &Name = "") {
16911685
return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, isVolatile,
16921686
Name);
16931687
}
@@ -1716,30 +1710,24 @@ class IRBuilderBase {
17161710
}
17171711

17181712
// Deprecated [opaque pointer types]
1719-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
1713+
LoadInst *CreateAlignedLoad(Value *Ptr,
17201714
MaybeAlign Align,
1721-
const char *Name),
1722-
"Use the version that explicitly specifies the "
1723-
"loaded type instead") {
1715+
const char *Name) {
17241716
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
17251717
Align, Name);
17261718
}
17271719
// Deprecated [opaque pointer types]
1728-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
1720+
LoadInst *CreateAlignedLoad(Value *Ptr,
17291721
MaybeAlign Align,
1730-
const Twine &Name = ""),
1731-
"Use the version that explicitly specifies the "
1732-
"loaded type instead") {
1722+
const Twine &Name = "") {
17331723
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
17341724
Align, Name);
17351725
}
17361726
// Deprecated [opaque pointer types]
1737-
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
1727+
LoadInst *CreateAlignedLoad(Value *Ptr,
17381728
MaybeAlign Align,
17391729
bool isVolatile,
1740-
const Twine &Name = ""),
1741-
"Use the version that explicitly specifies the "
1742-
"loaded type instead") {
1730+
const Twine &Name = "") {
17431731
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
17441732
Align, isVolatile, Name);
17451733
}
@@ -1784,10 +1772,8 @@ class IRBuilderBase {
17841772
return Insert(new AtomicRMWInst(Op, Ptr, Val, *Align, Ordering, SSID));
17851773
}
17861774

1787-
LLVM_ATTRIBUTE_DEPRECATED(
1788-
Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1789-
const Twine &Name = ""),
1790-
"Use the version with explicit element type instead") {
1775+
Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1776+
const Twine &Name = "") {
17911777
return CreateGEP(Ptr->getType()->getScalarType()->getPointerElementType(),
17921778
Ptr, IdxList, Name);
17931779
}
@@ -1806,10 +1792,8 @@ class IRBuilderBase {
18061792
return Insert(GetElementPtrInst::Create(Ty, Ptr, IdxList), Name);
18071793
}
18081794

1809-
LLVM_ATTRIBUTE_DEPRECATED(
1810-
Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1811-
const Twine &Name = ""),
1812-
"Use the version with explicit element type instead") {
1795+
Value *CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList,
1796+
const Twine &Name = "") {
18131797
return CreateInBoundsGEP(
18141798
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList,
18151799
Name);
@@ -1845,10 +1829,8 @@ class IRBuilderBase {
18451829
return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idx), Name);
18461830
}
18471831

1848-
LLVM_ATTRIBUTE_DEPRECATED(
1849-
Value *CreateConstGEP1_32(Value *Ptr, unsigned Idx0,
1850-
const Twine &Name = ""),
1851-
"Use the version with explicit element type instead") {
1832+
Value *CreateConstGEP1_32(Value *Ptr, unsigned Idx0,
1833+
const Twine &Name = "") {
18521834
return CreateConstGEP1_32(
18531835
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
18541836
Name);
@@ -1910,10 +1892,8 @@ class IRBuilderBase {
19101892
return Insert(GetElementPtrInst::Create(Ty, Ptr, Idx), Name);
19111893
}
19121894

1913-
LLVM_ATTRIBUTE_DEPRECATED(
1914-
Value *CreateConstGEP1_64(Value *Ptr, uint64_t Idx0,
1915-
const Twine &Name = ""),
1916-
"Use the version with explicit element type instead") {
1895+
Value *CreateConstGEP1_64(Value *Ptr, uint64_t Idx0,
1896+
const Twine &Name = "") {
19171897
return CreateConstGEP1_64(
19181898
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
19191899
Name);
@@ -1929,10 +1909,8 @@ class IRBuilderBase {
19291909
return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idx), Name);
19301910
}
19311911

1932-
LLVM_ATTRIBUTE_DEPRECATED(
1933-
Value *CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0,
1934-
const Twine &Name = ""),
1935-
"Use the version with explicit element type instead") {
1912+
Value *CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0,
1913+
const Twine &Name = "") {
19361914
return CreateConstInBoundsGEP1_64(
19371915
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
19381916
Name);
@@ -1951,10 +1929,8 @@ class IRBuilderBase {
19511929
return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
19521930
}
19531931

1954-
LLVM_ATTRIBUTE_DEPRECATED(
1955-
Value *CreateConstGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1,
1956-
const Twine &Name = ""),
1957-
"Use the version with explicit element type instead") {
1932+
Value *CreateConstGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1,
1933+
const Twine &Name = "") {
19581934
return CreateConstGEP2_64(
19591935
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
19601936
Idx1, Name);
@@ -1973,10 +1949,8 @@ class IRBuilderBase {
19731949
return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
19741950
}
19751951

1976-
LLVM_ATTRIBUTE_DEPRECATED(
1977-
Value *CreateConstInBoundsGEP2_64(Value *Ptr, uint64_t Idx0,
1978-
uint64_t Idx1, const Twine &Name = ""),
1979-
"Use the version with explicit element type instead") {
1952+
Value *CreateConstInBoundsGEP2_64(Value *Ptr, uint64_t Idx0,
1953+
uint64_t Idx1, const Twine &Name = "") {
19801954
return CreateConstInBoundsGEP2_64(
19811955
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
19821956
Idx1, Name);
@@ -1987,9 +1961,7 @@ class IRBuilderBase {
19871961
return CreateConstInBoundsGEP2_32(Ty, Ptr, 0, Idx, Name);
19881962
}
19891963

1990-
LLVM_ATTRIBUTE_DEPRECATED(
1991-
Value *CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = ""),
1992-
"Use the version with explicit element type instead") {
1964+
Value *CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = "") {
19931965
return CreateConstInBoundsGEP2_32(
19941966
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, 0, Idx,
19951967
Name);

0 commit comments

Comments
 (0)