[llvm] [DataLayout] Add byte specification (PR #106536)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 12:53:37 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;
----------------
s-barannikov wrote:

I never needed it, but it never occurred to me it might be useful.
I think we can add it later if we need it?


https://github.com/llvm/llvm-project/pull/106536


More information about the llvm-commits mailing list