summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemitter.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-02-16 08:10:31 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-04-29 08:20:07 +0200
commit94dd895c50855ae5200bf0876ce04f530e829f67 (patch)
tree6f1c87827915b354a845563ff01957f836323d55 /ir/be/beemitter.h
parent156f217b7b36650af73177714f62a6f49374e3d3 (diff)
be: Factorise the code to emit an asm node and use a callback for each backend to output the operands.
Diffstat (limited to 'ir/be/beemitter.h')
-rw-r--r--ir/be/beemitter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir/be/beemitter.h b/ir/be/beemitter.h
index 11f478e..665ad8a 100644
--- a/ir/be/beemitter.h
+++ b/ir/be/beemitter.h
@@ -125,4 +125,8 @@ void be_emit_nothing(ir_node const *node);
*/
void be_emit_node(ir_node const *node);
+typedef void be_emit_asm_operand_func(ir_node const *asmn, char modifier, unsigned pos);
+
+void be_emit_asm(ir_node const *asmn, ident *text, unsigned n_operands, be_emit_asm_operand_func *emit_asm_operand);
+
#endif