source: icGREP/icgrep-devel/icgrep/kernels/scanmatchgen.h @ 5285

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

Start of work to simplify kernel writing. Removed generateDoBlockLogic method.

File size: 856 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 SCANMATCHGEN_H
6#define SCANMATCHGEN_H
7
8#include "grep_type.h"  // for GrepType
9#include "kernel.h"     // for KernelBuilder
10namespace IDISA { class IDISA_Builder; }  // lines 16-16
11namespace llvm { class Function; }  // lines 14-14
12namespace llvm { class Module; }  // lines 14-14
13
14namespace kernel {
15   
16class ScanMatchKernel : public BlockOrientedKernel {
17public:
18    ScanMatchKernel(IDISA::IDISA_Builder * iBuilder, GrepType grepType);
19protected:
20    void generateDoBlockMethod(llvm::Function * function, llvm::Value * self, llvm::Value * blockNo) const override;
21private:
22    llvm::Function * generateScanWordRoutine(llvm::Module * m) const;
23private:
24    GrepType mGrepType;
25};
26}
27
28#endif // SCANMATCHGEN_H
Note: See TracBrowser for help on using the repository browser.