X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemachine.h;h=3a70e552a4c185ace58d9194d4bdd84c2d817ab0;hb=80a6158fdd766f42ee6c508a773bc114ff1b61f3;hp=2f6d1cf0421dc323f1cc52a6fc46000b3205dca6;hpb=41c42d0890e829ac41792a23a163dbf73d288f8e;p=libfirm diff --git a/ir/be/bemachine.h b/ir/be/bemachine.h index 2f6d1cf04..3a70e552a 100644 --- a/ir/be/bemachine.h +++ b/ir/be/bemachine.h @@ -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. */