start register allocator again, fix typo
[libfirm] / ir / be / bemachine.h
index 2f6d1cf..3a70e55 100644 (file)
@@ -19,15 +19,40 @@ struct _be_execution_unit_t {
 
 struct _be_execution_unit_type_t {
        unsigned            n_units;
+       unsigned            ports_per_unit;
        const char          *name;
        be_execution_unit_t *units;
 };
 
 struct _be_machine_t {
+       unsigned                 bundle_size;
+       unsigned                 bundels_per_cycle;
        unsigned                 n_unit_types;
        be_execution_unit_type_t *unit_types;
 };
 
+extern be_execution_unit_t be_machine_execution_units_DUMMY[1];
+
+/**
+ * Initialize generic dummy unit.
+ */
+void be_machine_init_dummy_unit(void);
+
+/**
+ * Returns the generic dummy unit.
+ */
+be_execution_unit_t *be_machine_get_dummy_unit(void);
+
+/**
+ * Check if given unit is the generic dummy unit.
+ */
+int be_machine_is_dummy_unit(be_execution_unit_t *unit);
+
+/**
+ * Check if given unit is the generic dummy unit type.
+ */
+int be_machine_is_dummy_unit_type(be_execution_unit_type_t *tp);
+
 /**
  * Get the number of available unit types in the given machine.
  */