Changeset 3818


Ignore:
Timestamp:
Apr 13, 2014, 10:23:19 PM (3 years ago)
Author:
ksherdy
Message:

Moved the transalation of carry set builtins to b2k.

Location:
proto/s2k/trunk/framework/src/toolchain/b2k/lang/carrySet
Files:
3 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/trunk/framework/src/toolchain/b2k/lang/carrySet/CarrySetBuiltin.java

    r3817 r3818  
    11/*
    2  * Carry set builtin functions.
     2 * Builtin Interface.
    33 *
    4  * @author Ken Herdy <ksherdy at sfu dot ca>
     4 * @author Ken Herdy <ksherdy at sfu dot ca> 
    55 *
    66 */
     
    88package toolchain.b2k.lang.carrySet;
    99
    10 public enum CarrySetBuiltin {
    11         CARRYDECLARE(3),               
    12         CARRYRANGE(2),
    13         GETCARRY(1),
    14         SETCARRY(2),
    15         PENDING64(1),
    16         LOCALCARRYCOMBINE(4),
    17         CARRYADJUST(2),
    18         CARRYFLIP(2),
    19         CARRYDEQUEUEENQUEUE(2);
    20         //VALUEOF(1);
     10public interface CarrySetBuiltin {
    2111                       
    22         private final int argCount;
     12        /** Yields a printable string for information about this builtin.
     13         * Use this rather than toString() if you want an abbreviated string.
     14         *
     15         * @return string representation of builtin.
     16         */
     17        public String infoString();
    2318               
    24         CarrySetBuiltin(int argCount ) {
    25                 this.argCount = argCount;
    26         }
     19        /** Returns the builtin with any builtin variables filled in with their values.
     20         */
     21        public CarrySetBuiltin getConcreteBuiltin();
    2722       
    28         public int argCount() {
    29                 return this.argCount;
    30         }
    3123}
    32        
    3324
  • proto/s2k/trunk/framework/src/toolchain/b2k/lang/carrySet/CarrySetEncoder.java

    r3817 r3818  
    1010public abstract class CarrySetEncoder {
    1111       
    12         public abstract String getName(CarrySetBuiltin op);
     12        public abstract String baseName(CarrySetBuiltins op);
    1313       
    1414        public static final String CARRYSET_NAME_PREFIX         = "carry_set_";
Note: See TracChangeset for help on using the changeset viewer.