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

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

First attempt to allow Kernels to wait for consumers to finish processing before performing a realloc.

File size: 732 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, const bool CountOnly = false);
17   
18    std::string generateKernelSignature(std::string moduleId) override;
19   
20    void prepareKernel() override;
21
22private:
23    const bool      mCountOnly;
24    re::RE * const  mRE;
25    std::string     mSignature;
26};
27
28}
29#endif
Note: See TracBrowser for help on using the repository browser.