Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (2 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/scanmatchgen.cpp

    r5246 r5260  
    88#include <llvm/IR/Intrinsics.h>
    99#include <IR_Gen/idisa_builder.h>
     10#include <llvm/IR/Module.h>
    1011#include <llvm/Support/raw_os_ostream.h>
    1112
     
    5859    Value * recordStart = getScalarField(kernelStuctParam, "LineStart");
    5960    Value * recordNum = getScalarField(kernelStuctParam, "LineNum");
    60     Value * matchResultsPtr = getStreamSetBlockPtr(kernelStuctParam, "matchResults", blockNo);   
    61     Value * matches = iBuilder->CreateBlockAlignedLoad(matchResultsPtr, {iBuilder->getInt32(0), iBuilder->getInt32(0)});
    62     Value * linebreaks = iBuilder->CreateBlockAlignedLoad(matchResultsPtr, {iBuilder->getInt32(0), iBuilder->getInt32(1)});
     61    Value * matches = iBuilder->CreateBlockAlignedLoad(getStream(kernelStuctParam, "matchResults", blockNo, iBuilder->getInt32(0)));
     62    Value * linebreaks = iBuilder->CreateBlockAlignedLoad(getStream(kernelStuctParam, "matchResults", blockNo, iBuilder->getInt32(1)));
    6363    Value * matchWordVector = iBuilder->CreateBitCast(matches, scanwordVectorType);
    6464    Value * breakWordVector = iBuilder->CreateBitCast(linebreaks, scanwordVectorType);
Note: See TracChangeset for help on using the changeset viewer.