[Mlir-commits] [mlir] [MLIR][Bytecode] Enforce alignment requirements (PR #157004)
Maksim Levental
llvmlistbot at llvm.org
Thu Sep 4 20:07:44 PDT 2025
================
@@ -111,6 +114,9 @@ class EncodingReader {
};
// Shift the reader position to the next alignment boundary.
+ // Note: this assumes the pointer alignment matches the alignment of the
+ // data from the start of the buffer. In other words, this code is only
+ // valid if the buffer `dataIt` is offsetting into is already aligned.
----------------
makslevental wrote:
nit: the last line here is somewhat awkward - maybe should be something like
```
valid if `dataIt` is offsetting into an already aligned buffer.
```
https://github.com/llvm/llvm-project/pull/157004
More information about the Mlir-commits
mailing list