[PATCH] D77218: [Alignment][NFC] Mark IRTranslator::getMemOpAlignment deprecated

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 07:41:35 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc6c045cb7ae3: [Alignment][NFC] Mark IRTranslator::getMemOpAlignment deprecated (authored by gchatelet).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77218/new/

https://reviews.llvm.org/D77218

Files:
  llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h


Index: llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
===================================================================
--- llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
+++ llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
@@ -582,8 +582,9 @@
   /// Get the alignment of the given memory operation instruction. This will
   /// either be the explicitly specified value or the ABI-required alignment for
   /// the type being accessed (according to the Module's DataLayout).
-  /// FIXME: Remove once transition to Align is over.
-  inline unsigned getMemOpAlignment(const Instruction &I) {
+  LLVM_ATTRIBUTE_DEPRECATED(
+      inline unsigned getMemOpAlignment(const Instruction &I),
+      "Use getMemOpAlign instead") {
     return getMemOpAlign(I).value();
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77218.254197.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200401/bb35fcce/attachment.bin>


More information about the llvm-commits mailing list