Skip to content

IREE Python API does not register LLVMIR translations #8604

Closed

Description

@stellaraccident

This was discovered as part of s/iree-translate/iree-compile/ and associated work on the CAPI. The IREE in-process compilation API does not register certain LLVMIR translations: https://github.com/google/iree/blob/11fb8d0c1c36dd4163a4271c066068f7a6fe603b/llvm-external-projects/iree-compiler-api/lib/CAPI/Compiler.cpp#L68

This can result in errors about missing translations for ISA specific conversions (i.e. ARM or AVX512).

The fix is to either add a Python API that delegates to ireeCompilerRegisterAllDialects() or add to an existing API. Likely needs a new API here (i.e. register_dependencies(context)) that calls ireeCompilerRegisterAllDialects(context).

Activity

  1. added a commit that references this issue on Apr 18, 2022
    4b0f28c
  2. added a commit that references this issue on Apr 18, 2022
    6012859
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions