search for: another_pred

Displaying 4 results from an estimated 4 matches for "another_pred".

2002 Dec 06
3
[LLVMdev] Tarjan+function_ptrs == trouble ? (fwd)
...e details before I can help. I assume this has to do > with data structure analysis? Can you provide a testcase? > > -Chris > > -------------- next part -------------- #include <stdlib.h> #include <stdio.h> //#define WORKS int * a_global; int a_predicate = 1; int another_pred =0; int func_one() { return 1; } int func_two() { return 2; } int func_three() { return 3; } int main() { int (*func_ptr)(); if(a_predicate) func_ptr = func_one; else if(another_pred) func_ptr = func_two; else func_ptr = func_three;...
2002 Dec 06
1
[LLVMdev] Tarjan+function_ptrs == trouble ?
...t; RegisterOpt<Test> Z("test", "test"); > > > -------------------- Testcase ------------------------ > > #include <stdlib.h> > #include <stdio.h> > > //#define WORKS > > int * a_global; > > int a_predicate = 1; > int another_pred =0; > > int func_one() > { > return 1; > } > > int func_two() > { > return 2; > } > > int func_three() > { > return 3; > } > > int main() > { > int (*func_ptr)(); > > if(a_predicate) > func_ptr = func...
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 ?
...U.setPreservesAll(); AU.addRequired<CallGraph>(); }; }; RegisterOpt<Test> Z("test", "test"); -------------------- Testcase ------------------------ #include <stdlib.h> #include <stdio.h> //#define WORKS int * a_global; int a_predicate = 1; int another_pred =0; int func_one() { return 1; } int func_two() { return 2; } int func_three() { return 3; } int main() { int (*func_ptr)(); if(a_predicate) func_ptr = func_one; else if(another_pred) func_ptr = func_two; else func_ptr = func_three; #ifdef W...