X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firnode.h;h=2cde90439e6dd2b7144b42516adf89e9a7b7f552;hb=e810b4fa9931a8179bdaf868faec21416e6c87fb;hp=d51649ead354350c8ac2b279e36b285b7d31196b;hpb=8fd12b1714e2024889e81aa4b351d1b6640e1c79;p=libfirm diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index d51649ead..2cde90439 100644 --- a/include/libfirm/irnode.h +++ b/include/libfirm/irnode.h @@ -347,7 +347,7 @@ int is_value_arg_pointer(ir_node *n); /* @@@ no more supported */ ir_node **get_Block_cfgpred_arr(ir_node *node); int get_Block_n_cfgpreds(const ir_node *node); -ir_node *get_Block_cfgpred(ir_node *node, int pos); +ir_node *get_Block_cfgpred(const ir_node *node, int pos); void set_Block_cfgpred(ir_node *node, int pos, ir_node *pred); /** Get the predecessor block. * @@ -360,8 +360,8 @@ void set_Block_cfgpred(ir_node *node, int pos, ir_node *pred); * - If we encounter the Bad node, this function does not return * Start, but the Bad node. */ -ir_node *get_Block_cfgpred_block(ir_node *node, int pos); -int get_Block_matured(ir_node *node); +ir_node *get_Block_cfgpred_block(const ir_node *node, int pos); +int get_Block_matured(const ir_node *node); void set_Block_matured(ir_node *node, int matured); /** A visited flag only for block nodes. @@ -487,10 +487,13 @@ void set_Return_res(ir_node *node, int pos, ir_node *res); tarval *get_Const_tarval(const ir_node *node); void set_Const_tarval(ir_node *node, tarval *con); +/** Return non-zero if the given Const node represents the 0 constant. */ int is_Const_null(const ir_node *node); +/** Return non-zero if the given Const node represents the 1 constant. */ int is_Const_one(const ir_node *node); +/** Return non-zero if the given Const node represents the constant with all bits set. */ int is_Const_all_one(const ir_node *node); /** Returns the source language type of a Const node. @@ -875,7 +878,7 @@ void set_Rot_right(ir_node *node, ir_node *right); ir_node *get_Conv_op(const ir_node *node); void set_Conv_op(ir_node *node, ir_node *op); -int get_Conv_strict(ir_node *node); +int get_Conv_strict(const ir_node *node); void set_Conv_strict(ir_node *node, int flag); /* Does Cast need a mem operator? @@ -1216,6 +1219,8 @@ ir_node *skip_HighLevel(ir_node *node); int is_Const(const ir_node *node); /** Returns true if a node is a Conv node. */ int is_Conv(const ir_node *node); +/** Returns true if a node is a strictConv node. */ +int is_strictConv(const ir_node *node); /** Returns true if a node is a Cast node. */ int is_Cast(const ir_node *node); /** Returns true if node is a Bad node. */