Ignore:
Timestamp:
Jul 8, 2015, 2:59:03 PM (4 years ago)
Author:
nmedfort
Message:

Partial roll back of Trie structure. Seemed to introduce the potential of generating a cycle in the AST. More analysis is needed here before mixing together multiple Advance DAG traversals.

File:
1 edited

Legend:

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

    r4611 r4650  
    203203    virtual ~Statement() {}
    204204protected:
    205     Statement(const ClassTypeId id, std::initializer_list<PabloAST *> operands, const String * const name, PabloBlock * const parent)
     205    Statement(const ClassTypeId id, std::initializer_list<PabloAST *> operands, const String * const name)
    206206    : PabloAST(id)
    207207    , mName(name)
    208208    , mNext(nullptr)
    209209    , mPrev(nullptr)
    210     , mParent(parent)
     210    , mParent(nullptr)
    211211    , mOperands(operands.size())
    212     , mOperand(reinterpret_cast<PabloAST**>(mAllocator.allocate(mOperands * sizeof(PabloAST *))))
    213     {
     212    , mOperand(reinterpret_cast<PabloAST**>(mAllocator.allocate(mOperands * sizeof(PabloAST *)))) {
    214213        unsigned i = 0;
    215214        for (PabloAST * const op : operands) {
     
    237236class StatementList {
    238237    friend class Statement;
     238    friend class PabloBlock;
    239239public:
    240240    class iterator: public std::iterator<std::forward_iterator_tag, Statement> {
     
    464464    }
    465465
    466     inline void setInsertPoint(StatementList * const list) {
    467         mInsertionPoint = list->back();
    468     }
    469 
    470466    inline Statement * getInsertPoint() const {
    471467        return mInsertionPoint;
    472468    }
    473 
    474     void insert(Statement * const statement);
    475469
    476470    ~StatementList();
Note: See TracChangeset for help on using the changeset viewer.