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