Files
clang-p2996/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRVPass.cpp
Angel Zhang b301a98b33 [mlir][spirv] Add integration tests for vector.interleave and vector.shuffle (#93858)
This PR tries to reland #93595 which was reverted in #93732 due to some
issues. The original PR:
- Add integration test for  `vector.shuffle` and `vector.interleave`
- Add `VectorToSPIRV` patterns to `GPUToSPIRVPass`

Description of the issue:
-
https://github.com/llvm/llvm-project/pull/93595#issuecomment-2138541700
- Using either `vector.load` or `vector.store` in the kernel function
will cause the validation layer to report an error
- Trying to bypass the issue by using `memref.load` and `memref.store`
to load/store individual elements from/to the vectors, and populate the
vectors using `vector.insertelement` and `vector.extractelement`
instead.
2024-06-03 10:12:39 -04:00

6.6 KiB