Ignore:
Timestamp:
May 20, 2015, 12:27:09 PM (4 years ago)
Author:
cameron
Message:

Abstract conditions for if-summary computation

File:
1 edited

Legend:

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

    r4566 r4568  
    9090    }
    9191   
     92    bool blockHasCarries() const { return totalCarryDataSize > 0;}
     93   
     94    bool explicitSummaryRequired() const { return totalCarryDataSize > 1;}
     95   
     96    bool summaryNeededInParentBlock() const {return (ifDepth > 0) && blockHasCarries();}
     97   
    9298    unsigned summaryCarryDataIndex()  const {
    9399        return blockCarryDataIndex + totalCarryDataSize - 1;
Note: See TracChangeset for help on using the changeset viewer.