llvm-project/mlir/docs/Dialects
Alex Zinenko 36150c3637 [mlir] Affine symbols: do not expect AffineScope to always exist
In the affine symbol and dimension check, the code currently assumes
`getAffineScope` and its users `isValidDim` and `isValidSymbol` are only called
on values defined in regions that have a parent Op with `AffineScope` trait.
This is not necessarily the case, and these functions may be called on valid IR
that does not satisfy this assumption. Return `nullptr` from `getAffineScope`
if there is no parent op with `AffineScope` trait. Treat this case
conservatively in `isValidSymbol` by only accepting as symbols the values that
are guaranteed to be symbols (constants, and certain operations). No
modifications are necessary to `isValidDim` that delegates most of the work to
`isValidDim`.

Differential Revision: https://reviews.llvm.org/D81753
2020-06-15 17:55:49 +02:00
..
Affine.md [mlir] Affine symbols: do not expect AffineScope to always exist 2020-06-15 17:55:49 +02: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] NFC: Fix trivial typo under Dialects 2020-04-23 14:28:41 +09:00
Linalg.md [mlir][Linalg][Doc] Fix of misleading example in Property 2 2020-06-11 10:50:34 +02:00
SPIR-V.md [MLIR] Remove document references to gpu.kernel_module and gpu.kernel. 2020-04-27 10:00:15 +02:00
Standard.md [mlir] NFC: Fix trivial typo 2020-04-05 11:30:30 +09:00
Vector.md [mlir][doc] Add missing ` that breaks rendering 2020-04-27 11:25:32 -04:00