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

Last change on this file since 5037 was 5025, checked in by xuedongx, 3 years ago

If '-c', ignore the scanmatch kernel.

File size: 1.0 KB
RevLine 
[4929]1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
[4974]5#ifndef PIPELINE_H
6#define PIPELINE_H
[4929]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
[4974]17namespace pablo {
18    class PabloFunction;
19    class PabloBlock;
20}
[4929]21
22using namespace llvm;
23
[4974]24namespace kernel {
25
26class PipelineBuilder {
[4929]27public:
[4974]28    PipelineBuilder(llvm::Module * m, IDISA::IDISA_Builder * b);
29
[4929]30        ~PipelineBuilder();
31
[4939]32        void CreateKernels(pablo::PabloFunction * function, bool isNameExpression);
[5025]33    llvm::Function * ExecuteKernels(bool CountOnly);
[4929]34
35private:
[4974]36    llvm::Module *                      mMod;
[4929]37    IDISA::IDISA_Builder *              iBuilder;
38    KernelBuilder *                     mS2PKernel;
39    KernelBuilder *                     mICgrepKernel;   
40    KernelBuilder *                     mScanMatchKernel;
[4986]41    llvm::Type *                        mBitBlockType;
[4929]42    int                                 mBlockSize;
43};
44
[4974]45}
46
[4929]47#endif // PIPELINE_H
Note: See TracBrowser for help on using the repository browser.