summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-12-30 17:47:38 +0100
committerMatthias Braun <matze@braunis.de>2016-12-30 23:18:50 +0100
commit8cb00f5ce831a504a66a4b36a1906e8d984e5598 (patch)
tree950bb05e73db4542cac0e99b4f08aa2c7c81c990 /ir/be/TEMPLATE
parentc60f2966f1830378aa2bcc515e4a211322382b35 (diff)
irmode: Do not initialize mode_P
Just guessing a 32bit mode is not too helpful. Leave the mode_P initialization to the backend or frontend.
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/TEMPLATE_bearch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/TEMPLATE/TEMPLATE_bearch.c b/ir/be/TEMPLATE/TEMPLATE_bearch.c
index 5571426..8e8e2ca 100644
--- a/ir/be/TEMPLATE/TEMPLATE_bearch.c
+++ b/ir/be/TEMPLATE/TEMPLATE_bearch.c
@@ -106,6 +106,8 @@ static void TEMPLATE_generate_code(FILE *output, const char *cup_name)
static void TEMPLATE_init(void)
{
+ ir_mode *const ptr_mode = new_reference_mode("p32", 32, 32);
+ set_modeP(ptr_mode);
TEMPLATE_register_init();
TEMPLATE_create_opcodes();
}