Displaying 3 results from an estimated 3 matches for "unknownnode".
2002 Nov 10
2
[LLVMdev] Find mallocs from a DSNode
Is there some efficient way to find the malloc instructions which point
to the memory represented by a DSNode? Right now the only way I see is
by iterating through the value map in the DSGraph object and finding
every value that points to my DSNode.
A possibly related question: is there a way to tell that the node has
been merged, and if so, what types of nodes went into the merge?
Thanks,
2002 Nov 10
0
[LLVMdev] Find mallocs from a DSNode
...A possibly related question: is there a way to tell that the node has
> been merged, and if so, what types of nodes went into the merge?
Yup, DSNode::NodeType contains flags for the node. There are four flags
that indicate the composition of the node: DSNode::AllocaNode, HeapNode,
GlobalNode, UnknownNode.
When two nodes are merged, their Flags are bitwise or'd together...
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
2002 Nov 10
2
[LLVMdev] Find mallocs from a DSNode
...tion: is there a way to tell that the node has
> > been merged, and if so, what types of nodes went into the merge?
>
> Yup, DSNode::NodeType contains flags for the node. There are four flags
> that indicate the composition of the node: DSNode::AllocaNode, HeapNode,
> GlobalNode, UnknownNode.
>
> When two nodes are merged, their Flags are bitwise or'd together...
I realized that, but what if two nodes of the same type are merged? Their
flags will not indicate that a merge has occurred. I'm concerned about the
case where two malloc nodes are merged, because then if free...