[Mlir-commits] [mlir] [mlir][ByteCodeReader] Fix bugs in EncodingReader::alignTo (PR #140660)
River Riddle
llvmlistbot at llvm.org
Mon May 19 20:27:41 PDT 2025
River707 wrote:
The alignment in the reader must be for the actual pointer address, because it gets used to directly load/read data that has alignment requirements. There is an expectation that whoever created the buffer (by alloc or mmap) ensures that the alignment is at least to the amount expected, though in a majority of cases it already (unless you have buffers with large alignment constraints) is given malloc gives you at least max_align_t
https://github.com/llvm/llvm-project/pull/140660
More information about the Mlir-commits
mailing list