Ignore:
Timestamp:
Apr 25, 2017, 2:33:31 PM (2 years ago)
Author:
nmedfort
Message:

Changes towards separate compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r5418 r5425  
    88#include <iomanip>
    99#include <sstream>
    10 #include <kernels/toolchain.h>
     10#include <toolchain/toolchain.h>
    1111#include <llvm/IR/Function.h>
    1212#include <llvm/IR/Module.h>
     
    2222#include <kernels/mmap_kernel.h>
    2323#include <kernels/s2p_kernel.h>
    24 #include <kernels/pipeline.h>
    2524#include <pablo/pablo_compiler.h>
    2625#include <pablo/pablo_toolchain.h>
     
    137136void wcPipelineGen(ParabixDriver & pxDriver) {
    138137
    139     IDISA::IDISA_Builder * iBuilder = pxDriver.getIDISA_Builder();
     138    auto iBuilder = pxDriver.getIDISA_Builder();
    140139    Module * m = iBuilder->getModule();
    141140   
     
    189188
    190189WordCountFunctionType wcCodeGen() {
    191     Module * M = new Module("wc", getGlobalContext());
    192     IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    193     ParabixDriver pxDriver(idb);
    194    
     190    ParabixDriver pxDriver("wc");
    195191    wcPipelineGen(pxDriver);
    196 
    197     WordCountFunctionType main = reinterpret_cast<WordCountFunctionType>(pxDriver.getPointerToMain());
    198     delete idb;
    199     return main;
     192    return reinterpret_cast<WordCountFunctionType>(pxDriver.getPointerToMain());
    200193}
    201194
Note: See TracChangeset for help on using the changeset viewer.