source: icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_fake_stream_generating_kernel.cpp @ 6043

Last change on this file since 6043 was 6043, checked in by xwa163, 11 months ago

Init checkin for lz4_grep count-only pipeline with multiplexing

File size: 1.2 KB
Line 
1
2#include "lz4_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
11
12    LZ4FakeStreamGeneratingKernel::LZ4FakeStreamGeneratingKernel(const std::unique_ptr<kernel::KernelBuilder> &b,
13                                                                 const unsigned int numberOfInputStream,
14                                                                 const unsigned int numberOfOutputStream,
15                                                                 std::string name)
16            : MultiBlockKernel(std::move(name),
17// input stream sets
18                               {Binding{b->getStreamSetTy(numberOfInputStream), "inputStream", FixedRate(), Principal()}},
19// output stream set
20                               {Binding{b->getStreamSetTy(numberOfOutputStream), "outputStream", RateEqualTo("inputStream")}},
21                               {}, {}, {}) {
22
23    }
24
25    void LZ4FakeStreamGeneratingKernel::generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> &b,
26                                                                llvm::Value *const numOfStrides) {
27    }
28}
Note: See TracBrowser for help on using the repository browser.