Ignore:
Timestamp:
Jan 5, 2017, 3:54:40 PM (2 years ago)
Author:
nmedfort
Message:

Code clean up to enforce proper calling order of KernelBuilder? methods

File:
1 edited

Legend:

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

    r5245 r5246  
    233233    }
    234234    const unsigned bufferSegments = codegen::BufferSegments;
    235 
    236 
    237     unsigned encodingBits = UTF_16 ? 16 : 8;
     235    const unsigned encodingBits = UTF_16 ? 16 : 8;
    238236
    239237    mGrepType = grepType;
     
    241239    Type * const size_ty = iBuilder->getSizeTy();
    242240    Type * const int8PtrTy = iBuilder->getInt8PtrTy();
    243     Type * const inputType = PointerType::get(ArrayType::get(ArrayType::get(iBuilder->getBitBlockType(), (UTF_16 ? 16 : 8)), 1), addrSpace);
     241    Type * const inputType = PointerType::get(ArrayType::get(ArrayType::get(iBuilder->getBitBlockType(), encodingBits), 1), addrSpace);
    244242    Type * const resultTy = CountOnly ? size_ty : iBuilder->getVoidTy();
    245243
     
    304302    pablo_function_passes(&icgrepK);
    305303
    306 
    307 
    308304    ByteStream.setStreamSetBuffer(inputStream, fileSize);
    309305    BasisBits.allocateBuffer();
    310 
    311306
    312307    if (CountOnly) {
     
    353348            }
    354349        }
    355 
    356350        iBuilder->CreateRetVoid();
    357 
    358351    }
    359352
Note: See TracChangeset for help on using the changeset viewer.