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