*** empty log message ***
[libfirm] / Changes
1   7.7.2000 Chris
2   Fixed some bugs in irgopt.c
3   Added some missing 'get_new_node' methods, so the new obstack contains
4   the correct nodes.
5
6   6.7.2000 Chris
7   Renamed ir_vrfy to irn_vrfy and vrfy_graphg to irg_vrfy.
8   Solved some copy'n'paste problems. Deleted most debug-code!
9   Added comments to several files.
10
11   6.7.2000 Goetz
12   Fixed bug in _r_ constructors for all four Div operations.
13   Fixed bug in turn_into_tuple: didn't remember the block.
14   Tested transform_node.
15
16   5.7.2000 Goetz
17   Fixed some testprograms to new semantics of firm.
18   Added testprogram global_var_example.
19   Fixed a bug in irop:  Size of Sel node was (entity *) instead of
20   sel_attr.  Therefor array_heap_example aborted.
21   Also found a missing break in typewalk, case iro_Alloc.
22   Added a construct that unifies all things constructed by the lib
23   and needed to represent a program:  irprog.ch
24   This contains a list of all types as well as a list of all ir graphs.
25   I added calls to initialization and constructors so that this is constructed
26   automatically.  I changed firm.c, type.c, irgraph.c and ev. more.
27   Removed strange block struct and constructor from ircons.c.
28   Moved routines for automatic Phi construction from irgmod to ircons.
29   Sorted functions in ircons to reflect the different interfaces.
30   Renamed dataseg to globals to be conformant with documentation.
31   Added conservation of current_ir_graph to irgopt.c.
32   Corrected bug in Makefiles: wrong path to directory ./inlude.
33
34   4.7.2000 Goetz
35   Commented a whole bunch of stuff, e.g. in ircons.h  (Procedure to construct)
36   We should change the naming of the Block constructor.
37   Removed acces routines to attr. "closed" of Block.
38   Removed second implementation of new_ir_node from ircons and some comments
39   concerned with the now resolved cyclic dependency.
40   Fixed some bugs in irgopt so that the compilation goes through.
41
42   29.6.2000 Chris
43   Changed the irnode attribut 'visit' into 'visited'.
44   Added some access functions, like get/set_irn_visit etc.
45
46   28.6.2000 Chris
47   Renamed some access funtion in irgraph.*.
48   Deleted two global flags (ir_visited and block_visited) from irgraph.*.
49   Added two attributes to the irgraph struct. The visited flags belongs
50   to a ir graph, not to a whole program.
51
52   26.6.2000 Chris
53   A new optimization has been finished. The dead-node-elimination copies
54   the existing ir graph from one opstack to another. While walking the
55   graph, only the reachable nodes will be copied, so the "dead-nodes"
56   (unreachable in the controlflow) are removed.
57
58   19.6.2000 Chris
59   Solved some problems in the 'copy_node' function. The in array was not
60   as easy as it seamed.
61
62   16.6.2000 Chris
63   Wrote a new 'post' funtion, for future use in 'dead-node-elimination'
64   optimization, which is needed in the paramter list of 'irg_walk'.
65
66   14.6.2000 Chris
67   Moved 'optimze_in_place_wrapper' from iropt.* tothe new files irgopt.*.
68   New functions 'local_optimze_graph' and 'dead_node_elimination' are added,
69   but not finished.
70
71   31.5.2000 Chris
72   Removed some files from the archive, after dependencies and usage are
73   checked:
74   - 'ir/common/strerror.c'
75   was nowhere used;
76   - 'ir/ident/xx_ident.h'
77   an empty file, only included by 'ident.c', but never used;
78   - 'ir/tv/label.c' and
79   - 'ir/tv/label.h'
80   contained a numeric counter;
81   The files were included in 'tv.h' and implemented in 'tarval.c'. The two
82   functions 'tarval_label' and 'tarval_forall_labeled' were also never used.
83   In the old fiasco compiler, the label thing is used in the backend.
84   Search for 'babil' to see the usage.
85   Also removed the two attributes 'lab' and 'used' in the tarval struct.
86
87   26.5.2000 Chris
88   Moved the 'new_ir_node' constructor from ircons.* to irnode.* and fixed
89   afterwards some recursive includes, so libfirm works again.
90
91   2+3.2000 Goetz
92   Did a lot of changes, which I never commented until now (4.7.00).
93
94   * Added new result to Start node: Pointer to global data segment.
95   * Extended Semantics of SymConst node to represent information for the
96     linker.
97   * Added arithmeitc nodes (Shrs, Minus ...)
98
99   Rearranged the directory structure and adjusted the makefiles.
100   The directories contain:
101   ir:       everything for the intermediate representation (better: src?)
102     /ir:    the ir itself, and standard optimizations.
103     /tv:    the target value module
104     /tr:    the type and entity representation
105     /adt:   abstract data types
106     /common:  stuff needed by all other dirs
107     /debug: debugging Unterstuetzung
108     /ident:
109   include:  external files needen as includes
110   testprograms: examples to test the lib.
111
112   The makefiles generate files with extension .d that contain the dependencies
113   between the files.
114
115   15.2.2000 Goetz
116   Added access routine to attribute link of irnode in irnode.ch.
117   Added get_negated_pnc to irnode.ch.
118
119   14.2.2000 Goetz
120   Added an iterator in iropt that calls the optimization for all nodes.
121   Copied optimize's code to optimize_in_place and removed deallocations.
122   Made set_irn_n in irnode.c public.
123   Added Bad as possible cfg predecessor in is_cfg_node in irnode.  Bads
124   are allowded as cfgpredecessors to represent dead "incoming" control
125   flow.
126   Added call to optimize_in_place in mature_block. Is this useful?
127
128   10.2.2000 Goetz
129   Changed tests from comparing enums to comparing pointers. This is more
130   efficient (is it?) and reads better.  e.g., instead get_irn_opcode == irm_And
131   now get_irn_op == op_And
132
133   10.2.2000 Goetz
134   Compared equivalent_value to the one in the original fiasco.
135   Added a test in case iro_And.
136   Changed implementation of iro_Div. Added routines turn_into_tuple
137     and set_irn_op() in irgmod/irnode.
138   Changed implementation of irn_Minus (although commented out).
139   Now all features are ported or documented for this function.
140
141   10.2.2000 Goetz
142   Compared computed_value to the one in the original fiasco.
143   Added one further optimization in case iro_Proj.
144   Now all features are ported for this function.
145
146   9.2.2000 Goetz
147   Updated comments in ircons.h.
148
149   9.2.2000 Goetz
150   Changed possible attribute of SymConst from type_class to type.
151   SymConst size could be the size of a union, array, ...
152
153   9.2.2000 Goetz
154   Implemented two dumpers that dump type information and a graph with
155   type information.
156
157   9.2.2000 Goetz
158   Implemented a walker that walks over the type informatin that can
159   be reached from an ir node.
160   Added routine get_kind(firm_thing) in common.h, Added file common.c.
161   Added files typewalk.ch and routines to irdump.
162   Added visited flags and initialization to entity and all types.
163   Implemented some of the missing access routines in type.c, entity.c
164
165   9.2.2000 Goetz
166   Implemented constructor for ShrA.
167   Added type struct.
168   Added routine that iterates the graph and verifies all nodes.
169   Added Phi_in stack to irgraph.  This allows to build several
170     graphs at once with respect to the Phi building algorithm.
171
172   9.2.2000 Goetz
173   Implemented dumper for control flow graphs.  Changed irr_* and dead_*
174   examples to dump cfg.
175
176   8.2.2000 Goetz
177   Implemeted explicit stack for the Phi node generation.  See ircons.c.
178
179   8.2.2000 Goetz
180   added include string.h in xoprintf.c to get rid of warning:
181   implicit declaration of function `bcopy'
182
183   7.2.2000 Goetz
184   Worked on iropt.c:
185   Added more cases to equivalent_node.
186   Portet gigo, identify, identify_remember.
187   The set/pset library can not handle several hash tables.  At least,
188   compiling several procedures causes a segmentation fault during access
189   to the tables (oo_program_example).  Need to work on this.
190   transform_node still needs to be ported.
191   some cases in equivalent_node are still missing.
192
193   To get it running I had to remove the call to optimize in the
194   new_Block constructor. It can only be called when the Block is
195   mature.
196
197   7.2.2000 Goetz
198   Introduced a walker that walks only over blocks.  The asserts
199   might be too strict for general graphs, but so far it works.
200   For the walker I introduced an additional flag in the attribute
201   of Blocks, an a global block_visited variable (in irgraph.h).
202   Furhter I modularized dump_ir_node, implemented dump_ir_graph
203   with the existing walker, and added new routines to output a
204   basic block graph.
205   Changed the examples to call the new dump routine.
206
207   7.2.2000 Goetz
208   Added auxiliary routines to ir_node:
209   skip_Proj, skip_Nop, is_Bad ...
210   Changed access routines to use get_irn_n instead of explicit array
211   accesses. Changed get_irn_n to call skip_Id, so that the access routines
212   never will return Id nodes.
213
214   3.2.2000 Goetz
215   Repaired Phi computation, changed new_r_Phi_in.  Added test program to
216   test irregular controlflow.
217
218   2.2.2000 Goetz
219   Updated optimizations computed_value and equivalent_node to new
220   Syntax of FIRM nodes and to use access routines.
221   Added routine skip_Proj in irnode.
222
223   2.2.2000 Boris Boesler
224   Added files irgwalk.c and irgwalk.h. They include a simple function to
225   traverse an ir graph and execute pre and post functions to current node.
226
227   1.2.2000 Goetz
228   Added arrays with parameters and result types to the type informtion
229   of a procedure.  This is needed for the code generation.  Also added
230   the corresponding access routines.
231   Adapted the testprograms.
232
233   1.2.2000 Goetz
234   Found a bug / complication:  the call order
235     get_value   (makes Phi0, put's it into graph_arr)
236     set_value   (overwrites Phi0 in graph_arr)
237     mature_block (upgrades Phi0, puts it again into graph_arr, overwriting
238                   the proper value.)
239   fails.  Added test wether graph_arr is already set in phi_merge.
240
241   Added tons of comments to explain Phi generation -- the stack hack.
242
243
244   27.1.2000 Goetz
245   irdump now outputs the pnc_number for projs of Cmp nodes.
246   Added routine to access the pnc_string.
247
248   27.1.2000 Goetz
249   Added result "dataseg" to Start node, with all it's consequences.
250   We need this for the compiler lab to translate global variables.
251   Now they can be selected from the data segment, and the start
252   node supplies the pointer to this segment.
253   These changes are guarded by preprocessor variable UEBPRAKT in
254   common.h
255   Changed files: common.h, irgraph.ch, irnode.h
256
257   26.1.2000 Goetz
258   Testprograms:
259   removed array_example, added array-heap_example and
260   array-stack_example and adapted makefile.
261   ir_lib:
262   Entity now also allows type_method as owner. This is to model
263   the stack, Sel nodes that select a variable (array) from the
264   stack need an entity that describes what they select.  This
265   entity gets the type of the enclosing procedure as owner.
266
267   24.1.2000 Chris
268   Added future access routines in `irmode.[ch]' as comments,
269     that all attributes in the ir_mode struct can be user-defined.
270   Added access routines in `irgraph.[ch]', for all attributes.
271
272   22.1.2000 Chris
273   Moved verify routines from `irgraph.[ch]' to own files `irvrfy.[ch]'.
274   Added `irvrfy.[ch]' to MAKEFILE
275   Added "inline" before access routines in `irnode.h', that no warnings
276     will appear furthermore.
277   Added three more access routines in `irmode.[ch]':
278         struct tarval *get_min_of_mode (ir_mode *mode);
279         struct tarval *get_max_of_mode (ir_mode *mode);
280         struct tarval *get_null_of_mode (ir_mode *mode);
281
282   21.1.2000 Goetz
283   Adaption of Alloc, Sel and Entity to new types:
284     Changed array_example to use type instead of type_class.
285     Changed entity to allow all types as owner instead of
286       only type_class.  Added routine "assert_legal_owner_of_ent(type* type)".
287     Changed alloc to allow allocating variables of any type instead of
288       only type_class.
289     Adapted all testprograms to avoid warnings.
290
291   removed dtest ... from Makefile, replaced by test.
292
293   20.1.2000 Goetz
294   Added "run" to makefile, added array_example to makefile of testprograms.
295   Corrected testprogram array
296   Changed assert in irvrfy -- Conv.
297   Started Change log.
298   Started TODO log.