source: icGREP/icgrep-devel/icgrep/pablo/pe_or.h @ 4599

Last change on this file since 4599 was 4438, checked in by nmedfort, 5 years ago

Preliminary steps for removal of superfluous Assigns.

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