Displaying 6 results from an estimated 6 matches for "heapnod".
Did you mean:
heapnode
2002 Nov 21
2
[LLVMdev] DSnode type question
Dear LLVM,
When I use analyze to construct the DSGraph for the lists.c program in
test/Programs/SingleSource/Shootout directory. I found out the heap node
in the function test_list() all have type FOLDED:R. I was wondering why
it's not heapnode anymore? My pass need to use this type information to
determine whether a node is heap node. Is there any way I can know this is
a heap node in this case?
Thanks,
xiaodong
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 Dec 02
1
[LLVMdev] DSnode type question
...ov 2002, Chris Lattner wrote:
> > When I use analyze to construct the DSGraph for the lists.c program in
> > test/Programs/SingleSource/Shootout directory. I found out the heap node
> > in the function test_list() all have type FOLDED:R. I was wondering why
> > it's not heapnode anymore? My pass need to use this type information to
> > determine whether a node is heap node. Is there any way I can know this is
> > a heap node in this case?
>
> Folded nodes are nodes where the type information in LLVM isn't good
> enough to distinguish fields, there...
2002 Nov 10
0
[LLVMdev] Find mallocs from a DSNode
...roblem.
Sorry :)
> 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 21
0
[LLVMdev] DSnode type question
> When I use analyze to construct the DSGraph for the lists.c program in
> test/Programs/SingleSource/Shootout directory. I found out the heap node
> in the function test_list() all have type FOLDED:R. I was wondering why
> it's not heapnode anymore? My pass need to use this type information to
> determine whether a node is heap node. Is there any way I can know this is
> a heap node in this case?
Folded nodes are nodes where the type information in LLVM isn't good
enough to distinguish fields, therefore we need to fold the...
2002 Nov 10
2
[LLVMdev] Find mallocs from a DSNode
...gt; 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...
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 a...