Ignore:
Timestamp:
Feb 19, 2015, 1:53:09 PM (5 years ago)
Author:
nmedfort
Message:

Added vector support for If defined vars back.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/builder.hpp

    r4443 r4511  
    1010public:
    1111
    12     inline static PabloBlock & Create() {
    13         return *(new PabloBlock());
     12    inline static PabloBuilder Create(PabloBuilder & predecessor) {
     13        return *(new PabloBlock(predecessor->mPb));
    1414    }
    15 
    16     inline static PabloBlock & Create(PabloBlock & predecessor) {
    17         return *(new PabloBlock(&predecessor));
    18     }
    19 
    2015
    2116    inline Zeroes * createZeroes() const {
     
    4540    Assign * createAssign(const std::string prefix, PabloAST * expr, const int outputIndex = -1);
    4641
    47     inline PabloAST * createAdvance(PabloAST * expr, const int shiftAmount) {
     42    inline PabloAST * createAdvance(PabloAST * expr, const Integer::integer_t shiftAmount) {
    4843        if (shiftAmount == 0) {
    4944            return expr;
     
    7065    PabloAST * createSel(PabloAST * condition, PabloAST * trueExpr, PabloAST * falseExpr);
    7166
    72     inline If * createIf(PabloAST * condition, std::vector<Assign *> && definedVars, PabloBlock & body) {
     67    inline If * createIf(PabloAST * condition, std::initializer_list<Assign *> definedVars, PabloBlock & body) {
    7368        mPb->createIf(condition, std::move(definedVars), body);
    7469    }
Note: See TracChangeset for help on using the changeset viewer.