mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
2b5134f1b7
This partially reverts #66380. The assertion that the underlying buffer of an EncodingReader is aligned to any required alignments for resource sections. Resources know their own alignment and pad their buffers accordingly, but the bytecode reader doesn't know that ahead of time. Consequently, it cannot give the resource EncodingReader a base buffer aligned to the maximum required alignment. A simple example from the test fails without this: ```mlir module @TestDialectResources attributes { bytecode.test = dense_resource<resource> : tensor<4xi32> } {} {-# dialect_resources: { builtin: { resource: "0x2000000001000000020000000300000004000000", resource_2: "0x2000000001000000020000000300000004000000" } } ``` |
||
---|---|---|
.. | ||
Analysis | ||
Bytecode | ||
Conversion | ||
Debug | ||
Dialect | ||
ExecutionEngine | ||
Interfaces | ||
IR | ||
Parser | ||
Pass | ||
Rewrite | ||
Support | ||
TableGen | ||
Target | ||
Transforms | ||
CMakeLists.txt |