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

Last change on this file since 5571 was 5454, checked in by nmedfort, 2 years ago

Bug fix check in for DumpTrace?, compilation of DoBlock? / DoFinalBlock? functions. Pablo CodeMotionPass? optimized and enabled by default.

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