Skip to content

Commit 15ab820

Browse files
kazutakahiratakrishna2803
authored andcommitted
[IR] Remove getDestAlignment and getSourceAlignment (llvm#151282)
This patch removes getDestAlignment and getSourceAlignment as they have been deprecated for more than two years since: commit 135f23d Author: Guillaume Chatelet <[email protected]> Date: Mon Jan 16 12:34:40 2023 +0000 I'm not aware of any downstream users AFAIK.
1 parent 808dbd5 commit 15ab820

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

llvm/include/llvm/IR/IntrinsicInst.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -996,14 +996,6 @@ template <typename Derived> class MemIntrinsicBase : public IntrinsicInst {
996996
return cast<PointerType>(getRawDest()->getType())->getAddressSpace();
997997
}
998998

999-
/// FIXME: Remove this function once transition to Align is over.
1000-
/// Use getDestAlign() instead.
1001-
LLVM_DEPRECATED("Use getDestAlign() instead", "getDestAlign")
1002-
unsigned getDestAlignment() const {
1003-
if (auto MA = getParamAlign(ARG_DEST))
1004-
return MA->value();
1005-
return 0;
1006-
}
1007999
MaybeAlign getDestAlign() const { return getParamAlign(ARG_DEST); }
10081000

10091001
/// Set the specified arguments of the instruction.
@@ -1057,15 +1049,6 @@ template <class BaseCL> class MemTransferBase : public BaseCL {
10571049
return cast<PointerType>(getRawSource()->getType())->getAddressSpace();
10581050
}
10591051

1060-
/// FIXME: Remove this function once transition to Align is over.
1061-
/// Use getSourceAlign() instead.
1062-
LLVM_DEPRECATED("Use getSourceAlign() instead", "getSourceAlign")
1063-
unsigned getSourceAlignment() const {
1064-
if (auto MA = BaseCL::getParamAlign(ARG_SOURCE))
1065-
return MA->value();
1066-
return 0;
1067-
}
1068-
10691052
MaybeAlign getSourceAlign() const {
10701053
return BaseCL::getParamAlign(ARG_SOURCE);
10711054
}

0 commit comments

Comments
 (0)