Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

import _is_index_type fails for the latest llvm>=22.1.0 #182

@learning-chip

Description

@learning-chip

This line import _is_index_type:

from ....dialects.linalg.opdsl.lang.emitter import _is_index_type

Leads to error:

ImportError: cannot import name '_is_index_type' from 'mlir.dialects.linalg.opdsl.lang.emitter' (/opt/python/cp312-cp312/lib/python3.12/site-packages/mlir/dialects/linalg/opdsl/lang/emitter.py). Did you mean: '_is_bool_type'?

Because _is_index_type is removed in llvmorg-22.1.0-rc1.

The last working tag is llvmorg-21.1.8, better mention this llvm version dependency (<=21.1.8) in README

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions