From 6817e3c6752d0c463382d3ef3711bf8de259186c Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Feb 2006 00:54:47 +0000 Subject: [PATCH] OpNode --- Robust/src/IR/Flat/FlatOpNode.java | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Robust/src/IR/Flat/FlatOpNode.java diff --git a/Robust/src/IR/Flat/FlatOpNode.java b/Robust/src/IR/Flat/FlatOpNode.java new file mode 100644 index 00000000..bc35587d --- /dev/null +++ b/Robust/src/IR/Flat/FlatOpNode.java @@ -0,0 +1,37 @@ +package IR.Flat; +import java.util.Vector; +import IR.*; + +public class FlatOpNode extends FlatNode { + TempDescriptor dest; + TempDescriptor left; + TempDescriptor right; + Operation op; + + public FlatOpNode(TempDescriptor dest, TempDescriptor left, TempDescriptor right, Operation op) { + this.dest=dest; + this.left=left; + this.right=right; + this.op=op; + } + + TempDescriptor getDest() { + return dest; + } + + TempDescriptor getLeft() { + return left; + } + + TempDescriptor getRight() { + return right; + } + + Operation getOp() { + return op; + } + + public String toString() { + return dest.toString()+"="+left.toString()+op.toString()+right.toString(); + } +} -- 2.34.1