@@ -1667,27 +1667,21 @@ class IRBuilderBase {
1667
1667
}
1668
1668
1669
1669
// 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) {
1674
1672
return CreateLoad (Ptr ->getType ()->getPointerElementType (), Ptr , Name);
1675
1673
}
1676
1674
1677
1675
// 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 = " " ) {
1682
1678
return CreateLoad (Ptr ->getType ()->getPointerElementType (), Ptr , Name);
1683
1679
}
1684
1680
1685
1681
// Deprecated [opaque pointer types]
1686
- LLVM_ATTRIBUTE_DEPRECATED ( LoadInst *CreateLoad (Value *Ptr ,
1682
+ LoadInst *CreateLoad (Value *Ptr ,
1687
1683
bool isVolatile,
1688
- const Twine &Name = " " ),
1689
- "Use the version that explicitly specifies the "
1690
- "loaded type instead") {
1684
+ const Twine &Name = " " ) {
1691
1685
return CreateLoad (Ptr ->getType ()->getPointerElementType (), Ptr , isVolatile,
1692
1686
Name);
1693
1687
}
@@ -1716,30 +1710,24 @@ class IRBuilderBase {
1716
1710
}
1717
1711
1718
1712
// Deprecated [opaque pointer types]
1719
- LLVM_ATTRIBUTE_DEPRECATED ( LoadInst *CreateAlignedLoad (Value *Ptr ,
1713
+ LoadInst *CreateAlignedLoad (Value *Ptr ,
1720
1714
MaybeAlign Align,
1721
- const char *Name),
1722
- "Use the version that explicitly specifies the "
1723
- "loaded type instead") {
1715
+ const char *Name) {
1724
1716
return CreateAlignedLoad (Ptr ->getType ()->getPointerElementType (), Ptr ,
1725
1717
Align, Name);
1726
1718
}
1727
1719
// Deprecated [opaque pointer types]
1728
- LLVM_ATTRIBUTE_DEPRECATED ( LoadInst *CreateAlignedLoad (Value *Ptr ,
1720
+ LoadInst *CreateAlignedLoad (Value *Ptr ,
1729
1721
MaybeAlign Align,
1730
- const Twine &Name = " " ),
1731
- "Use the version that explicitly specifies the "
1732
- "loaded type instead") {
1722
+ const Twine &Name = " " ) {
1733
1723
return CreateAlignedLoad (Ptr ->getType ()->getPointerElementType (), Ptr ,
1734
1724
Align, Name);
1735
1725
}
1736
1726
// Deprecated [opaque pointer types]
1737
- LLVM_ATTRIBUTE_DEPRECATED ( LoadInst *CreateAlignedLoad (Value *Ptr ,
1727
+ LoadInst *CreateAlignedLoad (Value *Ptr ,
1738
1728
MaybeAlign Align,
1739
1729
bool isVolatile,
1740
- const Twine &Name = " " ),
1741
- "Use the version that explicitly specifies the "
1742
- "loaded type instead") {
1730
+ const Twine &Name = " " ) {
1743
1731
return CreateAlignedLoad (Ptr ->getType ()->getPointerElementType (), Ptr ,
1744
1732
Align, isVolatile, Name);
1745
1733
}
@@ -1784,10 +1772,8 @@ class IRBuilderBase {
1784
1772
return Insert (new AtomicRMWInst (Op, Ptr , Val, *Align, Ordering, SSID));
1785
1773
}
1786
1774
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 = " " ) {
1791
1777
return CreateGEP (Ptr ->getType ()->getScalarType ()->getPointerElementType (),
1792
1778
Ptr , IdxList, Name);
1793
1779
}
@@ -1806,10 +1792,8 @@ class IRBuilderBase {
1806
1792
return Insert (GetElementPtrInst::Create (Ty, Ptr , IdxList), Name);
1807
1793
}
1808
1794
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 = " " ) {
1813
1797
return CreateInBoundsGEP (
1814
1798
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , IdxList,
1815
1799
Name);
@@ -1845,10 +1829,8 @@ class IRBuilderBase {
1845
1829
return Insert (GetElementPtrInst::CreateInBounds (Ty, Ptr , Idx), Name);
1846
1830
}
1847
1831
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 = " " ) {
1852
1834
return CreateConstGEP1_32 (
1853
1835
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , Idx0,
1854
1836
Name);
@@ -1910,10 +1892,8 @@ class IRBuilderBase {
1910
1892
return Insert (GetElementPtrInst::Create (Ty, Ptr , Idx), Name);
1911
1893
}
1912
1894
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 = " " ) {
1917
1897
return CreateConstGEP1_64 (
1918
1898
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , Idx0,
1919
1899
Name);
@@ -1929,10 +1909,8 @@ class IRBuilderBase {
1929
1909
return Insert (GetElementPtrInst::CreateInBounds (Ty, Ptr , Idx), Name);
1930
1910
}
1931
1911
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 = " " ) {
1936
1914
return CreateConstInBoundsGEP1_64 (
1937
1915
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , Idx0,
1938
1916
Name);
@@ -1951,10 +1929,8 @@ class IRBuilderBase {
1951
1929
return Insert (GetElementPtrInst::Create (Ty, Ptr , Idxs), Name);
1952
1930
}
1953
1931
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 = " " ) {
1958
1934
return CreateConstGEP2_64 (
1959
1935
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , Idx0,
1960
1936
Idx1, Name);
@@ -1973,10 +1949,8 @@ class IRBuilderBase {
1973
1949
return Insert (GetElementPtrInst::CreateInBounds (Ty, Ptr , Idxs), Name);
1974
1950
}
1975
1951
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 = " " ) {
1980
1954
return CreateConstInBoundsGEP2_64 (
1981
1955
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , Idx0,
1982
1956
Idx1, Name);
@@ -1987,9 +1961,7 @@ class IRBuilderBase {
1987
1961
return CreateConstInBoundsGEP2_32 (Ty, Ptr , 0 , Idx, Name);
1988
1962
}
1989
1963
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 = " " ) {
1993
1965
return CreateConstInBoundsGEP2_32 (
1994
1966
Ptr ->getType ()->getScalarType ()->getPointerElementType (), Ptr , 0 , Idx,
1995
1967
Name);
0 commit comments