aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linearize.h
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@looxix.net>2005-11-22 00:37:53 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-21 17:55:24 -0800
commitca682df2d73399c4d24d4400cc1a06c9dfc79477 (patch)
tree5fc802ec8b8f33482ee12688187b99ed8ac7e4fa /linearize.h
parentb85ec4bb7f5b1c522d7c71782dbd9cf1c4c49b2f (diff)
downloadsparse-dev-ca682df2d73399c4d24d4400cc1a06c9dfc79477.tar.gz
[PATCH] Add a new opcode: OP_COPY.
This is needed to translate SSA back to normal form. Maybe we should split this in two distinct ops: The first ones correspond to the old OP_PHISOURCE (but if the same phisrc feed several phi-nodes, we need sevarel distinct copy instruction); at this stage they are the only instruction that can define a pseudo in multiple places. The other ones being the "normal" copies. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@looxix.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'linearize.h')
-rw-r--r--linearize.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linearize.h b/linearize.h
index 3b761d93..16264494 100644
--- a/linearize.h
+++ b/linearize.h
@@ -198,6 +198,9 @@ enum opcode {
/* Sparse tagging (line numbers, context, whatever) */
OP_CONTEXT,
OP_RANGE,
+
+ /* Needed to translate SSA back to normal form */
+ OP_COPY,
};
struct basic_block_list;