From 146262bf8a65da4c74f0662dd84ee3f8c308c013 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 13 Oct 2008 23:06:46 +0000 Subject: [PATCH] - add doxygen comments [r22854] --- ir/be/ia32/ia32_architecture.c | 4 +--- ir/be/ia32/ia32_architecture.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ir/be/ia32/ia32_architecture.c b/ir/be/ia32/ia32_architecture.c index 1483f944d..7ff6f11da 100644 --- a/ir/be/ia32/ia32_architecture.c +++ b/ir/be/ia32/ia32_architecture.c @@ -450,9 +450,7 @@ static void set_arch_costs(void) } } -/** - * Evaluate a given simple instruction. - */ +/* Evaluate the costs of an instruction. */ int ia32_evaluate_insn(insn_kind kind, tarval *tv) { int cost; diff --git a/ir/be/ia32/ia32_architecture.h b/ir/be/ia32/ia32_architecture.h index 89fb4adab..ea89355c0 100644 --- a/ir/be/ia32/ia32_architecture.h +++ b/ir/be/ia32/ia32_architecture.h @@ -91,9 +91,21 @@ typedef struct { extern ia32_code_gen_config_t ia32_cg_config; +/** Initialize the ia32 architecture module. */ void ia32_init_architecture(void); + +/** Setup the ia32_cg_config structure by inspecting current user settings. */ void ia32_setup_cg_config(void); +/** + * Evaluate the costs of an instruction. Used by the irach multiplication + * lowerer. + * + * @param kind the instruction + * @param tv for MUL instruction, the multiplication constant + * + * @return the cost + */ int ia32_evaluate_insn(insn_kind kind, tarval *tv); #endif -- 2.20.1