Ignore:
Timestamp:
Aug 7, 2015, 3:16:32 PM (4 years ago)
Author:
cameron
Message:

add Pablo count operation - not yet functional

File:
1 edited

Legend:

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

    r4717 r4718  
    139139}
    140140
    141 
     141PabloAST * PabloBlock::createCount(PabloAST * expr) {
     142    assert (expr);
     143    return insertAtInsertionPoint(new Count(expr, makeName("count_")));
     144}
     145
     146PabloAST * PabloBlock::createCount(PabloAST * expr, const std::string prefix) {
     147    assert (expr);
     148    return insertAtInsertionPoint(new Count(expr, makeName(prefix, false)));
     149}
     150
     151   
    142152/// BINARY CREATE FUNCTIONS
    143153
Note: See TracChangeset for help on using the changeset viewer.