Changeset 2938


Ignore:
Timestamp:
Mar 19, 2013, 2:15:19 PM (5 years ago)
Author:
ksherdy
Message:

Code comments and clean up.

Location:
proto/pabloj/trunk/src/compiler/lang/carry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/compiler/lang/carry/CarryInfoSet.java

    r2834 r2938  
     1/*
     2 * Carry information set contants and container (POD)
     3 *
     4 * @author Ken Herdy <ksherdy at sfu dot ca>
     5 *
     6 */
     7
    18package compiler.lang.carry;
    2 
    3 // Individual state arrays
    49
    510public class CarryInfoSet {
     
    712        public static final String CARRY1STATENAME      = "carry1";
    813        public static final String CARRYNSTATENAME      = "carryN";
     14        // public static final String LOOKAHEAD = "lookAhead";
    915       
    10         private int CarryCount;
    11         private int CarryNCount;
     16        private int carryCount;
     17        private int carryNCount;
     18        // private int lookAhead;
     19       
    1220       
    1321        public CarryInfoSet() {
    14                
     22                // C++ habits die hard
    1523        }
    1624       
    1725        public int getCarryCount() {
    18                 return CarryCount;
     26                return carryCount;
    1927        }
    2028       
    2129        public void setCarryCount(int carryCount) {
    22                 CarryCount = carryCount;
     30                this.carryCount = carryCount;
    2331        }
    2432       
    2533        public int getCarryNCount() {
    26                 return CarryNCount;
     34                return carryNCount;
    2735        }
    2836       
    2937        public void setCarryNCount(int carryNCount) {
    30                 CarryNCount = carryNCount;
     38                this.carryNCount = carryNCount;
    3139        }
    3240       
     41        /*
     42        public int getLookAhead() {
     43                return lookAhead;
     44        }
     45       
     46        public void setLookAhead(int lookAhead) {
     47                lookAhead = lookAhead;
     48        }
     49       
     50        */
     51       
    3352}
  • proto/pabloj/trunk/src/compiler/lang/carry/CarrySetBuiltins.java

    r2834 r2938  
    1 // Various Carry Set 'macro' definitions - deprecated.
     1/*
     2 * Carry set builtin function signatures.
     3 *
     4 * TODO - Migrate to 'function signature style' to support type checking.
     5 *
     6 * @author Ken Herdy <ksherdy at sfu dot ca>
     7 *
     8 */
    29
    310package compiler.lang.carry;
  • proto/pabloj/trunk/src/compiler/lang/carry/CarrySetBuiltins2CPP.java

    r2834 r2938  
     1/*
     2 * Maps carry set builtins to C++ (Macro style).
     3 *
     4 * @author <ksherdy at sfu dot ca>
     5 *
     6 */
     7
    18package compiler.lang.carry;
    29
     
    1017    static {
    1118
    12         // Format strings
    1319        CARRYSETDECLAREFORMATSTRING = "CarryArray<%s,%s> %s";
    14        
     20
     21        carry2CPPCode = new HashMap<CarrySetBuiltins, String>();
    1522       
    16         carry2CPPCode = new HashMap<CarrySetBuiltins, String>();
    17        
    18         // Translate to builtin calls
    1923        carry2CPPCode.put(CarrySetBuiltins.LOCALCARRYDECLARE, "LocalCarryDeclare");
    2024        carry2CPPCode.put(CarrySetBuiltins.CARRYTEST,"PabloJCarryTest");
     
    2529        carry2CPPCode.put(CarrySetBuiltins.CARRYDEQUEUEENQUEUE,"CarryDequeueEnqueue");
    2630        carry2CPPCode.put(CarrySetBuiltins.CARRYFLIP,"carry_flip");
    27        
    2831        //carry2CPPCode.put(CarrySetBuiltins.VALUEOF,"cq[%s]");
    2932       
     
    4144       
    4245}
    43 
    44 // 1.
  • proto/pabloj/trunk/src/compiler/lang/carry/CarrySetBuiltins2Lang.java

    r2834 r2938  
     1/*
     2 * Maps 'Carry Set' names to backend targets.
     3 *
     4 * @author Ken Herdy <ksherdy at sfu dot ca>
     5 */
     6
    17package compiler.lang.carry;
    28
Note: See TracChangeset for help on using the changeset viewer.