X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemachine.c;h=c617e50035b91219e8914cb9731c07d21ae5044d;hb=780d1704bdcc2332c68a5161cfaa0f15cee9c352;hp=245aa8ff47735573bfa7861b7ff8b52647e61b3f;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/be/bemachine.c b/ir/be/bemachine.c index 245aa8ff4..c617e5003 100644 --- a/ir/be/bemachine.c +++ b/ir/be/bemachine.c @@ -1,12 +1,30 @@ +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + /** - * Abstract machine interface. - * @author Christian Wuerdig - * @date 01.12.2006 - * @cvs-id $Id$ + * @file + * @brief Abstract machine interface. + * @author Christian Wuerdig + * @date 01.12.2006 + * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "bemachine.h" @@ -20,7 +38,8 @@ be_execution_unit_type_t be_machine_execution_unit_types[] = { /** * Initialize generic dummy unit. */ -void be_machine_init_dummy_unit(void) { +void be_machine_init_dummy_unit(void) +{ be_machine_execution_units_DUMMY[0].name = "GENERIC_DUMMY_UNIT"; be_machine_execution_units_DUMMY[0].tp = &be_machine_execution_unit_types[0]; } @@ -28,20 +47,23 @@ void be_machine_init_dummy_unit(void) { /** * Returns the generic dummy unit. */ -be_execution_unit_t *be_machine_get_dummy_unit(void) { +be_execution_unit_t *be_machine_get_dummy_unit(void) +{ return &be_machine_execution_units_DUMMY[0]; } /** * Check if given unit is the generic dummy unit. */ -int be_machine_is_dummy_unit(const be_execution_unit_t *unit) { +int be_machine_is_dummy_unit(const be_execution_unit_t *unit) +{ return unit == &be_machine_execution_units_DUMMY[0]; } /** * Check if given unit is the generic dummy unit type. */ -int be_machine_is_dummy_unit_type(const be_execution_unit_type_t *tp) { +int be_machine_is_dummy_unit_type(const be_execution_unit_type_t *tp) +{ return tp == &be_machine_execution_unit_types[0]; }