llvm-project/mlir
Weiwei Li a79d7c2c85 [mlir][SPIRV] Add Image Operands for Image Instructions
This patch is to add Image Operands in SPIR-V Dialect and also let ImageDrefGather to use Image Operands.

Image Operands are used in many image instructions. "Image Operands encodes what oprands follow, as per Image Operands". And ususally, they are optional to image instructions.

The format of image operands looks like:

    %0 = spv.ImageXXXX %1, ... %3 : f32 ["Bias|Lod"](%4, %5 : f32, f32) -> ...

This patch doesn’t implement all operands (see Section 3.14 in SPIR-V Spec) but provides a skeleton of it. There is TODO in verifyImageOperands function.

Co-authored: Alan Liu <alanliu.yf@gmail.com>

Reviewed by: antiagainst

Differential Revision: https://reviews.llvm.org/D108501
2021-09-02 04:14:17 +08:00
..
cmake/modules [MLIR] [Python] Fix out-of-tree Windows python bindings 2021-08-16 19:18:54 -07:00
docs [mlir][docs] A friendlier improvement for the Toy tutorial chapter 4. 2021-08-25 00:44:51 +00:00
examples Change ASM Op printer to print the operation name in the framework instead of leaving it up to each individual operation 2021-08-31 17:52:40 +00:00
include [mlir][SPIRV] Add Image Operands for Image Instructions 2021-09-02 04:14:17 +08:00
lib [mlir][SPIRV] Add Image Operands for Image Instructions 2021-09-02 04:14:17 +08:00
python [mlir] Add op for NCHW conv2d. 2021-08-22 17:27:33 -07:00
test [mlir][SPIRV] Add Image Operands for Image Instructions 2021-09-02 04:14:17 +08:00
tools Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
unittests [mlir][Analysis][NFC] FlatAffineConstraints: Use BoundType enum in functions 2021-08-19 10:33:42 +09:00
utils [vscode-mlir] Add proper support for mlir markdown codeblocks 2021-08-03 19:55:31 +00:00
.clang-format
.clang-tidy NFC: .clang-tidy: Inherit configs from parents to improve maintainability 2021-06-08 08:25:59 -07:00
CMakeLists.txt [MLIR] Drop old cmake var names 2021-05-24 15:30:01 +05:30
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.