Ignore:
Timestamp:
Apr 9, 2018, 11:11:01 PM (10 months ago)
Author:
nmedfort
Message:

made LZ4IndexBuilderKernel a segment-oriented kernel + code clean up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/lz4/lz4_index_builder.h

    r5923 r5958  
    2121
    2222namespace kernel {
    23     class LZ4IndexBuilderKernel final : public MultiBlockKernel {
     23    class LZ4IndexBuilderKernel final : public SegmentOrientedKernel {
    2424    public:
    2525        LZ4IndexBuilderKernel(const std::unique_ptr<kernel::KernelBuilder> &iBuilder);
    2626
    2727    protected:
    28         void generateMultiBlockLogic(const std::unique_ptr<KernelBuilder> &iBuilder,
    29                                      llvm::Value *const numOfStrides) override;
     28        void generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> & b) override;
    3029
    3130    private:
     
    4140        llvm::Value *advanceUntilNextZero(const std::unique_ptr<KernelBuilder> &iBuilder, std::string inputName,
    4241                                          llvm::Value *startPos, llvm::Value *maxPos = nullptr);
    43 
    44         llvm::Value *advanceUntilNextOne(const std::unique_ptr<KernelBuilder> &iBuilder, std::string inputName,
    45                                          llvm::Value *startPos, llvm::Value *maxPos = nullptr);
    46 
    47         llvm::Value *advanceUntilNextValue(const std::unique_ptr<KernelBuilder> &iBuilder, std::string inputName,
    48                                            llvm::Value *startPos, bool isNextZero, llvm::Value *maxPos = nullptr);
    4942
    5043        void increaseScalarField(const std::unique_ptr<KernelBuilder> &iBuilder, const std::string &fieldName,
     
    6861
    6962        void generateStoreNumberOutput(const std::unique_ptr<KernelBuilder> &iBuilder,
    70                                        const std::string &outputBufferName, llvm::Type *pointerType,
     63                                       const std::string &outputBufferName,
    7164                                       llvm::Value *value);
    7265
    73         void resetPreviousProducedMap(const std::unique_ptr<KernelBuilder> &iBuilder, std::vector<std::string> outputList);
    74         std::map<std::string, llvm::Value*> previousProducedMap;
    7566    };
    7667}
Note: See TracChangeset for help on using the changeset viewer.