Ignore:
Timestamp:
May 12, 2017, 4:54:11 PM (2 years ago)
Author:
nmedfort
Message:

Refactoring work + correction for getRawItemPointer

File:
1 edited

Legend:

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

    r5441 r5446  
    8383    //
    8484
    85     void createKernelStub(const std::unique_ptr<KernelBuilder> & idb, const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
     85    void bindPorts(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
     86
     87    llvm::Module * makeModule(const std::unique_ptr<KernelBuilder> & idb);
     88
     89    llvm::Module * setModule(const std::unique_ptr<KernelBuilder> & idb, llvm::Module * const module);
    8690
    8791    void createKernelStub(const std::unique_ptr<KernelBuilder> & idb, const StreamSetBuffers & inputs, const StreamSetBuffers & outputs, llvm::Module * const kernelModule);
     
    182186        assert (port.first == Port::Input);
    183187        assert (port.second < mStreamSetInputBuffers.size());
     188        assert (mStreamSetInputBuffers[port.second]);
    184189        return mStreamSetInputBuffers[port.second];
    185190    }
     
    189194        assert (port.first == Port::Output);
    190195        assert (port.second < mStreamSetOutputBuffers.size());
     196        assert (mStreamSetOutputBuffers[port.second]);
    191197        return mStreamSetOutputBuffers[port.second];
    192198    }
     
    197203        if (port == Port::Input) {
    198204            assert (index < mStreamSetInputBuffers.size());
     205            assert (mStreamSetInputBuffers[index]);
    199206            return mStreamSetInputBuffers[index];
    200207        } else {
    201208            assert (index < mStreamSetOutputBuffers.size());
     209            assert (mStreamSetOutputBuffers[index]);
    202210            return mStreamSetOutputBuffers[index];
    203211        }
     
    219227    std::vector<llvm::Value *>          mAvailableItemCount;
    220228    llvm::Value *                       mOutputScalarResult;
    221 
    222229
    223230    std::vector<llvm::Type *>           mKernelFields;
     
    378385    // method of the multi-block kernel builder makes all the necessary arrangements
    379386    // to translate doSegment calls into a minimal sequence of doMultiBlock calls.
    380     void generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> & idb) final;
     387    void generateDoSegmentMethod(const std::unique_ptr<KernelBuilder> & kb) final;
    381388
    382389};
Note: See TracChangeset for help on using the changeset viewer.