X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flower%2Flower_mode_b.h;h=1d08f7cbc91856b4df36e84a8caeae12d982c077;hb=10927999e0da0ff6e4b816018291eea9cc265a31;hp=9f863253ff60dcd87deeb939ebd0d4a2db88b19d;hpb=f8c684c7e7d9b2ce9fc213f396cfb1ffa5c573ab;p=libfirm diff --git a/ir/lower/lower_mode_b.h b/ir/lower/lower_mode_b.h index 9f863253f..1d08f7cbc 100644 --- a/ir/lower/lower_mode_b.h +++ b/ir/lower/lower_mode_b.h @@ -21,7 +21,6 @@ * @file * @brief lower mode_b operations to something the backend can handle * @author Matthias Braun, Christoph Mallon - * @version $Id$ * * Most machines can't really manipulate mode_b values (which are usually * modeled as cpu flags). So you often have to convert them into machine words @@ -37,28 +36,6 @@ #include "firm_types.h" -/** - * Function which creates a "set" instraction. A "set" instruction takes a - * condition value (a value with mode_b) as input and produces a value in a - * general purpose integer mode. - * Most architectures have special intrinsics for this. But if all else fails - * you can just produces the an if-like construct. - */ -typedef ir_node* (*create_set_func)(ir_node *cond); - -/** - * implementation of create_set_func which produces a cond with control - * flow - */ -ir_node *ir_create_cond_set(ir_node *cond, ir_mode *dest_mode); - -typedef struct lower_mode_b_config_t { - /* mode that is used to transport 0/1 values */ - ir_mode *lowered_mode; - /* callback for creating set-like instructions */ - create_set_func create_set; -} lower_mode_b_config_t; - /** * Lowers mode_b operations to integer arithmetic. After the lowering the only * operations with mode_b are the Projs of Cmps; the only nodes with mode_b @@ -66,9 +43,9 @@ typedef struct lower_mode_b_config_t { * * Example: Psi(a < 0, 1, 0) => a >> 31 * - * @param irg the firm graph to lower - * @param config configuration for mode_b lowerer + * @param irg the firm graph to lower + * @param lowered_mode mode that is used to transport 0/1 values */ -void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *config); +void ir_lower_mode_b(ir_graph *irg, ir_mode *lowered_mode); #endif