Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (3 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/mmap_kernel.cpp

    r5259 r5260  
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 */
    5 #include <kernels/mmap_kernel.h>
     5#include "mmap_kernel.h"
     6#include <llvm/IR/Function.h>  // for Function, Function::arg_iterator
     7#include <llvm/IR/Module.h>
    68#include <IR_Gen/idisa_builder.h>
     9#include <kernels/streamset.h>
     10namespace llvm { class BasicBlock; }
     11namespace llvm { class Constant; }
     12namespace llvm { class Module; }
     13namespace llvm { class Value; }
     14
     15using namespace llvm;
    716
    817namespace kernel {
     
    7685    iBuilder->restoreIP(savePoint);
    7786}
    78    
     87
     88MMapSourceKernel::MMapSourceKernel(IDISA::IDISA_Builder * iBuilder, unsigned blocksPerSegment, unsigned codeUnitWidth) :
     89KernelBuilder(iBuilder, "mmap_source",
     90              {}, {Binding{iBuilder->getStreamSetTy(1, codeUnitWidth), "sourceBuffer"}},
     91              {Binding{iBuilder->getSizeTy(), "fileSize"}}, {}, {})
     92, mSegmentBlocks(blocksPerSegment)
     93, mCodeUnitWidth(codeUnitWidth) {
     94
    7995}
     96
     97}
Note: See TracChangeset for help on using the changeset viewer.