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 _LEGO_GEN_INCLUDED_ 00037 #define _LEGO_GEN_INCLUDED_ 00038 00039 /*********************************************************************** 00040 * 00041 * Generate code for lego pragmas. 00042 * 00043 * Exported functions: 00044 * 00045 * extern void Generate_Runtime_Stuff (); 00046 * Called before ANY LNO processing, from Lno_Init. 00047 * Generate ST and TY entries in the global symbol table 00048 * for functions and types in the MP runtime. 00049 * 00050 * extern void Lower_Distr_Pragmas (WN* func_nd); 00051 * Generate code for data distribution pragmas. 00052 * Called on a per-PU basis at the end of LNO processing. 00053 * Generates code into the PU for each data distribution pragma 00054 * contained in the global variables da_hash and da_hash_redistr. 00055 * 00056 * extern void Rewrite_Reshaped_Commons (WN* wn) 00057 * Walk the entire tree, replacing all references to a reshaped 00058 * common array to be to the new ST in the new common block that we 00059 * have generated. 00060 * 00061 ***********************************************************************/ 00062 00063 #include "lego_pragma.h" 00064 #include "lego_util.h" 00065 00066 extern "C" void Generate_Runtime_Stuff (); 00067 extern void Lower_Distr_Pragmas (WN* func_nd); 00068 extern WN* Get_Array_Dimension_Size (TY* array_ty, INT i); 00069 extern void Init_Special_Lego_Mp_Call(); 00070 extern BOOL Special_Lego_Or_Mp_Call(ST* st_call); 00071 extern ST *Create_Local_Array_ST(char* array_name, TY_IDX ty, INT num); 00072 extern void Rewrite_Reshaped_Commons (WN* wn); 00073 00074 #endif // _LEGO_GEN_INCLUDED_
1.5.6