Ignore:
Timestamp:
Dec 19, 2016, 2:39:35 PM (2 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/wc.cpp

    r5227 r5230  
    2525#include <re/re_cc.h>
    2626#include <cc/cc_compiler.h>
    27 #include <pablo/prototype.h>
    2827#include <pablo/pablo_kernel.h>
    2928#include <IDISA/idisa_builder.h>
     
    142141    SingleBlockBuffer BasisBits(iBuilder, iBuilder->getStreamSetTy(8, 1));
    143142
    144     s2pKernel  s2pk(iBuilder);
     143    S2PKernel  s2pk(iBuilder);
    145144    std::unique_ptr<Module> s2pM = s2pk.createKernelModule({&ByteStream}, {&BasisBits});
    146145   
     
    156155    Constant * record_counts_routine;
    157156    Type * const size_ty = iBuilder->getSizeTy();
    158     Type * const voidTy = Type::getVoidTy(mMod->getContext());
     157    Type * const voidTy = iBuilder->getVoidTy();
    159158    record_counts_routine = mMod->getOrInsertFunction("record_counts", voidTy, size_ty, size_ty, size_ty, size_ty, size_ty, nullptr);
    160159    Type * const inputType = PointerType::get(ArrayType::get(ArrayType::get(mBitBlockType, 8), 1), 0);
Note: See TracChangeset for help on using the changeset viewer.