Ignore:
Timestamp:
Jun 18, 2016, 9:50:11 PM (3 years ago)
Author:
cameron
Message:

pablo.Count is a pure statement, setting an accumulator state variable

File:
1 edited

Legend:

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

    r4720 r5061  
    2626        return getOperand(0);
    2727    }
    28     inline void setGlobalCountIndex(const unsigned idx) {
    29         globalCountIndex = idx;
    30     }
    31     inline unsigned getGlobalCountIndex() const {
    32         return globalCountIndex;
    33     }
    3428protected:
    35     Count(PabloAST * expr, String * name)
    36     : Statement(ClassTypeId::Count, {expr}, name)
     29    explicit Count(PabloAST * expr, String * counter)
     30    : Statement(ClassTypeId::Count, {expr}, counter)
    3731    {
    3832
    3933    }
    4034private:
    41     unsigned globalCountIndex;
    4235};
    4336
Note: See TracChangeset for help on using the changeset viewer.