Changeset 5626


Ignore:
Timestamp:
Sep 1, 2017, 1:00:48 AM (3 months ago)
Author:
xuedongx
Message:

small fix for expandstreams

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/alignedprint.cpp

    r5625 r5626  
    9494}
    9595
    96 void ExpandStream::generateDoBlockMethod(const std::unique_ptr<KernelBuilder> &iBuilder) {
    97     if (mSizeOutputStreamSet <= mSizeInputStreamSet)
    98         llvm::report_fatal_error("Stream Expanding fails.\n");
     96void ExpandOrSelectStreams::generateDoBlockMethod(const std::unique_ptr<KernelBuilder> &iBuilder) {
    9997
    10098    for (unsigned i = 0; i < mSizeOutputStreamSet; i++) {
     
    281279}
    282280
    283 ExpandStream::ExpandStream(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned sizeOutputStreamSet)
    284 : BlockOrientedKernel("ExpandStream", {Binding{builder->getStreamSetTy(sizeInputStreamSet), "bitStreams"}}, {Binding{builder->getStreamSetTy(sizeOutputStreamSet), "outputbitStreams"}}, {}, {}, {}), mSizeInputStreamSet(sizeInputStreamSet), mSizeOutputStreamSet(sizeOutputStreamSet) {
     281ExpandOrSelectStreams::ExpandOrSelectStreams(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned sizeOutputStreamSet)
     282: BlockOrientedKernel("ExpandOrSelectStreams", {Binding{builder->getStreamSetTy(sizeInputStreamSet), "bitStreams"}}, {Binding{builder->getStreamSetTy(sizeOutputStreamSet), "outputbitStreams"}}, {}, {}, {}), mSizeInputStreamSet(sizeInputStreamSet), mSizeOutputStreamSet(sizeOutputStreamSet) {
    285283    setNoTerminateAttribute(true);
    286284
  • icGREP/icgrep-devel/icgrep/kernels/alignedprint.h

    r5625 r5626  
    2828};
    2929
    30 class ExpandStream final : public BlockOrientedKernel {
     30class ExpandOrSelectStreams final : public BlockOrientedKernel {
    3131public:
    32     ExpandStream(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned sizeOutputStreamSet);
     32    ExpandOrSelectStreams(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned sizeOutputStreamSet);
    3333private:
    3434    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
Note: See TracChangeset for help on using the changeset viewer.