Ignore:
Timestamp:
Oct 13, 2017, 7:06:49 AM (20 months ago)
Author:
cameron
Message:

Multiblock version of s2p - disabled for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/s2p_kernel.h

    r5464 r5689  
    99namespace IDISA { class IDISA_Builder; }  // lines 14-14
    1010namespace llvm { class Value; }
    11 
     11#define S2P_MULTIBLOCK
    1212namespace kernel {
    13 
    14 class S2PKernel final : public BlockOrientedKernel {
    15 public:   
     13#ifdef S2P_MULTIBLOCK
     14    class S2PKernel final : public MultiBlockKernel {
     15#else
     16    class S2PKernel final : public BlockOrientedKernel {
     17#endif
     18public:
    1619    S2PKernel(const std::unique_ptr<kernel::KernelBuilder> & b, bool aligned = true);
    1720    bool isCachable() const override { return true; }
    1821    bool hasSignature() const override { return false; }
    1922protected:
     23#ifdef S2P_MULTIBLOCK
     24    void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> & kb) override;
     25#else
    2026    void generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
    2127    void generateFinalBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder, llvm::Value * remainingBytes) override;
     28#endif
    2229private:
    2330    bool mAligned;
Note: See TracChangeset for help on using the changeset viewer.