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
RevLine 
[5404]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
[5408]9
[5404]10namespace IDISA { class IDISA_Builder; }
[5408]11namespace re { class RE; }
[5404]12namespace kernel {
13
14class ICgrepKernelBuilder: public pablo::PabloKernel {
15public:
[5413]16    ICgrepKernelBuilder(IDISA::IDISA_Builder * const iBuilder, re::RE * const re_ast);
[5404]17   
[5431]18    std::string makeSignature() override;
19    bool isCachable() const override { return true; }
20
[5404]21    void prepareKernel() override;
22
23private:
[5408]24    re::RE * const  mRE;
25    std::string     mSignature;
[5404]26};
27
[5413]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
[5404]41}
42#endif
Note: See TracBrowser for help on using the repository browser.