You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check in generated VM opcode table for compilerless builds #357
I'd really like to keep the runtime building without the LLVM dependency so it's easier to get going on weird platforms. One idea would be to check in the generated opcode table header and then add a script to update it (and a CI action to ensure it is updated if opcodes change).
This will get easier when we build the compiler as an installation, as having the compiler for the host will include the generated header as part of it's include/ install.
in the great bytecode reworking I'll likely remove the tablegen->runtime path and just respecify things - at some point when we start to stabilize the binary format we want it to be hard to change things :)
I'm not sure how to construct a command to invoke iree-tblgen :/
λ ..\iree-build\iree\tools\iree-tblgen.exe -gen-iree-vm-op-table-defs D:\dev\projects\iree\iree\compiler\Dialect\VM\IR\VMOps.td -I D:\dev\projects\iree\third_party\llvm-project\mlir\include\mlir\Interfaces
D:\dev\projects\iree\iree\compiler\Dialect\VM\IR\VMOps.td:10:9: error: Could not find include file 'mlir/Interfaces/CallInterfaces.td'
include "mlir/Interfaces/CallInterfaces.td"
^
Activity
Build the compiler as part of the CMake build
Build the compiler as part of the CMake build
Build the compiler as part of the CMake build
benvanik commentedon Apr 5, 2020
This will get easier when we build the compiler as an installation, as having the compiler for the host will include the generated header as part of it's include/ install.
Add guards around more components which require building the compiler.
ScottTodd commentedon Aug 3, 2021
A script would still help here. What we have now is commented out and stale: https://github.com/google/iree/blob/c3ea7a879abfa86aa7c0994afba2b19d7354a459/iree/vm/BUILD#L204-L210
(
gentblno longer exists, see b0f67e6)benvanik commentedon Aug 3, 2021
in the great bytecode reworking I'll likely remove the tablegen->runtime path and just respecify things - at some point when we start to stabilize the binary format we want it to be hard to change things :)
ScottTodd commentedon Aug 3, 2021
SG. So.... how can I regenerate this now?
I'm not sure how to construct a command to invoke
iree-tblgen:/benvanik commentedon Aug 3, 2021
uncomment and change gentbl to whatever the replacement was is what I'd do
Updated commented out bytecode_op_table.h generation rule. (#6632)
GMNGeoffrey commentedon Jun 2, 2022
This should be tested and the update procedure should be documented (and ideally simple)
benvanik commentedon Jul 1, 2022
Have been doing this by hand for a year or so. It's not worth any infra work at this point.