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