Skip to content

Commit

Permalink
Convert DF_REF_INSN to a function for now
Browse files Browse the repository at this point in the history
gcc/
2014-08-19  David Malcolm  <[email protected]>

	* df-core.c (DF_REF_INSN): New, using a checked cast for now.
	* df.h (DF_REF_INSN): Convert from a macro to a function, so
	that we can return an rtx_insn *.

/
2014-08-19  David Malcolm  <[email protected]>

	* rtx-classes-status.txt (TODO): Add DF_REF_INSN.

From-SVN: r214160
  • Loading branch information
davidmalcolm authored and David Malcolm committed Aug 19, 2014
1 parent a231b8a commit 8020a4d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-08-19 David Malcolm <[email protected]>

* rtx-classes-status.txt (TODO): Add DF_REF_INSN.

2014-08-19 Joost VandeVondele <[email protected]>

* MAINTAINERS (Write After Approval): Add myself.
Expand Down
6 changes: 6 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2014-08-19 David Malcolm <[email protected]>

* df-core.c (DF_REF_INSN): New, using a checked cast for now.
* df.h (DF_REF_INSN): Convert from a macro to a function, so
that we can return an rtx_insn *.

2014-08-19 Yaakov Selkowitz <[email protected]>

* config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
Expand Down
6 changes: 6 additions & 0 deletions gcc/df-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,3 +2502,9 @@ debug_df_chain (struct df_link *link)
df_chain_dump (link, stderr);
fputc ('\n', stderr);
}

rtx_insn *DF_REF_INSN (df_ref ref)
{
rtx insn = ref->base.insn_info->insn;
return safe_as_a <rtx_insn *> (insn);
}
2 changes: 1 addition & 1 deletion gcc/df.h
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ struct df_d
: BLOCK_FOR_INSN (DF_REF_INSN (REF)))
#define DF_REF_BBNO(REF) (DF_REF_BB (REF)->index)
#define DF_REF_INSN_INFO(REF) ((REF)->base.insn_info)
#define DF_REF_INSN(REF) ((REF)->base.insn_info->insn)
extern rtx_insn *DF_REF_INSN (df_ref ref);
#define DF_REF_INSN_UID(REF) (INSN_UID (DF_REF_INSN(REF)))
#define DF_REF_CLASS(REF) ((REF)->base.cl)
#define DF_REF_TYPE(REF) ((REF)->base.type)
Expand Down
1 change: 1 addition & 0 deletions rtx-classes-status.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ Phase 6: use extra rtx_def subclasses: TODO

TODO: "Scaffolding" to be removed
=================================
* DF_REF_INSN
* SET_BB_HEAD, SET_BB_END, SET_BB_HEADER, SET_BB_FOOTER
* SET_NEXT_INSN, SET_PREV_INSN

0 comments on commit 8020a4d

Please sign in to comment.