Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9c88576d
Commit
9c88576d
authored
Dec 10, 2008
by
Matthias Braun
Browse files
avoid some unnecessary includes in public headers
[r24504]
parent
3e1337f6
Changes
8
Hide whitespace changes
Inline
Side-by-side
include/libfirm/firm_types.h
View file @
9c88576d
...
...
@@ -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
include/libfirm/irdump.h
View file @
9c88576d
...
...
@@ -41,9 +41,9 @@
#ifndef FIRM_IR_IRDUMP_H
#define FIRM_IR_IRDUMP_H
#include
"irnode
.h
"
#include "irgraph.h"
#include "ir
loop
.h"
#include
<stdio
.h
>
#include "
f
ir
m_types
.h"
/**
* Symbolic names for the different dumping colors.
...
...
include/libfirm/irgraph.h
View file @
9c88576d
...
...
@@ -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
...
...
include/libfirm/irmode.h
View file @
9c88576d
...
...
@@ -36,7 +36,6 @@
#define FIRM_IR_IRMODE_H
#include "firm_types.h"
#include "ident.h"
/* ********** Predefined modes ********** */
...
...
include/libfirm/irop.h
View file @
9c88576d
...
...
@@ -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
);
...
...
include/libfirm/typerep.h
View file @
9c88576d
...
...
@@ -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.
*
...
...
ir/ir/irtypes.h
View file @
9c88576d
...
...
@@ -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"
...
...
ir/tr/tpop.c
View file @
9c88576d
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment