Ignore:
Timestamp:
Jul 16, 2015, 3:46:58 PM (4 years ago)
Author:
nmedfort
Message:

First attempt to add arguments to Call objects. Currently non-functioning in Pablo_Compiler.

Location:
icGREP/icgrep-devel/icgrep/cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r4680 r4681  
    3535        Var * var = mBuilder.createVar(prefix + std::to_string(i));
    3636        function.setParameter(i, var);
    37         mBasisBit[encoding.getBits() - i - 1] = var;
     37        mBasisBit[i] = var;
    3838    }
    3939}
     
    269269
    270270inline Var * CC_Compiler::getBasisVar(const int i) const {
    271     return mBasisBit[i];
     271    return mBasisBit[mEncoding.getBits() - i - 1];
    272272}
    273273
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.h

    r4657 r4681  
    4242
    4343    pablo::PabloBuilder & getBuilder();
     44
     45    const std::vector<pablo::Var *> & getBasisBits() {
     46        return mBasisBit;
     47    }
    4448
    4549private:
Note: See TracChangeset for help on using the changeset viewer.