15#include <mlir/IR/Operation.h>
23auto parentFuncDefOpHasAttr = [](Operation *op,
auto attrFn) ->
bool {
37 << AllowConstraintAttr::name <<
"' attribute";
45 << AllowWitnessAttr::name <<
"' attribute";
56 << AllowNonNativeFieldOpsAttr::name <<
"' attribute or a '"
bool hasAllowNonNativeFieldOpsAttr()
Return true iff the function def has the allow_non_native_field_ops 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.
static constexpr ::llvm::StringLiteral getOperationName()
LogicalResult verifyNotFieldNativeTraitImpl(Operation *op)
LogicalResult verifyConstraintGenTraitImpl(Operation *op)
LogicalResult verifyWitnessGenTraitImpl(Operation *op)