source: icGREP/icgrep-devel/icgrep/kernels/s2p_kernel.h @ 5435

Last change on this file since 5435 was 5435, checked in by nmedfort, 2 years ago

Continued refactoring work.

File size: 768 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef S2P_KERNEL_H
6#define S2P_KERNEL_H
7
8#include "kernel.h"  // for KernelBuilder
9namespace IDISA { class IDISA_Builder; }  // lines 14-14
10namespace llvm { class Value; }
11
12namespace kernel {
13
14class S2PKernel final : public BlockOrientedKernel {
15public:   
16    S2PKernel(const std::unique_ptr<IDISA::IDISA_Builder> & b, bool aligned = true);
17    bool isCachable() const override { return true; }
18    bool moduleIDisSignature() const override { return true; }
19protected:
20    void generateDoBlockMethod() override;
21    void generateFinalBlockMethod(llvm::Value * remainingBytes) override;
22private:
23    bool mAligned;
24};
25
26}
27#endif
Note: See TracBrowser for help on using the repository browser.