Ignore:
Timestamp:
Oct 24, 2014, 1:35:16 PM (5 years ago)
Author:
nmedfort
Message:

Generalized the writing of output variables by adding a 'flag' to the Assign nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.h

    r4266 r4268  
    7575    Call * createCall(const std::string name);
    7676
    77     inline Assign * createAssign(const std::string prefix, PabloAST * expr, const bool isOutput = false) {
     77    inline Assign * createAssign(const std::string prefix, PabloAST * expr, const int outputIndex = -1) {
    7878        // TODO: should this test whether we've somehow created a var for this prior to
    7979        // making the assignment?
    80         Assign * assign = new Assign(mSymbolGenerator.get_ssa(prefix), expr, isOutput);
     80        Assign * assign = new Assign(mSymbolGenerator.get_ssa(prefix), expr, outputIndex);
    8181        mStatements.push_back(assign);
    8282        return assign;
     
    196196    };
    197197
    198     inline const StatementList & expressions() const {
     198    inline const StatementList & statements() const {
    199199        return mStatements;
    200200    }
     
    207207    ExpressionMap<PabloAST *, PabloAST *>               mBinary;
    208208    ExpressionMap<PabloAST *, PabloAST *, PabloAST *>   mTernary;
    209     StatementList                                      mStatements;
     209    StatementList                                       mStatements;
    210210};
    211211
Note: See TracChangeset for help on using the changeset viewer.