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

Last change on this file since 5283 was 5283, checked in by nmedfort, 3 years ago

Optimized Symbol Generation (and fixed potential bug that could allow duplicate names being constructed); made PabloKernel? extend PabloAST (temporarily removed PabloAST::getName() to avoid diamond problem); added an internal scalar to PabloKernel? struct for each Count to avoid InOut? output scalar variable problem; allowed CodeMotionPass? to move code within the same scope but across a branch statement. Began work on separating Kernels into either Block-Oriented or Segment-Oriented kernels.

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