Lines Matching defs:cfg
479 /// std::unique_ptr<CFG> cfg = builder.buildCFG(decl, stmt1);
490 std::unique_ptr<CFG> cfg;
550 : Context(astContext), cfg(new CFG()), BuildOpts(buildOpts) {}
751 ConstructionContextLayer::create(cfg->getBumpVectorContext(),
807 return ConstructionContext::createFromLayers(cfg->getBumpVectorContext(),
819 B->appendStmt(const_cast<Stmt*>(S), cfg->getBumpVectorContext());
831 Block->appendConstructor(CE, CC, cfg->getBumpVectorContext());
836 Block->appendStmt(CE, cfg->getBumpVectorContext());
845 B->appendCXXRecordTypedCall(CE, CC, cfg->getBumpVectorContext());
850 B->appendStmt(CE, cfg->getBumpVectorContext());
854 B->appendInitializer(I, cfg->getBumpVectorContext());
858 B->appendNewAllocator(NE, cfg->getBumpVectorContext());
862 B->appendBaseDtor(BS, cfg->getBumpVectorContext());
866 B->appendMemberDtor(FD, cfg->getBumpVectorContext());
875 B->appendCXXRecordTypedCall(ME, CC, cfg->getBumpVectorContext());
880 cfg->getBumpVectorContext());
884 B->appendTemporaryDtor(E, cfg->getBumpVectorContext());
888 B->appendAutomaticObjDtor(VD, S, cfg->getBumpVectorContext());
892 B->appendCleanupFunction(VD, cfg->getBumpVectorContext());
896 B->appendLifetimeEnds(VD, S, cfg->getBumpVectorContext());
900 B->appendLoopExit(LoopStmt, cfg->getBumpVectorContext());
904 B->appendDeleteDtor(RD, DE, cfg->getBumpVectorContext());
909 cfg->getBumpVectorContext());
916 cfg->getBumpVectorContext());
921 B->appendScopeBegin(VD, S, cfg->getBumpVectorContext());
926 B->appendScopeEnd(VD, S, cfg->getBumpVectorContext());
1457 return ConstructionContextLayer::create(cfg->getBumpVectorContext(), Item,
1577 assert(cfg.get());
1585 assert(Succ == &cfg->getExit());
1618 VBaseSucc = Succ = B ? B : &cfg->getExit();
1674 if (CFGBlock *B = cfg->getIndirectGotoBlock())
1688 cfg->setEntry(createBlock());
1694 return std::move(cfg);
1700 CFGBlock *B = cfg->createBlock();
1712 addSuccessor(B, &cfg->getExit(), Succ);
1747 ConstructionContextLayer::create(cfg->getBumpVectorContext(), I),
2067 llvm::BumpPtrAllocator &alloc = cfg->getAllocator();
2780 addSuccessor(Block, &cfg->getExit());
2935 cfg->addSyntheticDeclStmt(DSNew, DS);
3014 cfg->addSyntheticDeclStmt(DSNew, DS);
3028 ConstructionContextLayer::create(cfg->getBumpVectorContext(), DS),
3233 ConstructionContextLayer::create(cfg->getBumpVectorContext(), R),
3239 addSuccessor(Block, &cfg->getExit());
3376 addSuccessor(NewTryTerminatedBlock, &cfg->getExit());
3383 cfg->addTryDispatchBlock(TryTerminatedBlock);
3450 cfg->getBumpVectorContext(), {E, Idx}),
3641 ConstructionContextLayer::create(cfg->getBumpVectorContext(), DS),
3690 ConstructionContextLayer::create(cfg->getBumpVectorContext(), MTE),
3966 ConstructionContextLayer::create(cfg->getBumpVectorContext(),
4066 addSuccessor(Block, &cfg->getExit());
4117 addSuccessor(NewTryTerminatedBlock, &cfg->getExit());
4125 cfg->addTryDispatchBlock(TryTerminatedBlock);
4155 addSuccessor(Block, &cfg->getExit());
4617 addSuccessor(NewTryTerminatedBlock, &cfg->getExit());
4625 cfg->addTryDispatchBlock(TryTerminatedBlock);
4827 ConstructionContextLayer::create(cfg->getBumpVectorContext(), E),
4853 ConstructionContextLayer::create(cfg->getBumpVectorContext(), NE),
4930 CFGBlock *IBlock = cfg->getIndirectGotoBlock();
4934 cfg->setIndirectGotoBlock(IBlock);
5431 StmtPrinterHelper(const CFG* cfg, const LangOptions &LO)
5433 if (!cfg)
5435 for (CFG::const_iterator I = cfg->begin(), E = cfg->end(); I != E; ++I ) {
5925 static void print_block(raw_ostream &OS, const CFG* cfg,
5937 if (&B == &cfg->getEntry())
5939 else if (&B == &cfg->getExit())
5941 else if (&B == cfg->getIndirectGotoBlock())
6141 void CFGBlock::dump(const CFG* cfg, const LangOptions &LO,
6143 print(llvm::errs(), cfg, LO, ShowColors);
6152 void CFGBlock::print(raw_ostream &OS, const CFG* cfg,
6154 StmtPrinterHelper Helper(cfg, LO);
6155 print_block(OS, cfg, *this, Helper, true, ShowColors);