Ignore:
Timestamp:
Jul 10, 2015, 4:51:39 PM (4 years ago)
Author:
nmedfort
Message:

Initial introduction of a PabloFunction? type.

File:
1 edited

Legend:

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

    r4650 r4657  
    2525    virtual ~Assign() {
    2626    }
    27     inline PabloAST * getExpr() const {
     27    inline PabloAST * getExpression() const {
    2828        return getOperand(0);
    2929    }
    30     inline bool isOutputAssignment() const {
    31         return mOutputIndex >= 0;
    32     }
    33     inline int getOutputIndex() const {
    34         return mOutputIndex;
     30    inline void setExpression(PabloAST * value) {
     31        return setOperand(0, value);
    3532    }
    3633    bool superfluous() const;
    3734protected:
    38     explicit Assign(PabloAST * expr, int outputIndex, String * name)
     35    explicit Assign(PabloAST * expr, String * name)
    3936    : Statement(ClassTypeId::Assign, {expr}, name)
    40     , mOutputIndex(outputIndex)
    4137    {
    4238
    4339    }
    44 private:
    45     const int           mOutputIndex;
    4640};
    4741
Note: See TracChangeset for help on using the changeset viewer.