Ignore:
Timestamp:
Apr 7, 2017, 4:59:04 PM (2 years ago)
Author:
nmedfort
Message:

Continued work on processing stdin input. Partial integration of ParabixDriver? methods into icgrep and editd. Object cache does not currently work for recursive REs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.h

    r5391 r5398  
    4343    ProcessingRateKind getKind() const {return mKind;}
    4444    bool isExact() const {return (mKind == Fixed)||(mKind == RoundUp)||(mKind == Add1) ;}
     45    bool isUnknown() const { return !isExact(); }
    4546    llvm::Value * CreateRatioCalculation(IDISA::IDISA_Builder * b, llvm::Value * principalInputItems, llvm::Value * doFinal = nullptr) const;
    4647    friend ProcessingRate FixedRatio(unsigned strmItemsPer, unsigned perPrincipalInputItems, std::string referenceStreamSet);
     
    5051    friend ProcessingRate UnknownRate();
    5152    std::string referenceStreamSet() const { return mReferenceStreamSet;}
    52    
    5353protected:
    5454    ProcessingRate(ProcessingRateKind k, unsigned numerator, unsigned denominator, std::string referenceStreamSet)
    55     : mKind(k), ratio_numerator(numerator), ratio_denominator(denominator), mReferenceStreamSet(referenceStreamSet) {}
     55    : mKind(k), mRatioNumerator(numerator), mRatioDenominator(denominator), mReferenceStreamSet(referenceStreamSet) {}
     56private:
    5657    ProcessingRateKind mKind;
    57     uint16_t ratio_numerator;
    58     uint16_t ratio_denominator;
     58    uint16_t mRatioNumerator;
     59    uint16_t mRatioDenominator;
    5960    std::string mReferenceStreamSet;
    60     bool isVariableRate();
    6161};
    6262
     
    120120    virtual void setProducedItemCount(llvm::Value * instance, const std::string & name, llvm::Value * value) const = 0;
    121121
    122     virtual llvm::Value * getConsumedItemCount(llvm::Value * instance, const std::string & name) const = 0;
    123 
    124     virtual void setConsumedItemCount(llvm::Value * instance, const std::string & name, llvm::Value * value) const = 0;
    125 
    126122    virtual llvm::Value * getProcessedItemCount(llvm::Value * instance, const std::string & name) const = 0;
    127123
Note: See TracChangeset for help on using the changeset viewer.