2 Commented a whole bunch of stuff, e.g. in ircons.h (Procedure to construct)
3 We should change the naming of the Block constructor.
6 Removed acces routines to attr. "closed" of Block.
9 Removed second implementation of new_ir_node from ircons and some comments
10 concerned with the now resolved cyclic dependency.
11 Fixed some bugs in irgopt so that the compilation goes through.
14 Removed some files from the archive, after dependencies and usage are
16 - 'ir/common/strerror.c'
18 - 'ir/ident/xx_ident.h'
19 an empty file, only included by 'ident.c', but never used;
22 contained a numeric counter;
23 The files were included in 'tv.h' and implemented in 'tarval.c'. The two
24 functions 'tarval_label' and 'tarval_forall_labeled' were also never used.
25 In the old fiasco compiler, the label thing is used in the backend.
26 Search for 'babil' to see the usage.
27 Also removed the two attributes 'lab' and 'used' in the tarval struct.
30 Moved the 'new_ir_node' constructor from ircons.* to irnode.* and fixed
31 afterwards some recursive includes, so libfirm works again.
34 Did a lot of changes, which I never commented until now (4.7.00).
36 * Added new result to Start node: Pointer to global data segment.
37 * Extended Semantics of SymConst node to represent information for the
39 * Added arithmeitc nodes (Shrs, Minus ...)
41 Rearranged the directory structure and adjusted the makefiles.
42 The directories contain:
43 ir: everything for the intermediate representation (better: src?)
44 /ir: the ir itself, and standard optimizations.
45 /tv: the target value module
46 /tr: the type and entity representation
47 /adt: abstract data types
48 /common: stuff needed by all other dirs
49 /debug: debugging Unterstuetzung
51 include: external files needen as includes
52 testprograms: examples to test the lib.
54 The makefiles generate files with extension .d that contain the dependencies
58 Added access routine to attribute link of irnode in irnode.ch.
59 Added get_negated_pnc to irnode.ch.
62 Added an iterator in iropt that calls the optimization for all nodes.
63 Copied optimize's code to optimize_in_place and removed deallocations.
64 Made set_irn_n in irnode.c public.
65 Added Bad as possible cfg predecessor in is_cfg_node in irnode. Bads
66 are allowded as cfgpredecessors to represent dead "incoming" control
68 Added call to optimize_in_place in mature_block. Is this useful?
71 Changed tests from comparing enums to comparing pointers. This is more
72 efficient (is it?) and reads better. e.g., instead get_irn_opcode == irm_And
73 now get_irn_op == op_And
76 Compared equivalent_value to the one in the original fiasco.
77 Added a test in case iro_And.
78 Changed implementation of iro_Div. Added routines turn_into_tuple
79 and set_irn_op() in irgmod/irnode.
80 Changed implementation of irn_Minus (although commented out).
81 Now all features are ported or documented for this function.
84 Compared computed_value to the one in the original fiasco.
85 Added one further optimization in case iro_Proj.
86 Now all features are ported for this function.
89 Updated comments in ircons.h.
92 Changed possible attribute of SymConst from type_class to type.
93 SymConst size could be the size of a union, array, ...
96 Implemented two dumpers that dump type information and a graph with
100 Implemented a walker that walks over the type informatin that can
101 be reached from an ir node.
102 Added routine get_kind(firm_thing) in common.h, Added file common.c.
103 Added files typewalk.ch and routines to irdump.
104 Added visited flags and initialization to entity and all types.
105 Implemented some of the missing access routines in type.c, entity.c
108 Implemented constructor for ShrA.
110 Added routine that iterates the graph and verifies all nodes.
111 Added Phi_in stack to irgraph. This allows to build several
112 graphs at once with respect to the Phi building algorithm.
115 Implemented dumper for control flow graphs. Changed irr_* and dead_*
116 examples to dump cfg.
119 Implemeted explicit stack for the Phi node generation. See ircons.c.
122 added include string.h in xoprintf.c to get rid of warning:
123 implicit declaration of function `bcopy'
127 Added more cases to equivalent_node.
128 Portet gigo, identify, identify_remember.
129 The set/pset library can not handle several hash tables. At least,
130 compiling several procedures causes a segmentation fault during access
131 to the tables (oo_program_example). Need to work on this.
132 transform_node still needs to be ported.
133 some cases in equivalent_node are still missing.
135 To get it running I had to remove the call to optimize in the
136 new_Block constructor. It can only be called when the Block is
140 Introduced a walker that walks only over blocks. The asserts
141 might be too strict for general graphs, but so far it works.
142 For the walker I introduced an additional flag in the attribute
143 of Blocks, an a global block_visited variable (in irgraph.h).
144 Furhter I modularized dump_ir_node, implemented dump_ir_graph
145 with the existing walker, and added new routines to output a
147 Changed the examples to call the new dump routine.
150 Added auxiliary routines to ir_node:
151 skip_Proj, skip_Nop, is_Bad ...
152 Changed access routines to use get_irn_n instead of explicit array
153 accesses. Changed get_irn_n to call skip_Id, so that the access routines
154 never will return Id nodes.
157 Repaired Phi computation, changed new_r_Phi_in. Added test program to
158 test irregular controlflow.
161 Updated optimizations computed_value and equivalent_node to new
162 Syntax of FIRM nodes and to use access routines.
163 Added routine skip_Proj in irnode.
165 2.2.2000 Boris Boesler
166 Added files irgwalk.c and irgwalk.h. They include a simple function to
167 traverse an ir graph and execute pre and post functions to current node.
170 Added arrays with parameters and result types to the type informtion
171 of a procedure. This is needed for the code generation. Also added
172 the corresponding access routines.
173 Adapted the testprograms.
176 Found a bug / complication: the call order
177 get_value (makes Phi0, put's it into graph_arr)
178 set_value (overwrites Phi0 in graph_arr)
179 mature_block (upgrades Phi0, puts it again into graph_arr, overwriting
181 fails. Added test wether graph_arr is already set in phi_merge.
183 Added tons of comments to explain Phi generation -- the stack hack.
187 irdump now outputs the pnc_number for projs of Cmp nodes.
188 Added routine to access the pnc_string.
191 Added result "dataseg" to Start node, with all it's consequences.
192 We need this for the compiler lab to translate global variables.
193 Now they can be selected from the data segment, and the start
194 node supplies the pointer to this segment.
195 These changes are guarded by preprocessor variable UEBPRAKT in
197 Changed files: common.h, irgraph.ch, irnode.h
201 removed array_example, added array-heap_example and
202 array-stack_example and adapted makefile.
204 Entity now also allows type_method as owner. This is to model
205 the stack, Sel nodes that select a variable (array) from the
206 stack need an entity that describes what they select. This
207 entity gets the type of the enclosing procedure as owner.
210 Added future access routines in `irmode.[ch]' as comments,
211 that all attributes in the ir_mode struct can be user-defined.
212 Added access routines in `irgraph.[ch]', for all attributes.
215 Moved verify routines from `irgraph.[ch]' to own files `irvrfy.[ch]'.
216 Added `irvrfy.[ch]' to MAKEFILE
217 Added "inline" before access routines in `irnode.h', that no warnings
218 will appear furthermore.
219 Added three more access routines in `irmode.[ch]':
220 struct tarval *get_min_of_mode (ir_mode *mode);
221 struct tarval *get_max_of_mode (ir_mode *mode);
222 struct tarval *get_null_of_mode (ir_mode *mode);
225 Adaption of Alloc, Sel and Entity to new types:
226 Changed array_example to use type instead of type_class.
227 Changed entity to allow all types as owner instead of
228 only type_class. Added routine "assert_legal_owner_of_ent(type* type)".
229 Changed alloc to allow allocating variables of any type instead of
231 Adapted all testprograms to avoid warnings.
233 removed dtest ... from Makefile, replaced by test.
236 Added "run" to makefile, added array_example to makefile of testprograms.
237 Corrected testprogram array
238 Changed assert in irvrfy -- Conv.