This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242105 - in /branches/ARM/sve-branch/gcc: ada/...


Author: rsandifo
Date: Fri Nov 11 17:01:01 2016
New Revision: 242105

URL: https://gcc.gnu.org/viewcvs?rev=242105&root=gcc&view=rev
Log:
Make machine_mode a class

This patch renames enum machine_mode to enum machine_mode_enum
and adds a machine_mode wrapper class.

The previous patch mechanically replaced mode names in case
statements; this one updates other places that should continue
to use the enum directly.

The patch continues to use enums for static variables.  This isn't
necessary, but it cuts down on the amount of load-time initialisation
and shouldn't have any downsides.

The patch also changes things like:

  cmp_mode == DImode ? DFmode : DImode

to:

  cmp_mode == DImode ? E_DFmode : E_DImode

This is because DImode and DFmode will eventually be different
classes, so the original ?: wouldn't be well-formed.

The member functions of the new class are trivial and
heavily used.  There's not much point keeping them out-of-line
at -O0: if anything it would make debugging harder rather than
easier, and it would also slow things down.  The patch therefore
marks them as "always_inline", if that's available.

Modified:
    branches/ARM/sve-branch/gcc/ada/gcc-interface/misc.c
    branches/ARM/sve-branch/gcc/c-family/c-attribs.c
    branches/ARM/sve-branch/gcc/c-family/c-common.c
    branches/ARM/sve-branch/gcc/c-family/c-common.h
    branches/ARM/sve-branch/gcc/calls.c
    branches/ARM/sve-branch/gcc/combine.c
    branches/ARM/sve-branch/gcc/compare-elim.c
    branches/ARM/sve-branch/gcc/config/aarch64/aarch64-builtins.c
    branches/ARM/sve-branch/gcc/config/aarch64/aarch64-protos.h
    branches/ARM/sve-branch/gcc/config/aarch64/aarch64.c
    branches/ARM/sve-branch/gcc/config/aarch64/aarch64.h
    branches/ARM/sve-branch/gcc/config/aarch64/cortex-a57-fma-steering.c
    branches/ARM/sve-branch/gcc/config/alpha/alpha.c
    branches/ARM/sve-branch/gcc/config/arc/arc.c
    branches/ARM/sve-branch/gcc/config/arm/arm-builtins.c
    branches/ARM/sve-branch/gcc/config/arm/arm-protos.h
    branches/ARM/sve-branch/gcc/config/avr/avr-log.c
    branches/ARM/sve-branch/gcc/config/ft32/ft32.c
    branches/ARM/sve-branch/gcc/config/i386/i386-builtin-types.awk
    branches/ARM/sve-branch/gcc/config/i386/i386-builtin.def
    branches/ARM/sve-branch/gcc/config/i386/i386-protos.h
    branches/ARM/sve-branch/gcc/config/i386/i386.c
    branches/ARM/sve-branch/gcc/config/iq2000/iq2000.c
    branches/ARM/sve-branch/gcc/config/m32r/m32r.c
    branches/ARM/sve-branch/gcc/config/microblaze/microblaze-protos.h
    branches/ARM/sve-branch/gcc/config/microblaze/microblaze.c
    branches/ARM/sve-branch/gcc/config/mips/mips.c
    branches/ARM/sve-branch/gcc/config/nvptx/nvptx.c
    branches/ARM/sve-branch/gcc/config/rl78/rl78-protos.h
    branches/ARM/sve-branch/gcc/config/rl78/rl78.c
    branches/ARM/sve-branch/gcc/config/rs6000/rs6000.c
    branches/ARM/sve-branch/gcc/config/rs6000/rs6000.h
    branches/ARM/sve-branch/gcc/config/s390/s390.c
    branches/ARM/sve-branch/gcc/config/s390/s390.h
    branches/ARM/sve-branch/gcc/config/sh/sh.h
    branches/ARM/sve-branch/gcc/config/sparc/sparc.c
    branches/ARM/sve-branch/gcc/config/stormy16/stormy16.c
    branches/ARM/sve-branch/gcc/config/visium/visium-protos.h
    branches/ARM/sve-branch/gcc/config/visium/visium.c
    branches/ARM/sve-branch/gcc/config/xtensa/xtensa.c
    branches/ARM/sve-branch/gcc/coretypes.h
    branches/ARM/sve-branch/gcc/cse.c
    branches/ARM/sve-branch/gcc/doc/tm.texi
    branches/ARM/sve-branch/gcc/emit-rtl.c
    branches/ARM/sve-branch/gcc/expmed.c
    branches/ARM/sve-branch/gcc/expmed.h
    branches/ARM/sve-branch/gcc/expr.c
    branches/ARM/sve-branch/gcc/fixed-value.h
    branches/ARM/sve-branch/gcc/fortran/trans-types.c
    branches/ARM/sve-branch/gcc/gcse.c
    branches/ARM/sve-branch/gcc/gengtype.c
    branches/ARM/sve-branch/gcc/genmodes.c
    branches/ARM/sve-branch/gcc/genoutput.c
    branches/ARM/sve-branch/gcc/genrecog.c
    branches/ARM/sve-branch/gcc/hsa-gen.c
    branches/ARM/sve-branch/gcc/ifcvt.c
    branches/ARM/sve-branch/gcc/internal-fn.c
    branches/ARM/sve-branch/gcc/ira-color.c
    branches/ARM/sve-branch/gcc/ira-int.h
    branches/ARM/sve-branch/gcc/ira.c
    branches/ARM/sve-branch/gcc/jit/dummy-frontend.c
    branches/ARM/sve-branch/gcc/lists.c
    branches/ARM/sve-branch/gcc/lower-subreg.c
    branches/ARM/sve-branch/gcc/lra-constraints.c
    branches/ARM/sve-branch/gcc/lra-eliminations.c
    branches/ARM/sve-branch/gcc/lra-int.h
    branches/ARM/sve-branch/gcc/lra.c
    branches/ARM/sve-branch/gcc/lto-streamer-in.c
    branches/ARM/sve-branch/gcc/lto-streamer-out.c
    branches/ARM/sve-branch/gcc/machmode.h
    branches/ARM/sve-branch/gcc/omp-low.c
    branches/ARM/sve-branch/gcc/optabs.c
    branches/ARM/sve-branch/gcc/optabs.h
    branches/ARM/sve-branch/gcc/read-rtl.c
    branches/ARM/sve-branch/gcc/recog.h
    branches/ARM/sve-branch/gcc/ree.c
    branches/ARM/sve-branch/gcc/reginfo.c
    branches/ARM/sve-branch/gcc/rtl.h
    branches/ARM/sve-branch/gcc/rtlanal.c
    branches/ARM/sve-branch/gcc/simplify-rtx.c
    branches/ARM/sve-branch/gcc/system.h
    branches/ARM/sve-branch/gcc/target.def
    branches/ARM/sve-branch/gcc/targhooks.c
    branches/ARM/sve-branch/gcc/targhooks.h
    branches/ARM/sve-branch/gcc/tree-core.h
    branches/ARM/sve-branch/gcc/tree-streamer.h
    branches/ARM/sve-branch/gcc/tree-vect-loop.c
    branches/ARM/sve-branch/gcc/tree-vect-stmts.c
    branches/ARM/sve-branch/gcc/tree.c
    branches/ARM/sve-branch/gcc/tree.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]