diff options
author | Guray Ozen <guray.ozen@gmail.com> | 2022-12-08 09:06:00 +0100 |
---|---|---|
committer | Guray Ozen <guray.ozen@gmail.com> | 2022-12-08 09:11:27 +0100 |
commit | b2bba5b65c9f90f9c75da35fcedec08a01640d80 (patch) | |
tree | df5fc5e3150da5f984e3efa01580f18c3971e871 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | fe2ca62e92c82efcbbd10916e352bdfeddb80e19 (diff) | |
download | llvm-b2bba5b65c9f90f9c75da35fcedec08a01640d80.zip llvm-b2bba5b65c9f90f9c75da35fcedec08a01640d80.tar.gz llvm-b2bba5b65c9f90f9c75da35fcedec08a01640d80.tar.bz2 |
[mlir][spirv] Support conversion of `CopySignOp` to spirv for 1D vector with 1 element
Conversion of CopySignOp to SPIRV is supported for scalar and vectors but not 1D vectors with 1 element (aka vector<1xf32>). This revisions adds supports this by treating them as scalars.
An alternative solution would be to allow 0D vectors for SPIRV, but the spec [0] strictly defines the vector type as non-0D.
"Vector: An ordered homogeneous collection of two or more scalars. Vector sizes are quite restrictive and dependent on the execution model."
[0] https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_types
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D139518
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions