Ignore:
Timestamp:
Aug 7, 2015, 10:04:46 AM (4 years ago)
Author:
cameron
Message:

Mod64Advance, Mod64MatchStar, Mod64ScanThru ops; -mod64-approximate command-line option

File:
1 edited

Legend:

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

    r4711 r4717  
    114114
    115115    PabloAST * createSel(PabloAST * condition, PabloAST * trueExpr, PabloAST * falseExpr, const std::string prefix);
     116   
     117    /// Mod64 approximate function wrappers.
     118   
     119    PabloAST * createMod64Advance(PabloAST * expr, PabloAST * shiftAmount);
     120
     121    inline PabloAST * createMod64Advance(PabloAST * expr, const Integer::Type shiftAmount, const std::string prefix) {
     122        if (shiftAmount == 0) {
     123            return expr;
     124        }
     125        return createMod64Advance(expr, mPb->getInteger(shiftAmount), prefix);
     126    }
     127
     128    PabloAST * createMod64Advance(PabloAST * expr, PabloAST * shiftAmount, const std::string prefix);
     129
     130    PabloAST * createMod64MatchStar(PabloAST * marker, PabloAST * charclass);
     131
     132    PabloAST * createMod64MatchStar(PabloAST * marker, PabloAST * charclass, const std::string prefix);
     133
     134    PabloAST * createMod64ScanThru(PabloAST * from, PabloAST * thru);
     135
     136    PabloAST * createMod64ScanThru(PabloAST * from, PabloAST * thru, const std::string prefix);
     137
    116138
    117139    /// CreateIf Wrappers
Note: See TracChangeset for help on using the changeset viewer.