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

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

Using DirectCC builder updates; speedup wc -l

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