forked from OSchip/llvm-project
![]() 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 |
||
---|---|---|
.. | ||
attr-or-type-format-invalid.td | ||
attr-or-type-format-roundtrip.mlir | ||
attr-or-type-format.mlir | ||
attr-or-type-format.td | ||
attrdefs.td | ||
constant-str-attr-invalid.mlir | ||
constraint-unique.td | ||
default-type-attr-print-parser.td | ||
dialect.td | ||
directive-common.td | ||
expect-symbol.td | ||
gen-dialect-doc.td | ||
interfaces.mlir | ||
llvm-intrinsics.td | ||
op-attribute.td | ||
op-decl-and-defs.td | ||
op-derived-attribute.mlir | ||
op-error.td | ||
op-format-spec.td | ||
op-format.mlir | ||
op-interface.td | ||
op-operand.td | ||
op-python-bindings.td | ||
op-result.td | ||
op-side-effects.td | ||
pattern.mlir | ||
predicate.td | ||
return-types.mlir | ||
rewriter-errors.td | ||
rewriter-indexing.td | ||
rewriter-static-matcher.td | ||
testdialect-attrdefs.mlir | ||
testdialect-typedefs.mlir | ||
trait.mlir | ||
typedefs.td | ||
types.mlir |