source: icGREP/icgrep-devel/icgrep/kernels/delmask_kernel.h @ 6161

Last change on this file since 6161 was 5589, checked in by xuedongx, 2 years ago

generare negated deletion mask

File size: 1.0 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 DELMASK_KERNEL_H
6#define DELMASK_KERNEL_H
7
8#include <pablo/pablo_kernel.h>  // for PabloKernel
9#include "kernel.h"              // for KernelBuilder
10#include <string>                // for string
11#include <kernels/kernel_builder.h>
12
13namespace kernel {
14
15class DelMaskKernelBuilder final: public pablo::PabloKernel {
16public:
17
18    DelMaskKernelBuilder (const std::unique_ptr<kernel::KernelBuilder> & iBuilder)
19    : PabloKernel(iBuilder, "delmask_kernel", {Binding{iBuilder->getStreamSetTy(8, 1), "u8bit"}},
20                       {Binding{iBuilder->getStreamSetTy(1, 1), "delMask"},
21                        Binding{iBuilder->getStreamSetTy(1, 1), "neg_delMask"},
22                        Binding{iBuilder->getStreamSetTy(1, 1), "errMask"}}, {}) {
23
24    }
25    bool isCachable() const override { return true; }
26    bool hasSignature() const override { return false; }
27    void generatePabloMethod() override;
28
29};
30
31}
32#endif
Note: See TracBrowser for help on using the repository browser.