Ignore:
Timestamp:
Jan 19, 2017, 2:41:02 PM (2 years ago)
Author:
nmedfort
Message:

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File:
1 edited

Legend:

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

    r5266 r5267  
    66#include "pipeline.h"
    77#include <toolchain.h>
    8 #include <IR_Gen/idisa_builder.h>
    9 #include <kernels/interface.h>
    108#include <kernels/kernel.h>
    11 #include <iostream>
     9#include <llvm/IR/Module.h>
    1210#include <unordered_map>
    1311
     
    8179    Type * const size_ty = iBuilder->getSizeTy();
    8280    Type * const voidTy = iBuilder->getVoidTy();
    83     Type * const voidPtrTy = iBuilder->getVoidPtrTy();
    84     Type * const int8PtrTy = iBuilder->getInt8PtrTy();
     81    PointerType * const voidPtrTy = iBuilder->getVoidPtrTy();
     82    PointerType * const int8PtrTy = iBuilder->getInt8PtrTy();
    8583
    8684    Function * const threadFunc = cast<Function>(m->getOrInsertFunction(name, voidTy, int8PtrTy, nullptr));
     
    185183    Module * m = iBuilder->getModule();
    186184   
    187     Type * const size_ty = iBuilder->getSizeTy();
    188     Type * const voidPtrTy = iBuilder->getVoidPtrTy();
    189     Type * const int8PtrTy = iBuilder->getInt8PtrTy();
     185    IntegerType * const size_ty = iBuilder->getSizeTy();
     186    PointerType * const voidPtrTy = iBuilder->getVoidPtrTy();
     187    PointerType * const int8PtrTy = iBuilder->getInt8PtrTy();
    190188   
    191189    for (auto k : kernels) k->createInstance();
     
    238236void generatePipelineParallel(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
    239237   
    240     Type * pthreadTy = iBuilder->getSizeTy();
    241     Type * const voidPtrTy = iBuilder->getVoidPtrTy();
    242     Type * const int8PtrTy = iBuilder->getInt8PtrTy();
    243    
    244     Type * const pthreadsTy = ArrayType::get(pthreadTy, kernels.size());
     238    IntegerType * pthreadTy = iBuilder->getSizeTy();
     239    PointerType * const voidPtrTy = iBuilder->getVoidPtrTy();
     240    PointerType * const int8PtrTy = iBuilder->getInt8PtrTy();
     241   
     242    ArrayType * const pthreadsTy = ArrayType::get(pthreadTy, kernels.size());
    245243   
    246244    for (auto k : kernels) k->createInstance();
Note: See TracChangeset for help on using the changeset viewer.