Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/IR/
H A DRegion.cpp98 Block *newBlock = new Block(); in cloneInto() local
99 mapper.map(&block, newBlock); in cloneInto()
106 mapper.map(arg, newBlock->addArgument(arg.getType(), arg.getLoc())); in cloneInto()
108 dest->getBlocks().insert(destPos, newBlock); in cloneInto()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DDetensorize.cpp73 Block *newBlock = rewriter.splitBlock(originalBlock, Block::iterator(op)); in matchAndRewrite() local
74 rewriter.inlineRegionBefore(op.region(), newBlock); in matchAndRewrite()
82 rewriter.mergeBlocks(newBlock, originalBlock, {}); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DDialectConversion.cpp679 Block *newBlock = info.first; in materializeLiveConversions() local
697 rewriter.setInsertionPointToStart(newBlock); in materializeLiveConversions()
763 block->replaceAllUsesWith(newBlock); in applySignatureConversion()
778 rewriter.setInsertionPointToStart(newBlock); in applySignatureConversion()
832 insertConversion(newBlock, std::move(info)); in applySignatureConversion()
833 return newBlock; in applySignatureConversion()
836 void ArgConverter::insertConversion(Block *newBlock, in insertConversion() argument
839 Region *region = newBlock->getParent(); in insertConversion()
848 conversionInfo.insert({newBlock, std::move(info)}); in insertConversion()
1340 if (Block *newBlock = *result) { in convertBlockSignature() local
[all …]
H A DInliningUtils.cpp221 for (auto &newBlock : newBlocks) in inlineRegionImpl() local
222 interface.handleTerminator(newBlock.getTerminator(), postInsertBlock); in inlineRegionImpl()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp665 Block &newBlock = newForOp.getRegion().front(); in matchAndRewrite() local
668 newBlockTransferArgs[0] = newBlock.getArgument(0); // iv in matchAndRewrite()
689 auto newYieldOp = cast<scf::YieldOp>(newBlock.getTerminator()); in matchAndRewrite()
691 rewriter.eraseOp(newBlock.getTerminator()->getPrevNode()); in matchAndRewrite()
709 rewriter.mergeBlocks(&oldBlock, &newBlock, newBlockTransferArgs); in matchAndRewrite()
710 auto mergedYieldOp = cast<scf::YieldOp>(newBlock.getTerminator()); in matchAndRewrite()
808 Block &newBlock = newForOp.getRegion().front(); in replaceTensorCastForOpIterArg() local
810 newBlock.getArguments().end()); in replaceTensorCastForOpIterArg()
815 rewriter.setInsertionPoint(&newBlock, newBlock.begin()); in replaceTensorCastForOpIterArg()
824 rewriter.mergeBlocks(&oldBlock, &newBlock, newBlockTransferArgs); in replaceTensorCastForOpIterArg()
[all …]
/llvm-project-15.0.7/flang/lib/Lower/
H A DBridge.cpp739 return newBlock; in insertBlock()
1837 builder->setInsertionPointToEnd(newBlock); in genFIR()
1857 builder->setInsertionPointToEnd(newBlock); in genFIR()
2824 void startBlock(mlir::Block *newBlock) { in startBlock() argument
2825 assert(newBlock && "missing block"); in startBlock()
2829 genFIRBranch(newBlock); in startBlock()
2833 builder->setInsertionPointToStart(newBlock); in startBlock()
2835 builder->setInsertionPointToEnd(newBlock); in startBlock()
2839 void maybeStartBlock(mlir::Block *newBlock) { in maybeStartBlock() argument
2840 if (newBlock) in maybeStartBlock()
[all …]
H A DRuntime.cpp33 mlir::Block *newBlock = in genUnreachable() local
35 builder.setInsertionPointToStart(newBlock); in genUnreachable()
H A DPFTBuilder.cpp1074 llvm::StringRef newBlock = eval.isNewBlock ? "^" : ""; in dumpEvaluation() local
1080 outputStream << "<<" << newBlock << name << bang << ">>"; in dumpEvaluation()
1082 outputStream << newBlock << name << bang; in dumpEvaluation()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp1745 auto *newBlock = builder.createBlock(&body.back()); in structurize() local
1746 mapper.map(block, newBlock); in structurize()
1747 LLVM_DEBUG(logger.startLine() << "[cf] cloned block " << newBlock in structurize()
1752 newBlock->addArgument(blockArg.getType(), blockArg.getLoc()); in structurize()
1763 newBlock->push_back(op.clone(mapper)); in structurize()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/
H A DUtils.cpp197 Block *newBlock = rewriter.createBlock( in outlineSingleBlockRegion() local
204 rewriter.setInsertionPointToEnd(newBlock); in outlineSingleBlockRegion()
206 llvm::append_range(callValues, newBlock->getArguments()); in outlineSingleBlockRegion()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-lsp-server/
H A DMLIRServer.cpp550 auto printBlockToHover = [&](Block *newBlock) { in buildHoverForBlock() argument
551 if (const auto *def = asmState.getBlockDef(newBlock)) in buildHoverForBlock()
554 printDefBlockName(os, newBlock); in buildHoverForBlock()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp2760 CFGBlock *newBlock = Visit(S, AddStmtChoice::AlwaysAdd, in VisitCompoundStmt() local
2763 if (newBlock) in VisitCompoundStmt()
2764 LastBlock = newBlock; in VisitCompoundStmt()
2970 if (CFGBlock *newBlock = Visit(EC->getSubExpr())) in VisitDeclSubExpr() local
2971 LastBlock = newBlock; in VisitDeclSubExpr()
2974 if (CFGBlock *newBlock = Visit(Init)) in VisitDeclSubExpr() local
2975 LastBlock = newBlock; in VisitDeclSubExpr()
2984 if (CFGBlock *newBlock = addStmt(VA->getSizeExpr())) in VisitDeclSubExpr() local
2985 LastBlock = newBlock; in VisitDeclSubExpr()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DParser.cpp2048 Block *newBlock = nullptr; in parseRegionBody() local
2049 if (parseBlock(newBlock)) in parseRegionBody()
2051 region.push_back(newBlock); in parseRegionBody()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp2794 mlir::Block *newBlock) { in genCondBrOp() argument
2796 rewriter.create<mlir::LLVM::CondBrOp>(loc, cmp, dest, *destOps, newBlock, in genCondBrOp()
2799 rewriter.create<mlir::LLVM::CondBrOp>(loc, cmp, dest, newBlock); in genCondBrOp()
2816 auto *newBlock = createBlock(rewriter, dest); in genCaseLadderStep() local
2818 genCondBrOp(loc, cmp, dest, destOps, rewriter, newBlock); in genCaseLadderStep()
2819 rewriter.setInsertionPointToEnd(newBlock); in genCaseLadderStep()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DRDFGraph.h831 NodeAddr<BlockNode*> newBlock(NodeAddr<FuncNode*> Owner,
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DRDFGraph.cpp851 NodeAddr<BlockNode*> DataFlowGraph::newBlock(NodeAddr<FuncNode*> Owner, in newBlock() function in DataFlowGraph
874 NodeAddr<BlockNode*> BA = newBlock(Func, &B); in build()