Home
last modified time | relevance | path

Searched refs:loopOp (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/mlir/lib/Conversion/SCFToSPIRV/
DSCFToSPIRV.cpp134 auto loopOp = rewriter.create<spirv::LoopOp>(loc, loopControl); in matchAndRewrite() local
135 loopOp.addEntryAndMergeBlock(); in matchAndRewrite()
141 loopOp.body().getBlocks().insert(std::next(loopOp.body().begin(), 1), header); in matchAndRewrite()
163 rewriter.inlineRegionBefore(forOp->getRegion(0), loopOp.body(), in matchAndRewrite()
164 std::next(loopOp.body().begin(), 2)); in matchAndRewrite()
169 rewriter.setInsertionPointToEnd(&(loopOp.body().front())); in matchAndRewrite()
174 auto *mergeBlock = loopOp.getMergeBlock(); in matchAndRewrite()
183 Block *continueBlock = loopOp.getContinueBlock(); in matchAndRewrite()
198 replaceSCFOutputValue(forOp, loopOp, typeConverter, rewriter, in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/OpenACC/IR/
DOpenACC.cpp615 static LogicalResult verifyLoopOp(acc::LoopOp loopOp) { in verifyLoopOp() argument
617 if ((loopOp.auto_() && (loopOp.independent() || loopOp.seq())) || in verifyLoopOp()
618 (loopOp.independent() && loopOp.seq())) { in verifyLoopOp()
619 loopOp.emitError("only one of " + acc::LoopOp::getAutoAttrName() + ", " + in verifyLoopOp()
627 if (loopOp.seq() && loopOp.exec_mapping() != OpenACCExecMapping::NONE) { in verifyLoopOp()
628 loopOp.emitError("gang, worker or vector cannot appear with the seq attr"); in verifyLoopOp()
633 if (loopOp.region().empty()) { in verifyLoopOp()
634 loopOp.emitError("expected non-empty body."); in verifyLoopOp()
/external/llvm-project/mlir/lib/Analysis/
DSliceAnalysis.cpp107 auto *loopOp = loopIv.getOperation(); in getBackwardSliceImpl() local
108 if (backwardSlice->count(loopOp) == 0) in getBackwardSliceImpl()
109 getBackwardSliceImpl(loopOp, backwardSlice, filter); in getBackwardSliceImpl()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DSerializer.cpp85 if (auto loopOp = dyn_cast<spirv::LoopOp>(op)) in getStructuredControlFlowOpMergeBlock() local
86 return loopOp.getMergeBlock(); in getStructuredControlFlowOpMergeBlock()
97 if (auto loopOp = dyn_cast<spirv::LoopOp>(block->getParentOp())) { in getPhiIncomingBlock() local
100 Operation *op = loopOp.getOperation(); in getPhiIncomingBlock()
106 return loopOp->getBlock(); in getPhiIncomingBlock()
343 LogicalResult processLoopOp(spirv::LoopOp loopOp);
1757 LogicalResult Serializer::processLoopOp(spirv::LoopOp loopOp) { in processLoopOp() argument
1761 auto &body = loopOp.body(); in processLoopOp()
1766 auto *headerBlock = loopOp.getHeaderBlock(); in processLoopOp()
1767 auto *continueBlock = loopOp.getContinueBlock(); in processLoopOp()
[all …]
DDeserializer.cpp1997 auto loopOp = builder.create<spirv::LoopOp>(location, control); in createLoopOp() local
1998 loopOp.addEntryAndMergeBlock(); in createLoopOp()
2000 return loopOp; in createLoopOp()
2022 if (auto loopOp = createLoopOp(control)) in structurizeImpl() local
2023 op = loopOp.getOperation(); in structurizeImpl()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp1042 matchAndRewrite(spirv::LoopOp loopOp, ArrayRef<Value> operands, in matchAndRewrite() argument
1045 if (loopOp.loop_control() != spirv::LoopControl::None) in matchAndRewrite()
1048 Location loc = loopOp.getLoc(); in matchAndRewrite()
1053 auto position = Block::iterator(loopOp); in matchAndRewrite()
1058 Block *entryBlock = loopOp.getEntryBlock(); in matchAndRewrite()
1063 Block *headerBlock = loopOp.getHeaderBlock(); in matchAndRewrite()
1069 Block *mergeBlock = loopOp.getMergeBlock(); in matchAndRewrite()
1075 rewriter.inlineRegionBefore(loopOp.body(), endBlock); in matchAndRewrite()
1076 rewriter.replaceOp(loopOp, endBlock->getArguments()); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/SCFToGPU/
DSCFToGPU.cpp507 auto loopOp = rewriter.create<scf::ForOp>( in processParallelLoop() local
511 newIndex = loopOp.getInductionVar(); in processParallelLoop()
512 rewriter.setInsertionPointToStart(loopOp.getBody()); in processParallelLoop()
/external/llvm-project/flang/lib/Lower/
DOpenACC.cpp231 auto loopOp = createRegionOp<mlir::acc::LoopOp, mlir::acc::YieldOp>( in genACC() local
234 loopOp.setAttr(mlir::acc::LoopOp::getExecutionMappingAttrName(), in genACC()
244 loopOp.setAttr(mlir::acc::LoopOp::getCollapseAttrName(), in genACC()
248 loopOp.setAttr(mlir::acc::LoopOp::getSeqAttrName(), in genACC()
252 loopOp.setAttr(mlir::acc::LoopOp::getIndependentAttrName(), in genACC()
255 loopOp.setAttr(mlir::acc::LoopOp::getAutoAttrName(), in genACC()
DIO.cpp389 auto loopOp = in genIoLoop() local
391 builder.setInsertionPointToStart(loopOp.getBody()); in genIoLoop()
393 loopOp.getInductionVar()); in genIoLoop()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVOps.cpp2264 static void print(spirv::LoopOp loopOp, OpAsmPrinter &printer) { in print() argument
2265 auto *op = loopOp.getOperation(); in print()
2268 auto control = loopOp.loop_control(); in print()
2286 static LogicalResult verify(spirv::LoopOp loopOp) { in verify() argument
2287 auto *op = loopOp.getOperation(); in verify()
2323 return loopOp.emitOpError( in verify()
2327 return loopOp.emitOpError( in verify()
2333 return loopOp.emitOpError( in verify()
2339 return loopOp.emitOpError( in verify()
2343 return loopOp.emitOpError( in verify()
[all …]
/external/icu/icu4c/source/i18n/
Dregexcmp.cpp1083 int32_t loopOp = (int32_t)fRXPat->fCompiledPat->popi(); in doParseActions() local
1084 U_ASSERT(URX_TYPE(loopOp) == URX_CTR_LOOP && URX_VAL(loopOp) == topLoc); in doParseActions()
1085 loopOp++; // point LoopOp after the just-inserted STO_SP in doParseActions()
1086 fRXPat->fCompiledPat->push(loopOp, *fStatus); in doParseActions()
/external/llvm-project/mlir/lib/Transforms/Utils/
DLoopUtils.cpp3025 SmallVector<Operation *, 1> loopOp{loop.getOperation()}; in createFullTiles() local
3026 getIndexSet(loopOp, &cst); in createFullTiles()