Ignore:
Timestamp:
Aug 8, 2015, 10:29:08 AM (4 years ago)
Author:
cameron
Message:

Implementatation of the Pablo Count operation

File:
1 edited

Legend:

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

    r4717 r4720  
    635635        expr = mBuilder->CreateAnd(sum, genNot(cc_expr), "scanthru64");
    636636    }
     637    else if (const Count * c = dyn_cast<Count>(stmt)) {
     638        unsigned count_index = c->getGlobalCountIndex();
     639        Value * to_count = compileExpression(c->getExpr());
     640        expr = mCarryManager->popCount(to_count, count_index);
     641    }
    637642    else {
    638643        llvm::raw_os_ostream cerr(std::cerr);
Note: See TracChangeset for help on using the changeset viewer.