From a63d650a1f74912165414d954663284273c15098 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Thu, 22 Jul 2004 12:53:26 +0000 Subject: [PATCH] some compfortable macros [r3551] --- ir/ir/ircons.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ir/ir/ircons.h b/ir/ir/ircons.h index 00d486896..38d111b76 100644 --- a/ir/ir/ircons.h +++ b/ir/ir/ircons.h @@ -2571,6 +2571,12 @@ void switch_block (ir_node *target); /** Returns the current block of the current graph. */ ir_node *get_cur_block(void); +/** Returns the fixed nodes of the current graph. */ +#define get_cur_end_block() get_irg_end_block(current_ir_graph) +#define get_cur_end() get_irg_end(current_ir_graph) +#define get_cur_start_block() get_irg_start_block(current_ir_graph) +#define get_cur_start() get_irg_start(current_ir_graph) + /** Constructor for a Block node. * * Adds the block to the graph in current_ir_graph. Constructs a Block -- 2.20.1