Home
last modified time | relevance | path

Searched refs:getBlockID (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFGReachabilityAnalysis.cpp27 const unsigned DstBlockID = Dst->getBlockID(); in isReachable()
36 return reachable[DstBlockID][Src->getBlockID()]; in isReachable()
45 ReachableSet &DstReachability = reachable[Dst->getBlockID()]; in mapReachability()
56 if (visited[block->getBlockID()]) in mapReachability()
58 visited[block->getBlockID()] = true; in mapReachability()
63 DstReachability[block->getBlockID()] = true; in mapReachability()
H A DUninitializedValues.cpp149 return vals[block->getBlockID()]; in getValueVector()
189 llvm::errs() << block->getBlockID() << " :"; in printVector()
571 SuccsVisited[block->getBlockID()] = block->succ_size(); in getUninitUse()
600 unsigned &SV = SuccsVisited[Pred->getBlockID()]; in getUninitUse()
623 unsigned BlockID = Block->getBlockID(); in getUninitUse()
633 if (Succ && SuccsVisited[Succ->getBlockID()] >= Succ->succ_size()) { in getUninitUse()
850 wasAnalyzed[block->getBlockID()] = true; in runOnBlock()
859 if (wasAnalyzed[pred->getBlockID()]) { in runOnBlock()
944 wasAnalyzed[cfg.getEntry().getBlockID()] = true; in runUninitializedVariablesAnalysis()
948 PBH.currentBlock = block->getBlockID(); in runUninitializedVariablesAnalysis()
[all …]
H A DReachableCode.cpp327 if (!Reachable[Start->getBlockID()]) { in scanFromBlock()
329 Reachable[Start->getBlockID()] = true; in scanFromBlock()
370 unsigned blockID = B->getBlockID(); in scanFromBlock()
426 unsigned blockID = block->getBlockID(); in enqueue()
439 unsigned blockID = PredBlock->getBlockID(); in isDeadCodeRoot()
545 if (Reachable[Block->getBlockID()]) in scanBackwards()
585 if (Reachable[Block->getBlockID()]) in scanBackwards()
761 if (reachable[block->getBlockID()]) in FindUnreachableCode()
H A DProgramPoint.cpp179 << castAs<BlockEntrance>().getBlock()->getBlockID(); in printJson()
185 << ", \"block_id\": " << FEP->getBlock()->getBlockID() in printJson()
256 Out << "Edge\", \"src_id\": " << E.getSrc()->getBlockID() in printJson()
257 << ", \"dst_id\": " << E.getDst()->getBlockID() << ", \"terminator\": "; in printJson()
H A DConsumed.cpp1001 unsigned int CurrBlockOrder = VisitOrder[CurrBlock->getBlockID()]; in allBackEdgesVisited()
1004 if (*PI && CurrBlockOrder < VisitOrder[(*PI)->getBlockID()] ) in allBackEdgesVisited()
1015 auto &Entry = StateMapsArray[Block->getBlockID()]; in addInfo()
1029 auto &Entry = StateMapsArray[Block->getBlockID()]; in addInfo()
1040 assert(StateMapsArray[Block->getBlockID()] && "Block has no block info"); in borrowInfo()
1042 return StateMapsArray[Block->getBlockID()].get(); in borrowInfo()
1046 StateMapsArray[Block->getBlockID()] = nullptr; in discardInfo()
1053 auto &Entry = StateMapsArray[Block->getBlockID()]; in getInfo()
1062 return VisitOrder[From->getBlockID()] > VisitOrder[To->getBlockID()]; in isBackEdge()
1073 unsigned int BlockVisitOrder = VisitOrder[Block->getBlockID()]; in isBackEdgeTarget()
[all …]
H A DLiveVariables.cpp598 if (!everAnalyzedBlock[block->getBlockID()]) in computeLiveness()
599 everAnalyzedBlock[block->getBlockID()] = true; in computeLiveness()
625 return A->getBlockID() < B->getBlockID(); in dumpBlockLiveness()
632 llvm::errs() << "\n[ B" << (*it)->getBlockID() in dumpBlockLiveness()
671 llvm::errs() << "\n[ B" << B->getBlockID() in dumpExprLiveness()
H A DIntervalPartition.cpp34 static unsigned getID(const CFGBlock &B) { return B.getBlockID(); } in getID()
239 BlockOrder[WTO[I]->getBlockID()] = I + 1; in WTOCompare()
H A DThreadSafety.cpp742 unsigned CurrBlockID = CurrBlock->getBlockID(); in traverseCFG()
758 unsigned PrevBlockID = (*PI)->getBlockID(); in traverseCFG()
805 Context LoopBegin = BlockInfo[FirstLoopBlock->getBlockID()].EntryContext; in traverseCFG()
812 unsigned exitID = CFGraph->getExit().getBlockID(); in traverseCFG()
822 CFGBlockInfo *CurrBlockInfo = &BlockInfo[CurrBlock->getBlockID()]; in findBlockLocations()
854 BlockInfo[(*CurrBlock->pred_begin())->getBlockID()].ExitLoc; in findBlockLocations()
859 BlockInfo[(*CurrBlock->succ_begin())->getBlockID()].EntryLoc; in findBlockLocations()
1543 const CFGBlockInfo *PredBlockInfo = &BlockInfo[PredBlock->getBlockID()]; in getEdgeLockset()
2466 CFGBlockInfo &Initial = BlockInfo[CFGraph->getEntry().getBlockID()]; in runAnalysis()
2467 CFGBlockInfo &Final = BlockInfo[CFGraph->getExit().getBlockID()]; in runAnalysis()
[all …]
H A DThreadSafetyCommon.cpp858 unsigned ArgIndex = BBInfo[Blk->getBlockID()].ProcessedPredecessors; in mergePhiNodesBackEdge()
885 BlockMap[B->getBlockID()] = BB; in enterCFG()
911 CurrentBlockInfo = &BBInfo[B->getBlockID()]; in enterCFGBlock()
921 CurrentBB->addPredecessor(BlockMap[Pred->getBlockID()]); in handlePredecessor()
922 BlockInfo *PredInfo = &BBInfo[Pred->getBlockID()]; in handlePredecessor()
993 ++BBInfo[Succ->getBlockID()].ProcessedPredecessors; in handleSuccessorBackEdge()
H A DCalledOnceCheck.cpp1299 return States[BB->getBlockID()]; in getState()
1303 return States[BB->getBlockID()]; in getState()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp79 reachable.insert(CB->getBlockID()); in checkEndAnalysis()
97 if (reachable.count(CB->getBlockID())) in checkEndAnalysis()
105 if (!visited.count(CB->getBlockID())) in checkEndAnalysis()
109 if (reachable.count(CB->getBlockID())) in checkEndAnalysis()
182 visited.insert(CB->getBlockID()); in FindUnreachableEntryPoints()
188 if (!reachable.count(PredBlock->getBlockID())) { in FindUnreachableEntryPoints()
191 reachable.insert(CB->getBlockID()); in FindUnreachableEntryPoints()
192 if (!visited.count(PredBlock->getBlockID())) in FindUnreachableEntryPoints()
H A DTestAfterDivZeroChecker.cpp149 State->add<DivZeroMap>(ZeroState(SR, C.getBlockID(), C.getStackFrame())); in setDivZeroMap()
159 ZeroState ZS(SR, C.getBlockID(), C.getStackFrame()); in hasDivZeroMap()
H A DDeadStoresChecker.cpp77 return reachable[block->getBlockID()]; in isReachable()
91 llvm::BitVector::reference isReachable = reachable[block->getBlockID()]; in computeReachableBlocks()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp62 return Succ && Succ->getBlockID() == Block.getBlockID(); in blockIndexInPredecessor()
292 AC.BlockStates[Pred->getBlockID()]; in computeBlockInputState()
436 PrettyStackTraceCFGElement CrashInfo(Element, Block.getBlockID(),
447 builtinTransfer(Block.getBlockID(), Element, State, AC);
473 transfer(StmtToEnvMap(AC.ACFG, AC.BlockStates, Block.getBlockID(), State),
512 BlockStates[Entry.getBlockID()] = {Analysis.typeErasedInitialElement(), in runTypeErasedDataflowAnalysis()
520 << "Processing Block " << Block->getBlockID() << "\n"); in runTypeErasedDataflowAnalysis()
527 BlockStates[Block->getBlockID()]; in runTypeErasedDataflowAnalysis()
562 BlockStates[Block->getBlockID()] = std::move(NewBlockState); in runTypeErasedDataflowAnalysis()
576 if (!BlockStates[Block->getBlockID()]) in runTypeErasedDataflowAnalysis()
H A DLogger.cpp64 OS << "=== Entering block B" << Block.getBlockID(); in enterBlock()
83 OS << "Processing element B" << CurrentBlock->getBlockID() << "." in enterElement()
92 OS << "Computed state for B" << CurrentBlock->getBlockID() << "." in recordState()
101 OS << "B" << CurrentBlock->getBlockID() << " has converged!\n"; in blockConverged()
H A DHTMLLogger.cpp212 JOS.attribute("block", blockID(E.Block->getBlockID())); in endAnalysis()
240 BlockConverged[B.getBlockID()] = false; in enterBlock()
268 unsigned Block = Iters.back().Block->getBlockID(); in recordState()
308 BlockConverged[Iters.back().Block->getBlockID()] = true; in blockConverged()
321 JOS.attributeObject(blockID(B.getBlockID()), [&] { in writeBlock()
442 State[Off + I].assign(Block->getBlockID(), EltIndex, Len); in writeCode()
512 GraphS << " " << blockID(Block->getBlockID()) << " -> " in buildCFGDot()
513 << blockID(Succ.getReachableBlock()->getBlockID()) << "\n"; in buildCFGDot()
H A DAdornedCFG.cpp84 if (BlockReachable[Block->getBlockID()]) in findReachableBlocks()
87 BlockReachable[Block->getBlockID()] = true; in findReachableBlocks()
H A DTransfer.cpp49 if (Block->getBlockID() == CurBlockID) in getEnvironment()
51 const auto &State = BlockToState[Block->getBlockID()]; in getEnvironment()
868 auto ExitBlock = ACFG->getCFG().getExit().getBlockID(); in transferInlineCall()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DPostOrderCFGView.h58 if (VisitedBlockIDs.test(Block->getBlockID())) in insert()
60 VisitedBlockIDs.set(Block->getBlockID()); in insert()
68 return VisitedBlockIDs.test(Block->getBlockID()); in alreadySet()
H A DConsumed.h221 VisitOrder[BI->getBlockID()] = VisitOrderCounter++; in ConsumedBlockInfo()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DWorkList.cpp159 BE->getBlock()->getBlockID(), in enqueue()
229 BE->getBlock()->getBlockID(), in enqueue()
H A DCoreEngine.cpp100 FunctionSummaries->markVisitedBasicBlock(Entry->getBlockID(), in ExecuteWorkList()
266 FunctionSummaries->markVisitedBasicBlock(Blk->getBlockID(), in HandleBlockEdge()
344 unsigned BlockId = L.getBlock()->getBlockID(); in HandleBlockEntrance()
643 Counter.getNumVisited(LC->getStackFrame(), B->getBlockID()); in getCompletedIterationCount()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerContext.h135 unsigned getBlockID() const { in getBlockID() function
136 return NB.getContext().getBlock()->getBlockID(); in getBlockID()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DAdornedCFG.h74 return BlockReachable[B.getBlockID()]; in isBlockReachable()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp254 const unsigned ExitID = cfg->getExit().getBlockID(); in checkForRecursiveFunctionCall()
268 if (ExitID == SuccBlock->getBlockID()) in checkForRecursiveFunctionCall()
318 Queued[ThrowBlock.getBlockID()] = true; in throwEscapes()
324 if (!Succ.isReachable() || Queued[Succ->getBlockID()]) in throwEscapes()
327 if (Succ->getBlockID() == Body->getExit().getBlockID()) in throwEscapes()
340 Queued[Succ->getBlockID()] = true; in throwEscapes()
354 if (!Reachable[B->getBlockID()]) in visitReachableThrows()
584 if (!live[B->getBlockID()]) { in CheckFallThrough()
613 if (!live[B.getBlockID()]) in CheckFallThrough()

12