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/base64.cpp

    r5418 r5425  
    1111#include <llvm/IR/Verifier.h>
    1212#include <llvm/Support/CommandLine.h>
    13 #include <kernels/toolchain.h>
     13#include <toolchain/toolchain.h>
    1414#include <IR_Gen/idisa_builder.h>
    1515#include <IR_Gen/idisa_target.h>
    16 #include <kernels/pipeline.h>
    1716#include <kernels/mmap_kernel.h>
    1817#include <kernels/streamset.h>
     
    4039void base64PipelineGen(ParabixDriver & pxDriver) {
    4140       
    42     IDISA::IDISA_Builder * iBuilder = pxDriver.getIDISA_Builder();
     41    auto iBuilder = pxDriver.getIDISA_Builder();
    4342    Module * mod = iBuilder->getModule();
    44     Type * mBitBlockType = iBuilder->getBitBlockType();
     43    Type * bitBlockType = iBuilder->getBitBlockType();
    4544
    46     Type * const voidTy = Type::getVoidTy(mod->getContext());
     45    Type * const voidTy = iBuilder->getVoidTy();
    4746    Type * const int32Ty = iBuilder->getInt32Ty();
    48     Type * const outputType = PointerType::get(ArrayType::get(ArrayType::get(mBitBlockType, 8), 1), 0);
     47    Type * const outputType = PointerType::get(ArrayType::get(ArrayType::get(bitBlockType, 8), 1), 0);
    4948   
    5049   
     
    103102
    104103base64FunctionType base64CodeGen(void) {
    105     LLVMContext TheContext;                           
    106     Module * M = new Module("base64", TheContext);
    107     IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    108     ParabixDriver pxDriver(idb);
    109    
     104    ParabixDriver pxDriver("base64");
    110105    base64PipelineGen(pxDriver);
    111     base64FunctionType main = reinterpret_cast<base64FunctionType>(pxDriver.getPointerToMain());
    112    
    113     delete idb;
    114     return main;
     106    return reinterpret_cast<base64FunctionType>(pxDriver.getPointerToMain());
    115107}
    116108
Note: See TracChangeset for help on using the changeset viewer.