Ignore:
Timestamp:
Aug 6, 2015, 3:39:27 PM (4 years ago)
Author:
cameron
Message:

Mod64 approximation mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pe_advance.h

    r4699 r4716  
    3737        return localAdvanceIndex;
    3838    }
     39    inline void setMod64() {
     40        isMod64approx = true;
     41    }
     42    inline bool isMod64() const {
     43        return isMod64approx;
     44    }
    3945protected:
    4046    Advance(PabloAST * expr, PabloAST * shiftAmount, String * name)
    4147    : Statement(ClassTypeId::Advance, {expr, shiftAmount}, name)
     48   , isMod64approx(false)
    4249    {
    4350        assert(isa<Integer>(shiftAmount));
    4451    }
    4552private:
     53    bool isMod64approx;
    4654    unsigned localAdvanceIndex;
    4755};
Note: See TracChangeset for help on using the changeset viewer.