Ignore:
Timestamp:
May 7, 2017, 4:34:48 PM (2 years ago)
Author:
nmedfort
Message:

Continued refactoring work. PabloKernel? now abstract base type with a 'generatePabloMethod' hook to generate Pablo code.

File:
1 edited

Legend:

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

    r5435 r5436  
    55
    66#include "alignedprint.h"
    7 #include <IR_Gen/idisa_builder.h>  // for IDISA_Builder
    8 #include <llvm/IR/Module.h>
     7#include <kernels/kernel_builder.h>
    98
    109using namespace llvm;
     
    256255}
    257256
    258 PrintableBits::PrintableBits(const std::unique_ptr<IDISA::IDISA_Builder> & builder)
     257PrintableBits::PrintableBits(const std::unique_ptr<kernel::KernelBuilder> & builder)
    259258: BlockOrientedKernel("PrintableBits", {Binding{builder->getStreamSetTy(1), "bitStream"}}, {Binding{builder->getStreamSetTy(1, 8), "byteStream"}}, {}, {}, {}) {
    260259    setNoTerminateAttribute(true);
    261260}
    262261
    263 SelectStream::SelectStream(const std::unique_ptr<IDISA::IDISA_Builder> & builder, unsigned sizeInputStreamSet, unsigned streamIndex)
     262SelectStream::SelectStream(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned streamIndex)
    264263: BlockOrientedKernel("SelectStream", {Binding{builder->getStreamSetTy(sizeInputStreamSet), "bitStreams"}}, {Binding{builder->getStreamSetTy(1, 1), "bitStream"}}, {}, {}, {}), mSizeInputStreamSet(sizeInputStreamSet), mStreamIndex(streamIndex) {
    265264    setNoTerminateAttribute(true);
     
    267266}
    268267
    269 PrintStreamSet::PrintStreamSet(const std::unique_ptr<IDISA::IDISA_Builder> & builder, std::vector<std::string> && names, const unsigned minWidth)
     268PrintStreamSet::PrintStreamSet(const std::unique_ptr<kernel::KernelBuilder> & builder, std::vector<std::string> && names, const unsigned minWidth)
    270269: BlockOrientedKernel("PrintableStreamSet", {}, {}, {}, {}, {})
    271270, mNames(names)
Note: See TracChangeset for help on using the changeset viewer.