Skip to content

Check in generated VM opcode table for compilerless builds #357

Closed as not planned

Description

@benvanik

The opcode table is currently generated by tblgen, which then makes LLVM a requirement to build the runtime: https://github.com/google/iree/blob/master/iree/compiler/Dialect/VM/Tools/VMOpTableGen.cpp#L53-L82

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).

Activity

  1. added
    infrastructure
    on Jan 2, 2020
  2. modified the milestone: on Mar 26, 2020
  3. benvanik commented on Apr 5, 2020

    @benvanik
    CollaboratorAuthor

    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.

  4. added this to the Infrastructure Fixit milestone on Apr 15, 2020
  5. added
    runtime
    on Nov 22, 2020
  6. self-assigned this
    on Nov 22, 2020
  7. added
    ew 🤮
    on Nov 22, 2020
  8. ScottTodd commented on Aug 3, 2021

    @ScottTodd
    Member
  9. benvanik commented on Aug 3, 2021

    @benvanik
    CollaboratorAuthor

    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 :)

  10. ScottTodd commented on Aug 3, 2021

    @ScottTodd
    Member

    SG. So.... how can I regenerate this now?

    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"
            ^
    
  11. benvanik commented on Aug 3, 2021

    @benvanik
    CollaboratorAuthor

    uncomment and change gentbl to whatever the replacement was is what I'd do

  12. added this to IREE Codegen and removed this from IREE Codegenon May 2, 2022
  13. GMNGeoffrey commented on Jun 2, 2022

    @GMNGeoffrey
    Member

    This should be tested and the update procedure should be documented (and ideally simple)

  14. benvanik commented on Jul 1, 2022

    @benvanik
    CollaboratorAuthor

    Have been doing this by hand for a year or so. It's not worth any infra work at this point.

  15. moved this to Done in IREEon Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ew 🤮infrastructureruntime

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions