source: icGREP/icgrep-devel/icgrep/kernels/stdout_kernel.h @ 5335

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

Removed 'function' and 'self' parameters from generateXXXMethod() functions.

File size: 958 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 STDOUT_KERNEL_H
6#define STDOUT_KERNEL_H
7
8#include "kernel.h"
9
10namespace IDISA { class IDISA_Builder; }
11
12namespace kernel {
13
14class StdOutKernel : public SegmentOrientedKernel {
15public:
16    StdOutKernel(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth); 
17private:
18    void generateDoSegmentMethod(llvm::Value * doFinal, const std::vector<llvm::Value *> & producerPos) override final;
19private:
20    const unsigned mCodeUnitWidth;
21   
22};
23
24
25class FileSink : public SegmentOrientedKernel {
26public: 
27    FileSink(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
28protected:
29    void generateInitMethod() override final;
30    void generateDoSegmentMethod(llvm::Value * doFinal, const std::vector<llvm::Value *> & producerPos) override final;
31private:
32    const unsigned mCodeUnitWidth;
33   
34};
35}
36
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.