Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
region_main.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 
00036 /*-*-c++-*-*/
00037 /* ====================================================================
00038  *
00039  *
00040  * Revision history:
00041  *  8-NOV-95 dahl - Original Version
00042  *
00043  * Description:
00044  *      Definitions for back end driver. Should only be included by
00045  *      be/be/driver.c
00046  * ====================================================================*/
00047 
00048 #ifndef region_main_INCLUDED
00049 #define region_main_INCLUDED
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053 
00054 /* Create and push the REGION_mem_pool. Create the region_id map, 
00055    used to track region info after regions have been lowered. */
00056 extern INT REGION_Initialize(WN *, BOOL);
00057 
00058 /* Pop the REGION_mem_pool */
00059 extern void REGION_Finalize(void);
00060 
00061 /* Iterate over a REGION tree, finding those REGIONs with no "earlier"
00062    sub-REGION.  When First or Next returns, iter points to a REGION_CS_ITER
00063    with "kid" representing the location in the REGION tree which we have just
00064    finished visiting. This amounts to postorder traversal of the RID tree. */
00065 extern void REGION_CS_ITER_init( REGION_CS_ITER *, WN * );
00066 extern BOOL REGION_CS_NoEarlierSub_While( REGION_CS_ITER * );
00067 extern void REGION_CS_NoEarlierSub_Next ( REGION_CS_ITER * );
00068 extern void REGION_CS_NoEarlierSub_First( REGION_CS_ITER *, WN *, RID_TYPE);
00069 extern void REGION_CS_print( REGION_CS_ITER * );
00070 
00071 /* Remove a region from the PU and mark location for insertion later */
00072 extern WN  *REGION_remove_and_mark(WN *, REGION_CS_ITER *);
00073 /* Insert new region at mark left by REGION_remove_and_mark */
00074 extern void REGION_replace_from_mark(WN *, REGION_CS_ITER *);
00075 
00076 /* These two phases are called by preopt (wodriver.c) for :p (lno off)  */
00077 /* and by lno (lnodriver.c) for :l (lno on)                             */
00078 extern WN *Rail(WN *);
00079 extern void Region_Bound_Info(WN *, struct DU_MANAGER *, 
00080                               struct ALIAS_MANAGER *);
00081 
00082 /* generate consistent region boundary sets regardless of optimization level
00083    code is in be/region/region_bounds.cxx */
00084 extern void Generate_region_boundaries(WN *, struct ALIAS_MANAGER *);
00085 
00086 #ifdef __cplusplus
00087 }
00088 #endif
00089 #endif /* region_main_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines