[Mlir-commits] [mlir] [mlir][PDL] Add support for native constraints with results (PR #82760)

Jeff Niu llvmlistbot at llvm.org
Fri Feb 23 13:41:41 PST 2024


================
@@ -182,9 +189,12 @@ void PatternLowering::lower(ModuleOp module) {
   firstMatcherBlock->erase();
 }
 
-Block *PatternLowering::generateMatcher(MatcherNode &node, Region &region) {
+Block *PatternLowering::generateMatcher(MatcherNode &node, Region &region,
+                                        Block *block) {
   // Push a new scope for the values used by this matcher.
-  Block *block = &region.emplaceBlock();
+  if (!block) {
----------------
Mogball wrote:

style: drop trivial braces

https://github.com/llvm/llvm-project/pull/82760


More information about the Mlir-commits mailing list