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
Line 
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
7#ifndef PS_SCANTHRU_H
8#define PS_SCANTHRU_H
9
10#include <pablo/pabloAST.h>
11
12namespace pablo {
13
14class ScanThru : public Statement {
15    friend class PabloBlock;
16public:
17    static inline bool classof(const PabloAST * e) {
18        return e->getClassTypeId() == ClassTypeId::ScanThru;
19    }
20    static inline bool classof(const void *) {
21        return false;
22    }
23    virtual ~ScanThru() {
24    }
25    PabloAST * getScanFrom() const {
26        return getOperand(0);
27    }
28    PabloAST * getScanThru() const {
29        return getOperand(1);
30    }
31protected:
32    ScanThru(PabloAST * from, PabloAST * thru, const String * name)
33    : Statement(ClassTypeId::ScanThru, from->getType(), {from, thru}, name) {
34
35    }
36};
37
38}
39
40#endif // PS_SCANTHRU_H
41
42
43
Note: See TracBrowser for help on using the repository browser.