Ignore:
Timestamp:
Jan 31, 2017, 4:08:11 PM (2 years ago)
Author:
nmedfort
Message:

Removed 'function' and 'self' parameters from generateXXXMethod() functions.

File:
1 edited

Legend:

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

    r5267 r5292  
    122122}
    123123
    124 Function * pipeline(Module * mMod, IDISA::IDISA_Builder * iBuilder) {
     124Function * pipeline(Module * m, IDISA::IDISA_Builder * iBuilder) {
    125125    Type * mBitBlockType = iBuilder->getBitBlockType();
    126126    Constant * record_counts_routine;
    127127    Type * const size_ty = iBuilder->getSizeTy();
    128128    Type * const voidTy = iBuilder->getVoidTy();
    129     record_counts_routine = mMod->getOrInsertFunction("record_counts", voidTy, size_ty, size_ty, size_ty, size_ty, size_ty, nullptr);
     129    record_counts_routine = m->getOrInsertFunction("record_counts", voidTy, size_ty, size_ty, size_ty, size_ty, size_ty, nullptr);
    130130    Type * const inputType = PointerType::get(ArrayType::get(ArrayType::get(mBitBlockType, 8), 1), 0);
    131131   
    132     Function * const main = cast<Function>(mMod->getOrInsertFunction("Main", voidTy, inputType, size_ty, size_ty, nullptr));
     132    Function * const main = cast<Function>(m->getOrInsertFunction("Main", voidTy, inputType, size_ty, size_ty, nullptr));
    133133    main->setCallingConv(CallingConv::C);
    134134    Function::arg_iterator args = main->arg_begin();
     
    158158    std::unique_ptr<Module> wcM = wck.createKernelModule({&BasisBits}, {});
    159159   
    160     mmapK.addKernelDeclarations(mMod);
    161     s2pk.addKernelDeclarations(mMod);
    162     wck.addKernelDeclarations(mMod);
    163    
    164     iBuilder->SetInsertPoint(BasicBlock::Create(mMod->getContext(), "entry", main,0));
     160    mmapK.addKernelDeclarations(m);
     161    s2pk.addKernelDeclarations(m);
     162    wck.addKernelDeclarations(m);
     163   
     164    iBuilder->SetInsertPoint(BasicBlock::Create(m->getContext(), "entry", main,0));
    165165
    166166    ByteStream.setStreamSetBuffer(inputStream, fileSize);
     
    177177    iBuilder->CreateRetVoid();
    178178   
    179     Linker L(*mMod);
     179    Linker L(*m);
    180180    L.linkInModule(std::move(mmapM));
    181181    L.linkInModule(std::move(s2pM));
Note: See TracChangeset for help on using the changeset viewer.