[llvm] [DataLayout] Add byte specification (PR #106536)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 11:21:38 PDT 2024
================
@@ -364,7 +373,7 @@ class DataLayout {
/// Returns the maximum index size over all address spaces.
unsigned getMaxIndexSizeInBits() const {
- return getMaxIndexSize() * 8;
+ return getMaxIndexSize() * ByteWidth;
----------------
arichardson wrote:
Should there be something like a DL.bytesToBits() helper function? The inverse is a bit more tricky since we need to define how to handle non-multiples (round down, round up, assert).
https://github.com/llvm/llvm-project/pull/106536
More information about the llvm-commits
mailing list