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

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

Optimized Symbol Generation (and fixed potential bug that could allow duplicate names being constructed); made PabloKernel? extend PabloAST (temporarily removed PabloAST::getName() to avoid diamond problem); added an internal scalar to PabloKernel? struct for each Count to avoid InOut? output scalar variable problem; allowed CodeMotionPass? to move code within the same scope but across a branch statement. Began work on separating Kernels into either Block-Oriented or Segment-Oriented kernels.

File size: 845 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
17    StdOutKernel(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
18   
19private:
20 
21    void generateDoSegmentMethod() const override;
22
23private:
24    const unsigned mCodeUnitWidth;
25   
26};
27
28
29class FileSink : public SegmentOrientedKernel {
30public:
31   
32    FileSink(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
33   
34private:
35   
36    void generateInitMethod() const override;
37    void generateDoSegmentMethod() const override;
38   
39private:
40    const unsigned mCodeUnitWidth;
41   
42};
43}
44
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.