Ignore:
Timestamp:
Jan 13, 2018, 11:57:43 AM (12 months ago)
Author:
nmedfort
Message:

Pablo support for byte comparisions; LineFeed? kernel processes byte streams directly. Some clean up of PabloBuilder? functionality.

File:
1 edited

Legend:

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

    r5310 r5828  
    9393};
    9494
    95 class Extract : public Statement {
     95class Extract : public PabloAST {
    9696    friend class PabloBlock;
    9797public:
     
    104104    virtual ~Extract(){
    105105    }
    106     inline PabloAST * getArray() const {
    107         return getOperand(0);
     106    inline Var * getArray() const {
     107        return mArray;
    108108    }
    109109    inline PabloAST * getIndex() const {
    110         return getOperand(1);
     110        return mIndex;
    111111    }
    112112protected:
    113     Extract(PabloAST * array, PabloAST * const index, const String * const name, llvm::Type * type, Allocator & allocator)
    114     : Statement(ClassTypeId::Extract, type, {array, index}, name, allocator) {
     113    Extract(Var * array, PabloAST * const index, llvm::Type * type, Allocator & allocator)
     114    : PabloAST(ClassTypeId::Extract, type, allocator)
     115    , mArray(array)
     116    , mIndex(index) {
    115117
    116118    }
     119private:
     120    Var * const mArray;
     121    PabloAST * const mIndex;
    117122};
    118123
Note: See TracChangeset for help on using the changeset viewer.