diff options
author | Gabriel Dos Reis <gdr@cs.tamu.edu> | 2005-06-09 17:41:37 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-06-09 17:41:37 +0000 |
commit | 8562f05c95361a5a232e19ca6871c9cf6dcc4749 (patch) | |
tree | b3762385888427b63671b9ef7c72ac900943b344 /gcc/machmode.h | |
parent | c8d3810f9388b4670b8a5c2d3d82f293c5a6fde7 (diff) | |
download | gcc-8562f05c95361a5a232e19ca6871c9cf6dcc4749.zip gcc-8562f05c95361a5a232e19ca6871c9cf6dcc4749.tar.gz gcc-8562f05c95361a5a232e19ca6871c9cf6dcc4749.tar.bz2 |
machmode.h (to_machine_mode): New.
* machmode.h (to_machine_mode): New.
* rtl.h (to_rtx_code): Likewise.
* read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
(print_c_condition): Convert return value of htab_find().
(apply_code_macro): Add explicit cast when convertin to enums.
(apply_mode_maps): Likewise.
(check_code_macro): Likewise.
(read_rtx_1): Likewise.
From-SVN: r100804
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 10016f8..f8ff132 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -25,6 +25,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* Make an enum class that gives all the machine modes. */ #include "insn-modes.h" +/* Given MODE as integer value, get the corresponding enum machine_mode + enumeration value. */ +#define to_machine_mode(MODE) ((enum machine_mode) (MODE)) + /* Get the name of mode MODE as a string. */ extern const char * const mode_name[NUM_MACHINE_MODES]; |