diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2014-10-29 12:02:45 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-10-29 12:02:45 +0000 |
commit | ef4bddc299eae13cc25e50eebc523a4963e0a5f7 (patch) | |
tree | 9a57dad975c942ce6765490066e2492bc1ce59e9 /gcc/config/tilepro | |
parent | ca557f533aa5e941d765c4c78b10b095537f0bdf (diff) | |
download | gcc-ef4bddc299eae13cc25e50eebc523a4963e0a5f7.zip gcc-ef4bddc299eae13cc25e50eebc523a4963e0a5f7.tar.gz gcc-ef4bddc299eae13cc25e50eebc523a4963e0a5f7.tar.bz2 |
decl.c, [...]: Remove redundant enum from machine_mode.
gcc/ada/
* gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c,
gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c:
Remove redundant enum from machine_mode.
gcc/c-family/
* c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
enum from machine_mode.
gcc/c/
* c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
machine_mode.
gcc/cp/
* constexpr.c: Remove redundant enum from machine_mode.
gcc/fortran/
* trans-types.c, trans-types.h: Remove redundant enum from
machine_mode.
gcc/go/
* go-lang.c: Remove redundant enum from machine_mode.
gcc/java/
* builtins.c, java-tree.h, typeck.c: Remove redundant enum from
machine_mode.
gcc/lto/
* lto-lang.c: Remove redundant enum from machine_mode.
gcc/
* addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
config/aarch64/aarch64.c, config/aarch64/aarch64.h,
config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
config/arc/arc.h, config/arc/predicates.md,
config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
config/cr16/cr16-protos.h, config/cr16/cr16.c,
config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
config/darwin-protos.h, config/darwin.c,
config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
config/epiphany/epiphany.md, config/fr30/fr30.c,
config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
config/h8300/h8300-protos.h, config/h8300/h8300.c,
config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
config/iq2000/iq2000.c, config/iq2000/iq2000.md,
config/lm32/lm32-protos.h, config/lm32/lm32.c,
config/m32c/m32c-protos.h, config/m32c/m32c.c,
config/m32r/m32r-protos.h, config/m32r/m32r.c,
config/m68k/m68k-protos.h, config/m68k/m68k.c,
config/mcore/mcore-protos.h, config/mcore/mcore.c,
config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
config/mips/mips-protos.h, config/mips/mips.c,
config/mmix/mmix-protos.h, config/mmix/mmix.c,
config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
config/moxie/moxie.c, config/msp430/msp430-protos.h,
config/msp430/msp430.c, config/nds32/nds32-cost.c,
config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
config/nds32/nds32-protos.h, config/nds32/nds32.c,
config/nios2/nios2-protos.h, config/nios2/nios2.c,
config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
config/s390/predicates.md, config/s390/s390-protos.h,
config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
config/sh/sh.md, config/sparc/predicates.md,
config/sparc/sparc-protos.h, config/sparc/sparc.c,
config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
config/tilepro/tilepro.c, config/v850/v850-protos.h,
config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
var-tracking.c, varasm.c: Remove redundant enum from
machine_mode.
gcc/
* gengtype.c (main): Treat machine_mode as a scalar typedef.
* genmodes.c (emit_insn_modes_h): Hide inline functions if
USED_FOR_TARGET.
From-SVN: r216834
Diffstat (limited to 'gcc/config/tilepro')
-rw-r--r-- | gcc/config/tilepro/tilepro-protos.h | 14 | ||||
-rw-r--r-- | gcc/config/tilepro/tilepro.c | 62 |
2 files changed, 38 insertions, 38 deletions
diff --git a/gcc/config/tilepro/tilepro-protos.h b/gcc/config/tilepro/tilepro-protos.h index fe9b81b..69b14aa 100644 --- a/gcc/config/tilepro/tilepro-protos.h +++ b/gcc/config/tilepro/tilepro-protos.h @@ -24,25 +24,25 @@ extern void tilepro_init_expanders (void); extern bool tilepro_legitimate_pic_operand_p (rtx); -extern rtx tilepro_simd_int (rtx, enum machine_mode); +extern rtx tilepro_simd_int (rtx, machine_mode); #ifdef RTX_CODE extern void split_di (rtx[], int, rtx[], rtx[]); extern bool tilepro_bitfield_operand_p (HOST_WIDE_INT, int *, int *); extern void tilepro_expand_set_const32 (rtx, rtx); -extern bool tilepro_expand_mov (enum machine_mode, rtx *); +extern bool tilepro_expand_mov (machine_mode, rtx *); extern void tilepro_expand_insv (rtx operands[4]); extern void tilepro_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT, HOST_WIDE_INT, bool); -extern void tilepro_expand_movmisalign (enum machine_mode, rtx *); +extern void tilepro_expand_movmisalign (machine_mode, rtx *); extern bool tilepro_expand_addsi (rtx, rtx, rtx); extern void tilepro_allocate_stack (rtx, rtx); extern bool tilepro_expand_mulsi (rtx, rtx, rtx); extern void tilepro_expand_smulsi3_highpart (rtx, rtx, rtx); extern void tilepro_expand_umulsi3_highpart (rtx, rtx, rtx); -extern bool tilepro_emit_setcc (rtx[], enum machine_mode); -extern void tilepro_emit_conditional_branch (rtx[], enum machine_mode); +extern bool tilepro_emit_setcc (rtx[], machine_mode); +extern void tilepro_emit_conditional_branch (rtx[], machine_mode); extern rtx tilepro_emit_conditional_move (rtx); extern const char *tilepro_output_cbranch_with_opcode (rtx_insn *, rtx *, const char *, @@ -51,8 +51,8 @@ extern const char *tilepro_output_cbranch_with_opcode (rtx_insn *, rtx *, extern const char *tilepro_output_cbranch (rtx_insn *, rtx *, bool); extern void tilepro_expand_tablejump (rtx, rtx); extern void tilepro_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx), - enum machine_mode, rtx, - enum machine_mode, rtx, rtx, + machine_mode, rtx, + machine_mode, rtx, rtx, bool); #endif /* RTX_CODE */ diff --git a/gcc/config/tilepro/tilepro.c b/gcc/config/tilepro/tilepro.c index b9f4fa7..9fdfb42 100644 --- a/gcc/config/tilepro/tilepro.c +++ b/gcc/config/tilepro/tilepro.c @@ -82,7 +82,7 @@ static GTY(()) rtx g_got_symbol = NULL; /* In case of a POST_INC or POST_DEC memory reference, we must report the mode of the memory reference from TARGET_PRINT_OPERAND to TARGET_PRINT_OPERAND_ADDRESS. */ -static enum machine_mode output_memory_reference_mode; +static machine_mode output_memory_reference_mode; /* Report whether we're printing out the first address fragment of a POST_INC or POST_DEC memory reference, from TARGET_PRINT_OPERAND to @@ -107,7 +107,7 @@ tilepro_option_override (void) /* Implement TARGET_SCALAR_MODE_SUPPORTED_P. */ static bool -tilepro_scalar_mode_supported_p (enum machine_mode mode) +tilepro_scalar_mode_supported_p (machine_mode mode) { switch (mode) { @@ -129,7 +129,7 @@ tilepro_scalar_mode_supported_p (enum machine_mode mode) /* Implement TARGET_VECTOR_MODE_SUPPORTED_P. */ static bool -tile_vector_mode_supported_p (enum machine_mode mode) +tile_vector_mode_supported_p (machine_mode mode) { return mode == V4QImode || mode == V2HImode; } @@ -137,7 +137,7 @@ tile_vector_mode_supported_p (enum machine_mode mode) /* Implement TARGET_CANNOT_FORCE_CONST_MEM. */ static bool -tilepro_cannot_force_const_mem (enum machine_mode mode ATTRIBUTE_UNUSED, +tilepro_cannot_force_const_mem (machine_mode mode ATTRIBUTE_UNUSED, rtx x ATTRIBUTE_UNUSED) { return true; @@ -156,7 +156,7 @@ tilepro_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) passed by reference. */ static bool tilepro_pass_by_reference (cumulative_args_t cum ATTRIBUTE_UNUSED, - enum machine_mode mode ATTRIBUTE_UNUSED, + machine_mode mode ATTRIBUTE_UNUSED, const_tree type, bool named ATTRIBUTE_UNUSED) { return (type && TYPE_SIZE (type) @@ -175,7 +175,7 @@ tilepro_return_in_memory (const_tree type, const_tree fndecl ATTRIBUTE_UNUSED) /* Implement TARGET_FUNCTION_ARG_BOUNDARY. */ static unsigned int -tilepro_function_arg_boundary (enum machine_mode mode, const_tree type) +tilepro_function_arg_boundary (machine_mode mode, const_tree type) { unsigned int alignment; @@ -191,7 +191,7 @@ tilepro_function_arg_boundary (enum machine_mode mode, const_tree type) /* Implement TARGET_FUNCTION_ARG. */ static rtx tilepro_function_arg (cumulative_args_t cum_v, - enum machine_mode mode, + machine_mode mode, const_tree type, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS cum = *get_cumulative_args (cum_v); @@ -222,7 +222,7 @@ tilepro_function_arg (cumulative_args_t cum_v, /* Implement TARGET_FUNCTION_ARG_ADVANCE. */ static void tilepro_function_arg_advance (cumulative_args_t cum_v, - enum machine_mode mode, + machine_mode mode, const_tree type, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); @@ -254,7 +254,7 @@ static rtx tilepro_function_value (const_tree valtype, const_tree fn_decl_or_type, bool outgoing ATTRIBUTE_UNUSED) { - enum machine_mode mode; + machine_mode mode; int unsigned_p; mode = TYPE_MODE (valtype); @@ -269,7 +269,7 @@ tilepro_function_value (const_tree valtype, const_tree fn_decl_or_type, /* Implement TARGET_LIBCALL_VALUE. */ static rtx -tilepro_libcall_value (enum machine_mode mode, +tilepro_libcall_value (machine_mode mode, const_rtx fun ATTRIBUTE_UNUSED) { return gen_rtx_REG (mode, 0); @@ -364,7 +364,7 @@ tilepro_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED) /* Implement TARGET_SETUP_INCOMING_VARARGS. */ static void tilepro_setup_incoming_varargs (cumulative_args_t cum, - enum machine_mode mode, + machine_mode mode, tree type, int *pretend_args, int no_rtl) { CUMULATIVE_ARGS local_cum = *get_cumulative_args (cum); @@ -677,7 +677,7 @@ gen_int_si (HOST_WIDE_INT val) /* Create a temporary variable to hold a partial result, to enable CSE. */ static rtx -create_temp_reg_if_possible (enum machine_mode mode, rtx default_reg) +create_temp_reg_if_possible (machine_mode mode, rtx default_reg) { return can_create_pseudo_p ()? gen_reg_rtx (mode) : default_reg; } @@ -759,7 +759,7 @@ tilepro_pic_address_needs_scratch (rtx x) pattern. TLS cannot be treated as a constant because it can include a function call. */ static bool -tilepro_legitimate_constant_p (enum machine_mode mode ATTRIBUTE_UNUSED, rtx x) +tilepro_legitimate_constant_p (machine_mode mode ATTRIBUTE_UNUSED, rtx x) { switch (GET_CODE (x)) { @@ -791,7 +791,7 @@ tilepro_legitimate_pic_operand_p (rtx x) /* Return true if the rtx X can be used as an address operand. */ static bool -tilepro_legitimate_address_p (enum machine_mode ARG_UNUSED (mode), rtx x, +tilepro_legitimate_address_p (machine_mode ARG_UNUSED (mode), rtx x, bool strict) { if (GET_CODE (x) == SUBREG) @@ -996,7 +996,7 @@ tilepro_legitimize_tls_address (rtx addr) nonzero, otherwise we allocate register(s) as necessary. */ static rtx tilepro_legitimize_pic_address (rtx orig, - enum machine_mode mode ATTRIBUTE_UNUSED, + machine_mode mode ATTRIBUTE_UNUSED, rtx reg) { if (GET_CODE (orig) == SYMBOL_REF) @@ -1145,7 +1145,7 @@ tilepro_legitimize_pic_address (rtx orig, /* Implement TARGET_LEGITIMIZE_ADDRESS. */ static rtx tilepro_legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, - enum machine_mode mode) + machine_mode mode) { if (GET_MODE_SIZE (mode) <= UNITS_PER_WORD && symbolic_operand (x, Pmode) && tilepro_tls_referenced_p (x)) @@ -1219,7 +1219,7 @@ load_pic_register (bool delay_pic_helper ATTRIBUTE_UNUSED) replicating it to fill an interger of mode SImode. NUM is first truncated to fit in MODE. */ rtx -tilepro_simd_int (rtx num, enum machine_mode mode) +tilepro_simd_int (rtx num, machine_mode mode) { HOST_WIDE_INT n = 0; @@ -1459,7 +1459,7 @@ expand_set_cint32 (rtx dest_reg, rtx src_val) void tilepro_expand_set_const32 (rtx op0, rtx op1) { - enum machine_mode mode = GET_MODE (op0); + machine_mode mode = GET_MODE (op0); rtx temp; if (CONST_INT_P (op1)) @@ -1484,7 +1484,7 @@ tilepro_expand_set_const32 (rtx op0, rtx op1) /* Expand a move instruction. Return true if all work is done. */ bool -tilepro_expand_mov (enum machine_mode mode, rtx *operands) +tilepro_expand_mov (machine_mode mode, rtx *operands) { /* Handle sets of MEM first. */ if (MEM_P (operands[0])) @@ -1617,7 +1617,7 @@ void tilepro_expand_unaligned_load (rtx dest_reg, rtx mem, HOST_WIDE_INT bitsize, HOST_WIDE_INT bit_offset, bool sign) { - enum machine_mode mode; + machine_mode mode; rtx addr_lo, addr_hi; rtx mem_lo, mem_hi, hi; rtx mema, wide_result; @@ -1756,7 +1756,7 @@ tilepro_expand_unaligned_store (rtx mem, rtx src, HOST_WIDE_INT bitsize, memory that is not naturally aligned. Emit instructions to load it. */ void -tilepro_expand_movmisalign (enum machine_mode mode, rtx *operands) +tilepro_expand_movmisalign (machine_mode mode, rtx *operands) { if (MEM_P (operands[1])) { @@ -2212,7 +2212,7 @@ tilepro_emit_setcc_internal_di (rtx res, enum rtx_code code, rtx op0, rtx op1) work. */ static bool tilepro_emit_setcc_internal (rtx res, enum rtx_code code, rtx op0, rtx op1, - enum machine_mode cmp_mode) + machine_mode cmp_mode) { rtx tmp; bool swap = false; @@ -2272,7 +2272,7 @@ tilepro_emit_setcc_internal (rtx res, enum rtx_code code, rtx op0, rtx op1, /* Implement cstore patterns. */ bool -tilepro_emit_setcc (rtx operands[], enum machine_mode cmp_mode) +tilepro_emit_setcc (rtx operands[], machine_mode cmp_mode) { return tilepro_emit_setcc_internal (operands[0], GET_CODE (operands[1]), @@ -2292,7 +2292,7 @@ signed_compare_p (enum rtx_code code) /* Generate the comparison for an SImode conditional branch. */ static rtx tilepro_emit_cc_test (enum rtx_code code, rtx op0, rtx op1, - enum machine_mode cmp_mode, bool eq_ne_only) + machine_mode cmp_mode, bool eq_ne_only) { enum rtx_code branch_code; rtx temp; @@ -2410,7 +2410,7 @@ tilepro_emit_cc_test (enum rtx_code code, rtx op0, rtx op1, /* Generate the comparison for a conditional branch. */ void -tilepro_emit_conditional_branch (rtx operands[], enum machine_mode cmp_mode) +tilepro_emit_conditional_branch (rtx operands[], machine_mode cmp_mode) { rtx cmp_rtx = tilepro_emit_cc_test (GET_CODE (operands[0]), operands[1], operands[2], @@ -2597,9 +2597,9 @@ tilepro_expand_tablejump (rtx op0, rtx op1) src0 and src1 (if DO_SRC1 is true) is converted to SRC_MODE. */ void tilepro_expand_builtin_vector_binop (rtx (*gen) (rtx, rtx, rtx), - enum machine_mode dest_mode, + machine_mode dest_mode, rtx dest, - enum machine_mode src_mode, + machine_mode src_mode, rtx src0, rtx src1, bool do_src1) { dest = gen_lowpart (dest_mode, dest); @@ -3112,7 +3112,7 @@ static rtx tilepro_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, - enum machine_mode mode ATTRIBUTE_UNUSED, + machine_mode mode ATTRIBUTE_UNUSED, int ignore ATTRIBUTE_UNUSED) { #define MAX_BUILTIN_ARGS 4 @@ -3166,7 +3166,7 @@ tilepro_expand_builtin (tree exp, if (nonvoid) { - enum machine_mode tmode = insn_data[icode].operand[0].mode; + machine_mode tmode = insn_data[icode].operand[0].mode; if (!target || GET_MODE (target) != tmode || !(*insn_data[icode].operand[0].predicate) (target, tmode)) @@ -3926,7 +3926,7 @@ tilepro_frame_pointer_required (void) int tilepro_adjust_insn_length (rtx_insn *insn, int length) { - enum machine_mode mode = GET_MODE (insn); + machine_mode mode = GET_MODE (insn); /* A non-termininating instruction in a bundle has length 0. */ if (mode == SImode) @@ -4883,7 +4883,7 @@ tilepro_print_operand_address (FILE *file, rtx addr) /* Machine mode of current insn, for determining curly brace placement. */ -static enum machine_mode insn_mode; +static machine_mode insn_mode; /* Implement FINAL_PRESCAN_INSN. This is used to emit bundles. */ |