X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnode.h;h=353de848ab5b2a7cd94b079e27e2a05d8d2e98c1;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=b64def604ac71697997eb0c68ff8c250d4602e61;hpb=e64f4f77b975dc8cf34a5eeb10b8f9752f0c8cf9;p=libfirm diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index b64def604..353de848a 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -58,7 +58,7 @@ inline ir_mode *get_irn_mode (ir_node *node); /* Get the mode-enum modecode */ inline modecode get_irn_modecode (ir_node *node); /* Get the ident for a string representation of the mode */ -inline ident *get_irn_modename (ir_node *node); +inline ident *get_irn_modeident (ir_node *node); /* Access the opcode struct of the node */ inline ir_op *get_irn_op (ir_node *node); inline void set_irn_op (ir_node *node, ir_op *op); @@ -130,19 +130,25 @@ inline void set_Const_tarval (ir_node *node, tarval *con); this flag. */ typedef enum { type_tag, /* The SymConst is a type tag for the given type. - Type_or_id_p is type * */ + Type_or_id_p is type *. */ size, /* The SymConst is the size of the given type. - Type_or_id_p is type * */ + Type_or_id_p is type *. */ linkage_ptr_info /* The SymConst is a symbolic pointer to be filled in - by the linker. Type_or_id_p is ident * */ + by the linker. Type_or_id_p is ident *. */ } symconst_kind; typedef union type_or_id * type_or_id_p; inline symconst_kind get_SymConst_kind (ir_node *node); inline void set_SymConst_kind (ir_node *node, symconst_kind num); +/* Only to access SymConst of kind type_tag or size. Else assertion: */ inline type *get_SymConst_type (ir_node *node); inline void set_SymConst_type (ir_node *node, type *type); +/* Only to access SymConst of kind linkage_ptr_info. Else assertion: */ inline ident *get_SymConst_ptrinfo (ir_node *node); inline void set_SymConst_ptrinfo (ir_node *node, ident *ptrinfo); +/* Sets both: type and ptrinfo. Needed to treat the node independent of + its semantics. Does a memcpy for the memory tori points to. */ +inline type_or_id_p get_SymConst_type_or_id (ir_node *node); +inline void set_SymConst_type_or_id (ir_node *node, type_or_id_p tori); inline ir_node *get_Sel_mem (ir_node *node); inline void set_Sel_mem (ir_node *node, ir_node *mem);