本文整理汇总了C++中Analysis::configure方法的典型用法代码示例。如果您正苦于以下问题:C++ Analysis::configure方法的具体用法?C++ Analysis::configure怎么用?C++ Analysis::configure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analysis
的用法示例。
在下文中一共展示了Analysis::configure方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createAnalysis
Analysis* AnalysisFactory::createAnalysis(const std::string& name,
const StringVector& options)
{
Analysis* analysis = nullptr;
if(name == "ControlTreeAnalysis")
{
analysis = new ControlTree;
}
else if(name == "DominatorTreeAnalysis")
{
analysis = new DominatorTree;
}
else if(name == "PostDominatorTreeAnalysis")
{
analysis = new PostdominatorTree;
}
else if(name == "DataflowGraphAnalysis")
{
auto dfg = new DataflowGraph;
dfg->setPreferredSSAType(analysis::DataflowGraph::None);
analysis = dfg;
}
else if(name == "DivergenceAnalysis")
{
analysis = new DivergenceAnalysis;
}
else if(name == "AffineAnalysis")
{
analysis = new AffineAnalysis;
}
else if(name == "StructuralAnalysis")
{
analysis = new StructuralAnalysis;
}
else if(name == "ThreadFrontierAnalysis")
{
analysis = new ThreadFrontierAnalysis;
}
else if(name == "LoopAnalysis")
{
analysis = new LoopAnalysis;
}
else if(name == "ConvergentRegionAnalysis")
{
analysis = new ConvergentRegionAnalysis;
}
else if(name == "SafeRegionAnalysis")
{
analysis = new SafeRegionAnalysis;
}
else if(name == "CycleAnalysis")
{
analysis = new CycleAnalysis;
}
else if(name == "SimpleAliasAnalysis")
{
analysis = new SimpleAliasAnalysis;
}
else if(name == "ControlDependenceAnalysis")
{
analysis = new ControlDependenceAnalysis;
}
else if(name == "DataDependenceAnalysis")
{
analysis = new DataDependenceAnalysis;
}
else if(name == "MemoryDependenceAnalysis")
{
analysis = new MemoryDependenceAnalysis;
}
else if(name == "DependenceAnalysis")
{
analysis = new DependenceAnalysis;
}
else if(name == "HammockGraphAnalysis")
{
analysis = new HammockGraphAnalysis;
}
if(analysis != nullptr)
{
analysis->configure(options);
}
return analysis;
}