13#include <mlir/IR/Operation.h>
21auto parentFuncDefOpHasAttr = [](Operation *op,
auto attrFn) ->
bool {
33 <<
"' with '" << AllowConstraintAttr::name <<
"' attribute";
41 <<
"' with '" << AllowWitnessAttr::name <<
"' attribute";
bool hasAllowWitnessAttr()
Return true iff the function def has the allow_witness attribute.
static constexpr ::llvm::StringLiteral getOperationName()
bool hasAllowConstraintAttr()
Return true iff the function def has the allow_constraint attribute.
LogicalResult verifyConstraintGenTraitImpl(Operation *op)
LogicalResult verifyWitnessGenTraitImpl(Operation *op)