llvm-project/mlir/test
Alex Zinenko 176379e0c8 [mlir] Use the interface-based translation for LLVM "intrinsic" dialects
Port the translation of five dialects that define LLVM IR intrinsics
(LLVMAVX512, LLVMArmNeon, LLVMArmSVE, NVVM, ROCDL) to the new dialect
interface-based mechanism. This allows us to remove individual translations
that were created for each of these dialects and just use one common
MLIR-to-LLVM-IR translation that potentially supports all dialects instead,
based on what is registered and including any combination of translatable
dialects. This removal was one of the main goals of the refactoring.

To support the addition of GPU-related metadata, the translation interface is
extended with the `amendOperation` function that allows the interface
implementation to post-process any translated operation with dialect attributes
from the dialect for which the interface is implemented regardless of the
operation's dialect. This is currently applied to "kernel" functions, but can
be used to construct other metadata in dialect-specific ways without
necessarily affecting operations.

Depends On D96591, D96504

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D96592
2021-02-15 14:43:07 +01:00
..
Analysis [mlir][math] Split off the math dialect. 2021-02-12 10:55:12 +01:00
Bindings [mlir] Add Python bindings for IntegerSet 2021-01-26 17:32:51 +01:00
CAPI [MLIR] Add context accessor to identifier 2021-02-09 13:21:30 -08:00
Conversion [mlir][Vector] Introduce 'vector.load' and 'vector.store' ops 2021-02-12 20:48:37 +02:00
Dialect [mlir][Linalg] Fix constant detection in linalg.pad_tensor vectorization. 2021-02-14 15:53:39 +00:00
EDSC [mlir][math] Split off the math dialect. 2021-02-12 10:55:12 +01:00
Examples [MLIR] Change FuncOp assembly syntax to print visibility inline instead of in attrib dict. 2020-11-09 11:08:08 -08:00
IR [mlir][math] Split off the math dialect. 2021-02-12 10:55:12 +01:00
Pass Avoid using /dev/null in test 2020-12-30 14:16:13 -08:00
Rewrite [mlir][PDL] Add support for PDL bytecode and expose PDL support to OwningRewritePatternList 2020-12-01 15:05:50 -08:00
SDBM Remove global dialect registration 2020-10-24 00:35:55 +00:00
Target [mlir] Use the interface-based translation for LLVM "intrinsic" dialects 2021-02-15 14:43:07 +01:00
Transforms [mlir][Linalg] Improve region support in Linalg ops 2021-02-12 19:11:24 +00:00
Unit Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00
lib [mlir] Use the interface-based translation for LLVM "intrinsic" dialects 2021-02-15 14:43:07 +01:00
mlir-cpu-runner [mlir] Turn Linalg to LLVM into a partial conversion 2021-02-05 14:31:19 +01:00
mlir-cuda-runner [mlir] Add gpu async integration test. 2021-02-03 21:45:23 +01:00
mlir-linalg-ods-gen [mlir][Linalg] Improve region support in Linalg ops 2021-02-12 19:11:24 +00:00
mlir-opt [mlir][math] Split off the math dialect. 2021-02-12 10:55:12 +01:00
mlir-reduce [MLIR] Change FuncOp assembly syntax to print visibility inline instead of in attrib dict. 2020-11-09 11:08:08 -08:00
mlir-rocm-runner [mlir] NFC: split --shared-libs option into multiple lines. 2021-01-28 18:54:05 +01:00
mlir-spirv-cpu-runner [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
mlir-tblgen Fix side-effect detection in LLVMIRIntrinsicGen. 2021-02-10 00:48:16 +00:00
mlir-translate [mlir] Print the correct tool name in mlirTranslateMain 2021-01-05 19:17:01 -08:00
mlir-vulkan-runner [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08: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 Fix CMake configuration for MLIR unittests 2021-02-11 01:17:49 +00:00
lit.cfg.py [MLIR] [CMake] Support building MLIR standalone 2021-02-02 13:10:21 -06:00
lit.site.cfg.py.in Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00