Displaying 2 results from an estimated 2 matches for "dereffun".
2017 May 24
3
GraphTraits dereferencing
...ChildIteratorType;
// not sure this is necessary anymore as NodeRef must be a pointer
typedef std::pointer_to_unary_function<DSNode *, DSNode&> DerefFun;
// nodes_iterator/begin/end - Allow iteration over all nodes in the graph
typedef mapped_iterator<DSGraph::node_iterator, DerefFun> nodes_iterator;
sta...
2013 Jun 05
0
[LLVMdev] CallGraph, GraphTraits and DominatorTree
...void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<CallGraph>();
}
Error list:
/Developer/llvm/include/llvm/Analysis/Dominators.h:666:35: error: no viable
conversion from 'typename TraitsTy::nodes_iterator' (aka
'mapped_iterator<CallGraph::iterator, DerefFun>') to 'NodeType *' (aka
'llvm::CallGraphNode *')
if (TraitsTy::child_begin(I) == TraitsTy::child_end(I))
^
/Developer/llvm/lib/Transforms/ThreadBufferOptimizer/ThreadBufferOptimizer.h:59:10:
note: in instantiation of function templ...