diff options
Diffstat (limited to 'gcc/tree-ssanames.h')
-rw-r--r-- | gcc/tree-ssanames.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/tree-ssanames.h b/gcc/tree-ssanames.h index d0a65425211..bb3b5e6c1df 100644 --- a/gcc/tree-ssanames.h +++ b/gcc/tree-ssanames.h @@ -1,5 +1,5 @@ /* SSA name expresssons routines - Copyright (C) 2013 Free Software Foundation, Inc. + Copyright (C) 2013-2014 Free Software Foundation, Inc. This file is part of GCC. @@ -70,7 +70,8 @@ struct GTY (()) range_info_def { enum value_range_type { VR_UNDEFINED, VR_RANGE, VR_ANTI_RANGE, VR_VARYING }; /* Sets the value range to SSA. */ -extern void set_range_info (tree, double_int, double_int); +extern void set_range_info (tree, enum value_range_type, double_int, + double_int); /* Gets the value range from SSA. */ extern enum value_range_type get_range_info (const_tree, double_int *, double_int *); @@ -80,7 +81,7 @@ extern void init_ssanames (struct function *, int); extern void fini_ssanames (void); extern void ssanames_print_statistics (void); extern tree make_ssa_name_fn (struct function *, tree, gimple); -extern void release_ssa_name (tree); +extern void release_ssa_name_fn (struct function *, tree); extern bool get_ptr_info_alignment (struct ptr_info_def *, unsigned int *, unsigned int *); extern void mark_ptr_info_alignment_unknown (struct ptr_info_def *); @@ -93,7 +94,8 @@ extern struct ptr_info_def *get_ptr_info (tree); extern tree copy_ssa_name_fn (struct function *, tree, gimple); extern void duplicate_ssa_name_ptr_info (tree, struct ptr_info_def *); extern tree duplicate_ssa_name_fn (struct function *, tree, gimple); -extern void duplicate_ssa_name_range_info (tree, struct range_info_def *); +extern void duplicate_ssa_name_range_info (tree, enum value_range_type, + struct range_info_def *); extern void release_defs (gimple); extern void replace_ssa_name_symbol (tree, tree); @@ -125,6 +127,14 @@ duplicate_ssa_name (tree var, gimple stmt) return duplicate_ssa_name_fn (cfun, var, stmt); } +/* Release the SSA name NAME used in function cfun. */ + +static inline void +release_ssa_name (tree name) +{ + release_ssa_name_fn (cfun, name); +} + /* Return an anonymous SSA_NAME node for type TYPE defined in statement STMT in function cfun. Arrange so that it uses NAME in dumps. */ |