source: icGREP/icgrep-devel/icgrep/editd/editdscan_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: 726 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 EDITDSCAN_KERNEL_H
6#define EDITDSCAN_KERNEL_H
7
8#include <kernels/kernel.h>
9namespace IDISA { class IDISA_Builder; }
10namespace llvm { class Function; }
11namespace llvm { class Module; }
12
13namespace kernel {
14   
15class editdScanKernel : public BlockOrientedKernel {
16public:
17    editdScanKernel(IDISA::IDISA_Builder * iBuilder, unsigned dist);
18       
19private:
20    void generateDoBlockMethod() const override;
21    llvm::Function * generateScanWordRoutine(llvm::Module * m) const;
22       
23    unsigned mEditDistance;
24    unsigned mScanwordBitWidth;
25};
26
27}
28
29#endif // EDITDSCAN_KERNEL_H
Note: See TracBrowser for help on using the repository browser.