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 // 00037 // Generate PROCESSOR properties information 00039 00040 #include <stddef.h> 00041 #include "targ_proc.h" 00042 #include "proc_properties_gen.h" 00043 00044 main() 00045 { 00046 PROC_PROPERTY 00047 branch_delay_slot, /* branch delay slot */ 00048 same_cycle_branch_shadow, /* execute branch shadow parallel with branch */ 00049 out_of_order, /* out of order execution */ 00050 superscalar, /* multiple insts per cycle */ 00051 bundles, /* executes insts as sequence of bundles */ 00052 delayed_exception, /* has delayed exception support */ 00053 fast_recip; /* recip inst is fast */ 00054 00055 PROC_Properties_Begin ("ia64"); 00056 00057 /* ==================================================================== 00058 * Operator attributes descriptors 00059 * ==================================================================== 00060 */ 00061 00062 /* Does the target have branch delay slots? 00063 */ 00064 branch_delay_slot = PROC_Property_Create ("has_branch_delay_slot"); 00065 Processor_Group (branch_delay_slot, 00066 PROCESSOR_UNDEFINED); 00067 00068 /* Can the branch shadow be executed in the same cycle as the branch on 00069 * the target? 00070 */ 00071 same_cycle_branch_shadow = PROC_Property_Create ("has_same_cycle_branch_shadow"); 00072 Processor_Group (same_cycle_branch_shadow, 00073 PROCESSOR_UNDEFINED); 00074 00075 /* Is the target an out-of-order machine? 00076 */ 00077 out_of_order = PROC_Property_Create ("is_out_of_order"); 00078 Processor_Group (out_of_order, 00079 PROCESSOR_UNDEFINED); 00080 00081 /* Can the current target issue multiple instructions per cycle? 00082 */ 00083 superscalar = PROC_Property_Create ("is_superscalar"); 00084 Processor_Group (superscalar, 00085 PROCESSOR_itanium, 00086 PROCESSOR_UNDEFINED); 00087 00088 /* Does the target execute insts as sequence of bundles, or require 00089 * bundle alignment? The info is used to align instructions to bundles, 00090 * resolve any bundle packing requirements, etc... 00091 */ 00092 bundles = PROC_Property_Create ("has_bundles"); 00093 Processor_Group (bundles, 00094 PROCESSOR_itanium, 00095 PROCESSOR_UNDEFINED); 00096 00097 /* Does the target support delayed_exception mechanism, i.e ability to 00098 * suppress possible exceptions for speculative instructions with 00099 * delayed recovery mechanism. 00100 */ 00101 delayed_exception = PROC_Property_Create ("has_delayed_exception"); 00102 Processor_Group (delayed_exception, 00103 PROCESSOR_itanium, 00104 PROCESSOR_UNDEFINED); 00105 00106 /* Does the target have a fast recip instruction? 00107 * i.e. is it profitable to convert a/b -> a*recip(b) 00108 */ 00109 fast_recip = PROC_Property_Create ("has_fast_recip"); 00110 Processor_Group (fast_recip, 00111 PROCESSOR_UNDEFINED); 00112 00113 PROC_Properties_End(); 00114 return 0; 00115 }