llvm-project/mlir/docs/Dialects
Alex Zinenko 2230bf99c7 [mlir] replace LLVMIntegerType with built-in integer type
The LLVM dialect type system has been closed until now, i.e. did not support
types from other dialects inside containers. While this has had obvious
benefits of deriving from a common base class, it has led to some simple types
being almost identical with the built-in types, namely integer and floating
point types. This in turn has led to a lot of larger-scale complexity: simple
types must still be converted, numerous operations that correspond to LLVM IR
intrinsics are replicated to produce versions operating on either LLVM dialect
or built-in types leading to quasi-duplicate dialects, lowering to the LLVM
dialect is essentially required to be one-shot because of type conversion, etc.
In this light, it is reasonable to trade off some local complexity in the
internal implementation of LLVM dialect types for removing larger-scale system
complexity. Previous commits to the LLVM dialect type system have adapted the
API to support types from other dialects.

Replace LLVMIntegerType with the built-in IntegerType plus additional checks
that such types are signless (these are isolated in a utility function that
replaced `isa<LLVMType>` and in the parser). Temporarily keep the possibility
to parse `!llvm.i32` as a synonym for `i32`, but add a deprecation notice.

Reviewed By: mehdi_amini, silvas, antiagainst

Differential Revision: https://reviews.llvm.org/D94178
2021-01-07 19:48:31 +01:00
..
Affine.md [mlir] Fix MathJax rendering in Affine doc 2021-01-06 02:11:36 +00:00
GPU.md [mlir] Update all dialects docs to use 'dialect-namespace' in the header 2020-03-30 12:25:15 -07:00
LLVM.md [mlir] replace LLVMIntegerType with built-in integer type 2021-01-07 19:48:31 +01:00
Linalg.md [mlir][Linalg] Revisit the Linalg on tensors abstraction 2020-12-21 12:29:10 -08:00
SPIR-V.md [mlir][spirv] NFC: rename SPIR-V conversion files for consistency 2020-12-23 14:36:46 -05:00
Standard.md [mlir] Mention mandatory RFC process for changes in Standard dialect 2020-08-14 11:31:12 +02:00
TOSA.md [mlir] NFC: fix trivial typos 2021-01-07 02:36:02 +09:00
Vector.md [mlir][doc] Add missing ` that breaks rendering 2020-04-27 11:25:32 -04:00
_index.md Add brief description of dialects doc section. 2020-12-17 18:37:34 +00:00