source: icGREP/icgrep-devel/icgrep/kernels/casefold_pipeline.h @ 5045

Last change on this file since 5045 was 4988, checked in by cameron, 3 years ago

casefold sample application/pipeline

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 CASEFOLD_PIPELINE_H
6#define CASEFOLD_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);
33    llvm::Function *  ExecuteKernels();
34
35private:
36    llvm::Module *                      mMod;
37    IDISA::IDISA_Builder *              iBuilder;
38    KernelBuilder *                     mS2PKernel;
39    KernelBuilder *                     mCaseFoldKernel;
40    KernelBuilder *                     mP2SKernel;
41    KernelBuilder *                     mStdOutKernel;
42    llvm::Type*                         mBitBlockType;
43    int                                 mBlockSize;
44};
45
46}
47
48#endif // PIPELINE_H
Note: See TracBrowser for help on using the repository browser.