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
8b9cffd1
Commit
8b9cffd1
authored
Nov 25, 2012
by
Christoph Mallon
Browse files
documentation: Update (i.e. mostly delete) information regarding current_ir_graph.
parent
15b2fcf1
Changes
7
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
8b9cffd1
...
@@ -83,7 +83,6 @@ FIRM_API ir_node *get_irn_n(const ir_node *node, int n);
...
@@ -83,7 +83,6 @@ FIRM_API ir_node *get_irn_n(const ir_node *node, int n);
* Replaces the old in array by a new one that will contain the ins given in
* Replaces the old in array by a new one that will contain the ins given in
* the parameters. Conserves the block predecessor. It copies the array passed.
* the parameters. Conserves the block predecessor. It copies the array passed.
* This function is necessary to adjust in arrays of blocks, calls and phis.
* This function is necessary to adjust in arrays of blocks, calls and phis.
* Assumes that current_ir_graph is set to the graph containing "node".
* "in" must contain all predecessors except the block that are required for
* "in" must contain all predecessors except the block that are required for
* the nodes opcode. */
* the nodes opcode. */
FIRM_API
void
set_irn_in
(
ir_node
*
node
,
int
arity
,
ir_node
*
in
[]);
FIRM_API
void
set_irn_in
(
ir_node
*
node
,
int
arity
,
ir_node
*
in
[]);
...
@@ -163,11 +162,11 @@ FIRM_API ident *get_irn_opident(const ir_node *node);
...
@@ -163,11 +162,11 @@ FIRM_API ident *get_irn_opident(const ir_node *node);
FIRM_API
ir_visited_t
get_irn_visited
(
const
ir_node
*
node
);
FIRM_API
ir_visited_t
get_irn_visited
(
const
ir_node
*
node
);
/** Sets the visited counter of a node. */
/** Sets the visited counter of a node. */
FIRM_API
void
set_irn_visited
(
ir_node
*
node
,
ir_visited_t
visited
);
FIRM_API
void
set_irn_visited
(
ir_node
*
node
,
ir_visited_t
visited
);
/** Sets visited to get_irg_visited(
current_ir_graph
). */
/** Sets visited to get_irg_visited(
get_irn_irg(node)
). */
FIRM_API
void
mark_irn_visited
(
ir_node
*
node
);
FIRM_API
void
mark_irn_visited
(
ir_node
*
node
);
/** Returns 1 if visited >= get_irg_visited(
current_ir_graph
). */
/** Returns 1 if visited >= get_irg_visited(
get_irn_irg(node)
). */
FIRM_API
int
irn_visited
(
const
ir_node
*
node
);
FIRM_API
int
irn_visited
(
const
ir_node
*
node
);
/** Returns 1 if visited >= get_irg_visited(
current_ir_graph
). Marks the node
/** Returns 1 if visited >= get_irg_visited(
get_irn_irg(node)
). Marks the node
* visited, if it was not. */
* visited, if it was not. */
FIRM_API
int
irn_visited_else_mark
(
ir_node
*
node
);
FIRM_API
int
irn_visited_else_mark
(
ir_node
*
node
);
...
@@ -486,7 +485,7 @@ FIRM_API ir_entity *get_Call_callee(const ir_node *node, size_t pos);
...
@@ -486,7 +485,7 @@ FIRM_API ir_entity *get_Call_callee(const ir_node *node, size_t pos);
/** Sets the full callee array.
/** Sets the full callee array.
*
*
* The passed array is copied.
Assumes current_ir_graph set properly!
*/
* The passed array is copied. */
FIRM_API
void
set_Call_callee_arr
(
ir_node
*
node
,
size_t
n
,
ir_entity
**
arr
);
FIRM_API
void
set_Call_callee_arr
(
ir_node
*
node
,
size_t
n
,
ir_entity
**
arr
);
/** Frees callee array of call node @p node */
/** Frees callee array of call node @p node */
FIRM_API
void
remove_Call_callee_arr
(
ir_node
*
node
);
FIRM_API
void
remove_Call_callee_arr
(
ir_node
*
node
);
...
...
include/libfirm/iroptimize.h
View file @
8b9cffd1
...
@@ -253,9 +253,9 @@ FIRM_API ir_graph_pass_t *opt_parallelize_mem_pass(const char *name);
...
@@ -253,9 +253,9 @@ FIRM_API ir_graph_pass_t *opt_parallelize_mem_pass(const char *name);
* @param load the load to replace
* @param load the load to replace
* @param c the constant
* @param c the constant
*
*
* @return i
n
the modes match or can be transformed using a reinterpret cast
* @return i
f
the modes match or can be transformed using a reinterpret cast
* returns a copy of the constant (possibly Conv'ed)
o
n the
* returns a copy of the constant (possibly Conv'ed)
i
n the
graph where
*
current_ir_graph
*
the load is.
*/
*/
FIRM_API
ir_node
*
can_replace_load_by_const
(
const
ir_node
*
load
,
ir_node
*
c
);
FIRM_API
ir_node
*
can_replace_load_by_const
(
const
ir_node
*
load
,
ir_node
*
c
);
...
...
include/libfirm/irouts.h
View file @
8b9cffd1
...
@@ -73,7 +73,7 @@ FIRM_API ir_node *get_Block_cfg_out_ka(const ir_node *node, unsigned pos);
...
@@ -73,7 +73,7 @@ FIRM_API ir_node *get_Block_cfg_out_ka(const ir_node *node, unsigned pos);
/**
/**
* Walks over the graph starting at node. Walks also if graph is in state
* Walks over the graph starting at node. Walks also if graph is in state
* "outs_inconsistent".
Assumes current_ir_graph is set properly.
* "outs_inconsistent".
*/
*/
FIRM_API
void
irg_out_walk
(
ir_node
*
node
,
irg_walk_func
*
pre
,
FIRM_API
void
irg_out_walk
(
ir_node
*
node
,
irg_walk_func
*
pre
,
irg_walk_func
*
post
,
void
*
env
);
irg_walk_func
*
post
,
void
*
env
);
...
...
include/libfirm/irtypeinfo.h
View file @
8b9cffd1
...
@@ -94,8 +94,7 @@ FIRM_API void set_irp_typeinfo_inconsistent(void);
...
@@ -94,8 +94,7 @@ FIRM_API void set_irp_typeinfo_inconsistent(void);
/** Accessing the type information.
/** Accessing the type information.
*
*
* These routines only work properly if the ir_graph is in state
* These routines only work properly if the ir_graph is in state
* ir_typeinfo_consistent or ir_typeinfo_inconsistent. They
* ir_typeinfo_consistent or ir_typeinfo_inconsistent.
* assume current_ir_graph set properly.
*/
*/
FIRM_API
ir_type
*
get_irn_typeinfo_type
(
const
ir_node
*
n
);
FIRM_API
ir_type
*
get_irn_typeinfo_type
(
const
ir_node
*
n
);
/** Sets type information of procedure graph node @p node to type @p type. */
/** Sets type information of procedure graph node @p node to type @p type. */
...
...
include/libfirm/irverify.h
View file @
8b9cffd1
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
/**
/**
* Tests the modes of checknode and its predecessors.
* Tests the modes of checknode and its predecessors.
* checknode must be in current_ir_graph.
*
*
* @return NON-zero on success
* @return NON-zero on success
*/
*/
...
...
include/libfirm/lowering.h
View file @
8b9cffd1
...
@@ -207,8 +207,6 @@ typedef union i_record {
...
@@ -207,8 +207,6 @@ typedef union i_record {
* Every call or instruction is reported to its mapper function,
* Every call or instruction is reported to its mapper function,
* which is responsible for rebuilding the graph.
* which is responsible for rebuilding the graph.
*
*
* current_ir_graph is always set.
*
* @param list an array of intrinsic map records
* @param list an array of intrinsic map records
* @param length the length of the array
* @param length the length of the array
* @param part_block_used set to true if part_block() must be using during lowering
* @param part_block_used set to true if part_block() must be using during lowering
...
...
include/libfirm/typerep.h
View file @
8b9cffd1
...
@@ -1767,7 +1767,7 @@ FIRM_API const tp_op *get_tpop_method(void);
...
@@ -1767,7 +1767,7 @@ FIRM_API const tp_op *get_tpop_method(void);
*
*
* The array type represents rectangular multi dimensional arrays.
* The array type represents rectangular multi dimensional arrays.
* The constants representing the bounds must be allocated to
* The constants representing the bounds must be allocated to
* get_const_code_irg()
by setting current_ir_graph accordingly
.
* get_const_code_irg().
*
*
* - n_dimensions: Number of array dimensions.
* - n_dimensions: Number of array dimensions.
* - *lower_bound: Lower bounds of dimensions. Usually all 0.
* - *lower_bound: Lower bounds of dimensions. Usually all 0.
...
...
Write
Preview
Supports
Markdown
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