Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 #ifndef w2f_weak_INCLUDED 00037 #define w2f_weak_INCLUDED 00038 00039 // See comments in be/com/weak.cxx 00040 00041 // Symbols exported from whirl2f.so 00042 // and used in be, be.so and lno.so 00043 // (additional ones may be needed for prompf_anl.so) 00044 00045 #if defined(__linux__) || defined(_GCC_NO_PRAGMAWEAK) || defined(__CYGWIN__) 00046 /* keep those for whirl2f || defined(_GCC_NO_PRAGMAWEAK) */ 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