final.c (current_insn_predicate): New.

* final.c (current_insn_predicate): New.
        (final_scan_insn): Set it.
        * output.h (current_insn_predicate): Declare.

From-SVN: r33790
This commit is contained in:
Richard Henderson 2000-05-08 23:10:36 -07:00
parent 5079804811
commit afe48e0687
2 changed files with 16 additions and 0 deletions

View File

@ -240,6 +240,11 @@ static int dialect_number;
static char *line_note_exists;
#ifdef HAVE_conditional_execution
/* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
rtx current_insn_predicate;
#endif
/* Linked list to hold line numbers for each basic block. */
struct bb_list {
@ -2877,6 +2882,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
FINAL_PRESCAN_INSN (insn, recog_data.operand, recog_data.n_operands);
#endif
#ifdef HAVE_conditional_execution
if (GET_CODE (PATTERN (insn)) == COND_EXEC)
current_insn_predicate = COND_EXEC_TEST (PATTERN (insn));
else
current_insn_predicate = NULL_RTX;
#endif
#ifdef HAVE_cc0
cc_prev_status = cc_status;

View File

@ -433,6 +433,10 @@ extern int current_function_uses_only_leaf_regs;
extern FILE *rtl_dump_file;
#endif
/* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
extern struct rtx_def *current_insn_predicate;
/* Decide whether DECL needs to be in a writable section. RELOC is the same
as for SELECT_SECTION. */