Mercurial > hg > CbC > CbC_gcc
comparison gcc/tree-ssa-live.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Routines for liveness in SSA trees. | 1 /* Routines for liveness in SSA trees. |
2 Copyright (C) 2003-2018 Free Software Foundation, Inc. | 2 Copyright (C) 2003-2020 Free Software Foundation, Inc. |
3 Contributed by Andrew MacLeod <amacleod@redhat.com> | 3 Contributed by Andrew MacLeod <amacleod@redhat.com> |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
78 | 78 |
79 | 79 |
80 /* Value used to represent no partition number. */ | 80 /* Value used to represent no partition number. */ |
81 #define NO_PARTITION -1 | 81 #define NO_PARTITION -1 |
82 | 82 |
83 extern var_map init_var_map (int, struct loop* = NULL); | 83 extern var_map init_var_map (int, class loop* = NULL); |
84 extern void delete_var_map (var_map); | 84 extern void delete_var_map (var_map); |
85 extern int var_union (var_map, tree, tree); | 85 extern int var_union (var_map, tree, tree); |
86 extern void partition_view_normal (var_map); | 86 extern void partition_view_normal (var_map); |
87 extern void partition_view_bitmap (var_map, bitmap); | 87 extern void partition_view_bitmap (var_map, bitmap); |
88 extern void dump_scope_blocks (FILE *, dump_flags_t); | 88 extern void dump_scope_blocks (FILE *, dump_flags_t); |
264 extern tree_live_info_p calculate_live_ranges (var_map, bool); | 264 extern tree_live_info_p calculate_live_ranges (var_map, bool); |
265 extern void debug (tree_live_info_d &ref); | 265 extern void debug (tree_live_info_d &ref); |
266 extern void debug (tree_live_info_d *ptr); | 266 extern void debug (tree_live_info_d *ptr); |
267 extern void dump_live_info (FILE *, tree_live_info_p, int); | 267 extern void dump_live_info (FILE *, tree_live_info_p, int); |
268 | 268 |
269 typedef hash_map<int_hash <unsigned int, -1U>, unsigned int> live_vars_map; | |
270 extern vec<bitmap_head> compute_live_vars (struct function *, live_vars_map *); | |
271 extern bitmap live_vars_at_stmt (vec<bitmap_head> &, live_vars_map *, | |
272 gimple *); | |
273 extern void destroy_live_vars (vec<bitmap_head> &); | |
269 | 274 |
270 /* Return TRUE if P is marked as a global in LIVE. */ | 275 /* Return TRUE if P is marked as a global in LIVE. */ |
271 | 276 |
272 static inline int | 277 static inline int |
273 partition_is_global (tree_live_info_p live, int p) | 278 partition_is_global (tree_live_info_p live, int p) |