17#include <mlir/IR/Operation.h>
25auto parentFuncDefOpHasAttr = [](Operation *op,
auto attrFn) ->
bool {
39 << AllowConstraintAttr::name <<
"' attribute";
47 << AllowWitnessAttr::name <<
"' attribute";
54 if (!f.hasAllowNonNativeFieldOpsAttr()) {
56 <<
"' without the '" << AllowNonNativeFieldOpsAttr::name
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 verifyNotFieldNativeTraitImpl(Operation *op)
LogicalResult verifyConstraintGenTraitImpl(Operation *op)
LogicalResult verifyWitnessGenTraitImpl(Operation *op)