Ignore:
Timestamp:
Mar 18, 2016, 5:45:18 AM (3 years ago)
Author:
cameron
Message:

Remove mod64 junk

File:
1 edited

Legend:

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

    r4974 r4980  
    374374        Value * const strm_value = compileExpression(adv->getExpr());
    375375        expr = mCarryManager->advanceCarryInCarryOut(adv->getLocalIndex(), adv->getAmount(), strm_value);
    376     } else if (const Mod64Advance * adv = dyn_cast<Mod64Advance>(stmt)) {
    377         Value * const strm_value = compileExpression(adv->getExpr());
    378         expr = iBuilder->simd_slli(64, strm_value, adv->getAmount());
    379376    } else if (const MatchStar * mstar = dyn_cast<MatchStar>(stmt)) {
    380377        Value * const marker = compileExpression(mstar->getMarker());
     
    383380        Value * const sum = mCarryManager->addCarryInCarryOut(mstar->getLocalCarryIndex(), marker_and_cc, cc);
    384381        expr = iBuilder->simd_or(iBuilder->simd_xor(sum, cc), marker);
    385     } else if (const Mod64MatchStar * mstar = dyn_cast<Mod64MatchStar>(stmt)) {
    386         Value * const marker = compileExpression(mstar->getMarker());
    387         Value * const cc = compileExpression(mstar->getCharClass());
    388         Value * const marker_and_cc = iBuilder->simd_and(marker, cc);
    389         Value * const sum = iBuilder->simd_add(64, marker_and_cc, cc);
    390         expr = iBuilder->simd_or(iBuilder->simd_xor(sum, cc), marker);
    391382    } else if (const ScanThru * sthru = dyn_cast<ScanThru>(stmt)) {
    392383        Value * const  marker_expr = compileExpression(sthru->getScanFrom());
    393384        Value * const  cc_expr = compileExpression(sthru->getScanThru());
    394385        Value * const  sum = mCarryManager->addCarryInCarryOut(sthru->getLocalCarryIndex(), marker_expr, cc_expr);
    395         expr = iBuilder->simd_and(sum, iBuilder->simd_not(cc_expr));
    396     } else if (const Mod64ScanThru * sthru = dyn_cast<Mod64ScanThru>(stmt)) {
    397         Value * const marker_expr = compileExpression(sthru->getScanFrom());
    398         Value * const cc_expr = compileExpression(sthru->getScanThru());
    399         Value * const sum = iBuilder->simd_add(64, marker_expr, cc_expr);
    400386        expr = iBuilder->simd_and(sum, iBuilder->simd_not(cc_expr));
    401387    } else if (const Count * c = dyn_cast<Count>(stmt)) {
Note: See TracChangeset for help on using the changeset viewer.