#include "mlir/Dialect/IRDL/IRDLVerifiers.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Block.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/ExtensibleDialect.h"
#include "mlir/IR/Location.h"
#include "mlir/IR/Region.h"
#include "mlir/IR/Value.h"
#include "llvm/Support/FormatVariadic.h"
usingnamespacemlir;
usingnamespacemlir::irdl;
ConstraintVerifier::ConstraintVerifier(
ArrayRef<std::unique_ptr<Constraint>> constraints)
: … { … }
LogicalResult
ConstraintVerifier::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr, unsigned variable) { … }
LogicalResult IsConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr,
ConstraintVerifier &context) const { … }
LogicalResult
BaseAttrConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr, ConstraintVerifier &context) const { … }
LogicalResult
BaseTypeConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr, ConstraintVerifier &context) const { … }
LogicalResult DynParametricAttrConstraint::verify(
function_ref<InFlightDiagnostic()> emitError, Attribute attr,
ConstraintVerifier &context) const { … }
LogicalResult DynParametricTypeConstraint::verify(
function_ref<InFlightDiagnostic()> emitError, Attribute attr,
ConstraintVerifier &context) const { … }
LogicalResult
AnyOfConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr, ConstraintVerifier &context) const { … }
LogicalResult
AllOfConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr, ConstraintVerifier &context) const { … }
LogicalResult
AnyAttributeConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
Attribute attr,
ConstraintVerifier &context) const { … }
LogicalResult RegionConstraint::verify(mlir::Region ®ion,
ConstraintVerifier &constraintContext) { … }