llvm-project/mlir/test
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
..
Analysis Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
CAPI [mlir][python] Extend C/Python API to be usable for CFG construction. 2021-08-30 08:28:00 -07:00
Conversion [mlir][tosa] Small refactor to the functionality of Depthwise_Conv2D to add the bias at the end of the convolution 2021-09-01 10:01:00 -07:00
Dialect [mlir][SPIRV] Add Image Operands for Image Instructions 2021-09-02 04:14:17 +08:00
Examples [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00
IR Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
Integration [mlir][sparse] fully implement sparse tensor to sparse tensor conversions 2021-08-27 15:08:18 -07:00
Interfaces Split `InferShapedTypeOpInterface` to create `ReifyRankedShapedTypeInterface`. 2021-07-19 14:44:52 -07:00
Pass [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
Rewrite [mlir][PDL] Add support for variadic operands and results in the PDL byte code 2021-03-16 13:20:19 -07:00
Target Support alias.scope and noalias metadata 2021-08-24 20:42:59 +02:00
Transforms Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
Unit Revert "Attempt to disable MLIR JIT tests on PowerPC to unbreak the bot" 2021-06-29 18:03:23 -05:00
lib Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
mlir-cpu-runner [mlir][CPURunner] Avoid a crash in memrefCopy when called with empty shapes. 2021-08-03 16:02:01 +02:00
mlir-linalg-ods-gen [mlir][Linalg] Allow all build methods of Structured ops to specify additional attributes. 2021-08-23 13:06:34 -07:00
mlir-lsp-server [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-opt [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-reduce [mlir-reduce] Reducer refactor. 2021-06-02 07:45:00 +08:00
mlir-spirv-cpu-runner [mlir] fix SPIR-V CPU and Vulkan runners after e2310704d8 2021-03-15 18:36:58 +01:00
mlir-tblgen Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
mlir-translate [mlir] Print the correct tool name in mlirTranslateMain 2021-01-05 19:17:01 -08:00
mlir-vulkan-runner [mlir] fix SPIR-V CPU and Vulkan runners after e2310704d8 2021-03-15 18:36:58 +01:00
python Fix MLIR python binding test after changes in ASM printer 2021-08-31 18:50:22 +00:00
APITest.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
CMakeLists.txt Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
lit.cfg.py Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
lit.site.cfg.py.in [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00