Ignore:
Timestamp:
Jun 1, 2017, 1:00:08 PM (2 years ago)
Author:
nmedfort
Message:

Bug fix for memory check and issues found parsing internal 'files'. Added backtrace option from execinfo.h

File:
1 edited

Legend:

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

    r5464 r5489  
    1919namespace IDISA {
    2020   
    21 KernelBuilder * GetIDISA_Builder(llvm::LLVMContext & C, const std::string & targetTriple) {
    22     unsigned registerWidth = 0;
    23     llvm::Triple T(targetTriple);
    24     if (T.isArch64Bit()) {
    25         registerWidth = 64;
    26     } else if (T.isArch32Bit()) {
    27         registerWidth = 32;
    28     } else if (T.isArch16Bit()) {
    29         registerWidth = 16;
    30     }
     21KernelBuilder * GetIDISA_Builder(llvm::LLVMContext & C) {
    3122    const bool hasAVX2 = AVX2_available();
    3223    if (LLVM_LIKELY(codegen::BlockSize == 0)) {  // No BlockSize override: use processor SIMD width
     
    3526    if (codegen::BlockSize >= 256) {
    3627        if (hasAVX2) {
    37             return new KernelBuilderImpl<IDISA_AVX2_Builder>(C, registerWidth, codegen::BlockSize, codegen::BlockSize);
     28            return new KernelBuilderImpl<IDISA_AVX2_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    3829        }
    3930    } else if (codegen::BlockSize == 64) {
    40         return new KernelBuilderImpl<IDISA_I64_Builder>(C, registerWidth, codegen::BlockSize, codegen::BlockSize);
     31        return new KernelBuilderImpl<IDISA_I64_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    4132    }
    42     return new KernelBuilderImpl<IDISA_SSE2_Builder>(C, registerWidth, codegen::BlockSize, codegen::BlockSize);
     33    return new KernelBuilderImpl<IDISA_SSE2_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    4334}
    4435
    4536KernelBuilder * GetIDISA_GPU_Builder(llvm::LLVMContext & C) {
    46     return new KernelBuilderImpl<IDISA_NVPTX20_Builder>(C, 64, 64, 64*64);
     37    return new KernelBuilderImpl<IDISA_NVPTX20_Builder>(C, 64, 64 * 64);
    4738}
    4839
Note: See TracChangeset for help on using the changeset viewer.