Ignore:
Timestamp:
Apr 23, 2017, 12:44:04 PM (2 years ago)
Author:
nmedfort
Message:

Bug fixes for 32-bit systems

File:
1 edited

Legend:

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

    r5418 r5419  
    9797    llvm::Value * CreateFileSourceMMap(llvm::Value * fd, llvm::Value * size);
    9898
    99     enum MAdviceFlags {
    100         MMAP_NORMAL
    101         , MMAP_RANDOM
    102         , MMAP_SEQUENTIAL
    103         , MMAP_WILLNEED
    104         , MMAP_DONTNEED
     99    enum Advice {
     100        ADVICE_NORMAL
     101        , ADVICE_RANDOM
     102        , ADVICE_SEQUENTIAL
     103        , ADVICE_WILLNEED
     104        , ADVICE_DONTNEED
    105105    };
    106106
    107     llvm::Value * CreateMAdvise(llvm::Value * addr, llvm::Value * length, MAdviceFlags advice) {
    108         return CreateMAdvise(addr, length, { advice });
    109     }
    110 
    111     llvm::Value * CreateMAdvise(llvm::Value * addr, llvm::Value * length, std::initializer_list<MAdviceFlags> advice);
     107    llvm::Value * CreateMAdvise(llvm::Value * addr, llvm::Value * length, Advice advice);
    112108
    113109    llvm::Value * CreateMMap(llvm::Value * const addr, llvm::Value * size, llvm::Value * const prot, llvm::Value * const flags, llvm::Value * const fd, llvm::Value * const offset);
Note: See TracChangeset for help on using the changeset viewer.