00001 /* 00002 * Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2 of the GNU General Public License as 00011 published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write the Free Software Foundation, Inc., 59 00026 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00027 00028 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00029 Mountain View, CA 94043, or: 00030 00031 http://www.sgi.com 00032 00033 For further information regarding this notice, see: 00034 00035 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00036 00037 */ 00038 00039 00040 #define __STDC_LIMIT_MACROS 00041 #include <stdint.h> 00042 #include <sys/types.h> 00043 #if defined(BUILD_OS_DARWIN) 00044 #include "darwin_elf.h" 00045 #else /* defined(BUILD_OS_DARWIN) */ 00046 #include <elf.h> 00047 #endif /* defined(BUILD_OS_DARWIN) */ 00048 #include <ctype.h> 00049 #include "wn.h" 00050 #include "wn_map.h" 00051 #include "wn_util.h" 00052 #include <stdio.h> 00053 #include "opt_du.h" 00054 #include "opt_alias_mgr.h" 00055 #include "dep_graph.h" 00056 #include "cxx_template.h" 00057 #include "prompf.h" 00058 #include "ir_reader.h" 00059 #include "wb_util.h" 00060 #include "wb_buffer.h" 00061 #include "wb_carray.h" 00062 #include "wb_browser.h" 00063 #include "wb.h" 00064 #include "wb_f90_lower.h" 00065 00066 WB_BROWSER wb_f90_lower; 00067 00068 extern void WB_F90_Lower_Initialize(WN* wn_global, 00069 WN_MAP Prompf_Id_Map) 00070 { 00071 WB_Set_Phase(WBP_F90_LOWER); 00072 WB_Initialize(&wb_f90_lower, wn_global, &Get_Current_PU(), 00073 NULL, NULL, Prompf_Id_Map); 00074 } 00075 00076 extern void WB_F90_Lower_Set_Parent_Map(WN_MAP Parent_Map) 00077 { 00078 wb_f90_lower.Set_Parent_Map(Parent_Map); 00079 } 00080 00081 extern void WB_F90_Lower_Set_Prompf_Info(PROMPF_INFO* prompf_info) 00082 { 00083 wb_f90_lower.Set_Prompf_Info(prompf_info); 00084 } 00085 00086 extern void WB_F90_Lower_Terminate() 00087 { 00088 WB_Set_Phase(WBP_NONE); 00089 WB_Terminate(&wb_f90_lower); 00090 } 00091 00092 extern void s_f90_lower_debug(const char init_buffer[]) 00093 { 00094 wb_f90_lower.Sdebug(init_buffer); 00095 } 00096
1.5.6