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

Last change on this file since 6111 was 6111, checked in by xwa163, 10 months ago
  1. Cleanup LZ4 AIO related kernels
  2. Improve LZ4ParallelByteStreamAIOKernel
  3. Implement simd_cttz
File size: 1.2 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
11
12    FakeStreamGeneratingKernel::FakeStreamGeneratingKernel(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 FakeStreamGeneratingKernel::generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> &b,
26                                                                llvm::Value *const numOfStrides) {
27    }
28}
Note: See TracBrowser for help on using the repository browser.