get rid of ugly globals in DataFlowGraph
[fleet.git] / src / edu / berkeley / fleet / dataflow / UnPunctuatorNode.java
1 package edu.berkeley.fleet.dataflow;
2 import java.util.*;
3 import edu.berkeley.fleet.loops.*;
4 import edu.berkeley.fleet.api.*;
5
6 public class UnPunctuatorNode extends Node {
7     private final Ship    ship  = dfg.pool.allocateShip("Counter");
8     public  final OutPort out   = new DockOutPort("out", ship.getDock("out"));
9     public  final InPort  val   = new DockInPort("in1",  ship.getDock("in1"));
10     public  final InPort  count = new DockInPort("in2",  ship.getDock("in2"), 0, new BitVector[] { null, bv(1) });
11     public  final InPort  op    = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
12             ship.getDock("inOp").getConstant("PASS_C2_V1"),
13             ship.getDock("inOp").getConstant("DROP_C2_V1") } );
14     public UnPunctuatorNode(DataFlowGraph dfg) { super(dfg); }
15 }