Skip to content

[mlir][spirv] Support index to spir-v dialect conversion #63713

@kuhar

Description

@kuhar

Right now MLIR seems to only support index to llvm conversion. We should also support it on the spirv lowering path.

There's already one related user request / bug report on Discourse: https://discourse.llvm.org/t/need-help-in-better-understanding-scf-to-spir-v-lowering/71639:

func.func @forward() {
    %c0 = arith.constant 0 : index
    %c32 = arith.constant 32 : index
    %c1 = arith.constant 1 : index
    scf.for %arg2 = %c0 to %c32 step %c1 {
        %1 = index.add %arg2, %arg2
    }
    return
}

Metadata

Metadata

Assignees

Labels

enhancementImproving things as opposed to bug fixing, e.g. new or missing featuremlir:spirv

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions