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_lits_gen.h 00038 // 00039 // Interface to create literal classes. 00040 // 00041 // void ISA_Lits_Begin(void) 00042 // Initialize to generate literal class information for an architecture. 00043 // The information will be written to the files targ_isa_lits.[ch]. 00044 // 00045 // TYPE LIT_RANGE 00046 // An abstract type that represents a literal range. 00047 // No client visible fields. 00048 // 00049 // const LIT_RANGE LIT_RANGE_END 00050 // A special LIT_RANGE value that is used to mark the end of a 00051 // list of LIT_RANGE parameters. 00052 // 00053 // LIT_RANGE ISA_Create_Lit_Range(const char *name, 00054 // long long min, long long max) 00055 // Create a literal range named <name> (used for debugging/informational 00056 // purposes only) with minimum value <min> and maximum value <max>. 00057 // 00058 // LIT_RANGE SignedBitRange(unsigned int bit_size) 00059 // LIT_RANGE UnsignedBitRange(unsigned int bit_size) 00060 // Create a signed/unsigned literal range for a bit-field of size 00061 // <bit_size>. 00062 // 00063 // TYPE (enum) LIT_CLASS_TYPE 00064 // An enumeration of the types of literals: eg, UNSIGNED or SIGNED. 00065 // 00066 // void ISA_Create_Lit_Class (const char *name, LIT_CLASS_TYPE type, ...) 00067 // Create a LIT CLASS with the <name> and type <type>. The variable 00068 // argument list contains a sequence of LIT_RANGE parameters to 00069 // identify one or more disjoint ranges that are legal for the 00070 // literal class. The list is ended with a parameter of LIT_RANGE_END. 00071 // 00072 // void ISA_Lits_End(void) 00073 // Complete processing of literals. 00074 // 00076 00077 00078 #ifndef isa_lits_gen_INCLUDED 00079 #define isa_lits_gen_INCLUDED 00080 00081 #ifdef _KEEP_RCS_ID 00082 #endif /* _KEEP_RCS_ID */ 00083 00084 #ifdef __cplusplus 00085 extern "C" { 00086 #endif 00087 00088 typedef enum { 00089 UNSIGNED, 00090 SIGNED 00091 } LIT_CLASS_TYPE; 00092 00093 typedef struct lit_range *LIT_RANGE; 00094 00095 #define LIT_RANGE_END ((LIT_RANGE)0) 00096 00097 extern void ISA_Lits_Begin (void); 00098 00099 extern LIT_RANGE ISA_Create_Lit_Range(const char *name, 00100 long long min, 00101 long long max); 00102 00103 extern LIT_RANGE SignedBitRange(unsigned int bit_size); 00104 extern LIT_RANGE UnsignedBitRange(unsigned int bit_size); 00105 00106 extern void ISA_Create_Lit_Class (const char *name, LIT_CLASS_TYPE type, ...); 00107 00108 extern void ISA_Lits_End (void); 00109 00110 #ifdef __cplusplus 00111 } 00112 #endif 00113 #endif /* isa_lits_gen_INCLUDED */