Home
last modified time | relevance | path

Searched refs:getBlock (Results 1 – 25 of 155) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp141 return getPreviousDefRecursive(MA->getBlock(), CachedPreviousDef); in getPreviousDef()
148 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock()
160 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock()
257 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse()
265 BasicBlock *StartBlock = MU->getBlock(); in insertUse()
274 MSSA->renamePass(MU->getBlock(), FirstDef, Visited); in insertUse()
280 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertUse()
309 if (!MSSA->DT->isReachableFromEntry(MD->getBlock())) { in insertDef()
320 if (DefBefore->getBlock() == MD->getBlock() && in insertDef()
370 DefiningBlocks.insert(MD->getBlock()); in insertDef()
[all …]
H A DMemorySSA.cpp530 BasicBlock *BB = From->getBlock(); in getWalkTarget()
534 auto *Defs = MSSA.getBlockDefs(Node->getBlock()); in getWalkTarget()
880 const BasicBlock *ChainBB = DefChainEnd->getBlock(); in tryOptimizePhi()
884 if (DT.dominates(ChainBB, TP.Clobber->getBlock())) in tryOptimizePhi()
1155 bool AlreadyVisited = !Visited.insert(Root->getBlock()).second; in renamePass()
1159 IncomingVal = renameBlock(Root->getBlock(), IncomingVal, RenameAllUses); in renamePass()
1160 renameSuccessorPhis(Root->getBlock(), IncomingVal, RenameAllUses); in renamePass()
1173 BasicBlock *BB = Child->getBlock(); in renamePass()
1370 BasicBlock *BackBlock = VersionStack.back()->getBlock(); in optimizeUsesInBlock()
1373 while (VersionStack.back()->getBlock() == BackBlock) in optimizeUsesInBlock()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericDomTreeConstruction.h154 BlockNamePrinter(TreeNodePtr TN) : N(TN ? TN->getBlock() : nullptr) {} in BlockNamePrinter()
585 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in attachNewSubtree()
603 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock(); in reattachExistingSubtree()
670 if (!llvm::is_contained(DT.Roots, To->getBlock())) in UpdateRootsBeforeInsertion()
722 LLVM_DEBUG(dbgs() << "\tReachable " << BlockNamePrinter(From->getBlock()) in InsertReachable()
723 << " -> " << BlockNamePrinter(To->getBlock()) << "\n"); in InsertReachable()
729 (From->getBlock() && To->getBlock()) in InsertReachable()
730 ? DT.findNearestCommonDominator(From->getBlock(), To->getBlock()) in InsertReachable()
766 assert(TN->getBlock() && II.Visited.count(TN) && "Preconditions!"); in InsertReachable()
777 for (const NodePtr Succ : getChildren<IsPostDom>(TN->getBlock(), BUI)) { in InsertReachable()
[all …]
H A DGenericDomTree.h89 NodeT *getBlock() const { return TheBB; }
112 const NodeT *Nd = I->getBlock();
117 const NodeT *N = I->getBlock();
175 if (Node->getBlock())
176 Node->getBlock()->printAsOperand(O, false);
398 Result.push_back(N->getBlock());
509 return NodeA->getBlock();
521 return isPostDominator() && !A->getBlock();
H A DGenericIteratedDominanceFrontier.h173 NodeTy *BB = Node->getBlock(); in calculate()
186 NodeTy *SuccBB = SuccNode->getBlock(); in calculate()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBranchFolding.cpp490 if (getBlock()->getNumber() < o.getBlock()->getNumber()) in operator <()
492 if (getBlock()->getNumber() > o.getBlock()->getNumber()) in operator <()
670 if (ProfitableToMerge(CurMPIter->getBlock(), I->getBlock(), in ComputeSameTails()
702 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash()
721 if (SameTails[i].getBlock() == PredBB) { in CreateCommonTailOnlyBlock()
727 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(), in CreateCommonTailOnlyBlock()
737 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in CreateCommonTailOnlyBlock()
814 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock(); in mergeCommonTails()
836 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails()
840 assert(Pos != SameTails[i].getBlock()->end() && in mergeCommonTails()
[all …]
H A DBranchFolding.h60 MachineBasicBlock *getBlock() const { return Block; } in getBlock() function
101 MachineBasicBlock *getBlock() const { in getBlock() function
102 return getMergePotentialsElt().getBlock(); in getBlock()
106 return TailStartPos == getBlock()->begin(); in tailIsWholeBlock()
H A DLiveRangeCalc.cpp67 MachineBasicBlock *MBB = I.DomNode->getBlock(); in updateFromLiveIns()
347 MachineBasicBlock *MBB = Node->getBlock(); in updateSSA()
353 bool needPHI = !IDom || !Seen.test(IDom->getBlock()->getNumber()); in updateSSA()
359 IDomValue = Map[IDom->getBlock()]; in updateSSA()
364 Map[IDom->getBlock()].second = IDomValue.second = in updateSSA()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyExceptionInfo.cpp85 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate()
129 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate()
168 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate()
198 MachineBasicBlock *MBB = DomNode->getBlock(); in recalculate()
245 MachineBasicBlock *MBB = DomNode->getBlock(); in recalculate()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A Dx86_64.cpp100 auto &GOTEntryBlock = E.getTarget().getBlock(); in optimizeGOTAndStubAccesses()
163 auto &StubBlock = E.getTarget().getBlock(); in optimizeGOTAndStubAccesses()
169 auto &GOTBlock = StubBlock.edges().begin()->getTarget().getBlock(); in optimizeGOTAndStubAccesses()
H A Di386.cpp59 auto &StubBlock = E.getTarget().getBlock(); in optimizeGOTAndStubAccesses()
65 auto &GOTBlock = StubBlock.edges().begin()->getTarget().getBlock(); in optimizeGOTAndStubAccesses()
H A DJITLink.cpp142 auto &TargetBlock = TargetSym.getBlock(); in printEdge()
221 if (&Sym->getBlock() == &B) in splitBlock()
255 BlockSymbols[&Sym->getBlock()].push_back(Sym); in dump()
391 ErrStream << E.getTarget().getBlock().getSection().getName() << " + " in makeTargetOutOfRangeError()
399 if (&Sym->getBlock() == &B && Sym->hasName() && Sym->getOffset() == 0 && in makeTargetOutOfRangeError()
H A DSEHFrameSupport.h47 Children.insert(&Sym.getBlock()); in operator()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp220 HandlePostStmt(WU.getBlock(), WU.getIndex(), Pred); in dispatchWorkItem()
298 unsigned BlockId = L.getBlock()->getBlockID(); in HandleBlockEntrance()
306 NodeBuilderContext Ctx(*this, L.getBlock(), Pred); in HandleBlockEntrance()
309 HandleBlockExit(L.getBlock(), Pred); in HandleBlockEntrance()
658 ProgramPoint Loc = BlockEdge(C.getBlock(), branch ? DstT : DstF, in generateNode()
670 Eng.G.getNode(BlockEdge(Src, I.getBlock(), Pred->getLocationContext()), in generateNode()
688 Eng.G.getNode(BlockEdge(Src, I.getBlock(), Pred->getLocationContext()), in generateCaseStmtNode()
H A DWorkList.cpp159 BE->getBlock()->getBlockID(), in enqueue()
229 BE->getBlock()->getBlockID(), in enqueue()
284 NumVisited = NumReached[BE->getBlock()]++; in enqueue()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp672 ResolveBranchFixups(Dest.getBlock()); in EmitLabel()
675 EmitBlock(Dest.getBlock()); in EmitLabel()
989 EmitBlock(LoopHeader.getBlock()); in EmitWhileStmt()
993 LoopHeader.getBlock(), ConvergenceTokenStack.back())); in EmitWhileStmt()
1024 LoopStack.push(LoopHeader.getBlock(), CGM.getContext(), CGM.getCodeGenOpts(), in EmitWhileStmt()
1036 llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); in EmitWhileStmt()
1046 if (ExitBlock != LoopExit.getBlock()) { in EmitWhileStmt()
1080 EmitBranch(LoopHeader.getBlock()); in EmitWhileStmt()
1085 EmitBlock(LoopExit.getBlock(), true); in EmitWhileStmt()
1090 SimplifyForwardingBlocks(LoopHeader.getBlock()); in EmitWhileStmt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp205 while (IDom->getBlock()->isEHPad()) { in findMatInsertPt()
206 assert(Entry != IDom->getBlock() && "eh pad in entry block"); in findMatInsertPt()
210 return IDom->getBlock()->getTerminator()->getIterator(); in findMatInsertPt()
244 Node = DT.getNode(Node)->getIDom()->getBlock(); in findBestInsertionSet()
264 if (Candidates.count(ChildDomNode->getBlock())) in findBestInsertionSet()
265 Orders.push_back(ChildDomNode->getBlock()); in findBestInsertionSet()
293 BasicBlock *Parent = DT.getNode(Node)->getIDom()->getBlock(); in findBestInsertionSet()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp36 while (Node && Node->getBlock()) { in getDominators()
37 ret.push_back(Node->getBlock()); in getDominators()
55 ret.push_back(Child->getBlock()); in getDominatees()
61 ret.push_back(Child->getBlock()); in getDominatees()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp513 BasicBlock *DbgRecord::getBlock() { return Marker->getParent(); } in getBlock() function in llvm::DbgRecord
515 const BasicBlock *DbgRecord::getBlock() const { return Marker->getParent(); } in getBlock() function in llvm::DbgRecord
517 Function *DbgRecord::getFunction() { return getBlock()->getParent(); } in getFunction()
520 return getBlock()->getParent(); in getFunction()
529 LLVMContext &DbgRecord::getContext() { return getBlock()->getContext(); } in getContext()
532 return getBlock()->getContext(); in getContext()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLink.h554 Block &getBlock() { in getBlock() function
561 const Block &getBlock() const { in getBlock() function
571 assert(NewOffset <= getBlock().getSize() && "Offset out of range"); in setOffset()
598 bool isSymbolZeroFill() const { return getBlock().isZeroFill(); } in isSymbolZeroFill()
603 return getBlock().getContent().slice(Offset, Size); in getSymbolContent()
1339 Section &Sec = Sym.getBlock().getSection(); in makeExternal()
1367 Section &Sec = Sym.getBlock().getSection(); in makeAbsolute()
1413 auto &OldSection = Sym.getBlock().getSection(); in transferDefinedSymbol()
1442 if (&S->getBlock() == &B) in transferBlock()
1501 Sym.getBlock().getSection().removeSymbol(Sym); in removeDefinedSymbol()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DProgramPoint.h227 const CFGBlock *getBlock() const { in getBlock() function
232 const CFGBlock *B = getBlock(); in getFirstElement()
249 const CFGBlock *getBlock() const { in getBlock() function
254 return getBlock()->getTerminatorStmt(); in getTerminator()
337 const CFGBlock *getBlock() const { in getBlock() function
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp63 << castAs<BlockEntrance>().getBlock()->getBlockID(); in printJson()
69 << ", \"block_id\": " << FEP->getBlock()->getBlockID() in printJson()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp300 if (!NodeToProcess->node()->getBlock()->getSinglePredecessor()) in loadCSE()
302 for (auto &I : make_early_inc_range(*NodeToProcess->node()->getBlock())) { in loadCSE()
328 if (!L->contains(Child->getBlock())) in loadCSE()
801 BasicBlock *OriginalBBIDom = BBIDom->getBlock(); in UnrollLoop()
858 auto *ChildBB = ChildDomNode->getBlock(); in UnrollLoop()
969 if (L->contains(C->getBlock())) in UnrollLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDominanceFrontierImpl.h160 BlockT *BB = Node->getBlock(); in calculate()
197 BlockT *childBB = IDominee->getBlock(); in calculate()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectLinkingLayer.cpp528 auto &BDeps = BlockDeps[Sym->getBlock()]; in registerDependencies()
534 SymbolDependenceGroup &SDG = DepGroupForBlock[&Sym->getBlock()]; in registerDependencies()
537 if (!BlockDepsProcessed.count(&Sym->getBlock())) { in registerDependencies()
538 BlockDepsProcessed.insert(&Sym->getBlock()); in registerDependencies()
562 auto &BDeps = BlockDeps[Sym->getBlock()]; in registerDependencies()
622 auto &TgtB = E.getTarget().getBlock(); in computeBlockNonLocalDeps()

1234567