source: icGREP/icgrep-devel/icgrep/kernels/fake_stream_generating_kernel.cpp

Last change on this file was 6261, checked in by nmedfort, 6 months ago

Work on OptimizationBranch?; revisited pipeline termination

File size: 1.3 KB
Line 
1
2#include "fake_stream_generating_kernel.h"
3#include <kernels/kernel_builder.h>
4#include <llvm/Support/raw_ostream.h>
5#include <toolchain/toolchain.h>
6
7using namespace llvm;
8
9namespace kernel {
10
11FakeStreamGeneratingKernel::FakeStreamGeneratingKernel(const std::unique_ptr<kernel::KernelBuilder> &b,
12                                                       StreamSet * refStream,
13                                                       StreamSet * outputStream)
14: SegmentOrientedKernel(b, "FakeStream",
15// input stream sets
16{Binding{"inputStream", refStream}},
17// output stream set
18{Binding{"outputStream", outputStream}},
19{},{},{}) {
20
21}
22
23FakeStreamGeneratingKernel::FakeStreamGeneratingKernel(const std::unique_ptr<kernel::KernelBuilder> &b,
24                                                       StreamSet * refStream,
25                                                       const StreamSets & outputStreams)
26: SegmentOrientedKernel(b, "FakeStream",
27// input stream sets
28{Binding{"inputStream", refStream}},
29{},{},{},{}
30) {
31    // output stream sets
32    for (unsigned i = 0; i < outputStreams.size(); i++) {
33        mOutputStreamSets.push_back(Binding{"outputStream" + std::to_string(i), outputStreams[i]});
34    }
35}
36
37void FakeStreamGeneratingKernel::generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> &) {
38    // does nothing
39}
40
41}
Note: See TracBrowser for help on using the repository browser.