Commit afe48e06 by Richard Henderson

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
parent 50798048
...@@ -240,6 +240,11 @@ static int dialect_number; ...@@ -240,6 +240,11 @@ static int dialect_number;
static char *line_note_exists; 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. */ /* Linked list to hold line numbers for each basic block. */
struct bb_list { struct bb_list {
...@@ -2877,6 +2882,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -2877,6 +2882,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
FINAL_PRESCAN_INSN (insn, recog_data.operand, recog_data.n_operands); FINAL_PRESCAN_INSN (insn, recog_data.operand, recog_data.n_operands);
#endif #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 #ifdef HAVE_cc0
cc_prev_status = cc_status; cc_prev_status = cc_status;
......
...@@ -433,6 +433,10 @@ extern int current_function_uses_only_leaf_regs; ...@@ -433,6 +433,10 @@ extern int current_function_uses_only_leaf_regs;
extern FILE *rtl_dump_file; extern FILE *rtl_dump_file;
#endif #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 /* Decide whether DECL needs to be in a writable section. RELOC is the same
as for SELECT_SECTION. */ as for SELECT_SECTION. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment