[Mlir-commits] [mlir] [mlir][irdl] Add `irdl.base` op (PR #76400)
Jeff Niu
llvmlistbot at llvm.org
Wed Jan 3 13:26:29 PST 2024
================
@@ -69,6 +69,39 @@ LogicalResult IsConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
return failure();
}
+LogicalResult
+BaseAttrConstraint::verify(function_ref<InFlightDiagnostic()> emitError,
+ Attribute attr, ConstraintVerifier &context) const {
+ if (attr.getTypeID() == baseTypeID)
+ return success();
+
+ if (emitError)
----------------
Mogball wrote:
isn't this always non-null?
https://github.com/llvm/llvm-project/pull/76400
More information about the Mlir-commits
mailing list