llvm-project/mlir/test/mlir-tblgen
Chia-hung Duan 9445b39673 [mlir] Support verification order (2/3)
This change gives explicit order of verifier execution and adds
    `hasRegionVerifier` and `verifyWithRegions` to increase the granularity
    of verifier classification. The orders are as below,

    1. InternalOpTrait will be verified first, they can be run independently.
    2. `verifyInvariants` which is constructed by ODS, it verifies the type,
       attributes, .etc.
    3. Other Traits/Interfaces that have marked their verifier as
       `verifyTrait` or `verifyWithRegions=0`.
    4. Custom verifier which is defined in the op and has marked
       `hasVerifier=1`

    If an operation has regions, then it may have the second phase,

    5. Traits/Interfaces that have marked their verifier as
       `verifyRegionTrait` or
       `verifyWithRegions=1`. This implies the verifier needs to access the
       operations in its regions.
    6. Custom verifier which is defined in the op and has marked
       `hasRegionVerifier=1`

    Note that the second phase will be run after the operations in the
    region are verified. Based on the verification order, you will be able to
    avoid verifying duplicate things.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D116789
2022-02-25 19:04:56 +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 Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08: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