| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | AdornedCFG.cpp | 29 buildStmtToBasicBlockMap(const CFG &Cfg) { in buildStmtToBasicBlockMap() argument 31 for (const CFGBlock *Block : Cfg) { in buildStmtToBasicBlockMap() 50 for (const CFGBlock *Block : Cfg) { in buildStmtToBasicBlockMap() 67 for (const CFGBlock *Block : Cfg) { in buildStmtToBasicBlockMap() 75 static llvm::BitVector findReachableBlocks(const CFG &Cfg) { in findReachableBlocks() argument 76 llvm::BitVector BlockReachable(Cfg.getNumBlockIDs(), false); in findReachableBlocks() 79 BlocksToVisit.push_back(&Cfg.getEntry()); in findReachableBlocks() 99 const CFG &Cfg, const internal::StmtToBlockMap &StmtToBlock) { in buildContainsExprConsumedInDifferentBlock() argument 113 for (const CFGBlock *Block : Cfg) { in buildContainsExprConsumedInDifferentBlock() 130 StmtToBlockMap::StmtToBlockMap(const CFG &Cfg) in StmtToBlockMap() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | AdornedCFG.h | 34 StmtToBlockMap(const CFG &Cfg); 64 const CFG &getCFG() const { return *Cfg; } in getCFG() 91 const Decl &D, std::unique_ptr<CFG> Cfg, in AdornedCFG() argument 94 : ContainingDecl(D), Cfg(std::move(Cfg)), in AdornedCFG() 102 std::unique_ptr<CFG> Cfg; variable
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ |
| H A D | PassSupport.h | 60 #define INITIALIZE_PASS_WITH_OPTIONS_BEGIN(PassName, Arg, Name, Cfg, Analysis) \ argument 61 INITIALIZE_PASS_BEGIN(PassName, Arg, Name, Cfg, Analysis) \ 64 #define INITIALIZE_PASS_WITH_OPTIONS(PassName, Arg, Name, Cfg, Analysis) \ argument 65 INITIALIZE_PASS_WITH_OPTIONS_BEGIN(PassName, Arg, Name, Cfg, Analysis) \ 66 INITIALIZE_PASS_END(PassName, Arg, Name, Cfg, Analysis)
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | IntervalPartition.cpp | 204 CFGIntervalGraph partitionIntoIntervals(const CFG &Cfg) { in partitionIntoIntervals() argument 205 return partitionIntoIntervalsImpl(Cfg.getNumBlockIDs(), &Cfg.getEntry()); in partitionIntoIntervals() 213 std::optional<std::vector<const CFGBlock *>> getIntervalWTO(const CFG &Cfg) { in getIntervalWTO() argument 215 unsigned PrevSize = Cfg.size(); in getIntervalWTO() 218 internal::CFGIntervalGraph Graph = internal::partitionIntoIntervals(Cfg); in getIntervalWTO()
|
| H A D | LifetimeSafety.cpp | 332 void dump(const CFG &Cfg, AnalysisDeclContext &AC) const { in dump() argument 671 const CFG &Cfg; member in clang::__anon2e25c8880111::LifetimeDataflow 685 : Cfg(C), AC(AC), Xfer(FS, LifetimeFact) {} in LifetimeDataflow() 689 ForwardDataflowWorklist Worklist(Cfg, AC); in run() 690 const CFGBlock *Entry = &Cfg.getEntry(); in run() 721 const CFGBlock &B = Cfg.getExit(); in dump() 739 void runLifetimeSafetyAnalysis(const DeclContext &DC, const CFG &Cfg, in runLifetimeSafetyAnalysis() argument 742 DEBUG_WITH_TYPE("PrintCFG", Cfg.dump(AC.getASTContext().getLangOpts(), in runLifetimeSafetyAnalysis() 747 DEBUG_WITH_TYPE("LifetimeFacts", FactMgr.dump(Cfg, AC)); in runLifetimeSafetyAnalysis() 758 LifetimeDataflow Dataflow(Cfg, FactMgr, AC); in runLifetimeSafetyAnalysis()
|
| H A D | ThreadSafetyCommon.cpp | 872 void SExprBuilder::enterCFG(CFG *Cfg, const NamedDecl *D, in enterCFG() argument 875 unsigned NBlocks = Cfg->getNumBlockIDs(); in enterCFG() 882 for (auto *B : *Cfg) { in enterCFG() 888 CurrentBB = lookupBlock(&Cfg->getEntry()); in enterCFG()
|
| H A D | CFG.cpp | 6313 const CFG &Cfg = *getParent(); in isInevitablySinking() local 6331 if (Blk == &Cfg.getExit()) in isInevitablySinking()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | LifetimeSafety.h | 25 void runLifetimeSafetyAnalysis(const DeclContext &DC, const CFG &Cfg,
|
| H A D | ThreadSafetyCommon.h | 105 void enterCFG(CFG *Cfg, const NamedDecl *D, const CFGBlock *First) {} in enterCFG() argument 474 void enterCFG(CFG *Cfg, const NamedDecl *D, const CFGBlock *First);
|
| H A D | ThreadSafetyTraverse.h | 285 void enterCFG(SCFG &Cfg) {} in enterCFG() argument 286 void exitCFG(SCFG &Cfg) {} in exitCFG() argument
|
| H A D | ThreadSafetyTIL.h | 1710 SCFG(const SCFG &Cfg, BlockArray &&Ba) // steals memory from Ba in SCFG() argument 1711 : SExpr(COP_SCFG), Arena(Cfg.Arena), Blocks(std::move(Ba)) { in SCFG()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonRDFOpt.cpp | 312 DataFlowGraph::Config Cfg; in runOnMachineFunction() local 313 Cfg.Options = RDFTrackReserved in runOnMachineFunction() 316 G.build(Cfg); in runOnMachineFunction()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCallAndReturn.cpp | 444 const CFG *Cfg = ADC->getCFG(); in isSmall() local 445 return Cfg->isLinear() || Cfg->size() <= AMgr.options.AlwaysInlineSize; in isSmall() 449 const CFG *Cfg = ADC->getCFG(); in isLarge() local 450 return Cfg->size() >= AMgr.options.MinCFGSizeTreatFunctionsAsLarge; in isLarge() 454 const CFG *Cfg = ADC->getCFG(); in isHuge() local 455 return Cfg->getNumBlockIDs() > AMgr.options.MaxInlinableSize; in isHuge()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 1233 void fillReachableBlocks(CFG *Cfg) { in fillReachableBlocks() argument 1237 ReachableBlocks.insert(&Cfg->getEntry()); in fillReachableBlocks() 1238 BlockQueue.push_back(&Cfg->getEntry()); in fillReachableBlocks() 1243 for (const auto *B : *Cfg) { in fillReachableBlocks() 1433 CFG *Cfg = AC.getCFG(); in DiagnoseSwitchLabelsFallthrough() local 1435 if (!Cfg) in DiagnoseSwitchLabelsFallthrough() 1438 FM.fillReachableBlocks(Cfg); in DiagnoseSwitchLabelsFallthrough() 1440 for (const CFGBlock *B : llvm::reverse(*Cfg)) { in DiagnoseSwitchLabelsFallthrough()
|