Changeset 3327 for proto/pabloj


Ignore:
Timestamp:
Jun 18, 2013, 1:23:40 PM (6 years ago)
Author:
ksherdy
Message:

Removed warnings.

Location:
proto/pabloj/trunk/src/toolchain/pabloS
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/toolchain/pabloS/ast/Mutators.java

    r3325 r3327  
    11package toolchain.pabloS.ast;
    22
    3 import pabloS.ast.ASTNode;
    4 import pabloS.ast.AssignNode;
    5 import pabloS.ast.BlockStmtNode;
     3import pabloS.ast.*;
    64
    75public class Mutators {         
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/Transformer.java

    r3314 r3327  
    6666               
    6767                decoratedTree = TempifyCarryBuiltinCalls.apply(decoratedTree);
    68                
    6968                decoratedTree = CarryIntroXFormer.apply(decoratedTree, getBuiltinEncoder(), getCarrySet2Lang(), finalBlockMode);
     69
    7070                decoratedTree = SurroundConditionsWithBitBlockAny.apply(decoratedTree);
    7171                decoratedTree = ConvertBitwiseBooleanToIDISACalls.apply(decoratedTree);
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/ConvertBitwiseBooleanToIDISACalls.java

    r3299 r3327  
    1111import pabloS.lexicalAnalyzer.Lextant;
    1212import pabloS.tokens.Token;
    13 import toolchain.pabloB.lang.idisa.IDISABitBlockBuiltins;
    1413import toolchain.pabloB.lang.idisa.IDISASIMDBitwiseBuiltins;
    1514import toolchain.pabloS.ast.Accessors;
     
    1716
    1817import static toolchain.pabloB.lang.idisa.IDISASIMDBitwiseBuiltins.*;
    19 import toolchain.util.*;
    2018
    2119public class ConvertBitwiseBooleanToIDISACalls {
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/PabloS2PabloBXFormer.java

    r3323 r3327  
    155155        FuncCallNode carryFlipFuncCall  = Generators.makeFuncCallNode(locator,
    156156                                                                    CarrySetEncoder.CARRYSETBASENAME,
    157                                                                     carrySetEncoder.getCode(CarrySetBuiltins.CARRYFLIP), indexNode);//getCarryFuncCall);
     157                                                                    carrySetEncoder.getCode(CarrySetBuiltins.CARRYFLIP),
     158                                                                    indexNode);
    158159       
    159160        FuncCallNode setCarryFuncCall   = Generators.makeFuncCallNode(locator,
    160161                                                                    CarrySetEncoder.CARRYSETBASENAME,
    161                                                                     carrySetEncoder.getCode(CarrySetBuiltins.SETCARRY), carryFlipFuncCall, indexNode);
     162                                                                    carrySetEncoder.getCode(CarrySetBuiltins.SETCARRY),
     163                                                                    carryFlipFuncCall,
     164                                                                    indexNode);
    162165        return setCarryFuncCall;
    163166    }
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/SurroundConditionsWithBitBlockAny.java

    r3281 r3327  
    1010
    1111import pabloS.ast.*;
    12 import pabloS.inputHandler.Locator;
    1312import toolchain.pabloB.lang.idisa.IDISABitBlockBuiltins;
    1413import toolchain.pabloS.ast.Accessors;
    1514import toolchain.pabloS.ast.Generators;
    16 import toolchain.pabloS.lang.BuiltinEncoder;
    17 import toolchain.pabloS.lang.PabloSBuiltin;
    18 import toolchain.pabloS.lang.BuiltinCallUtil;
    1915
    2016public class SurroundConditionsWithBitBlockAny {
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry/CarryBuiltinTranslator.java

    r3325 r3327  
    55
    66import pabloS.ast.ASTNode;
    7 import pabloS.ast.AssignNode;
    87import pabloS.ast.FuncCallNode;
    9 import pabloS.ast.IntegerConstantNode;
    108import pabloS.inputHandler.Locator;
    119import toolchain.pabloB.lang.idisa.IDISABitBlockBuiltins;
     
    10199                args);
    102100
     101        surroundWithIDISASRLI(node, locator, pabloBlkFuncCall);
     102    }
     103
     104    private static void surroundWithIDISASRLI(FuncCallNode node,
     105            Locator locator, FuncCallNode pabloBlkFuncCall) {
    103106        FuncCallNode replacementNode    = Generators.makeFuncCallNode(locator,
    104107                                                                        IDISABitBlockBuiltins.SRLI.IDISALexeme(),
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry/Counter.java

    r3325 r3327  
    55import pabloS.inputHandler.Locator;
    66import toolchain.pabloS.ast.Generators;
    7 import toolchain.pabloS.lang.BuiltinCallUtil;
    8 import toolchain.pabloS.lang.PabloSBuiltin;
    97import toolchain.pabloS.lang.carrySet.CarrySetBuiltins;
    108
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry/TempifyCarryBuiltinCalls.java

    r3303 r3327  
    4545
    4646import java.util.ArrayList;
    47 import java.util.Collections;
    48 import java.util.Iterator;
    4947import java.util.LinkedHashMap;
    5048import java.util.List;
     
    5553import toolchain.pabloS.ast.Accessors;
    5654import toolchain.pabloS.ast.Generators;
    57 import toolchain.pabloS.ast.Mutators;
    5855import toolchain.pabloS.lang.BuiltinCallUtil;
    5956import toolchain.util.Labeller;
Note: See TracChangeset for help on using the changeset viewer.