The range of a singed byte is -128 <= x < 128, not -127 <= x and x <= 128.
[libfirm] / ir / tr / type_t.h
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief   Representation of types -- private header.
23  * @author  Goetz Lindenmaier, Michael Beck
24  * @version $Id$
25  * @see     type.h tpop_t.h tpop.h
26  */
27 #ifndef FIRM_TR_TYPE_T_H
28 #define FIRM_TR_TYPE_T_H
29
30 #include "typerep.h"
31 #include "tpop_t.h"
32 #include "irgraph.h"
33 #include "firm_common.h"
34
35 #include "array.h"
36
37 /** Class flags. */
38 enum class_flags {
39         cf_none            = 0,  /**< No flags. */
40         cf_final_class     = 1,  /**< Set if a class is an final class */
41         cf_interface_class = 2,  /**< Set if a class is an "interface" */
42         cf_absctract_class = 4,  /**< Set if a class is "abstract" */
43 };
44
45 /** Class type attributes. */
46 typedef struct {
47         ir_entity  **members;           /**< Array containing the fields and methods of this class. */
48         ir_type **subtypes;          /**< Array containing the direct subtypes. */
49         ir_type **supertypes;        /**< Array containing the direct supertypes */
50         ir_peculiarity peculiarity;  /**< The peculiarity of this class. */
51         ir_entity *type_info;        /**< An ir_entity representing this class, used for type info. */
52         int      dfn;                /**< A number that can be used for 'instanceof' operator. */
53         unsigned vtable_size;        /**< The size of the vtable for this class. */
54         unsigned clss_flags;         /**< Additional class flags. */
55 } cls_attr;
56
57 /** Struct type attributes. */
58 typedef struct {
59         ir_entity **members; /**< Fields of this struct. No method entities allowed. */
60 } stc_attr;
61
62 /** A (type, ir_entity) pair. */
63 typedef struct {
64         ir_type *tp;         /**< A type. */
65         ir_entity  *ent;     /**< An ir_entity. */
66         ident   *param_name; /**< For debugging purposes: the name of the parameter */
67 } tp_ent_pair;
68
69 /** Method type attributes. */
70 typedef struct {
71         int n_params;                   /**< Number of parameters. */
72         tp_ent_pair *params;            /**< Array of parameter type/value entities pairs. */
73         ir_type *value_params;          /**< A type whose entities represent copied value arguments. */
74         int n_res;                      /**< Number of results. */
75         tp_ent_pair *res_type;          /**< Array of result type/value ir_entity pairs. */
76         ir_type *value_ress;            /**< A type whose entities represent copied value results. */
77         ir_variadicity variadicity;        /**< The variadicity of the method. */
78         int first_variadic_param;       /**< The index of the first variadic parameter or -1 if non-variadic .*/
79         unsigned additional_properties; /**< Set of additional method properties. */
80         unsigned irg_calling_conv;      /**< A set of calling convention flags. */
81 } mtd_attr;
82
83 /** Union type attributes. */
84 typedef struct {
85         ir_entity **members;    /**< Fields of this union. No method entities allowed. */
86 } uni_attr;
87
88 /** Array type attributes. */
89 typedef struct {
90         int     n_dimensions;   /**< Number of array dimensions.  */
91         ir_node **lower_bound;  /**< Lower bounds of dimensions.  Usually all 0. */
92         ir_node **upper_bound;  /**< Upper bounds or dimensions. */
93         int     *order;         /**< Ordering of dimensions. */
94         ir_type *element_type;  /**< The type of the array elements. */
95         ir_entity *element_ent; /**< entity for the array elements, to be used for
96                                      element selection with a Sel node. */
97 } arr_attr;
98
99 /** An enumerator constant. */
100 struct ir_enum_const {
101         tarval  *value;     /**< The constants that represents this enumerator identifier. */
102         ident   *nameid;    /**< The name of the enumerator identifier. */
103         ir_type *owner;     /**< owner type of this enumerator constant. */
104 };
105
106 /** Enum type attributes. */
107 typedef struct {
108         ir_enum_const *enumer;   /**< Contains all enumerator constants that represent a member
109                                       of the enum -- enumerators. */
110 } enm_attr;
111
112 /** Pointer type attributes. */
113 typedef struct {
114         ir_type *points_to;  /**< The type of the ir_entity the pointer points to. */
115 } ptr_attr;
116
117 /** Primitive type attributes. */
118 typedef struct {
119         ir_type *base_type;  /**< For bitfield types: The base primitive type, NULL else. */
120 } pri_attr;
121
122
123 /*
124 typedef struct {        * No private attr, must be smaller than others! *
125 } id_attr;
126 */
127
128 /** General type attributes. */
129 typedef union {
130         cls_attr ca;      /**< Attributes of a class type */
131         stc_attr sa;      /**< Attributes of a struct type */
132         mtd_attr ma;      /**< Attributes of a method type */
133         uni_attr ua;      /**< Attributes of an union type */
134         arr_attr aa;      /**< Attributes of an array type */
135         enm_attr ea;      /**< Attributes of an enumeration type */
136         ptr_attr pa;      /**< Attributes of a pointer type */
137         pri_attr ba;      /**< Attributes of a primitive bitfield type */
138 } tp_attr;
139
140 /** Additional type flags. */
141 enum type_flags {
142         tf_none             =   0, /**< No flags. */
143         tf_lowered_type     =   1, /**< Set if this is a lowered type. */
144         tf_layout_fixed     =   2, /**< Set if the layout of a type is fixed */
145
146         tf_frame_type       =   4, /**< Set if this is a frame type. */
147         tf_value_param_type =   8, /**< Set if this is a value param type. */
148         tf_global_type      =  16, /**< Set only for the global type */
149         tf_tls_type         =  32, /**< Set only for the tls type */
150         tf_constructors     =  64, /**< Set only for the constructors segment type */
151         tf_destructors      = 128, /**< Set only for the destructors segment type */
152 };
153
154 /**
155  *  An abstract data type to represent types.
156  *
157  *  This is the abstract data type with which any type known in the
158  *  compiled program can be represented.  This includes types specified
159  *  in the program as well as types defined by the language.  In the
160  *  view of the intermediate representation there is no difference
161  *  between these types.
162  *
163  *  There exist several kinds of types, arranged by the structure of
164  *  the type.  These are distinguished by a type opcode.
165  *  A type is described by a set of attributes.  Some of these attributes
166  *  are common to all types, others depend on the kind of the type.
167  *
168  *  The following describes the common attributes.  They can only be
169  *  accessed by the functions given below.
170  *
171  *  The common fields are:
172  *
173  *  - firm_kind:   A firm_kind tag containing k_type.  This is useful
174  *                 for dynamically checking whether a node is a type node.
175  *  - type_op:     A tp_op specifying the kind of the type.
176  *  - name:        An identifier specifying the name of the type.  To be
177  *                 set by the frontend.
178  *  - visibility:  The visibility of this type.
179  *  - size:        The size of the type, i.e. an entity of this type will
180  *                 occupy size bits in memory.  In several cases this is
181  *                 determined when fixing the layout of this type (class,
182  *                 struct, union, array, enumeration).
183  *  - alignment    The alignment of the type, i.e. an entity of this type will
184  *                 be allocated an an address in memory with this alignment.
185  *                 In several cases this is determined when fixing the layout
186  *                 of this type (class, struct, union, array)
187  *  - mode:        The mode to be used to represent the type on a machine.
188  *  - state:       The state of the type.  The state represents whether the
189  *                 layout of the type is undefined or fixed (values: layout_undefined
190  *                 or layout_fixed).  Compound types can have an undefined
191  *                 layout.  The layout of the basic types primitive and pointer
192  *                 is always layout_fixed.  If the layout of
193  *                 compound types is fixed all entities must have an offset
194  *                 and the size of the type must be set.
195  *                 A fixed layout for enumeration types means that each enumeration
196  *                 is associated with an implementation value.
197  *  - assoc_type:  The associated lowered/upper type.
198  *  - visit:       A counter for walks of the type information.
199  *  - link:        A void* to associate some additional information with the type.
200  *
201  *  These fields can only be accessed via access functions.
202  *
203  *  Depending on the value of @c type_op, i.e., depending on the kind of the
204  *  type the adt contains further attributes.  These are documented below.
205  *
206  *  @see
207  *
208  *  @link class_type class @endlink, @link struct_type struct @endlink,
209  *  @link method_type method @endlink, @link union_type union @endlink,
210  *  @link array_type array @endlink, @link enumeration_type enumeration @endlink,
211  *  @link pointer_type pointer @endlink, @link primitive_type primitive @endlink
212  *
213  *  @todo
214  *      mode maybe not global field??
215  */
216 struct ir_type {
217         firm_kind kind;          /**< the firm kind, must be k_type */
218         const tp_op *type_op;    /**< the type operation of the type */
219         ident *name;             /**< The name of the type */
220         ir_visibility visibility;/**< Visibility of entities of this type. */
221         unsigned flags;          /**< Type flags, a bitmask of enum type_flags. */
222         unsigned size;           /**< Size of an ir_entity of this type. This is determined
223                                       when fixing the layout of this class.  Size must be
224                                       given in bytes. */
225         unsigned align;          /**< Alignment of an ir_entity of this type. This should be
226                                       set according to the source language needs. If not set it's
227                                       calculated automatically by get_type_alignment().
228                                       Alignment must be given in bytes. */
229         ir_mode *mode;           /**< The mode for atomic types */
230         ir_visited_t visit;      /**< visited counter for walks of the type information */
231         void *link;              /**< holds temporary data - like in irnode_t.h */
232         struct dbg_info *dbi;    /**< A pointer to information for debug support. */
233         ir_type *assoc_type;     /**< The associated lowered/unlowered type */
234
235         /* ------------- fields for analyses ---------------*/
236
237 #ifdef DEBUG_libfirm
238         long nr;                 /**< An unique node number for each node to make output
239                                       readable. */
240 #endif
241         tp_attr attr;            /**< Type kind specific fields. This must be the last
242                                       entry in this struct!  Varying size! */
243 };
244
245 /**
246  *   Creates a new type representation:
247  *
248  *   @param type_op  the kind of this type.  May not be type_id.
249  *   @param mode     the mode to be used for this type, may be NULL
250  *   @param name     an ident for the name of this type.
251  *   @param db       debug info
252  *
253  *   @return A new type of the given type.  The remaining private attributes are not
254  *           initialized.  The type is in state layout_undefined.
255  */
256 ir_type *
257 new_type(const tp_op *type_op, ir_mode *mode, ident *name, dbg_info *db);
258 void free_type_attrs       (ir_type *tp);
259
260 void free_class_entities      (ir_type *clss);
261 void free_struct_entities     (ir_type *strct);
262 void free_method_entities     (ir_type *method);
263 void free_union_entities      (ir_type *uni);
264 void free_array_entities      (ir_type *array);
265 void free_enumeration_entities(ir_type *enumeration);
266 void free_pointer_entities    (ir_type *pointer);
267
268 void free_array_automatic_entities(ir_type *array);
269
270 void free_class_attrs      (ir_type *clss);
271 void free_struct_attrs     (ir_type *strct);
272 void free_method_attrs     (ir_type *method);
273 void free_union_attrs      (ir_type *uni);
274 void free_array_attrs      (ir_type *array);
275 void free_enumeration_attrs(ir_type *enumeration);
276 void free_pointer_attrs    (ir_type *pointer);
277
278 void set_class_mode(ir_type *tp, ir_mode *mode);
279 void set_struct_mode(ir_type *tp, ir_mode *mode);
280 void set_pointer_mode(ir_type *tp, ir_mode *mode);
281 void set_primitive_mode(ir_type *tp, ir_mode *mode);
282 void set_enumeration_mode(ir_type *tp, ir_mode *mode);
283
284 void set_class_size(ir_type *tp, unsigned bytes);
285 void set_struct_size(ir_type *tp, unsigned bytes);
286 void set_union_size(ir_type *tp, unsigned bytes);
287 void set_array_size(ir_type *tp, unsigned bytes);
288 void set_default_size(ir_type *tp, unsigned bytes);
289
290 /**
291  * Initialize the type module.
292  *
293  * @param builtin_db       debug info for built-in objects
294  * @param default_cc_mask  default calling conventions for methods
295  */
296 void firm_init_type(dbg_info *builtin_db, unsigned default_cc_mask);
297
298
299 /* ------------------- *
300  *  inline functions   *
301  * ------------------- */
302
303 extern ir_visited_t firm_type_visited;
304
305 static inline void _set_master_type_visited(ir_visited_t val) { firm_type_visited = val; }
306 static inline ir_visited_t _get_master_type_visited(void)     { return firm_type_visited; }
307 static inline void _inc_master_type_visited(void)             { ++firm_type_visited; }
308
309 static inline void *
310 _get_type_link(const ir_type *tp) {
311         assert(tp && tp->kind == k_type);
312         return(tp -> link);
313 }
314
315 static inline void
316 _set_type_link(ir_type *tp, void *l) {
317         assert(tp && tp->kind == k_type);
318         tp -> link = l;
319 }
320
321 static inline const tp_op*
322 _get_type_tpop(const ir_type *tp) {
323         assert(tp && tp->kind == k_type);
324         return tp->type_op;
325 }
326
327 static inline ident*
328 _get_type_tpop_nameid(const ir_type *tp) {
329         assert(tp && tp->kind == k_type);
330         return get_tpop_ident(tp->type_op);
331 }
332
333 static inline tp_opcode
334 _get_type_tpop_code(const ir_type *tp) {
335         assert(tp && tp->kind == k_type);
336         return get_tpop_code(tp->type_op);
337 }
338
339 static inline ir_mode *
340 _get_type_mode(const ir_type *tp) {
341         assert(tp && tp->kind == k_type);
342         return tp->mode;
343 }
344
345 static inline ident *
346 _get_type_ident(const ir_type *tp) {
347         assert(tp && tp->kind == k_type);
348         return tp->name;
349 }
350
351 static inline void
352 _set_type_ident(ir_type *tp, ident* id) {
353         assert(tp && tp->kind == k_type);
354         tp->name = id;
355 }
356
357 static inline unsigned
358 _get_type_size_bytes(const ir_type *tp) {
359         assert(tp && tp->kind == k_type);
360         return tp->size;
361 }
362
363 static inline ir_type_state
364 _get_type_state(const ir_type *tp) {
365         assert(tp && tp->kind == k_type);
366         return tp->flags & tf_layout_fixed ? layout_fixed : layout_undefined;
367 }
368
369 static inline ir_visited_t
370 _get_type_visited(const ir_type *tp) {
371         assert(tp && tp->kind == k_type);
372         return tp->visit;
373 }
374
375 static inline void
376 _set_type_visited(ir_type *tp, ir_visited_t num) {
377         assert(tp && tp->kind == k_type);
378         tp->visit = num;
379 }
380
381 static inline void
382 _mark_type_visited(ir_type *tp) {
383         assert(tp && tp->kind == k_type);
384         assert(tp->visit < firm_type_visited);
385         tp->visit = firm_type_visited;
386 }
387
388 static inline int
389 _type_visited(const ir_type *tp) {
390         assert(tp && tp->kind == k_type);
391         return tp->visit >= firm_type_visited;
392 }
393
394 static inline int
395 _type_not_visited(const ir_type *tp) {
396         assert(tp && tp->kind == k_type);
397         return tp->visit  < firm_type_visited;
398 }
399
400 static inline dbg_info *
401 _get_type_dbg_info(const ir_type *tp) {
402         return tp->dbi;
403 }
404
405 static inline void
406 _set_type_dbg_info(ir_type *tp, dbg_info *db) {
407         tp->dbi = db;
408 }
409
410 static inline int
411 _is_type(const void *thing) {
412         return (get_kind(thing) == k_type);
413 }
414
415 static inline int
416 _is_class_type(const ir_type *clss) {
417         assert(clss);
418         return (clss->type_op == type_class);
419 }
420
421 static inline int
422 _get_class_n_members (const ir_type *clss) {
423         assert(clss && (clss->type_op == type_class));
424         return (ARR_LEN (clss->attr.ca.members));
425 }
426
427 static inline ir_entity *
428 _get_class_member   (const ir_type *clss, int pos) {
429         assert(clss && (clss->type_op == type_class));
430         assert(pos >= 0 && pos < _get_class_n_members(clss));
431         return clss->attr.ca.members[pos];
432 }
433
434 static inline unsigned
435 _get_class_vtable_size(const ir_type *clss) {
436         assert(clss && (clss->type_op == type_class));
437         return clss->attr.ca.vtable_size;
438 }
439
440 static inline void
441 _set_class_vtable_size(ir_type *clss, unsigned vtable_size) {
442         assert(clss && (clss->type_op == type_class));
443         clss->attr.ca.vtable_size = vtable_size;
444 }
445
446 static inline int
447 _is_class_final(const ir_type *clss) {
448         assert(clss && (clss->type_op == type_class));
449         return clss->attr.ca.clss_flags & cf_final_class;
450 }
451
452 static inline void
453 _set_class_final(ir_type *clss, int final) {
454         assert(clss && (clss->type_op == type_class));
455         if (final)
456                 clss->attr.ca.clss_flags |= cf_final_class;
457         else
458                 clss->attr.ca.clss_flags &= ~cf_final_class;
459 }
460
461 static inline int
462 _is_class_interface(const ir_type *clss) {
463         assert(clss && (clss->type_op == type_class));
464         return clss->attr.ca.clss_flags & cf_interface_class;
465 }
466
467 static inline void
468 _set_class_interface(ir_type *clss, int final) {
469         assert(clss && (clss->type_op == type_class));
470         if (final)
471                 clss->attr.ca.clss_flags |= cf_interface_class;
472         else
473                 clss->attr.ca.clss_flags &= ~cf_interface_class;
474 }
475
476 static inline int
477 _is_class_abstract(const ir_type *clss) {
478         assert(clss && (clss->type_op == type_class));
479         return clss->attr.ca.clss_flags & cf_absctract_class;
480         }
481
482 static inline void
483 _set_class_abstract(ir_type *clss, int final) {
484         assert(clss && (clss->type_op == type_class));
485         if (final)
486                 clss->attr.ca.clss_flags |= cf_absctract_class;
487         else
488                 clss->attr.ca.clss_flags &= ~cf_absctract_class;
489 }
490
491 static inline int
492 _is_struct_type(const ir_type *strct) {
493         assert(strct);
494         return (strct->type_op == type_struct);
495 }
496
497 static inline int
498 _is_method_type(const ir_type *method) {
499         assert(method);
500         return (method->type_op == type_method);
501 }
502
503 static inline int
504 _is_union_type(const ir_type *uni) {
505         assert(uni);
506         return (uni->type_op == type_union);
507 }
508
509 static inline int
510 _is_array_type(const ir_type *array) {
511         assert(array);
512         return (array->type_op == type_array);
513 }
514
515 static inline int
516 _is_enumeration_type(const ir_type *enumeration) {
517         assert(enumeration);
518         return (enumeration->type_op == type_enumeration);
519 }
520
521 static inline int
522 _is_pointer_type(const ir_type *pointer) {
523         assert(pointer);
524         return (pointer->type_op == type_pointer);
525 }
526
527 /** Returns true if a type is a primitive type. */
528 static inline int
529 _is_primitive_type(const ir_type *primitive) {
530         assert(primitive && primitive->kind == k_type);
531         return (primitive->type_op == type_primitive);
532 }
533
534 static inline int
535 _is_atomic_type(const ir_type *tp) {
536         assert(tp && tp->kind == k_type);
537         return (_is_primitive_type(tp) || _is_pointer_type(tp) ||
538                 _is_enumeration_type(tp));
539 }
540
541 static inline int
542 _get_method_n_params(const ir_type *method) {
543         assert(method && (method->type_op == type_method));
544         return method->attr.ma.n_params;
545 }
546
547 static inline int
548 _get_method_n_ress(const ir_type *method) {
549         assert(method && (method->type_op == type_method));
550         return method->attr.ma.n_res;
551 }
552
553 static inline unsigned
554 _get_method_additional_properties(const ir_type *method) {
555         assert(method && (method->type_op == type_method));
556         return method->attr.ma.additional_properties;
557 }
558
559 static inline void
560 _set_method_additional_properties(ir_type *method, unsigned mask) {
561         assert(method && (method->type_op == type_method));
562
563         /* do not allow to set the mtp_property_inherited flag or
564          * the automatic inheritance of flags will not work */
565         method->attr.ma.additional_properties = mask & ~mtp_property_inherited;
566 }
567
568 static inline void
569 _set_method_additional_property(ir_type *method, mtp_additional_property flag) {
570         assert(method && (method->type_op == type_method));
571
572         /* do not allow to set the mtp_property_inherited flag or
573          * the automatic inheritance of flags will not work */
574         method->attr.ma.additional_properties |= flag & ~mtp_property_inherited;
575 }
576
577 static inline unsigned
578 _get_method_calling_convention(const ir_type *method) {
579         assert(method && (method->type_op == type_method));
580         return method->attr.ma.irg_calling_conv;
581 }
582
583 static inline void
584 _set_method_calling_convention(ir_type *method, unsigned cc_mask) {
585         assert(method && (method->type_op == type_method));
586         method->attr.ma.irg_calling_conv = cc_mask;
587 }
588
589
590 #define set_master_type_visited(val)      _set_master_type_visited(val)
591 #define get_master_type_visited()         _get_master_type_visited()
592 #define inc_master_type_visited()         _inc_master_type_visited()
593 #define get_type_link(tp)                 _get_type_link(tp)
594 #define set_type_link(tp, l)              _set_type_link(tp, l)
595 #define get_type_tpop(tp)                 _get_type_tpop(tp)
596 #define get_type_tpop_nameid(tp)          _get_type_tpop_nameid(tp)
597 #define get_type_tpop_code(tp)            _get_type_tpop_code(tp)
598 #define get_type_mode(tp)                 _get_type_mode(tp)
599 #define get_type_ident(tp)                _get_type_ident(tp)
600 #define set_type_ident(tp, id)            _set_type_ident(tp, id)
601 #define get_type_size_bytes(tp)           _get_type_size_bytes(tp)
602 #define get_type_state(tp)                _get_type_state(tp)
603 #define get_type_visited(tp)              _get_type_visited(tp)
604 #define set_type_visited(tp, num)         _set_type_visited(tp, num)
605 #define mark_type_visited(tp)             _mark_type_visited(tp)
606 #define type_visited(tp)                  _type_visited(tp)
607 #define type_not_visited(tp)              _type_not_visited(tp)
608 #define get_type_dbg_info(tp)             _get_type_dbg_info(tp)
609 #define set_type_dbg_info(tp, db)         _set_type_dbg_info(tp, db)
610 #define is_type(thing)                    _is_type(thing)
611 #define is_Class_type(clss)               _is_class_type(clss)
612 #define get_class_n_members(clss)         _get_class_n_members(clss)
613 #define get_class_member(clss, pos)       _get_class_member(clss, pos)
614 #define get_class_vtable_size(clss)       _get_class_vtable_size(clss)
615 #define set_class_vtable_size(clss, size) _set_class_vtable_size(clss, size)
616 #define is_class_final(clss)              _is_class_final(clss)
617 #define set_class_final(clss, flag)       _set_class_final(clss, flag)
618 #define is_class_interface(clss)          _is_class_interface(clss)
619 #define set_class_interface(clss, flag)   _set_class_interface(clss, flag)
620 #define is_class_abstract(clss)           _is_class_abstract(clss)
621 #define set_class_abstract(clss, flag)    _set_class_abstract(clss, flag)
622 #define is_Struct_type(strct)             _is_struct_type(strct)
623 #define is_Method_type(method)            _is_method_type(method)
624 #define is_Union_type(uni)                _is_union_type(uni)
625 #define is_Array_type(array)              _is_array_type(array)
626 #define is_Enumeration_type(enumeration)  _is_enumeration_type(enumeration)
627 #define is_Pointer_type(pointer)          _is_pointer_type(pointer)
628 #define is_Primitive_type(primitive)      _is_primitive_type(primitive)
629 #define is_atomic_type(tp)                _is_atomic_type(tp)
630 #define get_method_n_params(method)       _get_method_n_params(method)
631 #define get_method_n_ress(method)         _get_method_n_ress(method)
632 #define get_method_additional_properties(method)        _get_method_additional_properties(method)
633 #define set_method_additional_properties(method, mask)  _set_method_additional_properties(method, mask)
634 #define set_method_additional_property(method, flag)    _set_method_additional_property(method, flag)
635 #define get_method_calling_convention(method)           _get_method_calling_convention(method)
636 #define set_method_calling_convention(method, cc_mask)  _set_method_calling_convention(method, cc_mask)
637
638 #endif /* FIRM_TR_TYPE_T_H */