Ignore:
Timestamp:
Feb 3, 2017, 1:25:53 PM (3 years ago)
Author:
nmedfort
Message:

Partial removal of BlockNo?

Location:
icGREP/icgrep-devel/icgrep/pablo
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r5292 r5297  
    4848}
    4949   
    50 void PabloCompiler::compile(Value * const blockNo) {
     50void PabloCompiler::compile() {
    5151
    5252    mCarryManager->initializeCodeGen();
     
    5555    mMarker.emplace(entryBlock->createZeroes(), iBuilder->allZeroes());
    5656    mMarker.emplace(entryBlock->createOnes(), iBuilder->allOnes());
     57
     58    Value * const blockNo =  mKernel->getBlockNo();
    5759
    5860    for (unsigned i = 0; i < mKernel->getNumOfInputs(); ++i) {
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r5292 r5297  
    3434    ~PabloCompiler();
    3535    void initializeKernelData();
    36     void compile(llvm::Value * const blockNo);
     36    void compile();
    3737
    3838private:
  • icGREP/icgrep-devel/icgrep/pablo/pablo_kernel.cpp

    r5292 r5297  
    8787}
    8888
    89 void PabloKernel::generateDoBlockMethod(Value * blockNo) {
    90     mPabloCompiler->compile(blockNo);
     89void PabloKernel::generateDoBlockMethod() {
     90    mPabloCompiler->compile();
    9191}
    9292
    93 void PabloKernel::generateFinalBlockMethod(Value *remainingBytes, Value * blockNo) {
     93void PabloKernel::generateFinalBlockMethod(Value * remainingBytes) {
    9494    // Standard Pablo convention for final block processing: set a bit marking
    9595    // the position just past EOF, as well as a mask marking all positions past EOF.
  • icGREP/icgrep-devel/icgrep/pablo/pablo_kernel.h

    r5292 r5297  
    116116    void prepareKernel()  override final;
    117117
    118     void generateDoBlockMethod(llvm::Value * blockNo) override final;
     118    void generateDoBlockMethod() override final;
    119119
    120120    // The default method for Pablo final block processing sets the
    121121    // EOFmark bit and then calls the standard DoBlock function.
    122122    // This may be overridden for specialized processing.
    123     virtual void generateFinalBlockMethod(llvm::Value * remainingBytes, llvm::Value * blockNo) override final;
     123    virtual void generateFinalBlockMethod(llvm::Value * remainingBytes) override final;
    124124
    125125    inline String * makeName(const llvm::StringRef & prefix) const {
Note: See TracChangeset for help on using the changeset viewer.