source: icGREP/icgrep-devel/icgrep/editd/editd_gpu_kernel.h @ 5828

Last change on this file since 5828 was 5603, checked in by lindanl, 22 months ago

editd:group pattern segments.

File size: 835 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 EDITD_GPU_KERNEL_H
6#define EDITD_GPU_KERNEL_H
7
8#include <kernels/kernel.h>
9
10namespace llvm { class Module; }
11
12namespace IDISA { class IDISA_Builder; }
13
14namespace kernel {
15
16class editdGPUKernel : public BlockOrientedKernel {
17public:
18   
19    editdGPUKernel(const std::unique_ptr<kernel::KernelBuilder> & b, unsigned dist, unsigned pattLen, unsigned groupSize);
20   
21   
22private:
23    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & idb) override;
24    void generateFinalBlockMethod(const std::unique_ptr<KernelBuilder> & idb, llvm::Value * remainingBytes) override;
25    unsigned mEditDistance;
26    unsigned mPatternLen;
27    unsigned mGroupSize;
28   
29};   
30
31}
32#endif
Note: See TracBrowser for help on using the repository browser.