1 /*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
3 /* Part of the LLVM Project, under the Apache License v2.0 with LLVM */
5 /* See https://llvm.org/LICENSE.txt for license information. */
6 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
8 /*===----------------------------------------------------------------------===*/
10 /* This file enumerates variables from the LLVM configuration so that they
11 can be in exported headers and won't override package specific directives.
12 This is a C header that can be included in the llvm-c headers. */
17 /* Define if LLVM_ENABLE_DUMP is enabled */
18 #cmakedefine LLVM_ENABLE_DUMP
20 /* Define if we link Polly to the tools */
21 #cmakedefine LINK_POLLY_INTO_TOOLS
23 /* Target triple LLVM will generate code for by default */
24 #cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}"
26 /* Define if threads enabled */
27 #cmakedefine01 LLVM_ENABLE_THREADS
29 /* Has gcc/MSVC atomic intrinsics */
30 #cmakedefine01 LLVM_HAS_ATOMICS
32 /* Host triple LLVM will be executed on */
33 #cmakedefine LLVM_HOST_TRIPLE "${LLVM_HOST_TRIPLE}"
35 /* LLVM architecture name for the native architecture, if available */
36 #cmakedefine LLVM_NATIVE_ARCH ${LLVM_NATIVE_ARCH}
38 /* LLVM name for the native AsmParser init function, if available */
39 #cmakedefine LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser
41 /* LLVM name for the native AsmPrinter init function, if available */
42 #cmakedefine LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter
44 /* LLVM name for the native Disassembler init function, if available */
45 #cmakedefine LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler
47 /* LLVM name for the native Target init function, if available */
48 #cmakedefine LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target
50 /* LLVM name for the native TargetInfo init function, if available */
51 #cmakedefine LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo
53 /* LLVM name for the native target MC init function, if available */
54 #cmakedefine LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC
56 /* Define if this is Unixish platform */
57 #cmakedefine LLVM_ON_UNIX ${LLVM_ON_UNIX}
59 /* Define if we have the Intel JIT API runtime support library */
60 #cmakedefine01 LLVM_USE_INTEL_JITEVENTS
62 /* Define if we have the oprofile JIT-support library */
63 #cmakedefine01 LLVM_USE_OPROFILE
65 /* Define if we have the perf JIT-support library */
66 #cmakedefine01 LLVM_USE_PERF
68 /* Major version of the LLVM API */
69 #define LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
71 /* Minor version of the LLVM API */
72 #define LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
74 /* Patch version of the LLVM API */
75 #define LLVM_VERSION_PATCH ${LLVM_VERSION_PATCH}
77 /* LLVM version string */
78 #define LLVM_VERSION_STRING "${PACKAGE_VERSION}"
80 /* Whether LLVM records statistics for use with GetStatistics(),
81 * PrintStatistics() or PrintStatisticsJSON()
83 #cmakedefine01 LLVM_FORCE_ENABLE_STATS