This is adding a new interface (`BytecodeOpInterface`) to allow operations to
opt-in skipping conversion to attribute and serializing properties to native
bytecode.
The scheme relies on a new section where properties are stored in sequence
{ size, serialize_properties }, ...
The operations are storing the index of a properties, a table of offset is
built when loading the properties section the first time.
This is a re-commit of 837d1ce0dc which conflicted with another patch upgrading
the bytecode and the collision wasn't properly resolved before.
Differential Revision: https://reviews.llvm.org/D151065
14 lines
232 B
CMake
14 lines
232 B
CMake
add_subdirectory(Reader)
|
|
add_subdirectory(Writer)
|
|
|
|
add_mlir_library(MLIRBytecodeOpInterface
|
|
BytecodeOpInterface.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Bytecode
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRSupport
|
|
)
|