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

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

Continued work on processing stdin input. Partial integration of ParabixDriver? methods into icgrep and editd. Object cache does not currently work for recursive REs.

File size: 899 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 SCANMATCHGEN_H
6#define SCANMATCHGEN_H
7
8#include "grep_type.h"
9#include "kernel.h"
10namespace IDISA { class IDISA_Builder; }
11namespace llvm { class Function; }
12namespace llvm { class Module; }
13
14namespace kernel {
15   
16class ScanMatchKernel final : public BlockOrientedKernel {
17public:
18    ScanMatchKernel(IDISA::IDISA_Builder * iBuilder, GrepType grepType, unsigned codeUnitWidth);
19    bool moduleIDisSignature() override {return true;}
20protected:
21    void generateDoBlockMethod() override;
22private:
23    llvm::Value * makeForwardZeroesMask(llvm::Value * const value) const;
24    llvm::Value * resetLowestBit(llvm::Value * const value) const;
25private:
26    const GrepType      mGrepType;
27    const unsigned      mCodeUnitWidth;
28};
29}
30
31#endif // SCANMATCHGEN_H
Note: See TracBrowser for help on using the repository browser.