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

Last change on this file since 5247 was 5246, checked in by nmedfort, 3 years ago

Code clean up to enforce proper calling order of KernelBuilder? methods

File size: 845 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 "streamset.h"
9#include "kernel.h"
10#include <llvm/IR/Type.h>
[4988]11
12namespace IDISA { class IDISA_Builder; }
13
14namespace kernel {
15
[5230]16class StdOutKernel : public KernelBuilder {
[5076]17public:
[5230]18    StdOutKernel(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth) :
[5076]19    KernelBuilder(iBuilder, "stdout",
[5217]20                  {Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "codeUnitBuffer"}}, {}, {}, {}, {}),
[5185]21    mCodeUnitWidth(codeUnitWidth) {}
[5076]22   
23private:
[5185]24    unsigned mCodeUnitWidth;
25 
[5246]26    void generateDoBlockMethod() const override;
27    void generateFinalBlockMethod() const override;
28    void generateDoSegmentMethod() const override;
[5076]29   
30};
[4988]31}
32
33#endif
Note: See TracBrowser for help on using the repository browser.