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 * ==================================================================== 00038 * 00039 * Module: bbregs.h 00040 * $Revision: 1.2 $ 00041 * $Date: 02/11/07 23:41:20-00:00 $ 00042 * $Author: fchow@keyresearch.com $ 00043 * $Source: /scratch/mee/2.4-65/kpro64-pending/be/cg/SCCS/s.bbregs.h $ 00044 * 00045 * Revision history: 00046 * 21-may-93 - Original Version 00047 * 00048 * Description: header file for extended BB-related data structures 00049 * in the new implementation of GRA 00050 * 00051 * ==================================================================== 00052 * ==================================================================== 00053 */ 00054 00055 #ifndef bbregs_INCLUDED 00056 #define bbregs_INCLUDED 00057 00058 #ifdef _KEEP_RCS_ID 00059 static char *bbregs_rcs_id = "$Source: /scratch/mee/2.4-65/kpro64-pending/be/cg/SCCS/s.bbregs.h $ $Revision: 1.2 $"; 00060 #endif /* _KEEP_RCS_ID */ 00061 00062 #include "defs.h" 00063 #include "gtn_set.td" 00064 #include "register.h" 00065 00066 00067 typedef struct bbregs { 00068 GTN_SET *defreach_in; /* Some def reaches top */ 00069 GTN_SET *defreach_out; /* Some def reaches bottom */ 00070 GTN_SET *live_in; /* Some use exposed to top */ 00071 GTN_SET *live_out; /* Some use exposed to bottom */ 00072 GTN_SET *live_use; /* TNs with upward exposed uses in bb */ 00073 GTN_SET *live_def; /* TNs defined above all uses in same bb */ 00074 } BBREGS; 00075 00076 /* define the access macros from BBREGS */ 00077 #define BBREGS_defreach_in(bbr) ((bbr)->defreach_in) 00078 #define BBREGS_defreach_out(bbr) ((bbr)->defreach_out) 00079 #define BBREGS_live_in(bbr) ((bbr)->live_in) 00080 #define BBREGS_live_out(bbr) ((bbr)->live_out) 00081 #define BBREGS_live_use(bbr) ((bbr)->live_use) 00082 #define BBREGS_live_def(bbr) ((bbr)->live_def) 00083 00084 00085 /* access macros from BB */ 00086 #define BB_defreach_in(bb) BBREGS_defreach_in(BB_bbregs(bb)) 00087 #define BB_defreach_out(bb) BBREGS_defreach_out(BB_bbregs(bb)) 00088 #define BB_live_in(bb) BBREGS_live_in(BB_bbregs(bb)) 00089 #define BB_live_out(bb) BBREGS_live_out(BB_bbregs(bb)) 00090 #define BB_live_use(bb) BBREGS_live_use(BB_bbregs(bb)) 00091 #define BB_live_def(bb) BBREGS_live_def(BB_bbregs(bb)) 00092 00093 00094 #endif /* bbregs_INCLUDED */
1.5.6