llvm / llvm-project

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

[DirectX] convert vector to array for groupshared #92153

Open python3kgae opened 1 month ago

python3kgae commented 1 month ago

DXIL requires vector to be removed https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst#vectors

Normally, vectors are removed by the scalarizer. However, for groupshared memory, keeping elements of vector next to each other helps maintain the layout so that the data can be loaded/stored in a continuous address. This will be done by convert vector into array.

AC: A pass to convert vector into array. Test.

damyanp commented 2 days ago

Refine this once #92422 has built up a list of subtasks.