return (hashval_t) INTVAL (x);
}
-/* Returns nonzero if the value represented by X (which is really a
+/* Returns true if the value represented by X (which is really a
CONST_INT) is the same as that given by Y (which is really a
HOST_WIDE_INT *). */
return (hashval_t) hash;
}
-/* Returns nonzero if the value represented by X (which is really a
+/* Returns true if the value represented by X (which is really a
CONST_WIDE_INT) is the same as that given by Y (which is really a
CONST_WIDE_INT). */
return h.end ();
}
-/* Returns nonzero if CONST_POLY_INT X is an rtx representation of Y. */
+/* Returns true if CONST_POLY_INT X is an rtx representation of Y. */
bool
const_poly_int_hasher::equal (rtx x, const compare_type &y)
return h;
}
-/* Returns nonzero if the value represented by X (really a ...)
+/* Returns true if the value represented by X (really a ...)
is the same as that represented by Y (really a ...) */
bool
const_double_hasher::equal (rtx x, rtx y)
const_rtx const a = x, b = y;
if (GET_MODE (a) != GET_MODE (b))
- return 0;
+ return false;
if (TARGET_SUPPORTS_WIDE_INT == 0 && GET_MODE (a) == VOIDmode)
return (CONST_DOUBLE_LOW (a) == CONST_DOUBLE_LOW (b)
&& CONST_DOUBLE_HIGH (a) == CONST_DOUBLE_HIGH (b));
return h;
}
-/* Returns nonzero if the value represented by X is the same as that
+/* Returns true if the value represented by X is the same as that
represented by Y. */
bool
const_rtx const a = x, b = y;
if (GET_MODE (a) != GET_MODE (b))
- return 0;
+ return false;
return fixed_identical (CONST_FIXED_VALUE (a), CONST_FIXED_VALUE (b));
}
return h.end ();
}
-/* Returns nonzero if the value represented by X is the same as that given by
+/* Returns true if the value represented by X is the same as that given by
Y. */
bool
* BITS_PER_UNIT);
}
-/* Return 1 iff X, assumed to be a SUBREG,
+/* Return true iff X, assumed to be a SUBREG,
refers to the least significant part of its containing reg.
- If X is not a SUBREG, always return 1 (it is its own low part!). */
+ If X is not a SUBREG, always return true (it is its own low part!). */
-int
+bool
subreg_lowpart_p (const_rtx x)
{
if (GET_CODE (x) != SUBREG)
- return 1;
+ return true;
else if (GET_MODE (SUBREG_REG (x)) == VOIDmode)
- return 0;
+ return false;
return known_eq (subreg_lowpart_offset (GET_MODE (x),
GET_MODE (SUBREG_REG (x))),
size_known_p (false)
{}
-/* Returns 1 if both MEM_EXPR can be considered equal
- and 0 otherwise. */
+/* Returns true if both MEM_EXPR can be considered equal
+ and false otherwise. */
-int
+bool
mem_expr_equal_p (const_tree expr1, const_tree expr2)
{
if (expr1 == expr2)
- return 1;
+ return true;
if (! expr1 || ! expr2)
- return 0;
+ return false;
if (TREE_CODE (expr1) != TREE_CODE (expr2))
- return 0;
+ return false;
return operand_equal_p (expr1, expr2, 0);
}
unshare_all_rtl_1 (insn);
}
-unsigned int
+void
unshare_all_rtl (void)
{
unshare_all_rtl_1 (get_insns ());
SET_DECL_RTL (decl, copy_rtx_if_shared (DECL_RTL (decl)));
DECL_INCOMING_RTL (decl) = copy_rtx_if_shared (DECL_INCOMING_RTL (decl));
}
-
- return 0;
}
break;
}
}
- return;
}
/* Reset used-flags for INSN. */
orig1 = last_ptr;
goto repeat;
}
- return;
}
/* Set the USED bit in X and its non-shareable subparts to FLAG. */
return safe_as_a <rtx_call_insn *> (insn);
}
-/* Find the next insn after INSN that really does something. This routine
- does not look inside SEQUENCEs. After reload this also skips over
- standalone USE and CLOBBER insn. */
-
-int
+bool
active_insn_p (const rtx_insn *insn)
{
return (CALL_P (insn) || JUMP_P (insn)
&& GET_CODE (PATTERN (insn)) != CLOBBER))));
}
+/* Find the next insn after INSN that really does something. This routine
+ does not look inside SEQUENCEs. After reload this also skips over
+ standalone USE and CLOBBER insn. */
+
rtx_insn *
next_active_insn (rtx_insn *insn)
{
free_sequence_stack = tem;
}
-/* Return 1 if currently emitting into a sequence. */
+/* Return true if currently emitting into a sequence. */
-int
+bool
in_sequence_p (void)
{
return get_current_sequence ()->next != 0;
/* In emit-rtl.cc */
extern rtx operand_subword_force (rtx, poly_uint64, machine_mode);
-extern int subreg_lowpart_p (const_rtx);
+extern bool subreg_lowpart_p (const_rtx);
extern poly_uint64 subreg_size_lowpart_offset (poly_uint64, poly_uint64);
/* Return true if a subreg of mode OUTERMODE would only access part of
extern rtx_insn *next_real_nondebug_insn (rtx);
extern rtx_insn *prev_active_insn (rtx_insn *);
extern rtx_insn *next_active_insn (rtx_insn *);
-extern int active_insn_p (const rtx_insn *);
+extern bool active_insn_p (const rtx_insn *);
/* In emit-rtl.cc */
extern int insn_line (const rtx_insn *);
extern void reorder_insns (rtx_insn *, rtx_insn *, rtx_insn *);
extern void reorder_insns_nobb (rtx_insn *, rtx_insn *, rtx_insn *);
extern int get_max_insn_count (void);
-extern int in_sequence_p (void);
+extern bool in_sequence_p (void);
extern void init_emit (void);
extern void init_emit_regs (void);
extern void init_derived_machine_modes (void);
extern void push_topmost_sequence (void);
extern void pop_topmost_sequence (void);
extern void set_new_first_and_last_insn (rtx_insn *, rtx_insn *);
-extern unsigned int unshare_all_rtl (void);
+extern void unshare_all_rtl (void);
extern void unshare_all_rtl_again (rtx_insn *);
extern void unshare_all_rtl_in_chain (rtx_insn *);
extern void verify_rtl_sharing (void);