Ignore:
Timestamp:
Dec 19, 2016, 3:37:57 PM (3 years ago)
Author:
cameron
Message:

Use unsigned in preference to uint64_t for element counts and field widths

Location:
icGREP/icgrep-devel/icgrep
Files:
4 edited

Legend:

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

    r5230 r5231  
    575575}
    576576
    577 Type * IDISA_Builder::getStreamTy(const uint64_t FieldWidth) {
     577Type * IDISA_Builder::getStreamTy(const unsigned FieldWidth) {
    578578    const auto f = mStreamTypes.find(FieldWidth);
    579579    if (LLVM_LIKELY(f != mStreamTypes.end())) {
  • icGREP/icgrep-devel/icgrep/IDISA/idisa_builder.h

    r5230 r5231  
    171171    }
    172172
    173     inline Type * getStreamSetTy(const uint64_t NumElements = 1, const uint64_t FieldWidth = 1) {
     173    inline Type * getStreamSetTy(const unsigned NumElements = 1, const unsigned FieldWidth = 1) {
    174174        return ArrayType::get(getStreamTy(FieldWidth), NumElements);
    175175    }
    176176   
    177     Type * getStreamTy(const uint64_t FieldWidth = 1);
     177    Type * getStreamTy(const unsigned FieldWidth = 1);
    178178
    179179    inline llvm::AllocaInst * CreateCacheAlignedAlloca(llvm::Type * Ty, llvm::Value * ArraySize = nullptr) {
  • icGREP/icgrep-devel/icgrep/pablo/builder.hpp

    r5230 r5231  
    191191    }
    192192
    193     Type * getStreamTy(const uint64_t FieldWidth = 1) {
     193    Type * getStreamTy(const unsigned FieldWidth = 1) {
    194194        return mPb->getStreamTy(FieldWidth);
    195195    }
    196196   
    197     Type * getStreamSetTy(const uint64_t NumElements = 1, const uint64_t FieldWidth = 1) {
     197    Type * getStreamSetTy(const unsigned NumElements = 1, const unsigned FieldWidth = 1) {
    198198        return mPb->getStreamSetTy(NumElements, FieldWidth);
    199199    }
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.h

    r5230 r5231  
    258258    While * createWhile(PabloAST * condition, PabloBlock * body);
    259259
    260     Type * getStreamTy(const uint64_t FieldWidth = 1) {
     260    Type * getStreamTy(const unsigned FieldWidth = 1) {
    261261        return mParent->getStreamTy(FieldWidth);
    262262    }
    263263   
    264     Type * getStreamSetTy(const uint64_t NumElements = 1, const uint64_t FieldWidth = 1) {
     264    Type * getStreamSetTy(const unsigned NumElements = 1, const unsigned FieldWidth = 1) {
    265265        return mParent->getStreamSetTy(NumElements, FieldWidth);
    266266    }
Note: See TracChangeset for help on using the changeset viewer.