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
464132f4
Commit
464132f4
authored
May 19, 2006
by
Michael Beck
Browse files
make #ifndef at header start cannonical
[r7772]
parent
a81745f3
Changes
23
Hide whitespace changes
Inline
Side-by-side
ir/ir/irarch.h
View file @
464132f4
...
...
@@ -7,10 +7,10 @@
* $Id$
*/
#ifndef _FIRM_IRARCH_H
#define _FIRM_IRARCH_H
#ifndef _FIRM_
IR_
IRARCH_H
_
#define _FIRM_
IR_
IRARCH_H
_
#include "ir
node
.h"
#include "
f
ir
m_types
.h"
/**
* A parameter structure that drives the machine dependent Firm
...
...
@@ -136,4 +136,4 @@ ir_node *arch_dep_replace_mod_by_const(ir_node *irn);
*/
void
arch_dep_replace_divmod_by_const
(
ir_node
**
div
,
ir_node
**
mod
,
ir_node
*
irn
);
#endif
/* _FIRM_IRARCH_H */
#endif
/* _FIRM_
IR_
IRARCH_H
_
*/
ir/ir/ircgcons.h
View file @
464132f4
...
...
@@ -10,13 +10,10 @@
* Copyright: (c) 2002-2003 Universität Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifndef _FIRM_IR_ICGCONS_H_
#define _FIRM_IR_ICGCONS_H_
#ifndef _CONSTRUCT_H_
#define _CONSTRUCT_H_
#include "entity.h"
#include "firm_types.h"
/** The state of the interprocedural view.
*
...
...
@@ -52,5 +49,4 @@ void cg_construct(int arr_len, entity *free_methods_arr[]);
the ir. Sets ip_view_no in irp. */
void
cg_destruct
(
void
);
#endif
/* _CONSTRUCT_H_ */
#endif
/* _FIRM_IR_ICGCONS_H_ */
ir/ir/ircgopt.h
View file @
464132f4
...
...
@@ -11,18 +11,16 @@
*/
/**
* @file irgopt.h
*
* Entfernen von nicht erreichbaren (aufrufbaren) Methoden. Die Menge
* der nicht erreichbaren Methoden wird aus der Abschtzung der
* Aufrufrelation bestimmt.
*/
#ifndef _FIRM_IR_ICGOPT_H_
#define _FIRM_IR_ICGOPT_H_
#ifndef _GC_IRGS_H_
#define _GC_IRGS_H_
#include "entity.h"
#include "firm_types.h"
/* Entfernt alle Methoden, die von den Methoden aus "keep_arr"
* (bezgl. der Abschaetzung get_Call_callee) nicht erreichbar sind. Die
...
...
@@ -33,5 +31,4 @@
* Frees all interprocedural loop information. */
void
gc_irgs
(
int
n_keep
,
entity
*
keep_arr
[]);
#endif
/* _GC_IRGS_H_ */
#endif
/* _FIRM_IR_ICGOPT_H_ */
ir/ir/ircons.h
View file @
464132f4
...
...
@@ -1087,8 +1087,8 @@
* node.
*
*/
#ifndef _IRCONS_H_
#define _IRCONS_H_
#ifndef
_FIRM_IR
_IRCONS_H_
#define
_FIRM_IR
_IRCONS_H_
#include "firm_common.h"
#include "irnode.h"
...
...
@@ -4205,4 +4205,4 @@ void irp_finalize_cons(void);
*/
typedef
ir_node
*
uninitialized_local_variable_func_t
(
ir_graph
*
irg
,
ir_mode
*
mode
,
int
pos
);
#endif
/* _IRCONS_H_ */
#endif
/*
_FIRM_IR
_IRCONS_H_ */
ir/ir/irdump.h
View file @
464132f4
...
...
@@ -10,7 +10,6 @@
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
/**
* @file irdump.h
*
...
...
@@ -28,14 +27,12 @@
* Most routines use the name of the passed entity as the name of the
* file dumped to.
*/
#ifndef _FIRM_IR_IRDUMP_H_
#define _FIRM_IR_IRDUMP_H_
# ifndef _IRDUMP_H_
# define _IRDUMP_H_
# include "irnode.h"
# include "irgraph.h"
# include "irloop.h"
#include "irnode.h"
#include "irgraph.h"
#include "irloop.h"
/**
* Names of the 32 supported colors
...
...
@@ -687,4 +684,4 @@ void *dump_add_node_info_callback(dump_node_info_cb_t *cb, void *data);
*/
void
dump_remv_node_info_callback
(
void
*
handle
);
#
endif
/* _IRDUMP_H_ */
#endif
/*
_FIRM_IR
_IRDUMP_H_ */
ir/ir/iredges.h
View file @
464132f4
...
...
@@ -15,8 +15,8 @@
* @date 3.2.2005
*/
#ifndef _FIRM_EDGES_H
#define _FIRM_EDGES_H
#ifndef _FIRM_
IR_
EDGES_H
#define _FIRM_
IR_
EDGES_H
#include "firm_types.h"
...
...
@@ -134,4 +134,4 @@ extern void edges_activate(ir_graph *irg);
*/
extern
void
edges_deactivate
(
ir_graph
*
irg
);
#endif
/* _FIRM_EDGES_H */
#endif
/* _FIRM_
IR_
EDGES_H */
ir/ir/irflag.h
View file @
464132f4
...
...
@@ -31,8 +31,8 @@
* 4. Verification flag
* This one controls the behavior of node and type verifications
*/
#ifndef _IRFLAG_H_
#define _IRFLAG_H_
#ifndef
_FIRM_IR
_IRFLAG_H_
#define
_FIRM_IR
_IRFLAG_H_
#include "firm_types.h"
...
...
@@ -358,4 +358,4 @@ typedef enum _firm_verification_t {
*/
void
do_node_verification
(
firm_verification_t
mode
);
#endif
/* _IRFLAG_H_ */
#endif
/*
_FIRM_IR
_IRFLAG_H_ */
ir/ir/irgmod.h
View file @
464132f4
...
...
@@ -18,12 +18,10 @@
*
* @author Martin Trapp, Christian Schaefer
*/
#ifndef _FIRM_IR_IRGMOD_H_
#define _FIRM_IR_IRGMOD_H_
# ifndef _IRGMOD_H_
# define _IRGMOD_H_
# include "irnode.h"
#include "firm_types.h"
/** Exchanges two nodes by conserving edges leaving old (i.e.,
pointers pointing to old). Turns the old node into an Id. */
...
...
@@ -70,4 +68,4 @@ void collect_phiprojs(ir_graph *irg);
*/
void
part_block
(
ir_node
*
node
);
#endif
/* ifndef _IRGMOD_H_ */
#endif
/* ifndef
_FIRM_IR
_IRGMOD_H_ */
ir/ir/irgopt.h
View file @
464132f4
...
...
@@ -17,11 +17,10 @@
*
* @author Christian Schaefer, Goetz Lindenmaier
*/
#ifndef _FIRM_IR_IRGOPT_H_
#define _FIRM_IR_IRGOPT_H_
# ifndef _IRGOPT_H_
# define _IRGOPT_H_
# include "irgraph.h"
#include "firm_types.h"
/** Applies local optimizations (see iropt.h) to all nodes reachable from node n.
*
...
...
@@ -206,4 +205,4 @@ void place_code(ir_graph *irg);
*/
void
remove_critical_cf_edges
(
ir_graph
*
irg
);
#
endif
/* _IRGOPT_H_ */
#endif
/*
_FIRM_IR
_IRGOPT_H_ */
ir/ir/irgraph.h
View file @
464132f4
...
...
@@ -17,8 +17,8 @@
*
* @author Martin Trapp, Christian Schaefer
*/
#ifndef _IRGRAPH_H_
#define _IRGRAPH_H_
#ifndef
_FIRM_IR
_IRGRAPH_H_
#define
_FIRM_IR
_IRGRAPH_H_
#include <stddef.h>
...
...
@@ -508,4 +508,4 @@ unsigned get_irg_last_idx(const ir_graph *irg);
*/
size_t
register_additional_graph_data
(
size_t
size
);
#
endif
/* _IRGRAPH_H_ */
#endif
/*
_FIRM_IR
_IRGRAPH_H_ */
ir/ir/irgwalk.h
View file @
464132f4
...
...
@@ -25,12 +25,10 @@
* Uses current_ir_graph (from irgraph.h)!!! Set it to the proper
* graph before starting the walker.
*/
#ifndef _FIRM_IR_IRGWALK_H_
#define _FIRM_IR_IRGWALK_H_
# ifndef _IRGWALK_H_
# define _IRGWALK_H_
# include "firm_types.h"
#include "firm_types.h"
/* type of callback function for ir_graph walk */
#ifndef _IRG_WALK_FUNC_TYPEDEF_
...
...
@@ -175,4 +173,4 @@ void irg_walk_blkwise_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *po
*/
void
irg_walk_anchors
(
ir_graph
*
irg
,
irg_walk_func
*
pre
,
irg_walk_func
*
post
,
void
*
env
);
#
endif
/* _IRGWALK_H_ */
#endif
/*
_FIRM_IR
_IRGWALK_H_ */
ir/ir/irhooks.h
View file @
464132f4
...
...
@@ -16,8 +16,8 @@
*
* @author Michael Beck
*/
#ifndef __IRHOOKS_H_
_
#define __IRHOOKS_H_
_
#ifndef _
FIRM_IR
_IRHOOKS_H_
#define _
FIRM_IR
_IRHOOKS_H_
#include "firm_config.h"
#include "irop.h"
...
...
@@ -284,4 +284,4 @@ extern hook_entry_t *hooks[hook_last];
/* the initializer, move to hooks_t.h some day */
int
firm_init_hooks
(
void
);
#endif
/* __IRHOOKS_H_
_
*/
#endif
/* _
FIRM_IR
_IRHOOKS_H_ */
ir/ir/irmode.h
View file @
464132f4
...
...
@@ -26,8 +26,8 @@
*
*/
#ifndef _IRMODE_H_
#define _IRMODE_H_
#ifndef
_FIRM_IR
_IRMODE_H_
#define
_FIRM_IR
_IRMODE_H_
#include "firm_types.h"
#include "ident.h"
...
...
@@ -471,4 +471,4 @@ int mode_overflow_on_unary_Minus(const ir_mode *mode);
*/
int
mode_wrap_around
(
const
ir_mode
*
mode
);
#endif
/* _IRMODE_H_ */
#endif
/*
_FIRM_IR
_IRMODE_H_ */
ir/ir/irnode.h
View file @
464132f4
...
...
@@ -9,8 +9,8 @@
* Copyright: (c) 1998-2003 Universität Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifndef _IRNODE_H_
#define _IRNODE_H_
#ifndef
_FIRM_IR
_IRNODE_H_
#define
_FIRM_IR
_IRNODE_H_
#include <stddef.h>
...
...
@@ -1245,4 +1245,4 @@ int dump_node_opcode(FILE *F, ir_node *n);
}
#endif
#endif
/* _IRNODE_H_ */
#endif
/*
_FIRM_IR
_IRNODE_H_ */
ir/ir/irop.h
View file @
464132f4
...
...
@@ -21,8 +21,8 @@
* definition is close to the operations specified in UKA Tech-Report
* 1999-14
*/
#ifndef _IROP_H_
#define _IROP_H_
#ifndef
_FIRM_IR
_IROP_H_
#define
_FIRM_IR
_IROP_H_
#include "firm_types.h"
...
...
@@ -37,10 +37,10 @@ typedef enum {
oparity_trinary
,
/**< an trinary operator -- considering 'numeric' arguments.*/
oparity_zero
,
/**< no operators, as e.g. Const. */
oparity_variable
,
/**< arity not fixed by opcode, but statically
known. E.g., number of arguments to call. */
known. E.g., number of arguments to call. */
oparity_dynamic
,
/**< arity depends on state of firm representation.
Can change by optimizations...
We must allocate a dynamic in array for the node! */
Can change by optimizations...
We must allocate a dynamic in array for the node! */
oparity_any
/**< other arity */
}
op_arity
;
...
...
@@ -48,11 +48,11 @@ typedef enum {
/** The irop flags */
typedef
enum
{
irop_flag_none
=
0x00000000
,
/**< nothing */
irop_flag_labeled
=
0x00000001
,
/**< if set, Output edge labels on in-edges in vcg graph */
irop_flag_commutative
=
0x00000002
,
/**< operation is commutative */
irop_flag_labeled
=
0x00000001
,
/**< if set, Output edge labels on in-edges in vcg graph */
irop_flag_commutative
=
0x00000002
,
/**< operation is commutative */
irop_flag_cfopcode
=
0x00000004
,
/**< is a control flow operation */
irop_flag_ip_cfopcode
=
0x00000008
,
/**< operation manipulates interprocedural control flow */
irop_flag_fragile
=
0x00000010
,
/**< set if the operation can change the control flow because
irop_flag_ip_cfopcode
=
0x00000008
,
/**< operation manipulates interprocedural control flow */
irop_flag_fragile
=
0x00000010
,
/**< set if the operation can change the control flow because
of an exception */
irop_flag_forking
=
0x00000020
,
/**< the operation is a forking control flow */
irop_flag_highlevel
=
0x00000040
,
/**< the operation is a pure high-level one and can be
...
...
@@ -357,4 +357,4 @@ ir_op * new_ir_op(opcode code, const char *name, op_pin_state p,
/** Returns the ir_op_ops of an ir_op. */
const
ir_op_ops
*
get_op_ops
(
const
ir_op
*
op
);
#endif
/* _IROP_H_ */
#endif
/*
_FIRM_IR
_IROP_H_ */
ir/ir/iropt.h
View file @
464132f4
...
...
@@ -3,7 +3,7 @@
* File name: ir/ir/iropt.h
* Purpose: iropt --- optimizations of an ir node.
* Author: Martin Trapp, Christian Schaefer
* Modified by: Goetz Lindenmaier
* Modified by: Goetz Lindenmaier
, Michael Beck
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2003 Universität Karlsruhe
...
...
@@ -11,25 +11,21 @@
*/
/**
* @file iropt.h
*
* Declarations for optimizations of an ir node.
*
* @author Martin Trapp, Christian Schaefer
*/
# ifndef _IROPT_H_
# define _IROPT_H_
* @file iropt.h
*
* Declarations for optimizations of an ir node.
*
* @author Martin Trapp, Christian Schaefer
*/
#ifndef _FIRM_IR_IROPT_H_
#define _FIRM_IR_IROPT_H_
# include "irnode.h"
# include "irgraph.h"
# include "irflag.h"
#include "firm_types.h"
/** If the expression referenced can be evaluated statically
* computed_value returns a tarval representing the result.
* Else returns tarval_bad. */
tarval
*
computed_value
(
ir_node
*
n
);
tarval
*
computed_value
(
ir_node
*
n
);
/** Applies all optimizations to n that are expressible as a pattern
* in Firm, i.e., they need not a walk of the graph.
...
...
@@ -39,6 +35,6 @@ tarval *computed_value (ir_node *n);
* An equivalent optimization is applied in the constructors defined in
* ircons.ch. There n is freed if a better node could be found.
*/
ir_node
*
optimize_in_place
(
ir_node
*
n
);
ir_node
*
optimize_in_place
(
ir_node
*
n
);
#
endif
/* _IROPT_H_ */
#endif
/*
_FIRM_IR
_IROPT_H_ */
ir/ir/irprintf.h
View file @
464132f4
...
...
@@ -16,9 +16,8 @@
* @author Sebastian Hack
* @date 29.11.2004
*/
#ifndef _IRPRINTF_H
#define _IRPRINTF_H
#ifndef _FIRM_IR_IRPRINTF_H_
#define _FIRM_IR_IRPRINTF_H_
#include "firm_config.h"
...
...
@@ -147,4 +146,4 @@ void ir_obst_vprintf(struct obstack *obst, const char *fmt, va_list args);
#include <libcore/lc_printf.h>
#endif
/* WITH_LIBCORE */
#endif
/* _IRPRINTF_H */
#endif
/*
_FIRM_IR
_IRPRINTF_H
_
*/
ir/ir/irprog.h
View file @
464132f4
...
...
@@ -11,33 +11,33 @@
*/
/**
* @file irprog.h
*
* ir representation of a program.
*
* @author Goetz Lindenmaier
*
* This file defines a construct that keeps all information about a
* program:
* - A reference point to the method to be executed on program start.
* - A list of all procedures.
* - A list of all types.
* - A global type that contais all global variables and procedures that do
* not belong to a class. This type represents the data segment of the
* program. It is not the base class of
* all classes in a class hierarchy (as, e.g., "object" in java).
* - A degenerated graph that contains constant expressions.
* - interprocedural outs state.
* - a flag indicating validity of the interprocedural representation.
* - the output file name
*/
#
ifndef _IRPROG_H_
#
define _IRPROG_H_
#
include "irnode.h"
#
include "type.h"
#
include "irgraph.h"
* @file irprog.h
*
* ir representation of a program.
*
* @author Goetz Lindenmaier
*
* This file defines a construct that keeps all information about a
* program:
* - A reference point to the method to be executed on program start.
* - A list of all procedures.
* - A list of all types.
* - A global type that contais all global variables and procedures that do
* not belong to a class. This type represents the data segment of the
* program. It is not the base class of
* all classes in a class hierarchy (as, e.g., "object" in java).
* - A degenerated graph that contains constant expressions.
* - interprocedural outs state.
* - a flag indicating validity of the interprocedural representation.
* - the output file name
*/
#ifndef
_FIRM_IR
_IRPROG_H_
#define
_FIRM_IR
_IRPROG_H_
#include "irnode.h"
#include "type.h"
#include "irgraph.h"
/**
...
...
@@ -206,4 +206,4 @@ void set_irp_ip_outs_inconsistent(void);
irg_callee_info_state
get_irp_callee_info_state
(
void
);
void
set_irp_callee_info_state
(
irg_callee_info_state
s
);
#endif
/* ifndef _IRPROG_H_ */
#endif
/* ifndef
_FIRM_IR
_IRPROG_H_ */
ir/ir/irprog_t.h
View file @
464132f4
...
...
@@ -14,8 +14,8 @@
* @file irprog_t.h
*/
#ifndef _IRPROG_T_H_
#define _IRPROG_T_H_
#ifndef
_FIRM_IR
_IRPROG_T_H_
#define
_FIRM_IR
_IRPROG_T_H_
#ifdef HAVE_CONFIG_H
#include "firm_config.h"
...
...
@@ -182,4 +182,4 @@ void init_irprog_2(void);
#define get_const_code_irg() _get_const_code_irg()
#define get_glob_type() _get_glob_type()
#endif
/* ifndef _IRPROG_T_H_ */
#endif
/* ifndef
_FIRM_IR
_IRPROG_T_H_ */
ir/ir/irreflect.h
View file @
464132f4
...
...
@@ -6,14 +6,13 @@
*
* $Id$
*/
#ifndef _FIRM_REFLECT_H
#define _FIRM_REFLECT_H
#ifndef _FIRM_IR_REFLECT_H_
#define _FIRM_IR_REFLECT_H_
#include <limits.h>
#include "firm_types.h"
#include "irop.h"
#include "irnode.h"
#define RFLCT_MC(m) rflct_ms_ ## m
typedef
enum
{
...
...
@@ -218,4 +217,4 @@ int rflct_signature_set_arg(rflct_sig_t *sig, int is_use, int num,
int
rflct_signature_get_index
(
const
rflct_sig_t
*
sig
,
int
is_use
,
int
num
);
#endif
/* _FIRM_REFLECT_H */
#endif
/* _FIRM_
IR_
REFLECT_H
_
*/
Prev
1
2
Next
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