source: icGREP/icgrep-devel/icgrep/pablo/pe_zeroes.h @ 5239

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

Multi-threading support for PabloAST / PabloCompiler?. Requires unique LLVM Context / Module for each thread.

File size: 1004 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_ZEROES_H
8#define PE_ZEROES_H
9
10#include <pablo/pabloAST.h>
11#include <pablo/pe_var.h>
12
13namespace pablo {
14
15class Zeroes : public PabloAST {
16    friend class PabloBlock;
17    friend class PabloKernel;
18public:
19    static inline bool classof(const PabloAST * expr) {
20        assert (expr);
21        return expr->getClassTypeId() == ClassTypeId::Zeroes;
22    }
23    static inline bool classof(const void *) {
24        return false;
25    }
26    virtual ~Zeroes() {
27    }
28    inline bool operator==(const Zeroes &) const {
29        return true;
30    }
31    virtual bool operator==(const PabloAST & other) const {
32        return isa<Zeroes>(other);
33    }
34protected:
35    Zeroes(Type * const type, Allocator & allocator)
36    : PabloAST(ClassTypeId::Zeroes, type, nullptr, allocator) {
37    }
38};
39
40}
41
42#endif // PE_ZEROES_H
43
44
Note: See TracBrowser for help on using the repository browser.