| chigraph master Systems programming language written for beginners in LLVM

LLVMVersion.hpp
Go to the documentation of this file.
1
3 #pragma once
4
5 #ifndef CHI_LLVM_VERSION_HPP
6 #define CHI_LLVM_VERSION_HPP
7
8 #include <llvm/Config/llvm-config.h>
9
10 #define LLVM_VERSION_LESS_EQUAL(major, minor) \
11 ((LLVM_VERSION_MAJOR == major && LLVM_VERSION_MINOR <= minor) || (LLVM_VERSION_MAJOR < major))
12 #define LLVM_VERSION_AT_LEAST(major, minor) \
13 ((LLVM_VERSION_MAJOR == major && LLVM_VERSION_MINOR >= minor) || (LLVM_VERSION_MAJOR > major))
14
15 #endif // CHI_LLVM_VERSION_HPP