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 /* ==================================================================== 00037 * ==================================================================== 00038 * 00039 * 00040 * Revision history: 00041 * dd-mmm-95 - Original Version 00042 * 00043 * Description: Entry points into cwh_stmt.c 00044 * 00045 * ==================================================================== 00046 * ==================================================================== 00047 */ 00048 00049 #ifndef CWH_STMT_INCLUDED 00050 #define CWH_STMT_INCLUDED 00051 00052 #ifdef _KEEP_RCS_ID 00053 #endif /* _KEEP_RCS_ID */ 00054 00055 00056 extern void cwh_stmt_init_pu(ST * st, INT32 lineno ) ; 00057 extern WN * cwh_stmt_end_pu(void) ; 00058 extern void cwh_stmt_init_file(BOOL is_mp) ; 00059 extern void cwh_stmt_character_icall(INTRINSIC intrinsic); 00060 extern WN * cwh_stmt_add_arrayexp(WN *wn); 00061 extern WN * cwh_stmt_call_helper(INT32 numargs, TY_IDX ty, INT32 inline_state, 00062 INT64 flags); 00063 extern WN * cwh_stmt_return_scalar(ST *st, WN * rv, TY_IDX rty, BOOL write); 00064 extern void cwh_stmt_add_pragma(WN_PRAGMA_ID wn_pragma_id, 00065 BOOL is_omp = FALSE, 00066 ST *st = (ST_IDX) NULL, 00067 INT32 arg1 = 0, 00068 INT32 arg2 = 0) ; 00069 extern void cwh_stmt_add_xpragma(WN_PRAGMA_ID wn_pragma_id, 00070 BOOL is_omp = FALSE, 00071 WN* expr = NULL); 00072 extern void cwh_stmt_postprocess_pu(void); 00073 00074 00075 /* enum to describe where to put pragmas in OPC_FUNCENTRY */ 00076 00077 enum site { 00078 block_ca, /* call site pragmas */ 00079 block_pu /* pu pragmas in OPC_FUNCENTRY */ 00080 }; 00081 00082 enum pu_pragma_placement_t { 00083 pu_pragma_placement_first, /* add to beginning of block */ 00084 pu_pragma_placement_last /* add to end of block */ 00085 }; 00086 00087 00088 extern BOOL cwh_stmt_add_to_preamble(WN *wn, 00089 enum site block, 00090 enum pu_pragma_placement_t placement = pu_pragma_placement_first); 00091 00092 extern USRCPOS current_srcpos ; /* line of current statement */ 00093 00094 /* structure describes nested DO (for parallel and lno directives) */ 00095 struct nested_do { 00096 int depth; /* depth of current nest */ 00097 int current; /* the current nest level */ 00098 BOOL explicit_end; /* True if an explicit end_* is present for region */ 00099 WN_PRAGMA_ID type; /* what directive introduced the nest */ 00100 }; 00101 00102 extern struct nested_do nested_do_descriptor; 00103 extern WN *top_of_loop_additions; /* whirl to stick into the top 00104 of the innermost loop in a 00105 set of pseudonested loops (or 00106 the loop of a regular parallel 00107 loop) */ 00108 00109 extern BOOL fe_invoke_inliner; 00110 /* flag set when we need to invoke inliner after exit */ 00111 00112 extern BOOL still_in_preamble ; /* preamble code ie: generated before fei_user_code_start */ 00113 00114 #endif /* CWH_STMT_INCLUDED */ 00115