Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef w2f_weak_INCLUDED
00037 #define w2f_weak_INCLUDED
00038
00039
00040
00041
00042
00043
00044
00045 #if defined(__linux__) || defined(_GCC_NO_PRAGMAWEAK) || defined(__CYGWIN__)
00046
00047
00048 extern void (*W2F_Cleanup_p)(void);
00049 extern void (*W2F_Init_p)(void);
00050 extern void (*W2F_Outfile_Fini_p)(void);
00051 extern void (*W2F_Outfile_Init_p)(void);
00052 extern void (*W2F_Outfile_Translate_Pu_p)(WN *pu);
00053 extern void (*W2F_Pop_PU_p)(void);
00054 extern void (*W2F_Process_Command_Line_p)(INT phase_argc, char *phase_argv[],
00055 INT argc, char *argv[]);
00056 extern void (*W2F_Push_PU_p)(WN *pu, WN *body_part_of_interest);
00057 extern void (*W2F_Set_Frequency_Map_p)(WN_MAP frequency_map);
00058 extern void (*W2F_Set_Prompf_Emission_p)(WN_MAP *construct_map);
00059 extern BOOL (*W2F_Should_Emit_Nested_PUs_p)(void);
00060 extern void (*W2F_Translate_Istore_Lhs_p)(char *strbuf, UINT bufsize,
00061 WN* lhs, mINT64 istore_ofst, TY_IDX istore_addr_ty, TYPE_ID istore_mtype);
00062 extern void (*W2F_Translate_Wn_p)(FILE *outfile, WN *wn);
00063 extern void (*W2F_Translate_Wn_Str_p)(char *strbuf, UINT bufsize, WN *wn);
00064
00065 #define W2F_Cleanup (*W2F_Cleanup_p)
00066 #define W2F_Init (*W2F_Init_p)
00067 #define W2F_Outfile_Fini (*W2F_Outfile_Fini_p)
00068 #define W2F_Outfile_Init (*W2F_Outfile_Init_p)
00069 #define W2F_Outfile_Translate_Pu (*W2F_Outfile_Translate_Pu_p)
00070 #define W2F_Pop_PU (*W2F_Pop_PU_p)
00071 #define W2F_Process_Command_Line (*W2F_Process_Command_Line_p)
00072 #define W2F_Push_PU (*W2F_Push_PU_p)
00073 #define W2F_Set_Frequency_Map (*W2F_Set_Frequency_Map_p)
00074 #define W2F_Set_Prompf_Emission (*W2F_Set_Prompf_Emission_p)
00075 #define W2F_Should_Emit_Nested_PUs (*W2F_Should_Emit_Nested_PUs_p)
00076 #define W2F_Translate_Istore_Lhs (*W2F_Translate_Istore_Lhs_p)
00077 #define W2F_Translate_Wn (*W2F_Translate_Wn_p)
00078 #define W2F_Translate_Wn_Str (*W2F_Translate_Wn_Str_p)
00079
00080 #else // __linux__
00081
00082 #pragma weak W2F_Cleanup
00083 #pragma weak W2F_Init
00084 #pragma weak W2F_Outfile_Fini
00085 #pragma weak W2F_Outfile_Init
00086 #pragma weak W2F_Outfile_Translate_Pu
00087 #pragma weak W2F_Pop_PU
00088 #pragma weak W2F_Process_Command_Line
00089 #pragma weak W2F_Push_PU
00090 #pragma weak W2F_Set_Frequency_Map
00091 #pragma weak W2F_Set_Prompf_Emission
00092 #pragma weak W2F_Should_Emit_Nested_PUs
00093 #pragma weak W2F_Translate_Istore_Lhs
00094 #pragma weak W2F_Translate_Wn
00095 #pragma weak W2F_Translate_Wn_Str
00096
00097 #endif // __linux__
00098
00099 #endif // w2f_weak_INCLUDED