Ignore:
Timestamp:
Dec 15, 2017, 12:44:01 PM (21 months ago)
Author:
nmedfort
Message:

Initial check-in of LookAhead? support; modified LineBreakKernel? to compute CR+LF using LookAhead?(1) + misc. fixes.

File:
1 edited

Legend:

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

    r5646 r5782  
    2727        return getOperand(0);
    2828    }
    29     inline int64_t getAmount() const {
     29    inline unsigned getAmount() const {
    3030        return llvm::cast<Integer>(getOperand(1))->value();
    3131    }
     
    3333    Lookahead(PabloAST * expr, PabloAST * shiftAmount, const String * name, Allocator & allocator)
    3434    : Statement(ClassTypeId::Lookahead, expr->getType(), {expr, shiftAmount}, name, allocator) {
    35         assert(llvm::isa<Integer>(shiftAmount));
     35        assert(llvm::isa<Integer>(shiftAmount) && llvm::cast<Integer>(shiftAmount)->value() >= 0);
    3636    }
    3737};
Note: See TracChangeset for help on using the changeset viewer.