Ignore:
Timestamp:
Nov 18, 2016, 1:46:55 PM (2 years ago)
Author:
nmedfort
Message:

Merged PabloFunction? and PabloKernel? classes. Updated projects where necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/idisa_builder.cpp

    r5204 r5217  
    2525}
    2626
    27 std::string IDISA_Builder::getBitBlockTypeName() {
    28     if (mBitBlockType->isIntegerTy()) return "i" + std::to_string(mBitBlockWidth);
    29     assert(mBitBlockType->isVectorTy() || "BitBlockType is neither integer nor vector");
    30     unsigned fw = mBitBlockType->getScalarSizeInBits();
    31     return "v" + std::to_string(mBitBlockWidth/fw) + "i" + std::to_string(fw);
     27std::string IDISA_Builder::getBitBlockTypeName() const {
     28    const auto type = getBitBlockType();
     29    if (type->isIntegerTy()) {
     30        return "i" + std::to_string(getBitBlockWidth());
     31    }
     32    assert("BitBlockType is neither integer nor vector" && type->isVectorTy());
     33    const auto fw = type->getScalarSizeInBits();
     34    return "v" + std::to_string(getBitBlockWidth() / fw) + "i" + std::to_string(fw);
    3235}
    3336
Note: See TracChangeset for help on using the changeset viewer.