[Mlir-commits] [mlir] [mlir] [irdl] Add support for regions in irdl-to-cpp (PR #158540)
Théo Degioanni
llvmlistbot at llvm.org
Mon Sep 29 10:24:28 PDT 2025
================
@@ -301,6 +360,112 @@ static LogicalResult generateInclude(irdl::DialectOp dialect,
return success();
}
+static void generateVerifiers(irdl::detail::dictionary &dict,
+ irdl::OperationOp op, const OpStrings &strings) {
+ SmallVector<std::string> verifierHelpers;
+ SmallVector<std::string> verifierCalls;
+ auto regionsOp = op.getOp<irdl::RegionsOp>();
+ if (strings.opRegionNames.empty() || !regionsOp) {
----------------
Moxinilian wrote:
For complete disclosure I did not expect you would go out of your way to generate proper region constraint verification! So if that's too annoying we can leave that for later.
https://github.com/llvm/llvm-project/pull/158540
More information about the Mlir-commits
mailing list