llvm-project/mlir
Lei Zhang 47c6ab2b97 [mlir][spirv] Properly support SPIR-V conversion target
This commit defines a new SPIR-V dialect attribute for specifying
a SPIR-V target environment. It is a dictionary attribute containing
the SPIR-V version, supported extension list, and allowed capability
list. A SPIRVConversionTarget subclass is created to take in the
target environment and sets proper dynmaically legal ops by querying
the op availability interface of SPIR-V ops to make sure they are
available in the specified target environment. All existing conversions
targeting SPIR-V is changed to use this SPIRVConversionTarget. It
probes whether the input IR has a `spv.target_env` attribute,
otherwise, it uses the default target environment: SPIR-V 1.0 with
Shader capability and no extra extensions.

Differential Revision: https://reviews.llvm.org/D72256
2020-01-14 19:18:42 -05:00
..
docs [mlir][spirv] Properly support SPIR-V conversion target 2020-01-14 19:18:42 -05:00
examples [MLIR] Fix broken link locations after move to monorepo 2020-01-14 07:15:02 +00:00
include [mlir][spirv] Properly support SPIR-V conversion target 2020-01-14 19:18:42 -05:00
lib [mlir][spirv] Properly support SPIR-V conversion target 2020-01-14 19:18:42 -05:00
test [mlir][spirv] Properly support SPIR-V conversion target 2020-01-14 19:18:42 -05:00
tools [mlir] Create a gpu.module operation for the GPU Dialect. 2020-01-14 12:05:47 +01:00
unittests [mlir] Use getDenseElementBitwidth instead of Type::getElementTypeBitWidth. 2020-01-09 14:51:44 -08:00
utils [mlir][spirv] Update SPIR-V enums and ops with availability spec 2020-01-02 14:09:02 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Add a clang-tidy configuration file for MLIR, it is using camelBack for naming at the moment 2019-12-26 21:42:01 +00:00
CMakeLists.txt [MLIR] Fix ML IR build on Windows with Visual Studio 2020-01-08 10:40:04 -08:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

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