Displaying 4 results from an estimated 4 matches for "tarj_end".
Did you mean:
part_end
2002 Dec 06
3
[LLVMdev] Tarjan+function_ptrs == trouble ? (fwd)
Test Cases:
(attached)
Iteration code:
(...)
typedef TarjanSCC_iterator<CallGraph*> MyTarjan;
CallGraph& callGraph = getAnalysis<CallGraph>();
MyTarjan iter = tarj_begin(&callGraph);
MyTarjan end = tarj_end(&callGraph);
while(iter!=end)
iter++;
(...)
if you take the time to print out the function each non-looping node iter
traverses, it never reaches main...
Thanks,
Dave
On Fri, 6 Dec 2002, Chris Lattner wrote:
> > Recently I incorporated code into my project such that function point...
2002 Dec 06
1
[LLVMdev] Tarjan+function_ptrs == trouble ?
...rt/TarjanSCCIterator.h"
>
> struct Test : public Pass {
> virtual bool run(Module &F) {
> typedef TarjanSCC_iterator<CallGraph*> MyTarjan;
> CallGraph& callGraph = getAnalysis<CallGraph>();
> for (MyTarjan I = tarj_begin(&callGraph), E = tarj_end(&callGraph); I != E; ++I) {
> SCC<CallGraph*> *S = *I;
> assert(S);
> std::cerr << "New SCC\n";
> for (unsigned i = 0, e = S->size(); i != e; ++i)
> if (Function *F = (*S)[i]->getFunction())
> std::cerr <...
2002 Dec 06
2
[LLVMdev] Tarjan+function_ptrs == trouble ? (fwd)
Dear LLVM,
Recently I incorporated code into my project such that function pointers
were supported, however it seems that the TarjanSCC_iterator no longer
works on the call graph... main() is no longer reached while the function
pointers are... I can provide code, but I have a feeling there is a
simple fix... Has anyone gone through this?
Thanks,
Dave
2002 Dec 06
0
[LLVMdev] Tarjan+function_ptrs == trouble ?
...s.h"
#include "Support/TarjanSCCIterator.h"
struct Test : public Pass {
virtual bool run(Module &F) {
typedef TarjanSCC_iterator<CallGraph*> MyTarjan;
CallGraph& callGraph = getAnalysis<CallGraph>();
for (MyTarjan I = tarj_begin(&callGraph), E = tarj_end(&callGraph); I != E; ++I) {
SCC<CallGraph*> *S = *I;
assert(S);
std::cerr << "New SCC\n";
for (unsigned i = 0, e = S->size(); i != e; ++i)
if (Function *F = (*S)[i]->getFunction())
std::cerr << " Node: " <...