Changeset 4170


Ignore:
Timestamp:
Sep 13, 2014, 3:21:17 AM (4 years ago)
Author:
ksherdy
Message:

Added s2k intrinsics translations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/trunk/framework/src/toolchain/b2k/lang/paramBuiltin/idisa/IDISABuiltinsTranslator.java

    r4109 r4170  
    1616public enum IDISABuiltinsTranslator {
    1717 
    18     PACK_TRANSLATION {
     18    HORIZONTAL_TRANSLATION {
    1919        public ASTNode translate(IDISABuiltin idisaBuiltin, s2k.ast.IdisaFuncCallNode snode, FieldWidthNode fieldWidth, List<ASTNode> args) {
    2020           
     
    3434    },
    3535
     36    EXPANSION_TRANSLATION {
     37        public ASTNode translate(IDISABuiltin idisaBuiltin, s2k.ast.IdisaFuncCallNode snode, FieldWidthNode fieldWidth, List<ASTNode> args) {
     38           
     39            Locator locator = Generators.makeToken(snode.getToken());
     40            ASTNode clone = args.get(0).deepCopy();
     41            args.add(clone);
     42            return Generators.makeIdisaFuncCallNode(locator, idisaBuiltin, fieldWidth, arrayFromList(args));
     43        }
     44    },
     45   
     46   
    3647    NULL_TRANSLATION {
    3748    @SuppressWarnings("unused")
Note: See TracChangeset for help on using the changeset viewer.