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

Last change on this file since 5413 was 5413, checked in by cameron, 2 years ago

Factor out CountOnly? and InvertMatches? as separate kernels

File size: 964 bytes
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(IDISA::IDISA_Builder * const iBuilder, re::RE * const re_ast);
17   
18    std::string generateKernelSignature(std::string moduleId) override;
19   
20    void prepareKernel() override;
21
22private:
23    re::RE * const  mRE;
24    std::string     mSignature;
25};
26
27class InvertMatchesKernel : public BlockOrientedKernel {
28public:
29    InvertMatchesKernel(IDISA::IDISA_Builder * builder);
30private:
31    void generateDoBlockMethod() override;
32};
33
34
35class PopcountKernel : public pablo::PabloKernel {
36public:
37    PopcountKernel(IDISA::IDISA_Builder * builder);
38};
39
40}
41#endif
Note: See TracBrowser for help on using the repository browser.