llvm-project/mlir/lib/Conversion/StandardToSPIRV
Hanhan Wang c361435845 [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
2021-04-08 12:15:25 -07:00
..
CMakeLists.txt [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
LegalizeStandardForSPIRV.cpp [mlir] Change vector.transfer_read/write "masked" attribute to "in_bounds". 2021-03-31 18:04:22 +09:00
StandardToSPIRV.cpp [mlir][StandardToSPIRV] Handle i1 case for lowering memref.load/store op 2021-04-08 12:15:25 -07:00
StandardToSPIRVPass.cpp [mlir][spirv] Add control for non-32-bit scalar type emulation 2021-04-08 08:19:47 -04:00