From 252d872e3708f7d270b90d20e658f52d7b3721c9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 27 May 2008 14:12:04 +0000 Subject: [PATCH] add missing non-inline versions [r19798] --- include/libfirm/irnode.h | 4 ++++ ir/ir/irnode.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/include/libfirm/irnode.h b/include/libfirm/irnode.h index 9f7afc38e..7b7ec35f5 100644 --- a/include/libfirm/irnode.h +++ b/include/libfirm/irnode.h @@ -414,6 +414,10 @@ ir_node *get_Block_phis(const ir_node *block); void set_Block_phis(ir_node *block, ir_node *phi); /** Add a Phi node to the list of Block Phi's. */ void add_Block_phi(ir_node *block, ir_node *phi); +/** Get the Block mark (single bit). */ +unsigned get_Block_mark(const ir_node *block); +/** Set the Block mark (single bit). */ +void set_Block_mark(ir_node *block, unsigned mark); /** Return the number of Keep alive node. */ int get_End_n_keepalives(const ir_node *end); diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index d98b1dec7..fcd336884 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -866,6 +866,20 @@ void (set_Block_phis)(ir_node *block, ir_node *phi) { _set_Block_phis(block, phi); } +void (add_Block_phi)(ir_node *block, ir_node *phi) { + _add_Block_phi(block, phi); +} + +/* Get the Block mark (single bit). */ +unsigned (get_Block_mark)(const ir_node *block) { + return _get_Block_mark(block); +} + +/* Set the Block mark (single bit). */ +void (set_Block_mark)(ir_node *block, unsigned mark) { + _set_Block_mark(block, mark); +} + int get_End_n_keepalives(const ir_node *end) { assert(end->op == op_End); return (get_irn_arity(end) - END_KEEPALIVE_OFFSET); -- 2.20.1