4dfe3146520069853d8e7259ebacd5014d1a4cb1
[libfirm] / Changes
1   4.7.2000 Goetz
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.
4
5   4.7.2000 Goetz
6   Removed acces routines to attr. "closed" of Block.
7
8   4.7.2000 Goetz
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.
12
13   31.5.2000 Chris
14   Removed some files from the archive, after dependencies and usage are
15   checked:
16   - 'ir/common/strerror.c'
17   was nowhere used;
18   - 'ir/ident/xx_ident.h'
19   an empty file, only included by 'ident.c', but never used;
20   - 'ir/tv/label.c' and
21   - 'ir/tv/label.h'
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.
28
29   26.5.2000 Chris
30   Moved the 'new_ir_node' constructor from ircons.* to irnode.* and fixed
31   afterwards some recursive includes, so libfirm works again.
32
33   2+3.2000 Goetz
34   Did a lot of changes, which I never commented until now (4.7.00).
35
36   * Added new result to Start node: Pointer to global data segment.
37   * Extended Semantics of SymConst node to represent information for the
38     linker.
39   * Added arithmeitc nodes (Shrs, Minus ...)
40
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
50     /ident:
51   include:  external files needen as includes
52   testprograms: examples to test the lib.
53
54   The makefiles generate files with extension .d that contain the dependencies
55   between the files.
56
57   15.2.2000 Goetz
58   Added access routine to attribute link of irnode in irnode.ch.
59   Added get_negated_pnc to irnode.ch.
60
61   14.2.2000 Goetz
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
67   flow.
68   Added call to optimize_in_place in mature_block. Is this useful?
69
70   10.2.2000 Goetz
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
74
75   10.2.2000 Goetz
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.
82
83   10.2.2000 Goetz
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.
87
88   9.2.2000 Goetz
89   Updated comments in ircons.h.
90
91   9.2.2000 Goetz
92   Changed possible attribute of SymConst from type_class to type.
93   SymConst size could be the size of a union, array, ...
94
95   9.2.2000 Goetz
96   Implemented two dumpers that dump type information and a graph with
97   type information.
98
99   9.2.2000 Goetz
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
106
107   9.2.2000 Goetz
108   Implemented constructor for ShrA.
109   Added type struct.
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.
113
114   9.2.2000 Goetz
115   Implemented dumper for control flow graphs.  Changed irr_* and dead_*
116   examples to dump cfg.
117
118   8.2.2000 Goetz
119   Implemeted explicit stack for the Phi node generation.  See ircons.c.
120
121   8.2.2000 Goetz
122   added include string.h in xoprintf.c to get rid of warning:
123   implicit declaration of function `bcopy'
124
125   7.2.2000 Goetz
126   Worked on iropt.c:
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.
134
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
137   mature.
138
139   7.2.2000 Goetz
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
146   basic block graph.
147   Changed the examples to call the new dump routine.
148
149   7.2.2000 Goetz
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.
155
156   3.2.2000 Goetz
157   Repaired Phi computation, changed new_r_Phi_in.  Added test program to
158   test irregular controlflow.
159
160   2.2.2000 Goetz
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.
164
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.
168
169   1.2.2000 Goetz
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.
174
175   1.2.2000 Goetz
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
180                   the proper value.)
181   fails.  Added test wether graph_arr is already set in phi_merge.
182
183   Added tons of comments to explain Phi generation -- the stack hack.
184
185
186   27.1.2000 Goetz
187   irdump now outputs the pnc_number for projs of Cmp nodes.
188   Added routine to access the pnc_string.
189
190   27.1.2000 Goetz
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
196   common.h
197   Changed files: common.h, irgraph.ch, irnode.h
198
199   26.1.2000 Goetz
200   Testprograms:
201   removed array_example, added array-heap_example and
202   array-stack_example and adapted makefile.
203   ir_lib:
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.
208
209   24.1.2000 Chris
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.
213
214   22.1.2000 Chris
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);
223
224   21.1.2000 Goetz
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
230       only type_class.
231     Adapted all testprograms to avoid warnings.
232
233   removed dtest ... from Makefile, replaced by test.
234
235   20.1.2000 Goetz
236   Added "run" to makefile, added array_example to makefile of testprograms.
237   Corrected testprogram array
238   Changed assert in irvrfy -- Conv.
239   Started Change log.
240   Started TODO log.