[llvm] eb1b26e - [llvm][NFC] Remove deprecated TargetFrameLowering and InstrTypes alignment functions

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Fri May 7 03:21:46 PDT 2021


Author: Guillaume Chatelet
Date: 2021-05-07T10:21:35Z
New Revision: eb1b26ec1d1ac60b2207354fcd003cad40e12b76

URL: https://github.com/llvm/llvm-project/commit/eb1b26ec1d1ac60b2207354fcd003cad40e12b76
DIFF: https://github.com/llvm/llvm-project/commit/eb1b26ec1d1ac60b2207354fcd003cad40e12b76.diff

LOG: [llvm][NFC] Remove deprecated TargetFrameLowering and InstrTypes alignment functions

Differential Revision: https://reviews.llvm.org/D102056

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/TargetFrameLowering.h
    llvm/include/llvm/IR/InstrTypes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/TargetFrameLowering.h b/llvm/include/llvm/CodeGen/TargetFrameLowering.h
index 792452f6e81d..ec49d541a24e 100644
--- a/llvm/include/llvm/CodeGen/TargetFrameLowering.h
+++ b/llvm/include/llvm/CodeGen/TargetFrameLowering.h
@@ -110,14 +110,6 @@ class TargetFrameLowering {
     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.

diff  --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index ea529abbab7f..f1e743f87eab 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -1708,24 +1708,9 @@ class CallBase : public Instruction {
            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);


        


More information about the llvm-commits mailing list