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

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

Restructuring work for the Driver classes. Start of work to eliminate the memory leaks with the ExecutionEngine?. Replaced custom AlignedMalloc? with backend call to std::aligned_malloc. Salvaged some work on DistributionPass? for reevaluation.

File size: 859 bytes
RevLine 
[4939]1/*
[4959]2 *  Copyright (c) 2016 International Characters.
[4939]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
[5260]8#include "kernel.h"  // for KernelBuilder
9namespace IDISA { class IDISA_Builder; }  // lines 14-14
10namespace llvm { class Value; }
[5051]11
[4974]12namespace kernel {
[4959]13
[5431]14class S2PKernel final : public BlockOrientedKernel {
[5285]15public:   
[5436]16    S2PKernel(const std::unique_ptr<kernel::KernelBuilder> & b, bool aligned = true);
[5431]17    bool isCachable() const override { return true; }
[5464]18    bool hasSignature() const override { return false; }
[5392]19protected:
[5440]20    void generateDoBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder) override;
21    void generateFinalBlockMethod(const std::unique_ptr<KernelBuilder> & iBuilder, llvm::Value * remainingBytes) override;
[5422]22private:
23    bool mAligned;
[5063]24};
[5051]25
[4974]26}
[4939]27#endif
Note: See TracBrowser for help on using the repository browser.