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 #ifndef f90_lower_INCLUDED 00038 #define f90_lower_INCLUDED 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 /* This is the main external interface to the F90 lowerer 00044 * 00045 * WN * F90_Lower (WN *pu); 00046 * 00047 * Lowers the program unit in *pu. Returns a lowered program unit 00048 * (most likely, it will be the same pointer passed in, with a lot of changed subtrees, 00049 * but not necessarily). 00050 * 00051 */ 00052 extern WN * F90_Lower (PU_Info* pu_info, WN *pu); 00053 00054 00055 /* Some enumerated types needed by the lowerer; these don't need to be 00056 generally visible, but they are needed in two files */ 00057 #ifdef F90_LOWER_INTERNAL 00058 00059 /* 00060 * COPY_FLAG indicates what sort of temp copies need to be done for 00061 * this statement. 00062 */ 00063 typedef enum { 00064 COPY_NONE=0, 00065 COPY_LEFT=1, 00066 COPY_RIGHT=2, 00067 COPY_BOTH=3 /* Must be COPY_LEFT & COPY_RIGHT */ 00068 } COPY_FLAG_T; 00069 00070 /* 00071 * DIR_FLAG indicates which direction a DO loop should be run. This is also used for dependence 00072 * analysis. 00073 */ 00074 typedef enum { 00075 DIR_DONTCARE=0, 00076 DIR_POSITIVE=1, 00077 DIR_NEGATIVE=2, 00078 DIR_ZERO=3, 00079 DIR_UNKNOWN=4 00080 } DIR_FLAG; 00081 00082 typedef enum { 00083 DEP_UNKNOWN = 0, 00084 DEP_INDEPENDENT = 1, 00085 DEP_IDENTICAL = 2, 00086 DEP_REMOVABLE = 3 00087 } DEP_SUMMARY; 00088 00089 /* This is the interface to the c++ routine for doing triplet dependence 00090 * analysis. It's in c++ becuase it makes use of LNO's SYSTEM_OF_EQUATIONS 00091 * class 00092 */ 00093 extern DIR_FLAG F90_Lower_Analyze_Triplet (INT64 l, INT64 s1, INT64 s2, 00094 INT64 e, BOOL e_present, MEM_POOL *mp); 00095 00096 #endif 00097 00098 #ifdef __cplusplus 00099 } 00100 #endif 00101 #endif /* wn_lower_INCLUDED */
1.5.6