X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firnode.h;h=806f56ed15aed5e7df13d94194a3451e6d320ff9;hb=0d1dddb39fb247e15b28a74181a0bc5bb764e2ad;hp=157f4730256016950737c0b3d7cccb9a8f80628d;hpb=086f13604f2ba0c462952366b5656b6f0bc0a355;p=libfirm diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index 157f47302..806f56ed1 100644 --- a/include/libfirm/irnode.h +++ b/include/libfirm/irnode.h @@ -32,7 +32,6 @@ #include "typerep.h" #include "irop.h" #include "irmode.h" -#include "dbginfo.h" /** * @file irnode.h @@ -817,6 +816,9 @@ int get_negated_pnc(int pnc, ir_mode *mode); /** Calculates the inversed (R^-1) pnc condition, i.e., "<" --> ">" */ int get_inversed_pnc(int pnc); +/** An alternative name for get_inversed_pnc() that can be better memorized. */ +#define get_mirrored_pnc(pnc) get_inversed_pnc(pnc) + ir_node *get_Cmp_left(const ir_node *node); void set_Cmp_left(ir_node *node, ir_node *left); ir_node *get_Cmp_right(const ir_node *node); @@ -1202,8 +1204,14 @@ int is_Add(const ir_node *node); int is_And(const ir_node *node); /** Returns true if node is an Or node. */ int is_Or(const ir_node *node); +/** Returns true if node is an Eor node. */ +int is_Eor(const ir_node *node); /** Returns true if node is a Sub node. */ int is_Sub(const ir_node *node); +/** Returns true if node is a Not node. */ +int is_Not(const ir_node *node); +/** Returns true if node is a Psi node. */ +int is_Psi(const ir_node *node); /** Returns true if node is a Tuple node. */ int is_Tuple(const ir_node *node); /** Returns true if the node is not a Block */ @@ -1364,7 +1372,7 @@ void set_Cond_jmp_pred(ir_node *cond, cond_jmp_predicate pred); * must be passed to the access macro get_irn_data(), 0 if the * registration failed. */ -unsigned register_additional_node_data(unsigned size); +unsigned firm_register_additional_node_data(unsigned size); /** * Return a pointer to the node attributes. @@ -1379,6 +1387,21 @@ const void *get_irn_generic_attr_const(const ir_node *node); */ unsigned get_irn_idx(const ir_node *node); +/** + * Sets the debug information of a node. + * + * @param n The node. + * @param db The debug info. + */ +void set_irn_dbg_info(ir_node *n, dbg_info *db); + +/** + * Returns the debug information of an node. + * + * @param n The node. + */ +dbg_info *get_irn_dbg_info(const ir_node *n); + /*-----------------------------------------------------------------*/ /** Debug aides **/ /*-----------------------------------------------------------------*/