[PATCH] D152670: [IR] Remove getABITypeAlignment
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 08:11:12 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1f9aaf5fb67d: [IR] Remove getABITypeAlignment (authored by kazu).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152670/new/
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.530512.patch
Type: text/x-patch
Size: 1506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230612/fb082fcb/attachment.bin>
More information about the llvm-commits
mailing list