Ignore:
Timestamp:
Jan 20, 2018, 10:17:47 PM (18 months ago)
Author:
cameron
Message:

LLVM_VERSION_CODE macro, CC-multiplex option, performance bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/toolchain.h

    r5793 r5841  
    1414
    1515// #defines for comparison with LLVM_VERSION_INTEGER
    16 #define LLVM_3_6_0 30600
    17 #define LLVM_3_7_0 30700
    18 #define LLVM_3_8_0 30800
    19 #define LLVM_3_9_0 30900
    20 #define LLVM_4_0_0 40000
    21 #define LLVM_5_0_0 50000
    22 #define LLVM_6_0_0 60000
     16#define LLVM_VERSION_CODE(major, minor, point) ((10000 * major) + (100 * minor) + point)
    2317
    2418// From LLVM 4.0.0 the clEnumValEnd sentinel is no longer needed.
    2519// We define a macro to adapt to the CommandLine syntax based on LLVM version.
    26 #if LLVM_VERSION_INTEGER < LLVM_4_0_0
     20#if LLVM_VERSION_INTEGER < LLVM_VERSION_CODE(4, 0, 0)
    2721#define CL_ENUM_VAL_SENTINEL , clEnumValEnd
    2822#else
     
    6054extern std::string ShowUnoptimizedIROption;
    6155extern std::string ShowIROption;
    62 #if LLVM_VERSION_INTEGER >= LLVM_3_7_0
     56#if LLVM_VERSION_INTEGER >= LLVM_VERSION_CODE(3, 7, 0)
    6357extern std::string ShowASMOption;
    6458#endif
Note: See TracChangeset for help on using the changeset viewer.