source: icGREP/icgrep-devel/icgrep/editd/editd_cpu_kernel.h @ 5772

Last change on this file since 5772 was 5603, checked in by lindanl, 2 years ago

editd:group pattern segments.

File size: 1.1 KB
RevLine 
[5212]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_CPU_KERNEL_H
6#define EDITD_CPU_KERNEL_H
7
8#include <kernels/kernel.h>
9
10namespace llvm { class Module; }
11
12namespace IDISA { class IDISA_Builder; }
13
14namespace kernel {
15
[5283]16class editdCPUKernel : public BlockOrientedKernel {
[5212]17public:
[5285]18
[5603]19    editdCPUKernel(const std::unique_ptr<kernel::KernelBuilder> & b, unsigned dist, unsigned pattLen, unsigned groupSize);
[5212]20   
[5347]21
[5212]22private:
[5440]23    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & idb) override;
24    void generateFinalBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & idb, llvm::Value * remainingBytes) override;
25    void bitblock_advance_ci_co(const std::unique_ptr<KernelBuilder> & idb, llvm::Value * val, unsigned shift, llvm::Value * stideCarryArr, unsigned carryIdx, std::vector<std::vector<llvm::Value *>> & adv, std::vector<std::vector<int>> & calculated, int i, int j) const;
[5603]26    void reset_to_zero(std::vector<std::vector<int>> & calculated);
[5212]27    unsigned mEditDistance;
28    unsigned mPatternLen;
[5603]29    unsigned mGroupSize;
[5212]30   
31};
32
33   
34
35}
36#endif
Note: See TracBrowser for help on using the repository browser.