summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemithlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-11-27 11:22:56 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-11-28 17:38:29 +0100
commit8c8645730c64372457cf5710af158c6796f6c743 (patch)
tree84f2e7a914b6fa44d1e3f6e2c4e34a382d5b7fe5 /ir/be/beemithlp.c
parente0a4d0193285b483b96139e7830138ccc3e0284b (diff)
be: Add and use a generic backend node for unknown values.
Diffstat (limited to 'ir/be/beemithlp.c')
-rw-r--r--ir/be/beemithlp.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/ir/be/beemithlp.c b/ir/be/beemithlp.c
index cfff189..135b84d 100644
--- a/ir/be/beemithlp.c
+++ b/ir/be/beemithlp.c
@@ -23,12 +23,21 @@
#include "irop_t.h"
#include "util.h"
+static void be_emit_unknown(ir_node const *const node)
+{
+ if (be_options.verbose_asm) {
+ be_emit_string("\t/* unknown */");
+ be_emit_finish_line_gas(node);
+ }
+}
+
void be_init_emitters(void)
{
ir_clear_opcodes_generic_func();
- be_set_emitter(op_Phi, be_emit_nothing);
- be_set_emitter(op_be_Keep, be_emit_nothing);
- be_set_emitter(op_be_Start, be_emit_nothing);
+ be_set_emitter(op_Phi, be_emit_nothing);
+ be_set_emitter(op_be_Keep, be_emit_nothing);
+ be_set_emitter(op_be_Start, be_emit_nothing);
+ be_set_emitter(op_be_Unknown, be_emit_unknown);
}
void be_emit_nothing(ir_node const *const node)