Displaying 1 result from an estimated 1 matches for "pf01".
Did you mean:
p01
2009 Oct 02
1
[LLVMdev] alias analysis and functions
...'t get the expected result: a pointer that clearly may point to a function is
reported as NoAlias.
I use -anders-aa -aa-eval -print-no-aliases -print-may-aliases -print-must-aliases
Here is a test case:
///////////////try_calls_aliases.c
#include <stdio.h>
typedef int (*PF)();
PF pf01=0;
PF pf2=0;
int pointed_to_function0() {
printf("pointed_to_function0\n");
return 1;
}
int pointed_to_function1() {
pf01 = pointed_to_function1;
printf("pointed_to_function1\n");
return 1;
}
void ptr_function_caller(PF pf) {
printf("ptr_function_caller\n&quo...