Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
wn_mp.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 
00068 #ifndef wnmp_INCLUDED
00069 #define wnmp_INCLUDED "wn_mp.h"
00070 
00071 #ifndef __ELF_H__
00072 #include <elf.h>            /* pu_info.h can't compile without this */
00073 #endif
00074 
00075 #ifndef dwarf_DST_INCLUDED
00076 #include "dwarf_DST.h"      /* for DST_IDX and DST_INFO_IDX */
00077 #endif
00078 
00079 #ifndef pu_info_INCLUDED    /* for PU_Info */
00080 #include "pu_info.h"
00081 #endif
00082 
00083 #ifndef cxx_template_INCLUDED
00084 #include "cxx_template.h"   /* for DYN_ARRAY */
00085 #endif
00086 
00087 #ifdef __cplusplus
00088 extern "C" {
00089 #endif
00090 
00091 extern WN * lower_mp (WN *, WN *, INT32);
00092 extern void LowerMP_PU_Init (void);
00093 
00094 extern WN * Gen_MP_Getlock ( ST * lock );
00095 extern WN * Gen_MP_Unlock ( ST * lock ) ;
00096 extern WN * Gen_MP_Setlock ( void );
00097 extern WN * Gen_MP_Unsetlock ( void );
00098 
00099   // list of the STORE nodes for the REDUCTION pragmas of an MP construct
00100 typedef DYN_ARRAY<WN *> REDUCTION_LIST;
00101 extern INT
00102 MP_Reduction_Combine_Cycles(REDUCTION_LIST *rlist, BOOL *using_critical);
00103 
00104 typedef enum {
00105   MPP_UNKNOWN,
00106   MPP_COPYIN,
00107   MPP_CRITICAL_SECTION,
00108   MPP_SINGLE,
00109   MPP_ORPHANED_SINGLE,
00110   MPP_PDO,
00111   MPP_ORPHANED_PDO,
00112   MPP_PARALLEL_DO,
00113   MPP_PARALLEL_REGION
00114 } MP_process_type;
00115 
00116 extern WN * Gen_OMP_Begin_SPR (MP_process_type mpt);
00117 extern WN * Gen_OMP_End_SPR   (MP_process_type mpt);
00118 
00119 extern BOOL Is_Nonpod_Finalization_IF(WN *wn, BOOL *is_first_and_last);
00120 
00121 extern void Move_Non_POD_Finalization_Code(WN *block);
00122 
00123 extern void MP_Fix_Dependence_Graph(PU_Info *parent_pu_info,
00124                                     PU_Info *child_pu_info, WN *child_wn);
00125 extern WN * Copy_Non_MP_Tree ( WN * tree );
00126 
00127 extern DST_IDX Find_DST_From_ST ( ST *st, PU_Info *pu_info );
00128 extern void
00129 Create_New_DST ( DST_INFO_IDX dst, ST *st , BOOL append_to_nested );
00130 
00131 extern BOOL WN_has_pragma_with_side_effect ( WN *wn );
00132 
00133 
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137 
00138 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines