Changeset 3360 for proto


Ignore:
Timestamp:
Jun 26, 2013, 3:15:56 PM (6 years ago)
Author:
ksherdy
Message:

svn blues, partial commits

Location:
proto/pabloj/trunk/src/toolchain/pabloS/lang
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/toolchain/pabloS/lang/BuiltinCallUtil.java

    r3310 r3360  
    6464                assert isBuiltInCall(node);
    6565                CompoundIdentifierNode compound = (CompoundIdentifierNode)Accessors.nameNode((FuncCallNode)node);
    66                 String builtinName = Accessors.funcName(compound);
     66                String builtinName = Accessors.baseName(compound);
    6767                return PabloSBuiltin.forName(builtinName);
    6868        }
  • proto/pabloj/trunk/src/toolchain/pabloS/lang/PabloSBuiltin2CPP.java

    r3345 r3360  
    11/*
    2  * PabloS builtins to CPP direct mapping.
    3  *
    4  *TODO  -       (1) Map PabloS to the PabloB intermediate language.
    5  *              (2) Define PabloB builtins mapping to C,CPP, ... 
    6  *                      (3) In the interim this can be as simple as performing this transformation in the PabloB representation.
    7  *              i.e. Move this transformer to compiler.lang.pabloB
     2 * PabloS builtin to CPP direct mapping.
    83 *
    94 * @author Ken Herdy <ksherdy at sfu dot ca>
  • proto/pabloj/trunk/src/toolchain/pabloS/lang/PabloSBuiltinTranslator.java

    r3348 r3360  
    1010import toolchain.pabloS.ast.Accessors;
    1111import toolchain.pabloS.ast.Generators;
    12 import toolchain.pabloS.transformer.visitors.carry.Context;
    13 import toolchain.pabloS.transformer.visitors.carry.Counter;
     12import toolchain.pabloS.transformer.visitors.infoSet.Counter;
     13import toolchain.pabloS.transformer.visitors.pabloS2PabloB.Context;
    1414
    1515// BuiltinTranslators translate a builtin call from pabloS to pabloB during the
     
    156156        FuncCallNode replacementNode    = Generators.makeFuncCallNode(locator,
    157157                                                                        IDISABitBlockBuiltins.SRLI.IDISALexeme(),
    158                                                                         pabloBlkFuncCall); // TODO Update to IDISA syntax
     158                                                                        pabloBlkFuncCall); // TODO - KH: IDISA
    159159       
    160160        node.updateSelf(replacementNode);
Note: See TracChangeset for help on using the changeset viewer.