[PATCH] D102056: [llvm][NFC] Remove deprecated TargetFrameLowering and InstrTypes alignment functions
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 7 02:13:28 PDT 2021
gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added a subscriber: dexonsmith.
gchatelet requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102056
Files:
llvm/include/llvm/CodeGen/TargetFrameLowering.h
llvm/include/llvm/IR/InstrTypes.h
Index: llvm/include/llvm/IR/InstrTypes.h
===================================================================
--- llvm/include/llvm/IR/InstrTypes.h
+++ llvm/include/llvm/IR/InstrTypes.h
@@ -1708,24 +1708,9 @@
dataOperandHasImpliedAttr(OpNo + 1, Attribute::ReadNone);
}
- LLVM_ATTRIBUTE_DEPRECATED(unsigned getRetAlignment() const,
- "Use getRetAlign() instead") {
- if (const auto MA = Attrs.getRetAlignment())
- return MA->value();
- return 0;
- }
-
/// Extract the alignment of the return value.
MaybeAlign getRetAlign() const { return Attrs.getRetAlignment(); }
- /// Extract the alignment for a call or parameter (0=unknown).
- LLVM_ATTRIBUTE_DEPRECATED(unsigned getParamAlignment(unsigned ArgNo) const,
- "Use getParamAlign() instead") {
- if (const auto MA = Attrs.getParamAlignment(ArgNo))
- return MA->value();
- return 0;
- }
-
/// Extract the alignment for a call or parameter (0=unknown).
MaybeAlign getParamAlign(unsigned ArgNo) const {
return Attrs.getParamAlignment(ArgNo);
Index: llvm/include/llvm/CodeGen/TargetFrameLowering.h
===================================================================
--- llvm/include/llvm/CodeGen/TargetFrameLowering.h
+++ llvm/include/llvm/CodeGen/TargetFrameLowering.h
@@ -110,14 +110,6 @@
return SPAdj;
}
- /// getTransientStackAlignment - This method returns the number of bytes to
- /// which the stack pointer must be aligned at all times, even between
- /// calls.
- ///
- LLVM_ATTRIBUTE_DEPRECATED(unsigned getTransientStackAlignment() const,
- "Use getTransientStackAlign instead") {
- return TransientStackAlignment.value();
- }
/// getTransientStackAlignment - This method returns the number of bytes to
/// which the stack pointer must be aligned at all times, even between
/// calls.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102056.343615.patch
Type: text/x-patch
Size: 1912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210507/f7984ce3/attachment.bin>
More information about the llvm-commits
mailing list