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

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

partial refactoring check in with change for Linda.

File size: 984 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 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(IDISA::IDISA_Builder * builder);
31private:
32    void generateDoBlockMethod() override;
33};
34
35
36class PopcountKernel : public pablo::PabloKernel {
37public:
38    PopcountKernel(IDISA::IDISA_Builder * builder);
39};
40
41}
42#endif
Note: See TracBrowser for help on using the repository browser.