Commit 9c88576d authored by Matthias Braun's avatar Matthias Braun
Browse files

avoid some unnecessary includes in public headers

[r24504]
parent 3e1337f6
......@@ -94,4 +94,51 @@ typedef enum {
*/
typedef ir_node *uninitialized_local_variable_func_t(ir_graph *irg, ir_mode *mode, int pos);
/** op_pin_state_pinned states. */
typedef enum {
op_pin_state_floats = 0, /**< Nodes of this opcode can be placed in any basic block. */
op_pin_state_pinned = 1, /**< Nodes must remain in this basic block. */
op_pin_state_exc_pinned, /**< Node must be remain in this basic block if it can throw an
exception, else can float. Used internally. */
op_pin_state_mem_pinned /**< Node must be remain in this basic block if it can throw an
exception or uses memory, else can float. Used internally. */
} op_pin_state;
/**
* Additional method type properties:
* Tell about special properties of a method type. Some
* of these may be discovered by analyses.
*/
typedef enum {
mtp_no_property = 0x00000000, /**< no additional properties, default */
mtp_property_const = 0x00000001, /**< This method did not access memory and calculates
its return values solely from its parameters.
GCC: __attribute__((const)). */
mtp_property_pure = 0x00000002, /**< This method did NOT write to memory and calculates
its return values solely from its parameters and
the memory they points to (or global vars).
GCC: __attribute__((pure)). */
mtp_property_noreturn = 0x00000004, /**< This method did not return due to an aborting system
call.
GCC: __attribute__((noreturn)). */
mtp_property_nothrow = 0x00000008, /**< This method cannot throw an exception.
GCC: __attribute__((nothrow)). */
mtp_property_naked = 0x00000010, /**< This method is naked.
GCC: __attribute__((naked)). */
mtp_property_malloc = 0x00000020, /**< This method returns newly allocate memory.
GCC: __attribute__((malloc)). */
mtp_property_weak = 0x00000040, /**< This method is weak. It is expected that
GCC: __attribute__((weak)). */
mtp_property_returns_twice = 0x00000080, /**< This method can return more than one (typically setjmp).
GCC: __attribute__((returns_twice)). */
mtp_property_intrinsic = 0x00000100, /**< This method is intrinsic. It is expected that
a lowering phase will remove all calls to it. */
mtp_property_runtime = 0x00000200, /**< This method represents a runtime routine. */
mtp_property_private = 0x00000400, /**< All method invocations are known, the backend is free to
optimize the call in any possible way. */
mtp_property_has_loop = 0x00000800, /**< Set, if this method contains one possible endless loop. */
mtp_property_inherited = (1<<31) /**< Internal. Used only in irg's, means property is
inherited from type. */
} mtp_additional_property;
#endif
......@@ -41,9 +41,9 @@
#ifndef FIRM_IR_IRDUMP_H
#define FIRM_IR_IRDUMP_H
#include "irnode.h"
#include "irgraph.h"
#include "irloop.h"
#include <stdio.h>
#include "firm_types.h"
/**
* Symbolic names for the different dumping colors.
......
......@@ -29,10 +29,6 @@
#include <stddef.h>
#include "firm_types.h"
#include "irop.h"
#include "iropt.h"
#include "irextbb.h"
#include "typerep.h"
/**
* @page ir_graph The struct ir_graph
......
......@@ -36,7 +36,6 @@
#define FIRM_IR_IRMODE_H
#include "firm_types.h"
#include "ident.h"
/* ********** Predefined modes ********** */
......
......@@ -209,16 +209,6 @@ const char *get_op_name(const ir_op *op);
/** Returns the enum for the opcode */
unsigned get_op_code(const ir_op *op);
/** op_pin_state_pinned states. */
typedef enum {
op_pin_state_floats = 0, /**< Nodes of this opcode can be placed in any basic block. */
op_pin_state_pinned = 1, /**< Nodes must remain in this basic block. */
op_pin_state_exc_pinned, /**< Node must be remain in this basic block if it can throw an
exception, else can float. Used internally. */
op_pin_state_mem_pinned /**< Node must be remain in this basic block if it can throw an
exception or uses memory, else can float. Used internally. */
} op_pin_state;
/** Returns a human readable name of an op_pin_state. */
const char *get_op_pin_state_name(op_pin_state s);
......
......@@ -122,43 +122,6 @@ typedef enum {
This serves better as opposition to description _and_ inherited.*/
} ir_peculiarity;
/**
* Additional method type properties:
* Tell about special properties of a method type. Some
* of these may be discovered by analyses.
*/
typedef enum {
mtp_no_property = 0x00000000, /**< no additional properties, default */
mtp_property_const = 0x00000001, /**< This method did not access memory and calculates
its return values solely from its parameters.
GCC: __attribute__((const)). */
mtp_property_pure = 0x00000002, /**< This method did NOT write to memory and calculates
its return values solely from its parameters and
the memory they points to (or global vars).
GCC: __attribute__((pure)). */
mtp_property_noreturn = 0x00000004, /**< This method did not return due to an aborting system
call.
GCC: __attribute__((noreturn)). */
mtp_property_nothrow = 0x00000008, /**< This method cannot throw an exception.
GCC: __attribute__((nothrow)). */
mtp_property_naked = 0x00000010, /**< This method is naked.
GCC: __attribute__((naked)). */
mtp_property_malloc = 0x00000020, /**< This method returns newly allocate memory.
GCC: __attribute__((malloc)). */
mtp_property_weak = 0x00000040, /**< This method is weak. It is expected that
GCC: __attribute__((weak)). */
mtp_property_returns_twice = 0x00000080, /**< This method can return more than one (typically setjmp).
GCC: __attribute__((returns_twice)). */
mtp_property_intrinsic = 0x00000100, /**< This method is intrinsic. It is expected that
a lowering phase will remove all calls to it. */
mtp_property_runtime = 0x00000200, /**< This method represents a runtime routine. */
mtp_property_private = 0x00000400, /**< All method invocations are known, the backend is free to
optimize the call in any possible way. */
mtp_property_has_loop = 0x00000800, /**< Set, if this method contains one possible endless loop. */
mtp_property_inherited = (1<<31) /**< Internal. Used only in irg's, means property is
inherited from type. */
} mtp_additional_property;
/**
* Creates a new entity.
*
......
......@@ -34,6 +34,7 @@
#include "irgraph.h"
#include "iredgekinds.h"
#include "irtypeinfo.h"
#include "irextbb.h"
#include "execution_frequency.h"
#include "irmemory.h"
#include "callgraph.h"
......
......@@ -28,6 +28,7 @@
#include "xmalloc.h"
#include "tpop_t.h"
#include "type_t.h"
#include "ident.h"
tp_op *type_class; tp_op *get_tpop_class (void) { return type_class; }
tp_op *type_struct; tp_op *get_tpop_struct (void) { return type_struct; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment