Ignore:
Timestamp:
Mar 7, 2016, 3:37:30 PM (3 years ago)
Author:
nmedfort
Message:

Initial modifications to Pablo Compiler and Kernel Builder to support circular buffers for Lookahead.

File:
1 edited

Legend:

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

    r4722 r4959  
    8282}
    8383
     84PabloAST * PabloBuilder::createLookahead(PabloAST * expr, PabloAST * shiftAmount) {
     85    MAKE_BINARY(createLookahead, PabloAST::ClassTypeId::Lookahead, expr, shiftAmount);
     86    return result;
     87}
     88
     89PabloAST * PabloBuilder::createLookahead(PabloAST * expr, PabloAST * shiftAmount, const std::string prefix) {
     90    MAKE_BINARY(createLookahead, PabloAST::ClassTypeId::Lookahead, expr, shiftAmount, prefix);
     91    return result;
     92}
     93
    8494PabloAST * PabloBuilder::createMod64Advance(PabloAST * expr, PabloAST * shiftAmount) {
    8595    MAKE_BINARY(createMod64Advance, PabloAST::ClassTypeId::Mod64Advance, expr, shiftAmount);
     
    92102}
    93103
     104PabloAST * PabloBuilder::createMod64Lookahead(PabloAST * expr, PabloAST * shiftAmount) {
     105    MAKE_BINARY(createMod64Lookahead, PabloAST::ClassTypeId::Mod64Lookahead, expr, shiftAmount);
     106    return result;
     107}
     108
     109PabloAST * PabloBuilder::createMod64Lookahead(PabloAST * expr, PabloAST * shiftAmount, const std::string prefix) {
     110    MAKE_BINARY(createMod64Lookahead, PabloAST::ClassTypeId::Mod64Lookahead, expr, shiftAmount, prefix);
     111    return result;
     112}
     113
    94114PabloAST * PabloBuilder::createNot(PabloAST * expr) {
    95115    MAKE_UNARY(createNot, PabloAST::ClassTypeId::Not, expr);
Note: See TracChangeset for help on using the changeset viewer.