source: icGREP/icgrep-devel/icgrep/kernels/cc_kernel.h @ 6135

Last change on this file since 6135 was 5935, checked in by cameron, 13 months ago

Direct CC builder work

File size: 1015 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef CC_KERNEL_H
6#define CC_KERNEL_H
7
8#include <pablo/pablo_kernel.h>
9
10namespace IDISA { class IDISA_Builder; }
11namespace re { class CC; }
12
13namespace kernel {
14
15class DirectCharacterClassKernelBuilder final : public pablo::PabloKernel {
16public:   
17    DirectCharacterClassKernelBuilder(const std::unique_ptr<KernelBuilder> & b, std::string ccSetName, std::vector<re::CC *> charClasses);
18protected:
19    void generatePabloMethod() override;
20private:
21    const std::vector<re::CC *> mCharClasses;
22};
23
24class ParabixCharacterClassKernelBuilder final : public pablo::PabloKernel {
25public:
26    ParabixCharacterClassKernelBuilder(const std::unique_ptr<KernelBuilder> & b, std::string ccSetName, const std::vector<re::CC *> & charClasses, unsigned codeUnitWidth);
27protected:
28    void generatePabloMethod() override;
29private:
30    const std::vector<re::CC *> mCharClasses;
31};
32
33}
34#endif
Note: See TracBrowser for help on using the repository browser.