comparison graal/com.oracle.graal.loop/src/com/oracle/graal/loop/BasicInductionVariable.java @ 19190:18c2fd3d7fc7

Cleanup InductionVariable declarations a bit
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 09 Feb 2015 15:52:17 -0800
parents fe3a00661c32
children ef52cebd4030
comparison
equal deleted inserted replaced
19189:7ebed83df427 19190:18c2fd3d7fc7
1 /* 1 /*
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
27 import com.oracle.graal.nodes.*; 27 import com.oracle.graal.nodes.*;
28 import com.oracle.graal.nodes.calc.*; 28 import com.oracle.graal.nodes.calc.*;
29 29
30 public class BasicInductionVariable extends InductionVariable { 30 public class BasicInductionVariable extends InductionVariable {
31 31
32 private ValuePhiNode phi; 32 private final ValuePhiNode phi;
33 private ValueNode init; 33 private final ValueNode init;
34 private ValueNode rawStride; 34 private final ValueNode rawStride;
35 private BinaryArithmeticNode<?> op; 35 private final BinaryArithmeticNode<?> op;
36 36
37 public BasicInductionVariable(LoopEx loop, ValuePhiNode phi, ValueNode init, ValueNode rawStride, BinaryArithmeticNode<?> op) { 37 public BasicInductionVariable(LoopEx loop, ValuePhiNode phi, ValueNode init, ValueNode rawStride, BinaryArithmeticNode<?> op) {
38 super(loop); 38 super(loop);
39 this.phi = phi; 39 this.phi = phi;
40 this.init = init; 40 this.init = init;