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 "prompf.h" 00057 #include "ir_reader.h" 00058 #include "wb_util.h" 00059 #include "wb_buffer.h" 00060 #include "wb_carray.h" 00061 #include "wb_browser.h" 00062 #include "wb.h" 00063 #include "wb_omp.h" 00064 00065 WB_BROWSER wb_omp; 00066 00067 extern void WB_OMP_Initialize(WN* wn_global, 00068 WN_MAP Prompf_Id_Map) 00069 { 00070 WB_Set_Phase(WBP_OMP_PRELOWER); 00071 WB_Initialize(&wb_omp, wn_global, &Get_Current_PU(), NULL, NULL, 00072 Prompf_Id_Map); 00073 } 00074 00075 extern void WB_OMP_Set_Parent_Map(WN_MAP Parent_Map) 00076 { 00077 wb_omp.Set_Parent_Map(Parent_Map); 00078 } 00079 00080 extern void WB_OMP_Set_Prompf_Info(PROMPF_INFO* prompf_info) 00081 { 00082 wb_omp.Set_Prompf_Info(prompf_info); 00083 } 00084 00085 extern void WB_OMP_Terminate() 00086 { 00087 WB_Set_Phase(WBP_NONE); 00088 WB_Terminate(&wb_omp); 00089 } 00090 00091 extern void s_omp_debug(const char init_buffer[]) 00092 { 00093 wb_omp.Sdebug(init_buffer); 00094 } 00095
1.5.6