Ignore:
Timestamp:
Jun 15, 2017, 12:39:20 PM (2 years ago)
Author:
nmedfort
Message:

Back up check-in. Should have no effect on current programs.

File:
1 edited

Legend:

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

    r5486 r5510  
    169169bool dominates(const PabloAST * const expr1, const PabloAST * const expr2);
    170170
     171inline bool strictly_dominates(const PabloAST * const expr1, const PabloAST * const expr2) {
     172    return (expr1 != expr2) && dominates(expr1, expr2);
     173}
     174
    171175bool postdominates(const PabloAST * const expr1, const PabloAST * const expr2);
     176
     177inline bool strictly_postdominates(const PabloAST * const expr1, const PabloAST * const expr2) {
     178    return (expr1 != expr2) && postdominates(expr1, expr2);
     179}
    172180
    173181class StatementList;
     
    314322    }
    315323
     324    unsigned getCarryWidth() const {
     325        return mCarryWidth;
     326    }
     327
     328    void setCarryWidth(const unsigned carryWidth) {
     329        mCarryWidth = carryWidth;
     330    }
     331
    316332    virtual ~CarryProducingStatement() = default;
    317333
     
    320336    explicit CarryProducingStatement(const ClassTypeId id, llvm::Type * const type, std::initializer_list<PabloAST *> operands, const String * const name, Allocator & allocator)
    321337    : Statement(id, type, operands, name, allocator)
    322     , mCarryGroup(0) {
     338    , mCarryGroup(0)
     339    , mCarryWidth(0) {
    323340
    324341    }
     
    326343    explicit CarryProducingStatement(const ClassTypeId id, llvm::Type * const type, const unsigned reserved, const String * name, Allocator & allocator)
    327344    : Statement(id, type, reserved, name, allocator)
    328     , mCarryGroup(0) {
     345    , mCarryGroup(0)
     346    , mCarryWidth(0) {
    329347
    330348    }
     
    333351    explicit CarryProducingStatement(const ClassTypeId id, llvm::Type * const type, iterator begin, iterator end, const String * name, Allocator & allocator)
    334352    : Statement(id, type, begin, end, name, allocator)
    335     , mCarryGroup(0) {
     353    , mCarryGroup(0)
     354    , mCarryWidth(0) {
    336355
    337356    }
     
    340359
    341360    unsigned mCarryGroup;
     361    unsigned mCarryWidth;
    342362};
    343363
Note: See TracChangeset for help on using the changeset viewer.