Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
w2c_weak.h
Go to the documentation of this file.
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 w2c_weak_INCLUDED
00037 #define w2c_weak_INCLUDED
00038 
00039 // See comments in be/com/weak.cxx
00040 
00041 // Symbols exported from whirl2c.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 
00047 extern void (*W2C_Cleanup_p)(void);
00048 extern void (*W2C_Init_p)(void);
00049 extern void (*W2C_Outfile_Fini_p)(BOOL emit_global_decls);
00050 extern void (*W2C_Outfile_Init_p)(BOOL emit_global_decls);
00051 extern void (*W2C_Outfile_Translate_Pu_p)(WN *pu, BOOL emit_global_decls);
00052 extern void (*W2C_Pop_PU_p)(void);
00053 extern void (*W2C_Process_Command_Line_p)(INT phase_argc, char * const
00054   phase_argv[], INT argc, char * const argv[]);
00055 extern void (*W2C_Push_PU_p)(const WN *pu, WN *body_part_of_interest);
00056 extern void (*W2C_Set_Frequency_Map_p)(WN_MAP frequency_map);
00057 extern void (*W2C_Set_Prompf_Emission_p)(const WN_MAP *construct_map);
00058 extern BOOL (*W2C_Should_Emit_Nested_PUs_p)(void);
00059 extern void (*W2C_Translate_Istore_Lhs_p)(char *strbuf,
00060   UINT bufsize, const WN* lhs, mINT64 istore_ofst, TY_IDX istore_addr_ty,
00061   TYPE_ID istore_mtype);
00062 extern void (*W2C_Translate_Wn_p)(FILE *outfile, const WN *wn);
00063 extern void (*W2C_Translate_Wn_Str_p)(char *strbuf, UINT bufsize, const
00064   WN *wn);
00065 
00066 #define W2C_Cleanup (*W2C_Cleanup_p)
00067 #define W2C_Init (*W2C_Init_p)
00068 #define W2C_Outfile_Fini (*W2C_Outfile_Fini_p)
00069 #define W2C_Outfile_Init (*W2C_Outfile_Init_p)
00070 #define W2C_Outfile_Translate_Pu (*W2C_Outfile_Translate_Pu_p)
00071 #define W2C_Pop_PU (*W2C_Pop_PU_p)
00072 #define W2C_Process_Command_Line (*W2C_Process_Command_Line_p)
00073 #define W2C_Push_PU (*W2C_Push_PU_p)
00074 #define W2C_Set_Prompf_Emission (*W2C_Set_Prompf_Emission_p)
00075 #define W2C_Set_Frequency_Map (*W2C_Set_Frequency_Map_p)
00076 #define W2C_Should_Emit_Nested_PUs (*W2C_Should_Emit_Nested_PUs_p)
00077 #define W2C_Translate_Istore_Lhs (*W2C_Translate_Istore_Lhs_p)
00078 #define W2C_Translate_Wn (*W2C_Translate_Wn_p)
00079 #define W2C_Translate_Wn_Str (*W2C_Translate_Wn_Str_p)
00080 
00081 #else // __linux__
00082 
00083 #pragma weak W2C_Cleanup
00084 #pragma weak W2C_Init
00085 #pragma weak W2C_Outfile_Fini
00086 #pragma weak W2C_Outfile_Init
00087 #pragma weak W2C_Outfile_Translate_Pu
00088 #pragma weak W2C_Pop_PU
00089 #pragma weak W2C_Process_Command_Line
00090 #pragma weak W2C_Push_PU
00091 #pragma weak W2C_Set_Frequency_Map
00092 #pragma weak W2C_Set_Prompf_Emission
00093 #pragma weak W2C_Should_Emit_Nested_PUs
00094 #pragma weak W2C_Translate_Istore_Lhs
00095 #pragma weak W2C_Translate_Wn
00096 #pragma weak W2C_Translate_Wn_Str
00097 
00098 #endif // __linux__
00099 
00100 #endif // w2c_weak_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines