summaryrefslogtreecommitdiff
path: root/gcc/machmode.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-09 17:41:37 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-09 17:41:37 +0000
commit79f86a88dadbf33f49759c47f5ddc1c2b709e03e (patch)
treeb3762385888427b63671b9ef7c72ac900943b344 /gcc/machmode.h
parentcd8e835e48b87390255ce66bfd10cd3813de26ab (diff)
downloadgcc-79f86a88dadbf33f49759c47f5ddc1c2b709e03e.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r--gcc/machmode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 10016f86ac7..f8ff1323729 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];