Ignore:
Timestamp:
Feb 7, 2017, 3:23:42 PM (3 years ago)
Author:
nmedfort
Message:

Continued work on eliminating BlockNo?

File:
1 edited

Legend:

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

    r5297 r5307  
    5656    mMarker.emplace(entryBlock->createOnes(), iBuilder->allOnes());
    5757
    58     Value * const blockNo =  mKernel->getBlockNo();
    59 
    6058    for (unsigned i = 0; i < mKernel->getNumOfInputs(); ++i) {
    6159        Var * var = mKernel->getInput(i);
     
    6563            input = mKernel->getScalarFieldPtr(name);
    6664        } else {
    67             input = mKernel->getStreamSetPtr(name, blockNo);
     65            input = mKernel->getInputStream(name, iBuilder->getInt32(0));
    6866        }
    6967        mMarker.emplace(var, input);
     
    7775            output = mKernel->getScalarFieldPtr(name);
    7876        } else {
    79             output = mKernel->getStreamSetPtr(name, blockNo);
     77            output = mKernel->getOutputStream(name, iBuilder->getInt32(0));
    8078        }
    8179        mMarker.emplace(var, output);
     
    8381
    8482    compileBlock(entryBlock);
     83
     84    mCarryManager->finalizeCodeGen();
    8585
    8686}
     
    388388            Value * array = compileExpression(extract->getArray(), false);
    389389            Value * index = compileExpression(extract->getIndex());
    390             value = iBuilder->CreateGEP(array, {ConstantInt::getNullValue(index->getType()), index}, stmt->getName());
     390            value = iBuilder->CreateGEP(array, index, stmt->getName());
    391391        } else if (isa<And>(stmt)) {
    392392            value = compileExpression(stmt->getOperand(0));
Note: See TracChangeset for help on using the changeset viewer.