source: icGREP/icgrep-devel/icgrep/kernels/grep_kernel.h @ 5435

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

Continued refactoring work.

File size: 1.0 KB
Line 
1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef GREP_KERNEL_H
6#define GREP_KERNEL_H
7
8#include <pablo/pablo_kernel.h>  // for PabloKernel
9
10namespace IDISA { class IDISA_Builder; }
11namespace re { class RE; }
12namespace kernel {
13
14class ICgrepKernelBuilder: public pablo::PabloKernel {
15public:
16    ICgrepKernelBuilder(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, re::RE * const re_ast);
17   
18    std::string makeSignature() override;
19    bool isCachable() const override { return true; }
20
21    void prepareKernel() override;
22
23private:
24    re::RE * const  mRE;
25    std::string     mSignature;
26};
27
28class InvertMatchesKernel : public BlockOrientedKernel {
29public:
30    InvertMatchesKernel(const std::unique_ptr<IDISA::IDISA_Builder> & builder);
31private:
32    void generateDoBlockMethod() override;
33};
34
35
36class PopcountKernel : public pablo::PabloKernel {
37public:
38    PopcountKernel(const std::unique_ptr<IDISA::IDISA_Builder> & builder);
39};
40
41}
42#endif
Note: See TracBrowser for help on using the repository browser.