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

Last change on this file since 5377 was 5292, checked in by nmedfort, 3 years ago

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

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