[mlir][SPIRVToLLVM] Solve ExecutionModeOp redefinition and add OpTypeSampledImage...
authorWeiwei Li <weiwei.li1@huawei.com>
Wed, 13 Oct 2021 01:59:38 +0000 (09:59 +0800)
committerWeiwei Li <weiwei.li1@huawei.com>
Wed, 13 Oct 2021 02:03:25 +0000 (10:03 +0800)
commitc0a6381e49840b9fcf58b43e33f8484cc408e15b
tree1f8349ac367447bd4d63445990b7be83b0daefde
parentc5a5517be45af21c6db5a40880a75f68cd76cc7e
[mlir][SPIRVToLLVM] Solve ExecutionModeOp redefinition and add OpTypeSampledImage into SPV_Type

1. To avoid two ExecutionModeOp using the same name, adding the value of execution mode in name when converting to LLVM dialect.
2. To avoid syntax error in spv.OpLoad, add OpTypeSampledImage into SPV_Type.

Reviewed by:antiagainst

Differential revision:https://reviews.llvm.org/D111193
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
mlir/test/Dialect/SPIRV/IR/memory-ops.mlir