Changeset 3848


Ignore:
Timestamp:
May 25, 2014, 6:01:50 AM (5 years ago)
Author:
cameron
Message:

Fixes

Location:
parabix-LLVM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • parabix-LLVM/MachineValueType.h.pytemplate

    r3845 r3848  
    6161      LAST_FP_VECTOR_VALUETYPE = ${last_float_vector_type},
    6262
    63       FIRST_VECTOR_VALUETYPE = v2i1,
     63      FIRST_VECTOR_VALUETYPE = ${first_integer_vector_type},
    6464      LAST_VECTOR_VALUETYPE  = ${last_float_vector_type},
    6565
  • parabix-LLVM/mkValueTypes.py

    r3847 r3848  
    5050            VectorSizeMap[fw * fieldcount].append(vType)
    5151            VectorFieldSizeMap[fw].append(vType)
    52     VTmap['first_integer_vector_type'] = "v%si%s" % (fws[0], fws[0])
     52    VTmap['first_integer_vector_type'] = "v%si%s" % (minvecwidth/fws[0], fws[0])
    5353    VTmap['last_integer_vector_type'] = vType
    5454    VTmap['float_vector_type_lines'] = ''
     
    8484    for s in sorted(VectorSizeMap.keys()):
    8585        tests = ["SimpleTy == MVT::%s" % t for t in VectorSizeMap[s]]
    86         fns += Template(isXXXBitVectorTemplate).substitute(width = repr(s), typetest = " ||\n\t\t".join(tests))
     86        if tests != []: testexpr = " ||\n\t\t".join(tests)
     87        else: testexpr = 0
     88        fns += Template(isXXXBitVectorTemplate).substitute(width = repr(s), typetest = testexpr)
    8789    return fns
    8890
Note: See TracChangeset for help on using the changeset viewer.