source: icGREP/icgrep-devel/icgrep/pablo/pe_sel.h @ 4432

Last change on this file since 4432 was 4432, checked in by nmedfort, 4 years ago

Temporary check in.

File size: 962 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_SEL_H
8#define PE_SEL_H
9
10#include <pablo/pabloAST.h>
11#include <array>
12
13namespace pablo {
14
15class PabloBlock;
16
17class Sel : public Statement {
18    friend class PabloBlock;
19public:
20    static inline bool classof(const PabloAST * e) {
21        return e->getClassTypeId() == ClassTypeId::Sel;
22    }
23    static inline bool classof(const void *) {
24        return false;
25    }
26    virtual ~Sel() {
27    }
28    inline PabloAST * getCondition() const {
29        return getOperand(0);
30    }
31    inline PabloAST * getTrueExpr() const {
32        return getOperand(1);
33    }
34    inline PabloAST * getFalseExpr() const {
35        return getOperand(2);
36    }
37protected:
38    Sel(PabloAST* if_expr, PabloAST* t_expr, PabloAST* f_expr, PabloBlock * parent);
39};
40
41}
42
43#endif // PE_SEL_H
44
Note: See TracBrowser for help on using the repository browser.