source: icGREP/icgrep-devel/icgrep/pablo/pe_xor.h @ 5160

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

Initial work for incorporating Types into Pablo AST.

File size: 1.1 KB
RevLine 
[4209]1/*
[3850]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 XOR_H
8#define XOR_H
9
[4244]10#include <pablo/pabloAST.h>
[3850]11
[4199]12namespace pablo {
13
[4873]14class Xor : public Variadic {
[4227]15    friend class PabloBlock;
[3850]16public:
[4244]17    static inline bool classof(const PabloAST * e) {
[4200]18        return e->getClassTypeId() == ClassTypeId::Xor;
[4199]19    }
[4200]20    static inline bool classof(const void *) {
21        return false;
22    }
[4873]23    virtual ~Xor() { }
[4200]24protected:
[5160]25    Xor(const PabloType * const type, PabloAST * expr1, PabloAST * expr2, String * name)
26    : Variadic(ClassTypeId::Xor, type, {expr1, expr2}, name)
[4438]27    {
[4873]28
[4438]29    }
[5160]30    Xor(const PabloType * const type, const unsigned reserved, String * name)
31    : Variadic(ClassTypeId::Xor, type, reserved, name)
[4878]32    {
33
34    }
[4885]35    template<typename iterator>
[5160]36    Xor(const PabloType * const type, iterator begin, iterator end, String * name)
37    : Variadic(ClassTypeId::Xor, type, begin, end, name) {
[4885]38
39    }
[3850]40};
[4200]41
[4199]42}
[3850]43
44#endif // XOR_H
45
46
47
Note: See TracBrowser for help on using the repository browser.