Home
last modified time | relevance | path

Searched refs:getParentOp (Results 1 – 25 of 109) sorted by relevance

12345

/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DHoisting.cpp46 auto loop = dyn_cast<scf::ForOp>(op->getParentOp()); in hoistViewAllocOps()
47 LLVM_DEBUG(DBGS() << "Parent op: " << *op->getParentOp() << "\n"); in hoistViewAllocOps()
92 auto loop = dyn_cast<scf::ForOp>(transferRead->getParentOp()); in hoistRedundantVectorTransfers()
93 LLVM_DEBUG(DBGS() << "Parent op: " << *transferRead->getParentOp() in hoistRedundantVectorTransfers()
/external/llvm-project/mlir/lib/Dialect/Affine/Utils/
DUtils.cpp48 while (!isa<FuncOp>(res->getParentOp())) { in getOutermostInvariantForOp()
49 auto *parentOp = res->getParentOp(); in getOutermostInvariantForOp()
149 if (forOp->getParentOp() && in affineParallelize()
150 !forOp->getParentOp()->hasTrait<OpTrait::AffineScope>()) in affineParallelize()
/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/
DAffineParallelize.cpp51 for (Operation *op = loop->getParentOp(); in runOnFunction()
53 op = op->getParentOp()) { in runOnFunction()
/external/llvm-project/mlir/lib/Analysis/
DNumberOfExecutions.cpp34 Operation *parentOp = region.getParentOp(); in computeRegionBlockNumberOfExecutions()
163 Operation *parentOp = block->getParentOp(); in getNumberOfExecutions()
165 while (parentOp != perEntryOfThisRegion->getParentOp()) { in getNumberOfExecutions()
182 parentOp = parentOp->getParentOp(); in getNumberOfExecutions()
DCallGraph.cpp109 assert(region && isa<CallableOpInterface>(region->getParentOp()) && in getOrAddNode()
185 auto *parentOp = callableRegion->getParentOp(); in print()
186 os << "'" << callableRegion->getParentOp()->getName() << "' - Region #" in print()
/external/llvm-project/mlir/lib/IR/
DSymbolTable.cpp53 Operation *symbolTableOp = symbol->getParentOp(); in collectValidReferencesFor()
72 symbolTableOp = symbolTableOp->getParentOp(); in collectValidReferencesFor()
143 assert(symbol->getParentOp() == symbolTableOp && in erase()
161 assert(insertPt->getParentOp() == symbolTableOp && in insert()
237 from = from->getParentOp(); in getNearestSymbolTable()
592 if (SymbolTable::getNearestSymbolTable(limit->getParentOp()) == in collectSymbolScopes()
593 symbol->getParentOp()) in collectSymbolScopes()
599 } while ((limitAncestor = limitAncestor->getParentOp())); in collectSymbolScopes()
602 Operation *commonAncestor = symbol->getParentOp(); in collectSymbolScopes()
606 } while ((commonAncestor = commonAncestor->getParentOp())); in collectSymbolScopes()
[all …]
DDominance.cpp85 Operation *ancestor = region->getParentOp(); in traverseAncestors()
225 Operation *ancestor = aRegion->getParentOp(); in properlyDominates()
260 Operation *ancestor = aRegion->getParentOp(); in properlyDominates()
292 Operation *ancestor = aRegion->getParentOp(); in properlyPostDominates()
DRegion.cpp51 Operation *Region::getParentOp() { return container; } in getParentOp() function in Region
68 return this - &getParentOp()->getRegions()[0]; in getRegionNumber()
127 Operation *parentOp = currBlock->getParentOp(); in findAncestorBlockInRegion()
DBlock.cpp41 Operation *Block::getParentOp() { in getParentOp() function in Block
42 return getParent() ? getParent()->getParentOp() : nullptr; in getParentOp()
78 currOp = currOp->getParentOp(); in findAncestorOpInBlock()
/external/llvm-project/mlir/lib/Transforms/
DInliner.cpp43 Operation *symbolTableOp = op->getParentOp(); in walkReferencedSymbolNodes()
191 Operation *nodeOp = node->getCallableRegion()->getParentOp(); in isDead()
202 Operation *nodeOp = node->getCallableRegion()->getParentOp(); in hasOneUseAndDiscardable()
212 Operation *parentOp = node->getCallableRegion()->getParentOp(); in recomputeUses()
390 node->getCallableRegion()->getParentOp()->erase(); in eraseDeadCallables()
472 inliner, call, cast<CallableOpInterface>(targetRegion->getParentOp()), in inlineCallsInSCC()
526 if (!region->getParentOp()->isKnownIsolatedFromAbove()) in canonicalizeSCC()
DSymbolDCE.cpp48 if (symbolTableOp->getParentOp() && symbol) in runOnOperation()
128 op->getParentOp(), use.getSymbolRef(), resolvedSymbols))) { in computeLiveness()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dexecutor_island_coarsening.cc69 Operation* graph_op = island->getParentOp(); in GetOperandCandidateToMergeWith()
75 DCHECK_EQ(def->getParentOp(), graph_op); in GetOperandCandidateToMergeWith()
83 if (!def || def->getParentOp() != graph_op) continue; in GetOperandCandidateToMergeWith()
98 Operation* graph_op = island->getParentOp(); in GetResultCandidateToMergeWith()
103 DCHECK_EQ(user->getParentOp(), graph_op); in GetResultCandidateToMergeWith()
Dtpu_merge_variables_with_execute.cc141 execute_launch->getParentOp()); in BuildVariableAccessInfo()
565 execute_launch->getParentOp())) in MergeForOneTPUExecute()
589 llvm::dyn_cast<tf_device::ParallelExecuteOp>(op->getParentOp()); in ParentParallelExecuteWrapsSingleOp()
610 llvm::isa<tf_device::ReplicateOp>(execute_launch->getParentOp()) || in runOnFunction()
612 execute_launch->getParentOp()) && in runOnFunction()
614 execute_launch->getParentOp()->getParentOp())); in runOnFunction()
Dtpu_dynamic_layout_pass.cc248 if (maybe_replicate != block_arg.getParentRegion()->getParentOp() || in HandleCompileAndExecutes()
286 llvm::dyn_cast<tf_device::LaunchOp>(compile->getParentOp()); in runOnFunction()
297 llvm::dyn_cast<tf_device::LaunchOp>(execute->getParentOp()); in runOnFunction()
Dmark_ops_for_outside_compilation.cc216 Operation* parent = op->getParentOp(); in HasOutsideCompiledAncestor()
220 parent = parent->getParentOp(); in HasOutsideCompiledAncestor()
310 while (auto* parent_op = iter_op->getParentOp()) { in UnmarkChildren()
Dtpu_space_to_depth_pass.cc140 HandleFuncOp(block_arg.getOwner()->getParentOp()); in HandleCast()
483 llvm::dyn_cast<tf_device::ReplicateOp>(cluster_func->getParentOp()); in HandleCluster()
491 if (maybe_replicate == block_arg.getParentRegion()->getParentOp()) { in HandleCluster()
597 HandleFuncOp(block_arg.getOwner()->getParentOp()); in HandleFirstConvolution()
606 HandleFuncOp(block_arg.getOwner()->getParentOp()); in HandleFirstConvolution()
Dtpu_device_propagation.cc90 if (llvm::isa<tf_executor::IslandOp>(op_to_update->getParentOp())) in PopulateDeviceForOpResults()
91 op_to_update = op_to_update->getParentOp(); in PopulateDeviceForOpResults()
/external/llvm-project/mlir/test/lib/Transforms/
DTestDynamicPipeline.cpp65 if (getOperation()->getParentOp()) in runOnOperation()
66 if (!failed(runPipeline(*pm, getOperation()->getParentOp()))) in runOnOperation()
DTestLoopUnrolling.cpp26 while ((currOp = currOp->getParentOp())) { in getNestingDepth()
DTestAffineLoopParametricTiling.cpp36 if (FuncOp funcOp = dyn_cast<FuncOp>(topLoop->getParentOp())) in checkIfTilingParametersExist()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dbreakup-islands.cc196 if (!defining_op || defining_op->getParentOp() != island) continue; in FindSourcesAndSinksInIsland()
233 } else if (fetch.getDefiningOp()->getParentOp() == island_op) { in BreakUpIsland()
307 llvm::dyn_cast<tf_executor::IslandOp>(owner->getParentOp())) { in BreakUpIsland()
/external/llvm-project/mlir/test/lib/Dialect/Shape/
DTestShapeFunctions.cpp60 if (isa<shape::FunctionLibraryOp>(func->getParentOp())) in runOnOperation()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DTargetAndABI.cpp133 op = op->getParentOp(); in lookupEntryPointABI()
185 op = op->getParentOp(); in lookupTargetEnv()
/external/llvm-project/mlir/lib/Dialect/PDL/IR/
DPDL.cpp68 if (!isa<PatternOp>(op->getParentOp())) in verifyHasBindingUseInMatcher()
100 if (!attrValue && isa<RewriteOp>(op->getParentOp())) in verify()
276 bool isWithinRewrite = isa<RewriteOp>(op->getParentOp()); in verify()
/external/llvm-project/mlir/lib/Dialect/Tosa/IR/
DTosaOps.cpp52 return (isa<tosa::IfOp>(dest->getParentOp()) || in isLegalToInline()
53 isa<tosa::WhileOp>(dest->getParentOp())); in isLegalToInline()

12345