Package IRTree2

Examples of IRTree2.TEMP


    iffalse = f;
  }

  public ExpList kids()
  {
    return new ExpList(left, new ExpList(right, null));
  }
View Full Code Here


    args = a;
  }

  public ExpList kids()
  {
    return new ExpList(func, args);
  }
View Full Code Here

        public MEM(Exp e) {
                exp = e;
        }

        public ExpList kids() {
                return new ExpList(exp, null);
        }
View Full Code Here

    return new ExpList(exp, null);
  }

  public Stm build(ExpList kids)
  {
    return new JUMP(kids.head, targets);
  }
View Full Code Here

                        return new ExpList(src, null);
        }

        public Stm build(ExpList kids) {
                if (dst instanceof MEM)
                        return new MOVE(new MEM(kids.head), kids.tail.head);
                else
                        return new MOVE(dst, kids.head);
        }
View Full Code Here

        public ExpList kids() {
                return new ExpList(exp, null);
        }

        public Exp build(ExpList kids) {
                return new MEM(kids.head);
        }
View Full Code Here

  {
          IRTree2.Exp e = n.e.accept(this).unEx();
      ExpList params = new ExpList(e, null);
      Temp t = new Temp();
     
      return new Ex(new ESEQ(new MOVE(new TEMP(t), currFrame.externalCall("newArray", params)),
              new TEMP(t)));
  }
View Full Code Here

                        return new ExpList(src, null);
        }

        public Stm build(ExpList kids) {
                if (dst instanceof MEM)
                        return new MOVE(new MEM(kids.head), kids.tail.head);
                else
                        return new MOVE(dst, kids.head);
        }
View Full Code Here

    targets = t;
  }

  public JUMP(Label target)
  {
    this(new NAME(target), new LabelList(target, null));
  }
View Full Code Here

  }

  public Exp visit(TVarDecl n)
  {
    Access ac = currFrame.allocLocal(false);
    return new Nx(new IRTree2.MOVE(ac.exp(new TEMP(currFrame.FP())),new IRTree2.CONST(0)));
  }
View Full Code Here

TOP

Related Classes of IRTree2.TEMP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.