[PATCH] D152670: [IR] Remove getABITypeAlignment
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 11 21:07:30 PDT 2023
kazu created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The last use of getABITypeAlignment was removed by:
commit 26bd6476c61f08fc8c01895caa02b938d6a37221
Author: Guillaume Chatelet <gchatelet at google.com>
Date: Fri Jan 13 15:05:24 2023 +0000
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152670
Files:
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/DataLayout.cpp
Index: llvm/lib/IR/DataLayout.cpp
===================================================================
--- llvm/lib/IR/DataLayout.cpp
+++ llvm/lib/IR/DataLayout.cpp
@@ -860,11 +860,6 @@
}
}
-/// TODO: Remove this function once the transition to Align is over.
-uint64_t DataLayout::getABITypeAlignment(Type *Ty) const {
- return getABITypeAlign(Ty).value();
-}
-
Align DataLayout::getABITypeAlign(Type *Ty) const {
return getAlignment(Ty, true);
}
Index: llvm/include/llvm/IR/DataLayout.h
===================================================================
--- llvm/include/llvm/IR/DataLayout.h
+++ llvm/include/llvm/IR/DataLayout.h
@@ -514,16 +514,11 @@
return 8 * getTypeAllocSize(Ty);
}
- /// Returns the minimum ABI-required alignment for the specified type.
- /// FIXME: Deprecate this function once migration to Align is over.
- LLVM_DEPRECATED("use getABITypeAlign instead", "getABITypeAlign")
- uint64_t getABITypeAlignment(Type *Ty) const;
-
/// Returns the minimum ABI-required alignment for the specified type.
Align getABITypeAlign(Type *Ty) const;
/// Helper function to return `Alignment` if it's set or the result of
- /// `getABITypeAlignment(Ty)`, in any case the result is a valid alignment.
+ /// `getABITypeAlign(Ty)`, in any case the result is a valid alignment.
inline Align getValueOrABITypeAlignment(MaybeAlign Alignment,
Type *Ty) const {
return Alignment ? *Alignment : getABITypeAlign(Ty);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152670.530379.patch
Type: text/x-patch
Size: 1506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230612/1772e6d8/attachment.bin>
More information about the llvm-commits
mailing list