[all-commits] [llvm/llvm-project] fce33e: [mlir][spirv] Consider target when converting one-...
Lei Zhang via All-commits
all-commits at lists.llvm.org
Tue Oct 18 22:56:00 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fce33e1140bbf5ddf2afa5c3be89433ed2a70e4d
https://github.com/llvm/llvm-project/commit/fce33e1140bbf5ddf2afa5c3be89433ed2a70e4d
Author: Lei Zhang <antiagainst at google.com>
Date: 2022-10-19 (Wed, 19 Oct 2022)
Changed paths:
M mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
M mlir/test/Conversion/FuncToSPIRV/types-to-spirv.mlir
Log Message:
-----------
[mlir][spirv] Consider target when converting one-element vector
Vectors with just one element will be converted into scalars.
However, we cannot just return the element types and assume it
is supported in the target environment; we need to conver the
element type again factoring in those considerations.
Reviewed By: kuhar
Differential Revision: https://reviews.llvm.org/D136226
More information about the All-commits
mailing list