diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-06-15 07:32:43 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-06-15 07:32:43 +0000 |
commit | 292321a5cd9b5988a0e73adaa0ad637a9a17b4d4 (patch) | |
tree | 12094325c8b60fc5ff9b26dd40bcb17e41bcfaa5 /gcc/df.h | |
parent | bfac633a90588e96050f8767052d59efd7307cb1 (diff) | |
download | gcc-292321a5cd9b5988a0e73adaa0ad637a9a17b4d4.zip gcc-292321a5cd9b5988a0e73adaa0ad637a9a17b4d4.tar.gz gcc-292321a5cd9b5988a0e73adaa0ad637a9a17b4d4.tar.bz2 |
df.h (FOR_EACH_ARTIFICIAL_USE, [...]): New macros.
gcc/
* df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
* cse.c (cse_extended_basic_block): Use them.
* dce.c (mark_artificial_use): Likewise.
* df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
(df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
(df_chain_remove_problem, df_chain_bb_dump): Likewise.
(df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
(df_simulate_initialize_backwards): Likewise.
(df_simulate_finalize_backwards): Likewise.
(df_simulate_initialize_forwards): Likewise.
(df_md_simulate_artificial_defs_at_top): Likewise.
* df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
* regrename.c (init_rename_info): Likewise.
* regstat.c (regstat_bb_compute_ri): Likewise.
(regstat_bb_compute_calls_crossed): Likewise.
From-SVN: r211679
Diffstat (limited to 'gcc/df.h')
-rw-r--r-- | gcc/df.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -775,6 +775,14 @@ struct df_d #define FOR_EACH_INSN_EQ_USE(ITER, INSN) \ FOR_EACH_INSN_INFO_EQ_USE(ITER, DF_INSN_INFO_GET (INSN)) +#define FOR_EACH_ARTIFICIAL_USE(ITER, BB_INDEX) \ + for (df_ref *ITER##_ = df_get_artificial_uses (BB_INDEX); \ + (ITER = *ITER##_); ++ITER##_) + +#define FOR_EACH_ARTIFICIAL_DEF(ITER, BB_INDEX) \ + for (df_ref *ITER##_ = df_get_artificial_defs (BB_INDEX); \ + (ITER = *ITER##_); ++ITER##_) + /* An obstack for bitmap not related to specific dataflow problems. This obstack should e.g. be used for bitmaps with a short life time such as temporary bitmaps. This obstack is declared in df-core.c. */ |