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

Last change on this file since 5941 was 5935, checked in by cameron, 17 months ago

Direct CC builder work

File size: 1015 bytes
RevLine 
[5140]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
[5436]8#include <pablo/pablo_kernel.h>
9
[5267]10namespace IDISA { class IDISA_Builder; }
11namespace re { class CC; }
[5140]12
13namespace kernel {
14
[5935]15class DirectCharacterClassKernelBuilder final : public pablo::PabloKernel {
[5435]16public:   
[5935]17    DirectCharacterClassKernelBuilder(const std::unique_ptr<KernelBuilder> & b, std::string ccSetName, std::vector<re::CC *> charClasses);
18protected:
19    void generatePabloMethod() override;
[5140]20private:
[5435]21    const std::vector<re::CC *> mCharClasses;
[5140]22};
23
[5435]24class ParabixCharacterClassKernelBuilder final : public pablo::PabloKernel {
[5140]25public:
[5935]26    ParabixCharacterClassKernelBuilder(const std::unique_ptr<KernelBuilder> & b, std::string ccSetName, const std::vector<re::CC *> & charClasses, unsigned codeUnitWidth);
[5435]27protected:
[5436]28    void generatePabloMethod() override;
[5435]29private:
30    const std::vector<re::CC *> mCharClasses;
[5140]31};
32
33}
34#endif
Note: See TracBrowser for help on using the repository browser.