Changeset 5675 for icGREP/icgrep-devel


Ignore:
Timestamp:
Oct 7, 2017, 3:41:36 PM (20 months ago)
Author:
cameron
Message:

getIntAddrTy()

Location:
icGREP/icgrep-devel/icgrep/IR_Gen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5633 r5675  
    558558    addr = CreatePointerCast(addr, voidPtrTy);
    559559    return CreateCall(munmapFunc, {addr, len});
     560}
     561
     562IntegerType * CBuilder::getIntAddrTy() const {
     563    DataLayout DL(getModule());
     564    return DL.getIntPtrType(getContext());
    560565}
    561566
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.h

    r5630 r5675  
    175175    }
    176176   
     177    llvm::IntegerType * getIntAddrTy() const;
     178   
    177179    llvm::PointerType * getVoidPtrTy() const;
    178 
     180   
    179181    llvm::PointerType * getFILEptrTy();
    180182   
Note: See TracChangeset for help on using the changeset viewer.