source: icGREP/icgrep-devel/icgrep/kernels/scanmatchgen.h @ 5805

Last change on this file since 5805 was 5755, checked in by nmedfort, 17 months ago

Bug fixes and simplified MultiBlockKernel? logic

File size: 759 bytes
RevLine 
[4907]1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
[4959]5#ifndef SCANMATCHGEN_H
6#define SCANMATCHGEN_H
[4907]7
[5377]8#include "kernel.h"
9namespace IDISA { class IDISA_Builder; }
10namespace llvm { class Function; }
11namespace llvm { class Module; }
[4907]12
[4974]13namespace kernel {
[5055]14   
[5676]15
[5526]16class ScanMatchKernel : public MultiBlockKernel {
[5055]17public:
[5695]18        ScanMatchKernel(const std::unique_ptr<kernel::KernelBuilder> & b);
[5431]19    bool isCachable() const override { return true; }
[5464]20    bool hasSignature() const override { return false; }
[5055]21private:
[5755]22    llvm::Value * generateMultiBlockLogic(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, llvm::Value * const numOfStrides) override;
[5055]23};
[5526]24
[4974]25}
[4907]26#endif // SCANMATCHGEN_H
Note: See TracBrowser for help on using the repository browser.