Added name getting methods for variability and allocation
[libfirm] / ir / tr / type_t.h
index 5d85b45..42f6d87 100644 (file)
@@ -36,13 +36,11 @@ typedef struct {
 /** method attributes */
 typedef struct {
   int n_params;        /**< number of parameters */
-  type **param_type;   /**< code generation needs this information.
-                          @@@ Should it be generated by the frontend,
-                          or does this impose unnecessary work for
-                          optimizations that change the parameters of
-                          methods? */
+  type **param_type;   /**< code generation needs this information. */
+  type *value_params;  /**< A type whose entities represent copied value arguments. */
   int n_res;           /**< number of results */
   type **res_type;     /**< array with result types */
+  type *value_ress;    /**< A type whose entities represent copied value results. */
   variadicity variadicity; /**< variadicity of the method */
 } mtd_attr;
 
@@ -151,4 +149,7 @@ INLINE void free_pointer_attrs    (type *pointer);
 INLINE void free_primitive_attrs  (type *primitive);
 
 
+/** initialize the type module */
+void init_type (void);
+
 # endif /* _TYPE_T_H_ */