OpNode
authorroot <root>
Fri, 17 Feb 2006 00:54:47 +0000 (00:54 +0000)
committerroot <root>
Fri, 17 Feb 2006 00:54:47 +0000 (00:54 +0000)
Robust/src/IR/Flat/FlatOpNode.java [new file with mode: 0644]

diff --git a/Robust/src/IR/Flat/FlatOpNode.java b/Robust/src/IR/Flat/FlatOpNode.java
new file mode 100644 (file)
index 0000000..bc35587
--- /dev/null
@@ -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();
+    }
+}