Ignore:
Timestamp:
Jan 18, 2018, 1:34:55 PM (17 months ago)
Author:
cameron
Message:

Pablo packh/packl and transposition with -enable-pablo-s2p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.cpp

    r5836 r5837  
    228228PackH * PabloBlock::createPackH(Integer * fieldWidth, PabloAST * value, const String * const name) {
    229229    assert (fieldWidth && value);
    230     Type * const type = VectorType::get(IntegerType::get(value->getType()->getContext(), fieldWidth->value()), 0);
     230    Type * const type = VectorType::get(IntegerType::get(value->getType()->getContext(), fieldWidth->value()/2), 0);
    231231    return insertAtInsertionPoint(new (mAllocator) PackH(fieldWidth, value, name, type, mAllocator));
    232232}
     
    234234PackL * PabloBlock::createPackL(Integer * fieldWidth, PabloAST * value, const String * const name) {
    235235    assert (fieldWidth && value);
    236     Type * const type = VectorType::get(IntegerType::get(value->getType()->getContext(), fieldWidth->value()), 0);
     236    Type * const type = VectorType::get(IntegerType::get(value->getType()->getContext(), fieldWidth->value()/2), 0);
    237237    return insertAtInsertionPoint(new (mAllocator) PackL(fieldWidth, value, name, type, mAllocator));
    238238}
Note: See TracChangeset for help on using the changeset viewer.