Home
last modified time | relevance | path

Searched refs:getOperations (Results 1 – 25 of 57) sorted by relevance

123

/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DControlFlowInterfacesTest.cpp131 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
152 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
173 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
200 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
226 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
253 Operation *testOp = &module->getBody()->getOperations().front(); in TEST()
H A DDataLayoutInterfacesTest.cpp276 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
299 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
325 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
357 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
388 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
414 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
433 cast<DataLayoutOpInterface>(module->getBody()->getOperations().front()); in TEST()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DDecomposeLinalgOps.cpp285 if (body->getOperations().size() <= 2) { in matchAndRewrite()
291 if (llvm::any_of(body->getOperations().begin()->getResultTypes(), in matchAndRewrite()
294 &(*body->getOperations().begin()), in matchAndRewrite()
308 peeledGenericOpBody->getOperations().splice( in matchAndRewrite()
309 peeledGenericOpBody->begin(), body->getOperations(), body->begin()); in matchAndRewrite()
310 residualGenericOpBody->getOperations().splice(residualGenericOpBody->begin(), in matchAndRewrite()
311 body->getOperations()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/unittests/Parser/
H A DResourceTest.cpp55 block->getOperations().splice(block->end(), in TEST()
56 module2->getBody()->getOperations()); in TEST()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DLoopUtils.cpp495 auto &ops = src.getBody()->getOperations(); in moveLoopBodyImpl()
522 pointLoop.getBody()->getOperations().splice( in constructTiledLoopNest()
536 tileSpaceLoop.getBody()->getOperations().splice( in constructTiledLoopNest()
1396 auto &forOpABody = forOpA.getBody()->getOperations(); in interchangeLoops()
1397 auto &forOpBBody = forOpB.getBody()->getOperations(); in interchangeLoops()
1516 destBody->getOperations().splice(destBody->begin(), in permuteLoops()
1666 newForOp.getBody()->getOperations().splice( in stripmineSink()
1667 newForOp.getBody()->getOperations().begin(), in stripmineSink()
1822 outermost.getBody()->getOperations().splice( in coalesceLoops()
1824 innermost.getBody()->getOperations()); in coalesceLoops()
[all …]
H A DUtils.cpp249 destBlock->getOperations().splice( in promoteIfBlock()
250 Block::iterator(ifOp), srcBlock->getOperations(), srcBlock->begin(), in promoteIfBlock()
318 thenBlock->getOperations().splice(thenBlock->begin(), in hoistAffineIfOp()
319 hoistOverOp->getBlock()->getOperations(), in hoistAffineIfOp()
340 elseBlock->getOperations().splice( in hoistAffineIfOp()
341 elseBlock->begin(), hoistOverOpClone->getBlock()->getOperations(), in hoistAffineIfOp()
387 outsideBuilder.getInsertionBlock()->getOperations().splice( in affineParallelize()
388 outsideBuilder.getInsertionPoint(), newPloop.getBody()->getOperations(), in affineParallelize()
/llvm-project-15.0.7/mlir/lib/Reducer/
H A DOptReductionPass.cpp74 module.getBody()->getOperations().splice( in runOnOperation()
75 module.getBody()->begin(), moduleVariant.getBody()->getOperations()); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/
H A DUtils.cpp57 newLoopBody->getOperations().splice(newLoopBody->end(), in replaceLoopWithNewYields()
58 loopBody->getOperations()); in replaceLoopWithNewYields()
355 parentBlock->getOperations().splice(Block::iterator(forOp), in promoteIfSingleIteration()
424 if (llvm::hasSingleElement(forOp.getBody()->getOperations())) in loopUnrollByFactor()
662 outermost.getBody()->getOperations().splice( in coalesceLoops()
664 innermost.getBody()->getOperations()); in coalesceLoops()
745 newPloop.getBody()->getOperations().splice( in collapseParallelLoops()
747 loops.getBody()->getOperations()); in collapseParallelLoops()
847 auto nOps = t.getBody()->getOperations().size(); in stripmineSink()
859 newForOp.getBody()->getOperations().splice( in stripmineSink()
[all …]
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestPrintNesting.cpp68 << block.getOperations().size() << " operations\n"; in printBlock()
72 for (Operation &op : block.getOperations()) in printBlock()
H A DTestOperationEquals.cpp25 int opCount = module.getBody()->getOperations().size(); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/IR/
H A DPatternMatch.cpp175 block->getOperations().splice(block->end(), in mergeIn()
176 other.pdlModule->getBody()->getOperations()); in mergeIn()
291 dest->getOperations().splice(dest->end(), source->getOperations()); in mergeBlocks()
H A DBlock.cpp297 newBB->getOperations().splice(newBB->end(), getOperations(), splitBefore, in splitBlock()
H A DOperation.cpp416 parent->getOperations().erase(this); in erase()
424 parent->getOperations().remove(this); in remove()
438 block->getOperations().splice(iterator, getBlock()->getOperations(), in moveBefore()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffinePromotion.cpp432 for (auto &bodyOp : block->getOperations()) { in rewriteMemoryOps()
457 auto &loopOps = loop.getBody()->getOperations(); in matchAndRewrite()
463 affineFor.getBody()->getOperations().splice( in matchAndRewrite()
548 auto &ifOps = op.getThenRegion().front().getOperations(); in matchAndRewrite()
560 affineIf.getThenBlock()->getOperations().splice( in matchAndRewrite()
564 auto &otherOps = op.getElseRegion().front().getOperations(); in matchAndRewrite()
565 affineIf.getElseBlock()->getOperations().splice( in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Parser/
H A DParser.h64 opBlock->getOperations().splice(opBlock->begin(), in constructContainerOpForParserIfNecessary()
65 parsedBlock->getOperations()); in constructContainerOpForParserIfNecessary()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DInliningUtils.cpp208 firstNewBlock->getOperations().splice(firstNewBlock->end(), in inlineRegionImpl()
209 postInsertBlock->getOperations()); in inlineRegionImpl()
226 inlineBlock->getOperations().splice(inlineBlock->end(), in inlineRegionImpl()
227 firstNewBlock->getOperations()); in inlineRegionImpl()
H A DDialectConversion.cpp637 origBlock->getOperations().splice(origBlock->end(), block->getOperations()); in discardRewrites()
1038 while (!block.getOperations().empty()) in detachNestedAndErase()
1039 block.getOperations().remove(block.getOperations().begin()); in detachNestedAndErase()
1196 auto &blockOps = action.block->getOperations(); in undoBlockActions()
1222 sourceBlock->getOperations().splice(sourceBlock->begin(), in undoBlockActions()
1223 action.block->getOperations(), in undoBlockActions()
1239 action.originalBlock->getOperations().splice( in undoBlockActions()
1240 action.originalBlock->end(), action.block->getOperations()); in undoBlockActions()
1612 dest->getOperations().splice(dest->end(), source->getOperations()); in mergeBlocks()
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/ODS/
H A DDialect.h46 const llvm::StringMap<std::unique_ptr<Operation>> &getOperations() const { in getOperations() function
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DLoopAnalysis.cpp351 assert(shifts.size() == forBody->getOperations().size()); in isOpwiseShiftValid()
357 llvm::enumerate(llvm::reverse(forBody->getOperations()))) { in isOpwiseShiftValid()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/
H A DSCFToGPU.cpp251 launchOp.body().front().getOperations().splice( in createLaunch()
253 innermostForOp.getBody()->getOperations()); in createLaunch()
553 worklist.reserve(worklist.size() + body->getOperations().size()); in processParallelLoop()
/llvm-project-15.0.7/mlir/lib/Dialect/OpenMP/IR/
H A DOpenMPDialect.cpp861 if (region().front().getOperations().size() < 2) in verifyRegions()
879 return &getRegion().front().getOperations().front(); in getFirstOp()
883 auto &ops = getRegion().front().getOperations(); in getSecondOp()
910 Block::OpListType &ops = region().front().getOperations(); in verifyRegions()
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DIR.cpp609 auto &opList = unwrap(block)->getOperations(); in mlirBlockInsertOwnedOperation()
618 cppBlock->getOperations().insert(cppBlock->begin(), unwrap(operation)); in mlirBlockInsertOwnedOperationAfter()
624 cppBlock->getOperations().insertAfter(Block::iterator(unwrap(reference)), in mlirBlockInsertOwnedOperationAfter()
636 unwrap(block)->getOperations().insert(Block::iterator(unwrap(reference)), in mlirBlockInsertOwnedOperationBefore()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/
H A DRuntimeCallTestBase.h136 for (auto &op : block->getOperations()) { in checkBlockForCallOp()
/llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/
H A DPDLToPDLInterp.cpp165 matcherEntryBlock->getOperations().splice(matcherEntryBlock->end(), in lower()
166 firstMatcherBlock->getOperations()); in lower()
517 currentBlock->getOperations().splice(currentBlock->end(), in generate()
518 firstPredicateBlock->getOperations()); in generate()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/ODS/
H A DContext.cpp111 for (const Operation *op : sortMapByName(dialect->getOperations())) { in print()

123