llvm-project/mlir/test/mlir-tblgen
Chia-hung Duan 60d719b462 [mlir] Check nullity of MixedContainerType and TypedArrayAttrBase
It's valid to create a TypedArrayAttr or MixedContainerType with
    nullptr, e.g.,
      std::vector<mlir::Attribute> attrs = {mlir::StringAttr()};
      builder.createArrayAttr(attrs);

    The predicate didn't check if it's a nullptr and it ended up a crash in
    the attribute static verifier. We always check if an attribute is null
    so it's better to align the check for these two container type attr.

Reviewed By: rdzhabarov

Differential Revision: https://reviews.llvm.org/D121178
2022-03-08 18:10:55 +00:00
..
attr-or-type-format-invalid.td [mlir][ods] Optional Attribute or Type Parameters 2022-02-08 20:09:44 +00:00
attr-or-type-format-roundtrip.mlir [mlir][ods] Default-valued parameters in attribute or type defs 2022-02-15 19:02:11 +00:00
attr-or-type-format.mlir [mlir][ods] AttrOrTypeDef format: parse types 2021-11-14 23:24:29 +00:00
attr-or-type-format.td [mlir][ods] Default-valued parameters in attribute or type defs 2022-02-15 19:02:11 +00:00
attrdefs.td [mlir][ods] Optional Attribute or Type Parameters 2022-02-08 20:09:44 +00:00
constant-str-attr-invalid.mlir [MLIR][ODS] default-valued strings should be in quotes 2021-10-15 03:00:41 +00:00
constraint-unique.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
default-type-attr-print-parser.td Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
dialect.td [mlir][ODS]: Add per-op cppNamespace. 2021-05-11 10:48:05 -07:00
directive-common.td [mlir] Replace StrEnumAttr -> EnumAttr in core dialects 2022-01-18 17:15:00 +00:00
expect-symbol.td
gen-dialect-doc.td [mlir] Add traits, interfaces, effects to generated docs 2021-11-10 16:09:43 -08:00
interfaces.mlir [mlir] Allow for using interface class name in ODS interface definitions 2020-11-17 14:28:55 +01:00
llvm-intrinsics.td Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
op-attribute.td [mlir] Check nullity of MixedContainerType and TypedArrayAttrBase 2022-03-08 18:10:55 +00:00
op-decl-and-defs.td [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
op-derived-attribute.mlir [MLIR] Add getSizeInBits() for tensor of complex 2020-08-07 12:38:49 -07:00
op-error.td [mlir] Support verification order (1/3) 2022-02-02 18:25:44 +00:00
op-format-spec.td [mlir] Added oilist primitive 2022-02-17 11:10:24 +05:30
op-format.mlir [mlir] Drop the leading space when printing regions 2022-01-18 16:52:34 +00:00
op-interface.td [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
op-operand.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
op-python-bindings.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
op-result.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
op-side-effects.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
pattern.mlir [mlir][Rewrite] Add support for using an operation with no results as location 2022-02-03 15:08:09 +01:00
predicate.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
return-types.mlir [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
rewriter-errors.td [mlir] Fix crash in RewriterGen when a `TypeConstraint` is not given an argument 2022-02-03 09:08:27 +01:00
rewriter-indexing.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
rewriter-static-matcher.td [mlir] Fully qualify generated C++ code in RewriterGen.cpp 2022-02-02 11:57:57 +01:00
testdialect-attrdefs.mlir Add a `qualified` directive to the Op, Attribute, and Type declarative assembly format 2022-01-11 01:30:19 +00:00
testdialect-typedefs.mlir Add a `qualified` directive to the Op, Attribute, and Type declarative assembly format 2022-01-11 01:30:19 +00:00
trait.mlir [MLIR] Allow `Idempotent` trait to be applied to binary ops. 2021-11-26 18:22:49 +00:00
typedefs.td [mlir][ods] Optional Attribute or Type Parameters 2022-02-08 20:09:44 +00:00
types.mlir [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00