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