#define FIRM_IR_IRDEFS_H
#include "firm_types.h"
-#include "firm_common_t.h"
#include "irdom_t.h"
#include "irmode.h"
#include "irnode.h"
op_pin_state pin_state; /**< the pin state for operations that might generate a exception:
If it's know that no exception will be generated, could be set to
op_pin_state_floats. */
-#if PRECISE_EXC_CONTEXT
struct ir_node **frag_arr; /**< For Phi node construction in case of exception */
-#endif
} except_attr;
/** Call attributes. */
typedef struct {
- except_attr exc; /**< the exception attribute. MUST be the first one. */
- ir_type *type; /**< type of called procedure */
- ir_entity ** callee_arr; /**< result of callee analysis */
+ except_attr exc; /**< the exception attribute. MUST be the first one. */
+ ir_type *type; /**< type of called procedure */
+ ir_entity **callee_arr; /**< result of callee analysis */
+ unsigned tail_call:1; /**< if set, can be a tail call */
} call_attr;
/** Builtin attributes. */
int index; /**< a unique number for each graph */
ir_phase *phases[PHASE_LAST]; /**< Phase information. */
+ void *be_data; /**< backend can put in private data here */
#ifdef DEBUG_libfirm
int n_outs; /**< Size wasted for outs */
long graph_nr; /**< a unique graph number for each
#endif
};
-/** ir_prog */
+/**
+ * Data structure that holds central information about a program
+ * or a module.
+ * One irp is created by libFirm on construction, so irp should never be NULL.
+ *
+ * - main_irg: The ir graph that is the entry point to the program.
+ * (Anything not reachable from here may be optimized away
+ * if this irp represents a whole program.
+ * - irg: List of all ir graphs in the program or module.
+ * - type: A list containing all types known to the translated program.
+ * Some types can have several entries in this list (as a result of
+ * using exchange_types()).
+ * - glob_type: The unique global type that is owner of all global entities
+ * of this module.
+ */
struct ir_prog {
firm_kind kind; /**< must be k_ir_prog */
ident *name; /**< A file name or the like. */