Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AOT] Initial implementation of --unpacked-api #8023

Merged
merged 9 commits into from
Jun 4, 2021

Commits on Jun 1, 2021

  1. [AOT] Initial implementation of --no-typed-operators

    Based on the discussions in the AOT embedded improvements RFC, this adds a flag to the target which changes the internal operators to an unpacked API. The unpacked API spreads the input buffers across the operator function, for example:
    
    int32_t operator(void* arg0, void* arg1);
    
    As opposed to the traditional packed API:
    
    int32_t operator(void** args);
    
    Uneffected is the entrypoint function, which retains a packed API for
    compatibility with other parts of TVM. This is done by changing the
    passes taken by none entrypoint (CallingConv::kEntryPoint) functions.
    Mousius committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    d0842df View commit details
    Browse the repository at this point in the history
  2. Move entrypoint generation outside of main passes

    This removes the logic for deciding the entrypoint from the compiler
    passes and instead moves it into the metadata code generation. By moving
    the generation, we can generate a variety of entrypoints on top of the
    compiler output (such as the micro entrypoint discussed in the RFC).
    Mousius committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    1f03e8f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    00000ba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af6e766 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c468c46 View commit details
    Browse the repository at this point in the history
  6. Refactor typed-operators lookup into use_typed_operators_

    (Also contains minor clean up of output variables)
    Mousius committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    95b0204 View commit details
    Browse the repository at this point in the history
  7. Rename --typed-operators to --unpacked-api

    (Also moves the entrypoint name to a constant)
    Mousius committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    7344269 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d1e0ab2 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Configuration menu
    Copy the full SHA
    f874d72 View commit details
    Browse the repository at this point in the history