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

Last change on this file since 5260 was 5260, checked in by nmedfort, 2 years ago

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File size: 942 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_CPU_KERNEL_H
6#define EDITD_CPU_KERNEL_H
7
8#include <kernels/streamset.h>
9#include <kernels/interface.h>
10#include <kernels/kernel.h>
11
12namespace llvm { class Module; }
13
14namespace IDISA { class IDISA_Builder; }
15
16namespace kernel {
17
18class editdCPUKernel : public KernelBuilder {
19public:
20   
21    editdCPUKernel(IDISA::IDISA_Builder * b, unsigned dist, unsigned pattLen);
22   
23   
24private:
25    void generateDoBlockMethod() const override;
26    void generateFinalBlockMethod() const override;
27    void bitblock_advance_ci_co(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;
28    unsigned mEditDistance;
29    unsigned mPatternLen;
30   
31};
32
33   
34
35}
36#endif
Note: See TracBrowser for help on using the repository browser.