llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.35k stars 12.14k forks source link

[mlir][spirv] Support conversion from `vector.from_elements` #118098

Open kuhar opened 4 hours ago

kuhar commented 4 hours ago

This op was added fairly recently: https://github.com/llvm/llvm-project/pull/95938. We should support it in vector-to-spirv.

The lowering should be to spirv.CompositeConstruct + a special case for scalars.

llvmbot commented 4 hours ago

@llvm/issue-subscribers-mlir-spirv

Author: Jakub Kuderski (kuhar)

This op was added fairly recently: https://github.com/llvm/llvm-project/pull/95938. We should support it in vector-to-spirv. The lowering should be to `spirv.CompositeConstruct` + a special case for scalars.