source: icGREP/icgrep-devel/icgrep/kernels/pipeline.h @ 5050

Last change on this file since 5050 was 5046, checked in by xuedongx, 3 years ago

fix index

File size: 1.1 KB
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 PIPELINE_H
6#define PIPELINE_H
7
8#include <IDISA/idisa_builder.h>
9#include "kernel.h"
10
11namespace llvm {
12    class Module;
13    class Function;
14    class Type;
15}
16
17namespace pablo {
18    class PabloFunction;
19    class PabloBlock;
20}
21
22using namespace llvm;
23
24namespace kernel {
25
26class PipelineBuilder {
27public:
28    PipelineBuilder(llvm::Module * m, IDISA::IDISA_Builder * b);
29
30    ~PipelineBuilder();
31
32    void CreateKernels(pablo::PabloFunction * function, bool UTF_16, bool isNameExpression);
33    llvm::Function * ExecuteKernels(bool CountOnly, bool UTF_16);
34
35private:
36    llvm::Module *                      mMod;
37    IDISA::IDISA_Builder *              iBuilder;
38    KernelBuilder *                     mS2PKernel;
39    KernelBuilder *                     mICgrepKernel;   
40    KernelBuilder *                     mScanMatchKernel;
41    llvm::Type *                        mBitBlockType;
42    int                                 mBlockSize;
43};
44
45}
46
47#endif // PIPELINE_H
Note: See TracBrowser for help on using the repository browser.