[llvm] c6c045c - [Alignment][NFC] Mark IRTranslator::getMemOpAlignment deprecated
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 07:38:50 PDT 2020
Author: Guillaume Chatelet
Date: 2020-04-01T14:38:39Z
New Revision: c6c045cb7ae34e1da338479e4e25a679216ab585
URL: https://github.com/llvm/llvm-project/commit/c6c045cb7ae34e1da338479e4e25a679216ab585
DIFF: https://github.com/llvm/llvm-project/commit/c6c045cb7ae34e1da338479e4e25a679216ab585.diff
LOG: [Alignment][NFC] Mark IRTranslator::getMemOpAlignment deprecated
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77218
Added:
Modified:
llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
index 723da1a4fd28..a4aa4a7cbd69 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
@@ -582,8 +582,9 @@ class IRTranslator : public MachineFunctionPass {
/// 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();
}
More information about the llvm-commits
mailing list