Ignore:
Timestamp:
Dec 19, 2016, 2:39:35 PM (3 years ago)
Author:
nmedfort
Message:

Multi-threading support for PabloAST / PabloCompiler?. Requires unique LLVM Context / Module for each thread.

File:
1 edited

Legend:

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

    r5217 r5230  
    1313#include <kernels/instance.h>
    1414
    15 #include <pablo/prototype.h>
    1615#include <pablo/pablo_compiler.h>
    1716#include <pablo/analysis/pabloverifier.hpp>
     
    638637    delete sorting;
    639638
    640     releaseSlabAllocatorMemory();
    641 
    642639    generateGatherKernel(mGatherKernel, endpoints, 64);
    643640}
     
    648645
    649646    Type * inputType = PointerType::get(ArrayType::get(StructType::get(mMod->getContext(), std::vector<Type *>({ArrayType::get(mBitBlockType, 8)})), 1), 0);
    650     Function * const main = cast<Function>(mMod->getOrInsertFunction("Main", Type::getVoidTy(mMod->getContext()), inputType, intType, nullptr));
     647    Function * const main = cast<Function>(mMod->getOrInsertFunction("Main", iBuilder->getVoidTy(), inputType, intType, nullptr));
    651648    main->setCallingConv(CallingConv::C);
    652649    Function::arg_iterator args = main->arg_begin();
Note: See TracChangeset for help on using the changeset viewer.