Displaying 13 results from an estimated 13 matches for "getdsgraph".
2002 Nov 21
2
[LLVMdev] get TopDown DSGraph
Dear LLVM,
I was wondering if this is the right way to get TopDown DSGraph?
TDDataStructures &TD = getAnalysis<TDDataStructures>();
F is some function
DSGraph &dsg = TD.getDSGraph(F);
I found out the DSGraph I got using this method is actually bottom up
DSGraph, can you let me know why?
Thanks,
xiaodong
2010 Mar 25
4
[LLVMdev] Strange Multiple Inheritance Errors Using LLVM 2.7
...rited from both
ModulePass and the analysis group base class. That worked in LLVM 2.6,
but now in LLVM 2.7 I'm getting strange behavior. In particular, I'm
seeing the wrong functions called when virtual methods of my passes are
called. For example, when a SAFECode pass would call the getDSGraph()
method of the PoolAllocateSimple pass, the releaseMemory() method would
be called instead.
Has anyone else seen this really bizarre behavior or know what might be
causing it? Eliminating multiple inheritance seems to fix the problem,
but it seems to introduce other problems when chaining an...
2002 Nov 20
2
[LLVMdev] getScalarMap
> ......
> DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph( F );
> std::map< Value*, DSNodeHandle> scalarmap = DSG->getScalarMap();
> ......
>
> The scalarmap is always empty. I printed the size of the map which came
> out to be zero always. But the getNodeForValue works correctly for the
> same DSG, which means that the scalar...
2002 Nov 21
1
[LLVMdev] get TopDown DSGraph
...to the disk. Why is that?
Thanks,
xiaodong
On Thu, 21 Nov 2002, Chris Lattner wrote:
> > I was wondering if this is the right way to get TopDown DSGraph?
> > TDDataStructures &TD = getAnalysis<TDDataStructures>();
> > F is some function
> > DSGraph &dsg = TD.getDSGraph(F);
>
> Yes, that's the right way.
>
> > I found out the DSGraph I got using this method is actually bottom up
> > DSGraph, can you let me know why?
>
> Why do you think it's a BU graph?
>
> -Chris
>
> --
> http://llvm.cs.uiuc.edu/
> http://www.n...
2010 Mar 25
0
[LLVMdev] Strange Multiple Inheritance Errors Using LLVM 2.7
...s and the analysis group base class. That worked in LLVM
> 2.6,
> but now in LLVM 2.7 I'm getting strange behavior. In particular, I'm
> seeing the wrong functions called when virtual methods of my passes
> are
> called. For example, when a SAFECode pass would call the getDSGraph()
> method of the PoolAllocateSimple pass, the releaseMemory() method
> would
> be called instead.
>
> Has anyone else seen this really bizarre behavior or know what might
> be
> causing it? Eliminating multiple inheritance seems to fix the
> problem,
> but it seem...
2002 Nov 20
2
[LLVMdev] getScalarMap
> I tried to used the getScalarMap function of the DSGraph to get the nodes
> that the scalars point to in a function. But the getScalarMap returns a
> null map always. Is there any problem in the getScalarMap function or is
> there any "protocol" to be followed while using the function?
DSGraph::getScalarMap returns a reference to the map, so this cannot be
null. Do you
2006 Dec 01
1
[LLVMdev] DSGraph::computeCalleeCallerMapping failing
...continue;
else if( !callee->isExternal() ) // Internal Function
{
DEBUG( std::cerr<< "Processing internal callee function "<<callee->getName()<<"\n" );
dsgCaller = &TDD.getDSGraph(*fun);
dsgCallee = &TDD.getDSGraph(*callee);
DSCallSite dscs = ( dsgCaller->getDSCallSiteForCallSite(CS) );
dsgCaller->computeCalleeCallerMapping ( dscs, *callee, *dsgCallee, NodeMap);
}
}
}...
2010 Mar 25
0
[LLVMdev] Strange Multiple Inheritance Errors Using LLVM 2.7
...; ModulePass and the analysis group base class. That worked in LLVM 2.6,
> but now in LLVM 2.7 I'm getting strange behavior. In particular, I'm
> seeing the wrong functions called when virtual methods of my passes are
> called. For example, when a SAFECode pass would call the getDSGraph()
> method of the PoolAllocateSimple pass, the releaseMemory() method would
> be called instead.
>
> Has anyone else seen this really bizarre behavior or know what might be
> causing it? Eliminating multiple inheritance seems to fix the problem,
> but it seems to introduce o...
2002 Nov 20
0
[LLVMdev] getScalarMap
Specifically we did the following:
......
DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph( F );
std::map< Value*, DSNodeHandle> scalarmap = DSG->getScalarMap();
......
The scalarmap is always empty. I printed the size of the map which came
out to be zero always. But the getNodeForValue works correctly for the
same DSG, which means that the scalarmap cannot be empty. But we a...
2002 Nov 20
0
[LLVMdev] getScalarMap
Chris,
We tried that too...but still it returns an empty map.
We also saw that Scalar Type has been removed from the DSNode types. Why
is that?
Thanks,
Ganesh
On Wed, 20 Nov 2002, Chris Lattner wrote:
> > ......
> > DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph( F );
> > std::map< Value*, DSNodeHandle> scalarmap = DSG->getScalarMap();
> > ......
> >
> > The scalarmap is always empty. I printed the size of the map which came
> > out to be zero always. But the getNodeForValue works correctly for the
> > same DS...
2002 Nov 21
0
[LLVMdev] get TopDown DSGraph
> I was wondering if this is the right way to get TopDown DSGraph?
> TDDataStructures &TD = getAnalysis<TDDataStructures>();
> F is some function
> DSGraph &dsg = TD.getDSGraph(F);
Yes, that's the right way.
> I found out the DSGraph I got using this method is actually bottom up
> DSGraph, can you let me know why?
Why do you think it's a BU graph?
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
2002 Nov 21
0
[LLVMdev] Re: getAnalysis
On Thu, 21 Nov 2002, Juan Nicolas Ruiz wrote:
> sorry for sending this question just to you: What do I need to include
> or declare in order to be able to use an external analysis? I'm trying
> to do:
>
> DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph(F);
>
> I have
> #include "llvm/PassAnalysisSupport.h" // getAnalysis
Please do not ever #include this file directly, always #include Pass.h
> but still keep getting the error:
> MemLeak.cpp:34: `getAnalysis' undeclared (first use this function)
You must call it fr...
2002 Nov 20
3
[LLVMdev] getScalarMap
...v
B: [ H int]
Now X is represented ONLY in the scalar map, and it points to whatever the
scalar points to. Because the scalar nodes don't exist in the graph
anymore, we dropped the flag.
-Chris
> > > ......
> > > DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph( F );
> > > std::map< Value*, DSNodeHandle> scalarmap = DSG->getScalarMap();
> > > ......
> > >
> > > The scalarmap is always empty. I printed the size of the map which came
> > > out to be zero always. But the getNodeForValue works correctly...