source: icGREP/icgrep-devel/icgrep/pablo/pe_scanthru.h @ 5227

Last change on this file since 5227 was 5227, checked in by nmedfort, 3 years ago

Rewrite of the CarryManager? to support non-carry-collapsing loops.

File size: 930 bytes
RevLine 
[3961]1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
[3955]7#ifndef PS_SCANTHRU_H
8#define PS_SCANTHRU_H
9
[4244]10#include <pablo/pabloAST.h>
[3955]11
[4199]12namespace pablo {
13
[4410]14class ScanThru : public Statement {
[4227]15    friend class PabloBlock;
[3955]16public:
[4244]17    static inline bool classof(const PabloAST * e) {
[4200]18        return e->getClassTypeId() == ClassTypeId::ScanThru;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
[4199]23    virtual ~ScanThru() {
24    }
[4244]25    PabloAST * getScanFrom() const {
[4432]26        return getOperand(0);
[4199]27    }
[4244]28    PabloAST * getScanThru() const {
[4432]29        return getOperand(1);
[4199]30    }
[4432]31protected:
[5202]32    ScanThru(PabloAST * from, PabloAST * thru, const String * name)
[5160]33    : Statement(ClassTypeId::ScanThru, from->getType(), {from, thru}, name) {
[4414]34
[4280]35    }
[3955]36};
37
[4199]38}
39
[3955]40#endif // PS_SCANTHRU_H
41
42
43
Note: See TracBrowser for help on using the repository browser.