Ignore:
Timestamp:
May 7, 2017, 4:34:48 PM (2 years ago)
Author:
nmedfort
Message:

Continued refactoring work. PabloKernel? now abstract base type with a 'generatePabloMethod' hook to generate Pablo code.

File:
1 edited

Legend:

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

    r5435 r5436  
    66#include "idisa_target.h"
    77#include <toolchain/toolchain.h>
     8#include <IR_Gen/idisa_sse_builder.h>
    89#include <IR_Gen/idisa_avx_builder.h>
    9 #include <IR_Gen/idisa_sse_builder.h>
    1010#include <IR_Gen/idisa_i64_builder.h>
    1111#include <IR_Gen/idisa_nvptx_builder.h>
     
    3535    if (codegen::BlockSize >= 256) {
    3636        if (hasAVX2) {
    37             return new KernelBuilderImpl<IDISA_AVX2_Builder>(module, registerWidth, codegen::BlockSize, codegen::BlockSize);
     37            return new KernelBuilderImpl<IDISA_AVX2_Builder>(module->getContext(), registerWidth, codegen::BlockSize, codegen::BlockSize);
    3838        }
    3939    } else if (codegen::BlockSize == 64) {
    40         return new KernelBuilderImpl<IDISA_I64_Builder>(module, registerWidth, codegen::BlockSize, codegen::BlockSize);
     40        return new KernelBuilderImpl<IDISA_I64_Builder>(module->getContext(), registerWidth, codegen::BlockSize, codegen::BlockSize);
    4141    }
    42     return new KernelBuilderImpl<IDISA_SSE2_Builder>(module, registerWidth, codegen::BlockSize, codegen::BlockSize);
     42    return new KernelBuilderImpl<IDISA_SSE2_Builder>(module->getContext(), registerWidth, codegen::BlockSize, codegen::BlockSize);
    4343}
    4444
    4545KernelBuilder * GetIDISA_GPU_Builder(llvm::Module * const module) {
    46     return new KernelBuilderImpl<IDISA_NVPTX20_Builder>(module, 64, 64, 64);
     46    return new KernelBuilderImpl<IDISA_NVPTX20_Builder>(module->getContext(), 64, 64, 64);
    4747}
    4848
Note: See TracChangeset for help on using the changeset viewer.