From e9184b8310b4d9279fc84381de6b75c274543948 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 3 Aug 2005 11:39:53 +0000 Subject: [PATCH] add magic for an program representation (irp) [r6363] --- ir/common/firm_common.c | 4 ++++ ir/common/firm_common.h | 1 + 2 files changed, 5 insertions(+) diff --git a/ir/common/firm_common.c b/ir/common/firm_common.c index 01c61561c..054dc46cb 100644 --- a/ir/common/firm_common.c +++ b/ir/common/firm_common.c @@ -48,6 +48,7 @@ const char* print_firm_kind(void *firm_thing) { case k_ir_loop : return "k_ir_loop"; case k_ir_compound_graph_path : return "k_ir_compound_graph_path"; case k_ir_extblk : return "k_ir_extblk"; + case k_ir_prog : return "k_ir_prog"; default: return ""; } } @@ -98,6 +99,9 @@ void firm_identify_thing(void *X) case k_ir_extblk: printf("extended block: (%p)\n", X); break; + case k_ir_prog: + printf("irp: (%p)\n", X); + break; default: printf("Cannot identify thing at (%p).\n", X); } diff --git a/ir/common/firm_common.h b/ir/common/firm_common.h index ed6bb4ec3..c2344fbd0 100644 --- a/ir/common/firm_common.h +++ b/ir/common/firm_common.h @@ -35,6 +35,7 @@ typedef enum { k_ir_loop, /**< a loop */ k_ir_compound_graph_path, /**< a compound graph path, see entity.h */ k_ir_extblk, /**< an extended block */ + k_ir_prog, /**< a program representation (irp) */ k_ir_max /**< maximum value -- illegal for firm nodes. */ } firm_kind; -- 2.20.1