Add ODIN_LLVM_MINIMUM_VERSION_12

This commit is contained in:
gingerBill
2021-10-25 16:05:22 +01:00
parent 7ac156755b
commit 7d715fe113
3 changed files with 16 additions and 8 deletions
+12
View File
@@ -30,6 +30,18 @@
#include <llvm-c/Transforms/Vectorize.h>
#endif
#if LLVM_VERSION_MAJOR < 11
#error "LLVM Version 11 is the minimum required"
#elif LLVM_VERSION_MAJOR == 12 && !(LLVM_VERSION_MINOR > 0 || LLVM_VERSION_PATCH > 0)
#error "If LLVM Version 12.x.y is wanted, at least LLVM 12.0.1 is required"
#endif
#if LLVM_VERSION_MAJOR > 12 || (LLVM_VERSION_MAJOR == 12 && LLVM_VERSION_MINOR >= 0 && LLVM_VERSION_PATCH > 0)
#define ODIN_LLVM_MINIMUM_VERSION_12 1
#else
#define ODIN_LLVM_MINIMUM_VERSION_12 0
#endif
struct lbProcedure;
struct lbValue {