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

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

Optimized Symbol Generation (and fixed potential bug that could allow duplicate names being constructed); made PabloKernel? extend PabloAST (temporarily removed PabloAST::getName() to avoid diamond problem); added an internal scalar to PabloKernel? struct for each Count to avoid InOut? output scalar variable problem; allowed CodeMotionPass? to move code within the same scope but across a branch statement. Began work on separating Kernels into either Block-Oriented or Segment-Oriented kernels.

File size: 694 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 : public BlockOrientedKernel {
15public:
16   
17    S2PKernel(IDISA::IDISA_Builder * builder);
18
19    virtual ~S2PKernel() {}
20       
21private:
22    void generateDoBlockLogic(llvm::Value * self, llvm::Value * blockNo) const override;
23    void generateDoBlockMethod() const override;
24    void generateFinalBlockMethod() const override;
25   
26};
27
28}
29#endif
Note: See TracBrowser for help on using the repository browser.