4 Fixed a bug in irop: Size of Sel node was (entity *) instead of
5 sel_attr. Therefor array_heap_example aborted.
6 Also found a missing break in typewalk, case iro_Alloc.
9 Added a construct that unifies all things constructed by the lib
10 and needed to represent a program: irprog.ch
11 This contains a list of all types as well as a list of all ir graphs.
12 I added calls to initialization and constructors so that this is constructed
13 automatically. I changed firm.c, type.c, irgraph.c and ev. more.
16 Removed strange block struct and constructor from ircons.c.
17 Moved routines for automatic Phi construction from irgmod to ircons.
18 Sorted functions in ircons to reflect the different interfaces.
19 Renamed dataseg to globals to be conformant with documentation.
20 Added conservation of current_ir_graph to irgopt.c.
21 Corrected bug in Makefiles: wrong path to directory ./inlude.
24 Commented a whole bunch of stuff, e.g. in ircons.h (Procedure to construct)
25 We should change the naming of the Block constructor.
28 Removed acces routines to attr. "closed" of Block.
31 Removed second implementation of new_ir_node from ircons and some comments
32 concerned with the now resolved cyclic dependency.
33 Fixed some bugs in irgopt so that the compilation goes through.
36 Removed some files from the archive, after dependencies and usage are
38 - 'ir/common/strerror.c'
40 - 'ir/ident/xx_ident.h'
41 an empty file, only included by 'ident.c', but never used;
44 contained a numeric counter;
45 The files were included in 'tv.h' and implemented in 'tarval.c'. The two
46 functions 'tarval_label' and 'tarval_forall_labeled' were also never used.
47 In the old fiasco compiler, the label thing is used in the backend.
48 Search for 'babil' to see the usage.
49 Also removed the two attributes 'lab' and 'used' in the tarval struct.
52 Moved the 'new_ir_node' constructor from ircons.* to irnode.* and fixed
53 afterwards some recursive includes, so libfirm works again.
56 Did a lot of changes, which I never commented until now (4.7.00).
58 * Added new result to Start node: Pointer to global data segment.
59 * Extended Semantics of SymConst node to represent information for the
61 * Added arithmeitc nodes (Shrs, Minus ...)
63 Rearranged the directory structure and adjusted the makefiles.
64 The directories contain:
65 ir: everything for the intermediate representation (better: src?)
66 /ir: the ir itself, and standard optimizations.
67 /tv: the target value module
68 /tr: the type and entity representation
69 /adt: abstract data types
70 /common: stuff needed by all other dirs
71 /debug: debugging Unterstuetzung
73 include: external files needen as includes
74 testprograms: examples to test the lib.
76 The makefiles generate files with extension .d that contain the dependencies
80 Added access routine to attribute link of irnode in irnode.ch.
81 Added get_negated_pnc to irnode.ch.
84 Added an iterator in iropt that calls the optimization for all nodes.
85 Copied optimize's code to optimize_in_place and removed deallocations.
86 Made set_irn_n in irnode.c public.
87 Added Bad as possible cfg predecessor in is_cfg_node in irnode. Bads
88 are allowded as cfgpredecessors to represent dead "incoming" control
90 Added call to optimize_in_place in mature_block. Is this useful?
93 Changed tests from comparing enums to comparing pointers. This is more
94 efficient (is it?) and reads better. e.g., instead get_irn_opcode == irm_And
95 now get_irn_op == op_And
98 Compared equivalent_value to the one in the original fiasco.
99 Added a test in case iro_And.
100 Changed implementation of iro_Div. Added routines turn_into_tuple
101 and set_irn_op() in irgmod/irnode.
102 Changed implementation of irn_Minus (although commented out).
103 Now all features are ported or documented for this function.
106 Compared computed_value to the one in the original fiasco.
107 Added one further optimization in case iro_Proj.
108 Now all features are ported for this function.
111 Updated comments in ircons.h.
114 Changed possible attribute of SymConst from type_class to type.
115 SymConst size could be the size of a union, array, ...
118 Implemented two dumpers that dump type information and a graph with
122 Implemented a walker that walks over the type informatin that can
123 be reached from an ir node.
124 Added routine get_kind(firm_thing) in common.h, Added file common.c.
125 Added files typewalk.ch and routines to irdump.
126 Added visited flags and initialization to entity and all types.
127 Implemented some of the missing access routines in type.c, entity.c
130 Implemented constructor for ShrA.
132 Added routine that iterates the graph and verifies all nodes.
133 Added Phi_in stack to irgraph. This allows to build several
134 graphs at once with respect to the Phi building algorithm.
137 Implemented dumper for control flow graphs. Changed irr_* and dead_*
138 examples to dump cfg.
141 Implemeted explicit stack for the Phi node generation. See ircons.c.
144 added include string.h in xoprintf.c to get rid of warning:
145 implicit declaration of function `bcopy'
149 Added more cases to equivalent_node.
150 Portet gigo, identify, identify_remember.
151 The set/pset library can not handle several hash tables. At least,
152 compiling several procedures causes a segmentation fault during access
153 to the tables (oo_program_example). Need to work on this.
154 transform_node still needs to be ported.
155 some cases in equivalent_node are still missing.
157 To get it running I had to remove the call to optimize in the
158 new_Block constructor. It can only be called when the Block is
162 Introduced a walker that walks only over blocks. The asserts
163 might be too strict for general graphs, but so far it works.
164 For the walker I introduced an additional flag in the attribute
165 of Blocks, an a global block_visited variable (in irgraph.h).
166 Furhter I modularized dump_ir_node, implemented dump_ir_graph
167 with the existing walker, and added new routines to output a
169 Changed the examples to call the new dump routine.
172 Added auxiliary routines to ir_node:
173 skip_Proj, skip_Nop, is_Bad ...
174 Changed access routines to use get_irn_n instead of explicit array
175 accesses. Changed get_irn_n to call skip_Id, so that the access routines
176 never will return Id nodes.
179 Repaired Phi computation, changed new_r_Phi_in. Added test program to
180 test irregular controlflow.
183 Updated optimizations computed_value and equivalent_node to new
184 Syntax of FIRM nodes and to use access routines.
185 Added routine skip_Proj in irnode.
187 2.2.2000 Boris Boesler
188 Added files irgwalk.c and irgwalk.h. They include a simple function to
189 traverse an ir graph and execute pre and post functions to current node.
192 Added arrays with parameters and result types to the type informtion
193 of a procedure. This is needed for the code generation. Also added
194 the corresponding access routines.
195 Adapted the testprograms.
198 Found a bug / complication: the call order
199 get_value (makes Phi0, put's it into graph_arr)
200 set_value (overwrites Phi0 in graph_arr)
201 mature_block (upgrades Phi0, puts it again into graph_arr, overwriting
203 fails. Added test wether graph_arr is already set in phi_merge.
205 Added tons of comments to explain Phi generation -- the stack hack.
209 irdump now outputs the pnc_number for projs of Cmp nodes.
210 Added routine to access the pnc_string.
213 Added result "dataseg" to Start node, with all it's consequences.
214 We need this for the compiler lab to translate global variables.
215 Now they can be selected from the data segment, and the start
216 node supplies the pointer to this segment.
217 These changes are guarded by preprocessor variable UEBPRAKT in
219 Changed files: common.h, irgraph.ch, irnode.h
223 removed array_example, added array-heap_example and
224 array-stack_example and adapted makefile.
226 Entity now also allows type_method as owner. This is to model
227 the stack, Sel nodes that select a variable (array) from the
228 stack need an entity that describes what they select. This
229 entity gets the type of the enclosing procedure as owner.
232 Added future access routines in `irmode.[ch]' as comments,
233 that all attributes in the ir_mode struct can be user-defined.
234 Added access routines in `irgraph.[ch]', for all attributes.
237 Moved verify routines from `irgraph.[ch]' to own files `irvrfy.[ch]'.
238 Added `irvrfy.[ch]' to MAKEFILE
239 Added "inline" before access routines in `irnode.h', that no warnings
240 will appear furthermore.
241 Added three more access routines in `irmode.[ch]':
242 struct tarval *get_min_of_mode (ir_mode *mode);
243 struct tarval *get_max_of_mode (ir_mode *mode);
244 struct tarval *get_null_of_mode (ir_mode *mode);
247 Adaption of Alloc, Sel and Entity to new types:
248 Changed array_example to use type instead of type_class.
249 Changed entity to allow all types as owner instead of
250 only type_class. Added routine "assert_legal_owner_of_ent(type* type)".
251 Changed alloc to allow allocating variables of any type instead of
253 Adapted all testprograms to avoid warnings.
255 removed dtest ... from Makefile, replaced by test.
258 Added "run" to makefile, added array_example to makefile of testprograms.
259 Corrected testprogram array
260 Changed assert in irvrfy -- Conv.