+unsigned (get_method_additional_properties)(const ir_type *method) {
+ return _get_method_additional_properties(method);
+}
+
+void (set_method_additional_properties)(ir_type *method, unsigned mask) {
+ _set_method_additional_properties(method, mask);
+}
+
+void (set_method_additional_property)(ir_type *method, mtp_additional_property flag) {
+ _set_method_additional_property(method, flag);
+}
+
+/* Returns the calling convention of an entities graph. */
+unsigned (get_method_calling_convention)(const ir_type *method) {
+ return _get_method_calling_convention(method);
+}
+
+/* Sets the calling convention of an entities graph. */
+void (set_method_calling_convention)(ir_type *method, unsigned cc_mask) {
+ _set_method_calling_convention(method, cc_mask);
+}
+
+/* Returns the number of registers parameters, 0 means default. */
+unsigned get_method_n_regparams(ir_type *method) {
+ unsigned cc = get_method_calling_convention(method);
+ assert(IS_FASTCALL(cc));
+
+ return cc & ~cc_bits;
+}
+
+/* Sets the number of registers parameters, 0 means default. */
+void set_method_n_regparams(ir_type *method, unsigned n_regs) {
+ unsigned cc = get_method_calling_convention(method);
+ assert(IS_FASTCALL(cc));
+
+ set_method_calling_convention(method, (cc & cc_bits) | (n_regs & ~cc_bits));
+}
+