Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
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 // isa_hazards_gen.h 00038 // 00039 // Interface for describing instructions that have ISA hazards, and what 00040 // the hazard is. 00041 // 00042 // void ISA_Hazards_Begin( const char* archname ) 00043 // Initialize to generate Instruction Set Architecture hazard information 00044 // for the architecture with the given <archname>. The information will 00045 // be written to the files <archname>_hazards.[ch]. 00046 // 00047 // TYPE ISA_HAZARD 00048 // An abstract type that represents a type of ISA hazard. 00049 // No client visible fields. 00050 // 00051 // ISA_HAZARD Hazard_Create( const char *name ) 00052 // Used to create a new ISA_HAZARD. <name> is used to construct 00053 // an enumeration constant for this hazard in the generated output 00054 // of the form: ISA_HAZARD_<name> 00055 // 00056 // void Hazard_Group( TOP topcode, ... ) 00057 // Lists a group of instructions (by TOP), with a common hazard 00058 // specification, terminating in TOP_UNDEFINED. Subsequent 00059 // statements specify the details of the hazard. The specification 00060 // is terminated by another Hazard_Group, or ISA_Hazards_End. 00061 // 00062 // void Hazard_Type( ISA_HAZARD isa_hazard ) 00063 // Indicates the type of the hazard. 00064 // 00065 // void Hazard_Data( int data ) 00066 // One word of hazard-specific data, e.g. an operand number. 00067 // 00068 // void Hazard_Post_Ops( int ops ) 00069 // The number of OPs which must follow an OP in the hazard group 00070 // 00071 // void Hazard_Pre_Ops( int ops ) 00072 // The number of OPs which must precede an OP in the hazard group 00073 // 00074 // void Hazard_ISA( ISA_SUBSET isa_subset ) 00075 // Not all ISAs have the same hazards. Hazard_ISA specifies that 00076 // 'isa_subset' has the current hazard. Hazard_ISA may be called 00077 // multiple times per hazard group. 00078 // 00079 // void ISA_Hazards_End(void) 00080 // Complete processing. 00081 // 00082 // 00084 00085 00086 00087 00088 #ifndef ISA_HAZARDS_GEN_INCLUDED 00089 #define ISA_HAZARDS_GEN_INCLUDED 00090 #ifdef __cplusplus 00091 extern "C" { 00092 #endif 00093 #ifndef ISA_HAZARDS_GEN_RCS_ID 00094 #define ISA_HAZARDS_GEN_RCS_ID 00095 #ifdef _KEEP_RCS_ID 00096 #endif 00097 #endif 00098 00099 void ISA_Hazards_Begin( const char* archname ); 00100 typedef struct isa_hazard *ISA_HAZARD; 00101 ISA_HAZARD Hazard_Create( const char *name ); 00102 void Hazard_Group( TOP topcode, ... ); 00103 void Hazard_Type( ISA_HAZARD isa_hazard ); 00104 void Hazard_Data( int data ); 00105 void Hazard_Post_Ops( int ops ); 00106 void Hazard_Pre_Ops( int ops ); 00107 void Hazard_ISA( ISA_SUBSET isa_subset ); 00108 void ISA_Hazards_End(void); 00109 00110 #ifdef __cplusplus 00111 } 00112 #endif 00113 #endif