*** empty log message ***
[libfirm] / Changes
1
2
3   5.7.2000 Goetz
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.
7
8   5.7.2000 Goetz
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.
14
15   5.7.2000 Goetz
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.
22
23   4.7.2000 Goetz
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.
26
27   4.7.2000 Goetz
28   Removed acces routines to attr. "closed" of Block.
29
30   4.7.2000 Goetz
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.
34
35   31.5.2000 Chris
36   Removed some files from the archive, after dependencies and usage are
37   checked:
38   - 'ir/common/strerror.c'
39   was nowhere used;
40   - 'ir/ident/xx_ident.h'
41   an empty file, only included by 'ident.c', but never used;
42   - 'ir/tv/label.c' and
43   - 'ir/tv/label.h'
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.
50
51   26.5.2000 Chris
52   Moved the 'new_ir_node' constructor from ircons.* to irnode.* and fixed
53   afterwards some recursive includes, so libfirm works again.
54
55   2+3.2000 Goetz
56   Did a lot of changes, which I never commented until now (4.7.00).
57
58   * Added new result to Start node: Pointer to global data segment.
59   * Extended Semantics of SymConst node to represent information for the
60     linker.
61   * Added arithmeitc nodes (Shrs, Minus ...)
62
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
72     /ident:
73   include:  external files needen as includes
74   testprograms: examples to test the lib.
75
76   The makefiles generate files with extension .d that contain the dependencies
77   between the files.
78
79   15.2.2000 Goetz
80   Added access routine to attribute link of irnode in irnode.ch.
81   Added get_negated_pnc to irnode.ch.
82
83   14.2.2000 Goetz
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
89   flow.
90   Added call to optimize_in_place in mature_block. Is this useful?
91
92   10.2.2000 Goetz
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
96
97   10.2.2000 Goetz
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.
104
105   10.2.2000 Goetz
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.
109
110   9.2.2000 Goetz
111   Updated comments in ircons.h.
112
113   9.2.2000 Goetz
114   Changed possible attribute of SymConst from type_class to type.
115   SymConst size could be the size of a union, array, ...
116
117   9.2.2000 Goetz
118   Implemented two dumpers that dump type information and a graph with
119   type information.
120
121   9.2.2000 Goetz
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
128
129   9.2.2000 Goetz
130   Implemented constructor for ShrA.
131   Added type struct.
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.
135
136   9.2.2000 Goetz
137   Implemented dumper for control flow graphs.  Changed irr_* and dead_*
138   examples to dump cfg.
139
140   8.2.2000 Goetz
141   Implemeted explicit stack for the Phi node generation.  See ircons.c.
142
143   8.2.2000 Goetz
144   added include string.h in xoprintf.c to get rid of warning:
145   implicit declaration of function `bcopy'
146
147   7.2.2000 Goetz
148   Worked on iropt.c:
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.
156
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
159   mature.
160
161   7.2.2000 Goetz
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
168   basic block graph.
169   Changed the examples to call the new dump routine.
170
171   7.2.2000 Goetz
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.
177
178   3.2.2000 Goetz
179   Repaired Phi computation, changed new_r_Phi_in.  Added test program to
180   test irregular controlflow.
181
182   2.2.2000 Goetz
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.
186
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.
190
191   1.2.2000 Goetz
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.
196
197   1.2.2000 Goetz
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
202                   the proper value.)
203   fails.  Added test wether graph_arr is already set in phi_merge.
204
205   Added tons of comments to explain Phi generation -- the stack hack.
206
207
208   27.1.2000 Goetz
209   irdump now outputs the pnc_number for projs of Cmp nodes.
210   Added routine to access the pnc_string.
211
212   27.1.2000 Goetz
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
218   common.h
219   Changed files: common.h, irgraph.ch, irnode.h
220
221   26.1.2000 Goetz
222   Testprograms:
223   removed array_example, added array-heap_example and
224   array-stack_example and adapted makefile.
225   ir_lib:
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.
230
231   24.1.2000 Chris
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.
235
236   22.1.2000 Chris
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);
245
246   21.1.2000 Goetz
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
252       only type_class.
253     Adapted all testprograms to avoid warnings.
254
255   removed dtest ... from Makefile, replaced by test.
256
257   20.1.2000 Goetz
258   Added "run" to makefile, added array_example to makefile of testprograms.
259   Corrected testprogram array
260   Changed assert in irvrfy -- Conv.
261   Started Change log.
262   Started TODO log.