projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: Fix typos in comments.
[libfirm]
/
include
/
libfirm
/
vrp.h
diff --git
a/include/libfirm/vrp.h
b/include/libfirm/vrp.h
index
19ea825
..
ef5234b
100644
(file)
--- a/
include/libfirm/vrp.h
+++ b/
include/libfirm/vrp.h
@@
-21,8
+21,6
@@
* @file
* @brief Analyse the graph with value range propagation
* @author Jonas Fietz
* @file
* @brief Analyse the graph with value range propagation
* @author Jonas Fietz
- * @version $Id$
- *
*/
#ifndef VRP_H
#define VRP_H
*/
#ifndef VRP_H
#define VRP_H
@@
-30,6
+28,14
@@
#include "firm_types.h"
#include "begin.h"
#include "firm_types.h"
#include "begin.h"
+/**
+ * @ingroup irana
+ * @defgroup vrp Value Information
+ * Information about SSA-values (ranges, known bits, ...)
+ * @{
+ */
+
+/** Type of a value range */
enum range_types {
VRP_UNDEFINED, /**< No information could be derived so far */
VRP_RANGE, /**< bottom and top form a range, including both values */
enum range_types {
VRP_UNDEFINED, /**< No information could be derived so far */
VRP_RANGE, /**< bottom and top form a range, including both values */
@@
-38,7
+44,7
@@
enum range_types {
VRP_VARYING /**< information cannot be derived */
};
VRP_VARYING /**< information cannot be derived */
};
-/** VRP information */
+/** VRP information
for a single node
*/
typedef struct {
ir_tarval *bits_set; /**< The bits which, by analysis, are
definitely set:
typedef struct {
ir_tarval *bits_set; /**< The bits which, by analysis, are
definitely set:
@@
-47,12
+53,12
@@
typedef struct {
not set:
1 for may be set, 0: definitely not set */
enum range_types range_type; /**< The range represented by range_top, range_bottom */
not set:
1 for may be set, 0: definitely not set */
enum range_types range_type; /**< The range represented by range_top, range_bottom */
- ir_tarval *range_bottom;
- ir_tarval *range_top;
+ ir_tarval *range_bottom;
/**< lower end of the value range */
+ ir_tarval *range_top;
/**< upper end of the value range */
} vrp_attr;
/**
} vrp_attr;
/**
- * Set vrp data on the graph irg
+ * Set
s
vrp data on the graph irg
* @param irg graph on which to set vrp data
*/
FIRM_API void set_vrp_data(ir_graph *irg);
* @param irg graph on which to set vrp data
*/
FIRM_API void set_vrp_data(ir_graph *irg);
@@
-71,8
+77,8
@@
FIRM_API void free_vrp_data(ir_graph *irg);
*/
FIRM_API ir_relation vrp_cmp(const ir_node *left, const ir_node *right);
*/
FIRM_API ir_relation vrp_cmp(const ir_node *left, const ir_node *right);
-/*
- * Return the vrp data for this node
+/*
*
+ * Return
s
the vrp data for this node
* Note: only allowed for nodes with an integer mode!
*
* @param n: the node for which to return the vrp information
* Note: only allowed for nodes with an integer mode!
*
* @param n: the node for which to return the vrp information
@@
-80,6
+86,8
@@
FIRM_API ir_relation vrp_cmp(const ir_node *left, const ir_node *right);
*/
FIRM_API vrp_attr *vrp_get_info(const ir_node *n);
*/
FIRM_API vrp_attr *vrp_get_info(const ir_node *n);
+/** @} */
+
#include "end.h"
#endif
#include "end.h"
#endif