Ignore:
Timestamp:
Mar 31, 2017, 3:05:41 PM (2 years ago)
Author:
nmedfort
Message:

Replaced stdin input stream with mmap'ed buffer and aligned each read call to the page size.

File:
1 edited

Legend:

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

    r5368 r5386  
    1919   
    2020public:
    21    
     21
    2222    CBuilder(llvm::Module * m, const unsigned GeneralRegisterWidthInBits, const bool SupportsIndirectBr, const unsigned CacheLineAlignmentInBytes = 64);
    2323   
     
    5151        return instr;
    5252    }
    53    
     53
    5454    // stdio.h functions
    5555    //
     
    7575    //  Create a call to:  int close(int filedes);
    7676    llvm::Value * CreateCloseCall(llvm::Value * fildes);
     77
     78
     79    llvm::Value * CreateAnonymousMMap(llvm::Value * size);
     80
     81    llvm::Value * CreateFileSourceMMap(llvm::Value * fd, llvm::Value * size);
     82
     83    llvm::Value * CreateMRemap(llvm::Value * addr, llvm::Value * oldSize, llvm::Value * newSize, const bool mayMove = true);
     84
     85    llvm::Value * CreateMUnmap(llvm::Value * addr, llvm::Value * size);
     86
     87
    7788
    7889    //  Posix thread (pthread.h) functions.
Note: See TracChangeset for help on using the changeset viewer.