Home
last modified time | relevance | path

Searched refs:thenRegion (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/SCF/Transforms/
DStructuralTypeConversions.cpp105 rewriter.inlineRegionBefore(op.thenRegion(), newOp.thenRegion(), in matchAndRewrite()
106 newOp.thenRegion().end()); in matchAndRewrite()
DUtils.cpp121 if (thenFn && !ifOp.thenRegion().empty()) in outlineIfOp()
122 *thenFn = outline(ifOp.thenRegion(), thenFnName); in outlineIfOp()
/external/llvm-project/mlir/lib/Conversion/SCFToSPIRV/
DSCFToSPIRV.cpp229 auto &thenRegion = ifOp.thenRegion(); in matchAndRewrite() local
230 auto *thenBlock = &thenRegion.front(); in matchAndRewrite()
231 rewriter.setInsertionPointToEnd(&thenRegion.back()); in matchAndRewrite()
233 rewriter.inlineRegionBefore(thenRegion, mergeBlock); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/SCFToStandard/
DSCFToStandard.cpp369 auto &thenRegion = ifOp.thenRegion(); in matchAndRewrite() local
370 auto *thenBlock = &thenRegion.front(); in matchAndRewrite()
371 Operation *thenTerminator = thenRegion.back().getTerminator(); in matchAndRewrite()
373 rewriter.setInsertionPointToEnd(&thenRegion.back()); in matchAndRewrite()
376 rewriter.inlineRegionBefore(thenRegion, continueBlock); in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/SCF/
DSCF.cpp602 Region *thenRegion = result.addRegion(); in build() local
603 builder.createBlock(thenRegion); in build()
630 Region *thenRegion = result.addRegion(); in parseIfOp() local
643 if (parser.parseRegion(*thenRegion, /*arguments=*/{}, /*argTypes=*/{})) in parseIfOp()
645 IfOp::ensureTerminator(*thenRegion, parser.getBuilder(), result.location); in parseIfOp()
669 p.printRegion(op.thenRegion(), in print()
710 regions.push_back(RegionSuccessor(&thenRegion())); in getSuccessorRegions()
716 regions.push_back(RegionSuccessor(condition ? &thenRegion() : elseRegion)); in getSuccessorRegions()
784 replaceOpWithRegion(rewriter, op, op.thenRegion()); in matchAndRewrite()
/external/llvm-project/mlir/test/lib/Dialect/Test/
DTestDialect.cpp862 p.printRegion(op.thenRegion(), in print()
881 Region *thenRegion = result.addRegion(); in parseRegionIfOp() local
892 if (parser.parseKeyword("then") || parser.parseRegion(*thenRegion, {}, {}) || in parseRegionIfOp()
919 regions.push_back(RegionSuccessor(&thenRegion(), getThenArgs())); in getSuccessorRegions()
DTestOps.td1847 let regions = (region SizedRegion<1>:$thenRegion,
/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/
DAffineLoopInvariantCodeMotion.cpp178 if (!areAllOpsInTheBlockListInvariant(ifOp.thenRegion(), indVar, definedOps, in checkInvarianceOfNestedIfOps()
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Dcanonicalize.cc112 return InlineRegion(if_op.getLoc(), rewriter, if_op, &if_op.thenRegion()); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/AffineToStandard/
DAffineToStandard.cpp435 rewriter.inlineRegionBefore(op.thenRegion(), &ifOp.thenRegion().back()); in matchAndRewrite()
436 rewriter.eraseBlock(&ifOp.thenRegion().back()); in matchAndRewrite()
/external/llvm-project/flang/lib/Optimizer/Dialect/
DFIROps.cpp1401 mlir::Region *thenRegion = result.addRegion(); in build() local
1402 thenRegion->push_back(new mlir::Block()); in build()
1404 WhereOp::ensureTerminator(*thenRegion, builder, result.location); in build()
1417 mlir::Region *thenRegion = result.addRegion(); in parseWhereOp() local
1427 if (parser.parseRegion(*thenRegion, {}, {})) in parseWhereOp()
1430 WhereOp::ensureTerminator(*thenRegion, parser.getBuilder(), result.location); in parseWhereOp()
/external/llvm-project/mlir/include/mlir/Dialect/Affine/IR/
DAffineOps.td409 let regions = (region SizedRegion<1>:$thenRegion, AnyRegion:$elseRegion);
433 assert(!thenRegion().empty() && "Unexpected empty 'then' region.");
434 return &thenRegion().front();
443 assert(!thenRegion().empty() && "Unexpected empty 'then' region.");
444 Block &body = thenRegion().front();
/external/llvm-project/mlir/lib/Dialect/Affine/IR/
DAffineOps.cpp1952 Region *thenRegion = result.addRegion(); in parseAffineIfOp() local
1956 if (parser.parseRegion(*thenRegion, {}, {})) in parseAffineIfOp()
1958 AffineIfOp::ensureTerminator(*thenRegion, parser.getBuilder(), in parseAffineIfOp()
1983 p.printRegion(op.thenRegion(), in print()
2023 Region *thenRegion = result.addRegion(); in build() local
2024 thenRegion->push_back(new Block()); in build()
2026 AffineIfOp::ensureTerminator(*thenRegion, builder, result.location); in build()
/external/llvm-project/mlir/lib/Conversion/SCFToGPU/
DSCFToGPU.cpp498 rewriter.setInsertionPointToStart(&ifOp.thenRegion().front()); in processParallelLoop()
/external/llvm-project/mlir/include/mlir/Dialect/SCF/
DSCFOps.td260 let regions = (region SizedRegion<1>:$thenRegion, AnyRegion:$elseRegion);
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DSparsification.cpp905 rewriter.setInsertionPointToStart(&ifOp.thenRegion().front()); in genIf()