LLVM API Documentation
#include <DSGraph.h>
Collaboration diagram for llvm::DSGraph:
Definition at line 176 of file DSGraph.h.
typedef std::list<DSCallSite>::const_iterator llvm::DSGraph::afc_iterator |
typedef std::list<DSCallSite>::const_iterator llvm::DSGraph::fc_iterator |
typedef hash_multimap<DSNodeHandle, const DSNode*> llvm::DSGraph::InvNodeMapTy |
typedef NodeListTy::const_iterator llvm::DSGraph::node_const_iterator |
node_iterator/begin/end - Iterate over all of the nodes in the graph. Be extremely careful with these methods because any merging of nodes could cause the node to be removed from this list. This means that if you are iterating over nodes and doing something that could cause _any_ node to merge, your node_iterators into this graph can be invalidated.
typedef ilist<DSNode> llvm::DSGraph::NodeListTy |
typedef hash_map<const DSNode*, DSNodeHandle> llvm::DSGraph::NodeMapTy |
typedef ReturnNodesTy::const_iterator llvm::DSGraph::retnodes_iterator |
typedef hash_map<Function*, DSNodeHandle> llvm::DSGraph::ReturnNodesTy |
llvm::DSGraph::DSGraph | ( | EquivalenceClasses< GlobalValue * > & | ECs, | |
const TargetData & | td | |||
) | [inline] |
DSGraph::DSGraph | ( | EquivalenceClasses< GlobalValue * > & | ECs, | |
const TargetData & | TD, | |||
Function & | F, | |||
DSGraph * | GlobalsGraph | |||
) |
Definition at line 180 of file Analysis/DataStructure/Local.cpp.
References llvm::Timer::addPeakMemoryMeasurement(), B, DEBUG, F, FunctionCalls, llvm::DSScalarMap::global_begin(), llvm::DSScalarMap::global_end(), GV, I, llvm::GlobalValue::isExternal(), KeepUnreachableGlobals, MarkFormalArgs, markIncompleteNodes(), llvm::ReachabilityCloner::merge(), RC, removeDeadNodes(), ReturnNodes, ScalarMap, and ScalarMap.
DSGraph::DSGraph | ( | const DSGraph & | DSG, | |
EquivalenceClasses< GlobalValue * > & | ECs, | |||
unsigned | CloneFlags = 0 | |||
) |
DSGraph::~DSGraph | ( | ) |
Definition at line 1211 of file DataStructure.cpp.
References llvm::DSScalarMap::clear(), E, NI, node_begin(), and node_end().
void llvm::DSGraph::addNode | ( | DSNode * | N | ) | [inline] |
addNode - Add a new node to the graph.
Definition at line 284 of file DSGraph.h.
Referenced by llvm::DSNode::DSNode().
addObjectToGraph - This method can be used to add global, stack, and heap objects to the graph. This can be used when updating DSGraphs due to the introduction of new temporary objects. The new object is not pointed to and does not point to any other objects in the graph. Note that this method initializes the type of the DSNode to the declared type of the object if UseDeclaredType is true, otherwise it leaves the node type as void.
Definition at line 1247 of file DataStructure.cpp.
References llvm::DSNode::addGlobal(), AI, llvm::Value::getType(), MI, llvm::DSNode::setAllocaNodeMarker(), llvm::DSNode::setHeapNodeMarker(), and Ty.
afc_iterator llvm::DSGraph::afc_begin | ( | ) | const [inline] |
Definition at line 315 of file DSGraph.h.
Referenced by AssertAuxCallNodesInGraph(), cloneInto(), GetAllAuxCallees(), mergeInGraph(), removeDeadNodes(), and llvm::TDDataStructures::runOnModule().
afc_iterator llvm::DSGraph::afc_end | ( | ) | const [inline] |
Definition at line 316 of file DSGraph.h.
Referenced by AssertAuxCallNodesInGraph(), cloneInto(), GetAllAuxCallees(), mergeInGraph(), removeDeadNodes(), and llvm::TDDataStructures::runOnModule().
void DSGraph::AssertAuxCallNodesInGraph | ( | ) | const |
Definition at line 2233 of file DataStructure.cpp.
References afc_begin(), afc_end(), AssertCallSiteInGraph(), and E.
Referenced by AssertGraphOK().
void DSGraph::AssertCallNodesInGraph | ( | ) | const |
Definition at line 2229 of file DataStructure.cpp.
References AssertCallSiteInGraph(), E, fc_begin(), and fc_end().
Referenced by AssertGraphOK().
void DSGraph::AssertCallSiteInGraph | ( | const DSCallSite & | CS | ) | const |
Definition at line 2215 of file DataStructure.cpp.
References AssertNodeInGraph(), llvm::DSCallSite::getCalleeNode(), llvm::DSNodeHandle::getNode(), llvm::DSCallSite::getNumPtrArgs(), llvm::DSCallSite::getPtrArg(), llvm::DSCallSite::getRetVal(), and llvm::DSCallSite::isIndirectCall().
Referenced by AssertAuxCallNodesInGraph(), and AssertCallNodesInGraph().
void DSGraph::AssertGraphOK | ( | ) | const |
Definition at line 2238 of file DataStructure.cpp.
References AI, AssertAuxCallNodesInGraph(), AssertCallNodesInGraph(), AssertNodeContainsGlobal(), AssertNodeInGraph(), llvm::DSScalarMap::begin(), E, llvm::DSScalarMap::end(), F, getNodeForValue(), llvm::AllocationInst::getType(), llvm::DataStructureAnalysis::isPointerType(), NI, node_begin(), and node_end().
Referenced by BuildGlobalECs(), EliminateUsesOfECGlobals(), and removeDeadNodes().
void DSGraph::AssertNodeContainsGlobal | ( | const DSNode * | N, | |
GlobalValue * | GV | |||
) | const |
Definition at line 2210 of file DataStructure.cpp.
References llvm::DSNode::globals_begin(), llvm::DSNode::globals_end(), and GV.
Referenced by AssertGraphOK().
void llvm::DSGraph::AssertNodeInGraph | ( | const DSNode * | N | ) | const [inline] |
Definition at line 507 of file DSGraph.h.
References llvm::DSNode::getParentGraph().
Referenced by AssertCallSiteInGraph(), and AssertGraphOK().
void DSGraph::cloneInto | ( | const DSGraph & | G, | |
unsigned | CloneFlags = 0 | |||
) |
cloneInto - Clone the specified DSGraph into the current graph.
The CloneFlags member controls various aspects of the cloning process.
Definition at line 1274 of file DataStructure.cpp.
References llvm::Timer::addPeakMemoryMeasurement(), afc_begin(), afc_end(), llvm::DSNode::AllocaNode, llvm::DSScalarMap::begin(), llvm::DSNode::DEAD, DontCloneAuxCallNodes, DontCloneCallNodes, E, llvm::DSScalarMap::end(), fc_begin(), fc_end(), G, llvm::DSNodeHandle::getNode(), llvm::DSScalarMap::getRawEntryRef(), H, llvm::DSNode::Incomplete, llvm::DSNode::maskNodeTypes(), llvm::DSNode::Modified, node_begin(), node_end(), llvm::DSNode::Read, retnodes_begin(), retnodes_end(), ScalarMap, StripAllocaBit, StripIncompleteBit, StripModRefBits, TIME_REGION, and llvm::X.
Referenced by DSGraph().
void DSGraph::computeCalleeCallerMapping | ( | DSCallSite | CS, | |
const Function & | Callee, | |||
DSGraph & | CalleeGraph, | |||
NodeMapTy & | NodeMap | |||
) |
computeCalleeCallerMapping - Given a call from a function in the current graph to the 'Callee' function (which lives in 'CalleeGraph'), compute the mapping of nodes from the callee to nodes in the caller.
Definition at line 2344 of file DataStructure.cpp.
References computeNodeMapping(), E, getCallSiteForArguments(), llvm::DSCallSite::getNumPtrArgs(), llvm::DSCallSite::getPtrArg(), llvm::DSCallSite::getRetVal(), getScalarMap(), GI, llvm::DSScalarMap::global_begin(), llvm::DSScalarMap::global_count(), llvm::DSScalarMap::global_end(), and llvm::DSScalarMap::global_size().
void DSGraph::computeGGToGMapping | ( | InvNodeMapTy & | InvNodeMap | ) |
computeGGToGMapping - Compute the mapping of nodes in the global graph to nodes in this graph.
Definition at line 2329 of file DataStructure.cpp.
References computeGToGGMapping().
void DSGraph::computeGToGGMapping | ( | NodeMapTy & | NodeMap | ) |
computeGToGGMapping - Compute the mapping of nodes in the graph to nodes in the globals graph.
Definition at line 2317 of file DataStructure.cpp.
References computeNodeMapping(), E, getGlobalsGraph(), getNodeForValue(), getScalarMap(), llvm::DSScalarMap::global_begin(), and llvm::DSScalarMap::global_end().
Referenced by CheckAllGraphs(), and computeGGToGMapping().
void DSGraph::computeNodeMapping | ( | const DSNodeHandle & | NH1, | |
const DSNodeHandle & | NH2, | |||
NodeMapTy & | NodeMap, | |||
bool | StrictChecking = true | |||
) | [static] |
computeNodeMapping - Given roots in two different DSGraphs, traverse the nodes reachable from the two graphs, computing the mapping of nodes from the first to the second graph.
Definition at line 2274 of file DataStructure.cpp.
References llvm::DSNode::getLink(), llvm::DSNodeHandle::getNode(), llvm::DSNodeHandle::getOffset(), llvm::DSNode::getSize(), llvm::DSNode::isNodeCompletelyFolded(), llvm::DSNodeHandle::isNull(), llvm::DS::PointerSize, and llvm::DSNodeHandle::setTo().
Referenced by computeCalleeCallerMapping(), and computeGToGGMapping().
bool llvm::DSGraph::containsFunction | ( | Function * | F | ) | const [inline] |
void DSGraph::dump | ( | ) | const |
dump - call print(std::cerr), for use from the debugger...
Definition at line 1226 of file DataStructure.cpp.
References print().
fc_iterator llvm::DSGraph::fc_begin | ( | ) | const [inline] |
Definition at line 309 of file DSGraph.h.
Referenced by AssertCallNodesInGraph(), cloneInto(), and removeDeadNodes().
fc_iterator llvm::DSGraph::fc_end | ( | ) | const [inline] |
Definition at line 310 of file DSGraph.h.
Referenced by AssertCallNodesInGraph(), cloneInto(), and removeDeadNodes().
const std::list<DSCallSite>& llvm::DSGraph::getAuxFunctionCalls | ( | ) | const [inline] |
std::list<DSCallSite>& llvm::DSGraph::getAuxFunctionCalls | ( | ) | [inline] |
getAuxFunctionCalls - Get the call sites as modified by whatever passes have been run.
Definition at line 302 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), and writeGraphToFile().
DSCallSite DSGraph::getCallSiteForArguments | ( | Function & | F | ) | const |
getCallSiteForArguments - Get the arguments and return value bindings for the specified function in the current graph.
Definition at line 1614 of file DataStructure.cpp.
References E, F, getNodeForValue(), getReturnNodeFor(), and llvm::DataStructureAnalysis::isPointerType().
Referenced by computeCalleeCallerMapping().
DSCallSite DSGraph::getDSCallSiteForCallSite | ( | CallSite | CS | ) | const |
getDSCallSiteForCallSite - Given an LLVM CallSite object that is live in the context of this graph, return the DSCallSite for it.
Definition at line 1626 of file DataStructure.cpp.
References llvm::CallSite::arg_begin(), llvm::CallSite::arg_end(), E, F, llvm::CallSite::getCalledFunction(), llvm::CallSite::getInstruction(), getNodeForValue(), llvm::Value::getType(), and llvm::DataStructureAnalysis::isPointerType().
void DSGraph::getFunctionArgumentsForCall | ( | Function * | F, | |
std::vector< DSNodeHandle > & | Args | |||
) | const |
getFunctionArgumentsForCall - Given a function that is currently in this graph, return the DSNodeHandles that correspond to the pointer-compatible function arguments. The vector is filled in with the return value (or null if it is not pointer compatible), followed by all of the pointer-compatible arguments.
Definition at line 1393 of file DataStructure.cpp.
References AI, E, F, getNodeForValue(), getReturnNodeFor(), llvm::AllocationInst::getType(), and llvm::DataStructureAnalysis::isPointerType().
Referenced by mergeInGraph().
std::list<DSCallSite>& llvm::DSGraph::getFunctionCalls | ( | ) | [inline] |
const std::list<DSCallSite>& llvm::DSGraph::getFunctionCalls | ( | ) | const [inline] |
getFunctionCalls - Return the list of call sites in the original local graph...
Definition at line 296 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), printCollection(), and writeGraphToFile().
std::string DSGraph::getFunctionNames | ( | ) | const |
getFunctionNames - Return a space separated list of the name of the functions in this graph (if any)
Definition at line 1189 of file DataStructure.cpp.
References getReturnNodes(), retnodes_begin(), retnodes_end(), and size.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::getGraphName().
EquivalenceClasses<GlobalValue*>& llvm::DSGraph::getGlobalECs | ( | ) | const [inline] |
getGlobalECs - Return the set of equivalence classes that the global variables in the program form.
Definition at line 250 of file DSGraph.h.
References llvm::DSScalarMap::getGlobalECs().
Referenced by llvm::DSNode::addFullFunctionList(), llvm::DSNode::addFullGlobalsList(), and getCaption().
DSGraph* llvm::DSGraph::getGlobalsGraph | ( | ) | const [inline] |
Definition at line 245 of file DSGraph.h.
Referenced by computeGToGGMapping(), llvm::EquivClassGraphs::runOnModule(), llvm::CompleteBUDataStructures::runOnModule(), and llvm::BUDataStructures::runOnModule().
unsigned llvm::DSGraph::getGraphSize | ( | ) | const [inline] |
getGraphSize - Return the number of nodes in this graph.
Definition at line 365 of file DSGraph.h.
Referenced by printCollection(), and writeGraphToFile().
const DSNodeHandle& llvm::DSGraph::getNodeForValue | ( | Value * | V | ) | const [inline] |
Definition at line 323 of file DSGraph.h.
References llvm::DSScalarMap::end(), llvm::DSScalarMap::find(), I, and V.
DSNodeHandle& llvm::DSGraph::getNodeForValue | ( | Value * | V | ) | [inline] |
getNodeForValue - Given a value that is used or defined in the body of the current function, return the DSNode that it points to.
Definition at line 321 of file DSGraph.h.
References V.
Referenced by AssertGraphOK(), computeGToGGMapping(), getCallSiteForArguments(), llvm::ReachabilityCloner::getClonedNH(), getDSCallSiteForCallSite(), getFunctionArgumentsForCall(), llvm::EquivClassGraphs::getSomeCalleeForCallSite(), markIncompleteNodes(), llvm::ReachabilityCloner::merge(), mergeInGraph(), removeTriviallyDeadNodes(), llvm::EquivClassGraphs::runOnModule(), llvm::CompleteBUDataStructures::runOnModule(), and llvm::BUDataStructures::runOnModule().
const DSNodeHandle& llvm::DSGraph::getReturnNodeFor | ( | Function & | F | ) | const [inline] |
DSNodeHandle& llvm::DSGraph::getReturnNodeFor | ( | Function & | F | ) | [inline] |
getReturnNodeFor - Return the return node for the specified function.
Definition at line 345 of file DSGraph.h.
Referenced by getCallSiteForArguments(), and getFunctionArgumentsForCall().
ReturnNodesTy& llvm::DSGraph::getReturnNodes | ( | ) | [inline] |
const ReturnNodesTy& llvm::DSGraph::getReturnNodes | ( | ) | const [inline] |
getReturnNodes - Return the mapping of functions to their return nodes for this graph.
Definition at line 340 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), llvm::TDDataStructures::deleteValue(), llvm::BUDataStructures::deleteValue(), getFunctionNames(), and llvm::DOTGraphTraits< const DSGraph * >::getGraphName().
const ScalarMapTy& llvm::DSGraph::getScalarMap | ( | ) | const [inline] |
ScalarMapTy& llvm::DSGraph::getScalarMap | ( | ) | [inline] |
getScalarMap - Get a map that describes what the nodes the scalars in this function point to...
Definition at line 290 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), llvm::DSNode::addGlobal(), llvm::DSNode::assertOK(), BuildGlobalECs(), computeCalleeCallerMapping(), computeGToGGMapping(), llvm::TDDataStructures::copyValue(), llvm::BUDataStructures::copyValue(), llvm::TDDataStructures::deleteValue(), llvm::BUDataStructures::deleteValue(), EliminateUsesOfECGlobals(), getCaption(), llvm::ReachabilityCloner::getClonedNH(), mergeInGraph(), removeDeadNodes(), llvm::TDDataStructures::runOnModule(), llvm::EquivClassGraphs::runOnModule(), llvm::CompleteBUDataStructures::runOnModule(), and llvm::BUDataStructures::runOnModule().
const TargetData& llvm::DSGraph::getTargetData | ( | ) | const [inline] |
getTargetData - Return the TargetData object for the current target.
Definition at line 256 of file DSGraph.h.
Referenced by llvm::BUDataStructures::CreateGraphForExternalFunction(), and llvm::DSNode::getTargetData().
void DSGraph::markIncompleteNodes | ( | unsigned | Flags | ) |
Definition at line 1691 of file DataStructure.cpp.
References E, F, getNodeForValue(), llvm::DSScalarMap::global_begin(), llvm::DSScalarMap::global_end(), IgnoreGlobals, llvm::DataStructureAnalysis::isPointerType(), MarkFormalArgs, markIncomplete(), markIncompleteNode(), and shouldPrintAuxCalls().
Referenced by DSGraph(), llvm::EquivClassGraphs::runOnModule(), and llvm::BUDataStructures::runOnModule().
void llvm::DSGraph::maskIncompleteMarkers | ( | ) | [inline] |
Definition at line 401 of file DSGraph.h.
References llvm::DSNode::Incomplete, and maskNodeTypes().
Referenced by llvm::BUDataStructures::runOnModule().
void llvm::DSGraph::maskNodeTypes | ( | unsigned | Mask | ) | [inline] |
maskNodeTypes - Apply a mask to all of the node types in the graph. This is useful for clearing out markers like Incomplete.
Definition at line 397 of file DSGraph.h.
References E, I, node_begin(), and node_end().
Referenced by maskIncompleteMarkers().
void DSGraph::mergeInGraph | ( | const DSCallSite & | CS, | |
Function & | F, | |||
const DSGraph & | Graph, | |||
unsigned | CloneFlags | |||
) |
mergeInGraph - This method is the same as the above method, but the argument bindings are provided by using the formal arguments of F.
Definition at line 1602 of file DataStructure.cpp.
References F, getFunctionArgumentsForCall(), and mergeInGraph().
void DSGraph::mergeInGraph | ( | const DSCallSite & | CS, | |
std::vector< DSNodeHandle > & | Args, | |||
const DSGraph & | G2, | |||
unsigned | CloneFlags | |||
) |
mergeInGraph - This graph merges in the minimal number of nodes from G2 into 'this' graph, merging the bindings specified by the call site (in this graph) with the bindings specified by the vector in G2. If the StripAlloca's argument is 'StripAllocaBit' then Alloca markers are removed from nodes.
Definition at line 1514 of file DataStructure.cpp.
References afc_begin(), afc_end(), DontCloneAuxCallNodes, DontCloneCallNodes, E, llvm::ReachabilityCloner::getClonedNH(), llvm::DSNodeHandle::getNode(), getNodeForValue(), llvm::DSCallSite::getNumPtrArgs(), llvm::DSCallSite::getPtrArg(), llvm::DSCallSite::getRetVal(), getScalarMap(), GI, llvm::DSScalarMap::global_begin(), llvm::DSScalarMap::global_end(), llvm::DSNodeHandle::isNull(), llvm::ReachabilityCloner::merge(), RC, TIME_REGION, and llvm::X.
Referenced by mergeInGraph().
node_const_iterator llvm::DSGraph::node_begin | ( | ) | const [inline] |
node_iterator llvm::DSGraph::node_begin | ( | ) | [inline] |
Definition at line 270 of file DSGraph.h.
Referenced by AssertGraphOK(), BuildGlobalECs(), cloneInto(), maskNodeTypes(), llvm::GraphTraits< const DSGraph * >::nodes_begin(), llvm::GraphTraits< DSGraph * >::nodes_begin(), removeTriviallyDeadNodes(), and ~DSGraph().
node_const_iterator llvm::DSGraph::node_end | ( | ) | const [inline] |
node_iterator llvm::DSGraph::node_end | ( | ) | [inline] |
Definition at line 271 of file DSGraph.h.
Referenced by AssertGraphOK(), BuildGlobalECs(), cloneInto(), maskNodeTypes(), llvm::GraphTraits< const DSGraph * >::nodes_end(), llvm::GraphTraits< DSGraph * >::nodes_end(), removeTriviallyDeadNodes(), and ~DSGraph().
void DSGraph::print | ( | std::ostream & | O | ) | const |
print - Print a dot graph to the specified ostream...
Definition at line 235 of file Printer.cpp.
References llvm::WriteGraph().
Referenced by dump(), viewGraph(), and writeGraphToFile().
void DSGraph::removeDeadNodes | ( | unsigned | Flags | ) |
Definition at line 2060 of file DataStructure.cpp.
References afc_begin(), afc_end(), AssertGraphOK(), AuxFunctionCalls, llvm::DSScalarMap::begin(), CallSiteUsesAliveArgs(), CanReachAliveNodes(), DEBUG, llvm::ReachabilityCloner::destroy(), E, llvm::DSScalarMap::end(), llvm::DSScalarMap::erase(), fc_begin(), fc_end(), llvm::DSScalarMap::find(), llvm::ReachabilityCloner::getClonedNH(), llvm::DSNodeHandle::getNode(), getScalarMap(), llvm::DSNode::markReachableNodes(), llvm::ReachabilityCloner::merge(), NI, NumDNE, removeTriviallyDeadNodes(), RemoveUnreachableGlobals, StripAllocaBit, StripIncompleteBit, TIME_REGION, Visited, llvm::X, and Y.
Referenced by DSGraph().
void DSGraph::removeTriviallyDeadNodes | ( | ) |
removeTriviallyDeadNodes - After the graph has been constructed, this method removes all unreachable nodes that are created because they got merged with other nodes in the graph. This is used as the first step of removeDeadNodes.
Definition at line 1897 of file DataStructure.cpp.
References llvm::DSScalarMap::begin(), E, llvm::DSScalarMap::end(), llvm::DSScalarMap::erase(), llvm::DSNodeHandle::getNode(), getNodeForValue(), l, NI, Node, node_begin(), node_end(), NumTrivialDNE, NumTrivialGlobalDNE, removeIdenticalCalls(), TIME_REGION, and llvm::X.
Referenced by removeDeadNodes(), llvm::TDDataStructures::runOnModule(), llvm::EquivClassGraphs::runOnModule(), llvm::CompleteBUDataStructures::runOnModule(), and llvm::BUDataStructures::runOnModule().
retnodes_iterator llvm::DSGraph::retnodes_begin | ( | ) | const [inline] |
Definition at line 333 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), CheckAllGraphs(), cloneInto(), getCaption(), getFunctionNames(), and llvm::DSNode::mergeTypeInfo().
retnodes_iterator llvm::DSGraph::retnodes_end | ( | ) | const [inline] |
Definition at line 334 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), cloneInto(), getCaption(), getFunctionNames(), and llvm::DSNode::mergeTypeInfo().
void llvm::DSGraph::setGlobalsGraph | ( | DSGraph * | G | ) | [inline] |
void llvm::DSGraph::setPrintAuxCalls | ( | ) | [inline] |
setPrintAuxCalls - If you call this method, the auxillary call vector will be printed instead of the standard call vector to the dot file.
Definition at line 261 of file DSGraph.h.
Referenced by llvm::TDDataStructures::runOnModule(), llvm::EquivClassGraphs::runOnModule(), llvm::CompleteBUDataStructures::runOnModule(), and llvm::BUDataStructures::runOnModule().
bool llvm::DSGraph::shouldPrintAuxCalls | ( | ) | const [inline] |
Definition at line 262 of file DSGraph.h.
Referenced by llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), markIncompleteNodes(), and writeGraphToFile().
void DSGraph::spliceFrom | ( | DSGraph & | RHS | ) |
spliceFrom - Logically perform the operation of cloning the RHS graph into this graph, then clearing the RHS graph. Instead of performing this as two seperate operations, do it as a single, much faster, one.
Definition at line 1347 of file DataStructure.cpp.
References AuxFunctionCalls, E, FunctionCalls, Nodes, ReturnNodes, ScalarMap, and llvm::DSScalarMap::spliceFrom().
void llvm::DSGraph::unlinkNode | ( | DSNode * | N | ) | [inline] |
void llvm::DSGraph::updateFromGlobalGraph | ( | ) |
void DSGraph::viewGraph | ( | ) | const |
viewGraph - Emit a dot graph, run 'dot', run gv on the postscript file, then cleanup. For use from the debugger.
Definition at line 258 of file Printer.cpp.
void DSGraph::writeGraphToFile | ( | std::ostream & | O, | |
const std::string & | GraphName | |||
) | const |
Definition at line 239 of file Printer.cpp.
References F, Filename, getAuxFunctionCalls(), getFunctionCalls(), getGraphSize(), print(), and shouldPrintAuxCalls().
Referenced by printCollection().