Ignore:
Timestamp:
Apr 11, 2017, 4:42:34 PM (2 years ago)
Author:
nmedfort
Message:

Work on the pipeline algorithms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5402 r5403  
    393393
    394394Value * CBuilder::CreatePThreadCreateCall(Value * thread, Value * attr, Function * start_routine, Value * arg) {
     395    Type * const voidPtrTy = getVoidPtrTy();
    395396    Function * pthreadCreateFunc = mMod->getFunction("pthread_create");
    396397    if (pthreadCreateFunc == nullptr) {
    397398        Type * pthreadTy = getSizeTy();
    398399        FunctionType * funVoidPtrVoidTy = FunctionType::get(getVoidTy(), {getVoidPtrTy()}, false);
    399         FunctionType * fty = FunctionType::get(getInt32Ty(), {pthreadTy->getPointerTo(), getVoidPtrTy(), funVoidPtrVoidTy->getPointerTo(), getVoidPtrTy()}, false);
     400        FunctionType * fty = FunctionType::get(getInt32Ty(), {pthreadTy->getPointerTo(), voidPtrTy, funVoidPtrVoidTy->getPointerTo(), voidPtrTy}, false);
    400401        pthreadCreateFunc = Function::Create(fty, Function::ExternalLinkage, "pthread_create", mMod);
    401402        pthreadCreateFunc->setCallingConv(CallingConv::C);
    402403    }
    403     return CreateCall(pthreadCreateFunc, {thread, attr, start_routine, CreatePointerCast(arg, getVoidPtrTy())});
     404    return CreateCall(pthreadCreateFunc, {thread, attr, start_routine, CreatePointerCast(arg, voidPtrTy)});
    404405}
    405406
Note: See TracChangeset for help on using the changeset viewer.