MLIR
20.0.0git
|
A constraint checking that all of the given constraints are satisfied. More...
#include "mlir/Dialect/IRDL/IRDLVerifiers.h"
Public Member Functions | |
AllOfConstraint (SmallVector< unsigned > constraints) | |
virtual | ~AllOfConstraint ()=default |
LogicalResult | verify (function_ref< InFlightDiagnostic()> emitError, Attribute attr, ConstraintVerifier &context) const override |
Check that an attribute is satisfying the constraint. More... | |
Public Member Functions inherited from mlir::irdl::Constraint | |
virtual | ~Constraint ()=default |
A constraint checking that all of the given constraints are satisfied.
Definition at line 202 of file IRDLVerifiers.h.
|
inline |
Definition at line 204 of file IRDLVerifiers.h.
|
virtualdefault |
|
overridevirtual |
Check that an attribute is satisfying the constraint.
Constraints may call other constraint verifiers. If that is the case, the constraint verifier will check if the variable is already assigned, and if so, check that the attribute is the same as the one assigned. If the variable is not assigned, the constraint verifier will assign the attribute to the variable, and check that the constraint is satisfied.
Implements mlir::irdl::Constraint.
Definition at line 199 of file IRDLVerifiers.cpp.
References mlir::emitError(), and mlir::irdl::ConstraintVerifier::verify().