本文整理汇总了C++中CFG::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ CFG::getName方法的具体用法?C++ CFG::getName怎么用?C++ CFG::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFG
的用法示例。
在下文中一共展示了CFG::getName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void octeonTargetDriver::init(CFG<MIRNode>& cfg)
{
algorithms.push_back(new CFGEdgeSplitter<MIRNode>(cfg));
//jump to jump elimination ?
#ifdef _DEBUG_CFG_BUILD
{
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, NonSSAPrinter<MIRNode> >(cfg);
ostringstream print_name;
print_name << "Dopo lo split dei critical edge " << cfg.getName();
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
algorithms.push_back(new BasicBlockElimination<CFG<MIRNode> >(cfg));
#ifdef _DEBUG_CFG_BUILD
{
ostringstream print_name;
print_name << "Dopo la linearizzazione della memoria " << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, NonSSAPrinter<MIRNode> >(cfg);
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
algorithms.push_back(new ComputeDominance<CFG<MIRNode> >(cfg));
algorithms.push_back(new SSA< CFG<MIRNode> >(cfg));
#ifdef _DEBUG_SSA
{
ostringstream print_name;
print_name << "Dopo forma SSA " << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, SSAPrinter<MIRNode> >(cfg);
algorithms.push_back(new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
if(options->OptLevel > 0)
{
algorithms.push_back(new Optimizer< CFG<MIRNode> >(cfg));
#ifdef _DEBUG_OPTIMIZER
ostringstream print_name;
print_name << "Dopo Ottimizzazioni" << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, SSAPrinter<MIRNode> >(cfg);
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
#endif
}
else
{
algorithms.push_back(new CanonicalizationStep< CFG<MIRNode> >(cfg));
}
algorithms.push_back(new UndoSSA< CFG<MIRNode> >(cfg));
#ifdef _DEBUG_SSA
{
ostringstream print_name;
print_name << "Uscita da forma SSA " << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, SSAPrinter<MIRNode> >(cfg);
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
algorithms.push_back(new BasicBlockElimination<CFG<MIRNode> >(cfg));
octeonChecker* checker = new octeonChecker();
algorithms.push_back(new Fold_Copies< CFG<MIRNode> >(cfg, checker));
algorithms.push_back(new KillRedundantCopy< CFG<MIRNode> >(cfg));
#ifdef _DEBUG_SSA
{
ostringstream print_name;
print_name << "Uscita da copy folding " << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, SSAPrinter<MIRNode> >(cfg);
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
{
// Register mapping to a dense space
set<uint32_t> reg_set;
reg_set.insert(Application::getCoprocessorRegSpace());
algorithms.push_back( new Register_Mapping<CFG<MIRNode> >(cfg, 1, reg_set));
}
#ifdef _DEBUG_SSA
{
ostringstream print_name;
print_name << "Uscita da register mapping" << cfg.getName();
CFGPrinter<MIRNode>* codeprinter = new CodePrint<MIRNode, SSAPrinter<MIRNode> >(cfg);
algorithms.push_back( new DoPrint<MIRNode>(/*cout,*/string("stdout"), codeprinter, print_name.str()));
}
#endif
algorithms.push_back( new EmptyBBElimination<CFG<MIRNode> >(cfg));
algorithms.push_back( new BasicBlockElimination<CFG<MIRNode> >(cfg));
algorithms.push_back( new ComputeDominance<CFG<MIRNode> >(cfg));
algorithms.push_back( new LoopAnalyzer<MIRNode>(cfg));
//.........这里部分代码省略.........