From 39d19a4638dcdf91c6cd9a9cee50c9f24d63ce5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 30 Nov 2004 17:07:17 +0000 Subject: [PATCH] added new acceessers [r4527] --- ir/ir/irop.c | 9 +++++++++ ir/ir/irop.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 69f8a84bc..8074dc7d4 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -269,6 +269,15 @@ ident *(get_op_ident)(ir_op *op){ return __get_op_ident(op); } +const char *get_op_pin_state_name(op_pin_state s) { + switch(s) { + case op_pin_state_floats: return "op_pin_state_floats"; + case op_pin_state_pinned: return "op_pin_state_pinned"; + case op_pin_state_exc_pinned: return "op_pin_state_exc_pinned"; + case op_pin_state_mem_pinned: return "op_pin_state_mem_pinned"; + } +} + op_pin_state (get_op_pinned)(const ir_op *op){ return __get_op_pinned(op); } diff --git a/ir/ir/irop.h b/ir/ir/irop.h index 1a7170df6..4effc9884 100644 --- a/ir/ir/irop.h +++ b/ir/ir/irop.h @@ -125,6 +125,8 @@ typedef enum { exception or uses memory, else can float. Used internally. */ } op_pin_state; +const char *get_op_pin_state_name(op_pin_state s); + /** gets pinned state of an opcode */ op_pin_state get_op_pinned(const ir_op *op); -- 2.20.1