Commit 95a8b8df authored by Matthias Braun's avatar Matthias Braun
Browse files

Remove .*_ptr variants of firm-types

Define them in your own project if you must use them.
parent 22792ba2
...@@ -32,39 +32,39 @@ typedef unsigned long ir_exc_region_t; ...@@ -32,39 +32,39 @@ typedef unsigned long ir_exc_region_t;
typedef unsigned long ir_label_t; typedef unsigned long ir_label_t;
/** @ingroup dbg_info */ /** @ingroup dbg_info */
typedef struct dbg_info dbg_info, *dbg_info_ptr; typedef struct dbg_info dbg_info;
/** @ingroup dbg_info */ /** @ingroup dbg_info */
typedef struct type_dbg_info type_dbg_info, *type_dbg_info_ptr; typedef struct type_dbg_info type_dbg_info;
/** @ingroup ir_ident */ /** @ingroup ir_ident */
typedef struct ident ident, *ir_ident_ptr; typedef struct ident ident;
/** @ingroup ir_node */ /** @ingroup ir_node */
typedef struct ir_node ir_node, *ir_node_ptr; typedef struct ir_node ir_node;
/** @ingroup ir_op */ /** @ingroup ir_op */
typedef struct ir_op ir_op, *ir_op_ptr; typedef struct ir_op ir_op;
/** @ingroup ir_mode */ /** @ingroup ir_mode */
typedef struct ir_mode ir_mode, *ir_mode_ptr; typedef struct ir_mode ir_mode;
/** @ingroup iredges */ /** @ingroup iredges */
typedef struct ir_edge_t ir_edge_t, *ir_edge_ptr; typedef struct ir_edge_t ir_edge_t;
/** @ingroup ir_heights */ /** @ingroup ir_heights */
typedef struct ir_heights_t ir_heights_t; typedef struct ir_heights_t ir_heights_t;
/** @ingroup ir_tarval */ /** @ingroup ir_tarval */
typedef struct ir_tarval ir_tarval, *ir_tarval_ptr; typedef struct ir_tarval ir_tarval;
typedef struct ir_enum_const ir_enum_const, *ir_enum_const_ptr; typedef struct ir_enum_const ir_enum_const;
/** @ingroup ir_type */ /** @ingroup ir_type */
typedef struct ir_type ir_type, *ir_type_ptr; typedef struct ir_type ir_type;
/** @ingroup ir_graph */ /** @ingroup ir_graph */
typedef struct ir_graph ir_graph, *ir_graph_ptr; typedef struct ir_graph ir_graph;
/** @ingroup ir_prog */ /** @ingroup ir_prog */
typedef struct ir_prog ir_prog, *ir_prog_ptr; typedef struct ir_prog ir_prog;
/** @ingroup ir_loop */ /** @ingroup ir_loop */
typedef struct ir_loop ir_loop, *ir_loop_ptr; typedef struct ir_loop ir_loop;
/** @ingroup ir_entity */ /** @ingroup ir_entity */
typedef struct ir_entity ir_entity, *ir_entity_ptr; typedef struct ir_entity ir_entity;
typedef struct ir_extblk ir_extblk, *ir_extblk_ptr; typedef struct ir_extblk ir_extblk;
/** @ingroup execfreq */ /** @ingroup execfreq */
typedef struct ir_exec_freq ir_exec_freq, *ir_exec_freq_ptr; typedef struct ir_exec_freq ir_exec_freq;
/** @ingroup ir_cdep */ /** @ingroup ir_cdep */
typedef struct ir_cdep ir_cdep, *ir_cdep_ptr; typedef struct ir_cdep ir_cdep;
/** @ingroup ir_op */ /** @ingroup ir_op */
typedef struct arch_irn_ops_t arch_irn_ops_t; typedef struct arch_irn_ops_t arch_irn_ops_t;
typedef struct ir_graph_pass_t ir_graph_pass_t; typedef struct ir_graph_pass_t ir_graph_pass_t;
...@@ -74,7 +74,7 @@ typedef struct ir_graph_pass_manager_t ir_graph_pass_manager_t; ...@@ -74,7 +74,7 @@ typedef struct ir_graph_pass_manager_t ir_graph_pass_manager_t;
typedef struct ir_prog_pass_manager_t ir_prog_pass_manager_t; typedef struct ir_prog_pass_manager_t ir_prog_pass_manager_t;
/** @ingroup ir_initializer */ /** @ingroup ir_initializer */
typedef union ir_initializer_t ir_initializer_t, *ir_initializer_ptr; typedef union ir_initializer_t ir_initializer_t;
typedef void irg_walk_func(ir_node *, void *); typedef void irg_walk_func(ir_node *, void *);
...@@ -85,11 +85,6 @@ typedef void irg_walk_func(ir_node *, void *); ...@@ -85,11 +85,6 @@ typedef void irg_walk_func(ir_node *, void *);
*/ */
typedef struct ir_switch_table ir_switch_table; typedef struct ir_switch_table ir_switch_table;
/* Needed for MSVC to suppress warnings because it doest NOT handle const right. */
typedef const ir_node *ir_node_cnst_ptr;
/* states */
/** /**
* This function is called, whenever a local variable is used before definition * This function is called, whenever a local variable is used before definition
* *
......
...@@ -1044,7 +1044,7 @@ FIRM_API ir_graph_pass_t *fixpoint_vrp_irg_pass(const char *name); ...@@ -1044,7 +1044,7 @@ FIRM_API ir_graph_pass_t *fixpoint_vrp_irg_pass(const char *name);
* @param confirm if n is confirmed to be != 0, returns * @param confirm if n is confirmed to be != 0, returns
* the the Confirm-node, else NULL * the the Confirm-node, else NULL
*/ */
FIRM_API int value_not_zero(const ir_node *n, ir_node_cnst_ptr *confirm); FIRM_API int value_not_zero(const ir_node *n, const ir_node **confirm);
/** /**
* Check, if the value of a node cannot represent a NULL pointer. * Check, if the value of a node cannot represent a NULL pointer.
...@@ -1059,7 +1059,7 @@ FIRM_API int value_not_zero(const ir_node *n, ir_node_cnst_ptr *confirm); ...@@ -1059,7 +1059,7 @@ FIRM_API int value_not_zero(const ir_node *n, ir_node_cnst_ptr *confirm);
* @param confirm if n is confirmed to be != NULL, returns * @param confirm if n is confirmed to be != NULL, returns
* the the Confirm-node, else NULL * the the Confirm-node, else NULL
*/ */
FIRM_API int value_not_null(const ir_node *n, ir_node_cnst_ptr *confirm); FIRM_API int value_not_null(const ir_node *n, const ir_node **confirm);
/** /**
* Check, if the value of a node can be confirmed >= 0 or <= 0, * Check, if the value of a node can be confirmed >= 0 or <= 0,
......
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