summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-06-09 18:55:48 +0200
committerMatthias Braun <matze@braunis.de>2011-06-11 14:23:26 +0200
commitb46a6da6b265982882b0705ed5104a24d0deb154 (patch)
tree61be873dbc33bc1b27fd9483a387160430db81ea /ir/be/begnuas.h
parent978df7014263f6a4c004f8b62b0d2129e054df31 (diff)
unify sparc/ia32 SwitchJmp handling
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index ba17185..b2192d6 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -107,4 +107,12 @@ void be_gas_emit_block_name(const ir_node *block);
*/
const char *be_gas_insn_label_prefix(void);
+typedef ir_node* (*get_cfop_target_func)(const ir_node *cfop);
+
+/**
+ * Emits a jump table for switch operations
+ */
+void emit_jump_table(const ir_node *node, long default_pn, ir_entity *table,
+ get_cfop_target_func get_cfop_target);
+
#endif