/* 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);
inline void set_nodes_Block (ir_node *node, ir_node *block);
/* Projection numbers for result of Start node: use for Proj nodes! */
-enum {
+typedef enum {
pns_initial_exec, /* Projection on an executable, the initial control
flow. */
pns_global_store, /* Projection on the global store */
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);
inline void set_Not_op (ir_node *node, ir_node *op);
/* Projection numbers of compare: use for Proj nodes! */
-enum {
+typedef enum {
False, /* false */
Eq, /* equal */
Lt, /* less */