source: icGREP/icgrep-devel/icgrep/kernels/linebreak_kernel.h @ 5861

Last change on this file since 5861 was 5861, checked in by cameron, 15 months ago

Using DirectCC builder updates; speedup wc -l

File size: 1.1 KB
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 LINEBREAK_KERNEL_H
6#define LINEBREAK_KERNEL_H
7
8#include <pablo/pablo_kernel.h>  // for PabloKernel
9
10namespace kernel { class KernelBuilder; }
11
12namespace kernel {
13#define USE_DIRECT_LF_BUILDER
14
15class LineFeedKernelBuilder final : public pablo::PabloKernel {
16public:
17    LineFeedKernelBuilder(const std::unique_ptr<KernelBuilder> & b, kernel::Binding && inputStreamSet);
18    bool isCachable() const override { return true; }
19    bool hasSignature() const override { return false; }
20protected:
21    void generatePabloMethod() override;
22    unsigned mNumOfStreams;
23    unsigned mStreamFieldWidth;
24};
25
26
27class LineBreakKernelBuilder final : public pablo::PabloKernel {
28public:
29    LineBreakKernelBuilder(const std::unique_ptr<KernelBuilder> & b, unsigned basisBitsCount);
30    bool isCachable() const override { return true; }
31    bool hasSignature() const override { return false; }
32protected:
33    void generatePabloMethod() override;
34};
35
36}
37#endif
Note: See TracBrowser for help on using the repository browser.