[all-commits] [llvm/llvm-project] c36143: [mlir][StandardToSPIRV] Handle i1 case for lowerin...
Han-Chung Wang via All-commits
all-commits at lists.llvm.org
Thu Apr 8 12:16:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3614358452e5050b5b191fd3df3fad8b2664221
https://github.com/llvm/llvm-project/commit/c3614358452e5050b5b191fd3df3fad8b2664221
Author: Hanhan Wang <hanchung at google.com>
Date: 2021-04-08 (Thu, 08 Apr 2021)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h
M mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
M mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
M mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
M mlir/test/Conversion/StandardToSPIRV/std-types-to-spirv.mlir
Log Message:
-----------
[mlir][StandardToSPIRV] Handle i1 case for lowering memref.load/store op
This patch unconditionally converts i1 types to i8 types on memrefs. If the
extensions or capabilities are not met, they will be converted to i32. Hence the
logic in IntLoadPattern and IntStorePattern are also updated.
Also added the implementation of SPIRVTypeConverter::getOptions().
Reviewed By: antiagainst
Differential Revision: https://reviews.llvm.org/D99724
More information about the All-commits
mailing list