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

Last change on this file since 6161 was 5831, checked in by nmedfort, 22 months ago

Potential bug fix for 32-bit

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 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 final : public MultiBlockKernel {
15public:
16    StdOutKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned codeUnitWidth);
17private:
18    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & iBuilder, llvm::Value * const numOfStrides) override;
19private:
20    const unsigned mCodeUnitWidth;
21   
22};
23
24class FileSink final : public MultiBlockKernel {
25public: 
26    FileSink(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned codeUnitWidth);
27protected:
28    void generateInitializeMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
29    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & iBuilder, llvm::Value * const numOfStrides) override;
30    void generateFinalizeMethod(const std::unique_ptr<KernelBuilder> & b) override;
31private:
32    const unsigned mCodeUnitWidth;
33   
34};
35}
36
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.