1 /* $FreeBSD$ */ 2 /*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ 3 /* */ 4 /* Part of the LLVM Project, under the Apache License v2.0 with LLVM */ 5 /* Exceptions. */ 6 /* See https://llvm.org/LICENSE.txt for license information. */ 7 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 8 /* */ 9 /*===----------------------------------------------------------------------===*/ 10 11 /* This file enumerates variables from the LLVM configuration so that they 12 can be in exported headers and won't override package specific directives. 13 This is a C header that can be included in the llvm-c headers. */ 14 15 #ifndef LLVM_CONFIG_H 16 #define LLVM_CONFIG_H 17 18 /* Define if LLVM_ENABLE_DUMP is enabled */ 19 /* #undef LLVM_ENABLE_DUMP */ 20 21 /* Target triple LLVM will generate code for by default */ 22 /* Doesn't use `cmakedefine` because it is allowed to be empty. */ 23 /* #undef LLVM_DEFAULT_TARGET_TRIPLE */ 24 25 /* Define if threads enabled */ 26 #define LLVM_ENABLE_THREADS 1 27 28 /* Has gcc/MSVC atomic intrinsics */ 29 #define LLVM_HAS_ATOMICS 1 30 31 /* Host triple LLVM will be executed on */ 32 /* #undef LLVM_HOST_TRIPLE */ 33 34 /* LLVM architecture name for the native architecture, if available */ 35 /* #undef LLVM_NATIVE_ARCH */ 36 37 /* LLVM name for the native AsmParser init function, if available */ 38 /* #undef LLVM_NATIVE_ASMPARSER */ 39 40 /* LLVM name for the native AsmPrinter init function, if available */ 41 /* #undef LLVM_NATIVE_ASMPRINTER */ 42 43 /* LLVM name for the native Disassembler init function, if available */ 44 /* #undef LLVM_NATIVE_DISASSEMBLER */ 45 46 /* LLVM name for the native Target init function, if available */ 47 /* #undef LLVM_NATIVE_TARGET */ 48 49 /* LLVM name for the native TargetInfo init function, if available */ 50 /* #undef LLVM_NATIVE_TARGETINFO */ 51 52 /* LLVM name for the native target MC init function, if available */ 53 /* #undef LLVM_NATIVE_TARGETMC */ 54 55 /* LLVM name for the native target MCA init function, if available */ 56 /* #undef LLVM_NATIVE_TARGETMCA */ 57 58 /* Define if this is Unixish platform */ 59 #define LLVM_ON_UNIX 1 60 61 /* Define if we have the Intel JIT API runtime support library */ 62 #define LLVM_USE_INTEL_JITEVENTS 0 63 64 /* Define if we have the oprofile JIT-support library */ 65 #define LLVM_USE_OPROFILE 0 66 67 /* Define if we have the perf JIT-support library */ 68 #define LLVM_USE_PERF 0 69 70 /* Major version of the LLVM API */ 71 #define LLVM_VERSION_MAJOR 15 72 73 /* Minor version of the LLVM API */ 74 #define LLVM_VERSION_MINOR 0 75 76 /* Patch version of the LLVM API */ 77 #define LLVM_VERSION_PATCH 7 78 79 /* LLVM version string */ 80 #define LLVM_VERSION_STRING "15.0.7" 81 82 /* Whether LLVM records statistics for use with GetStatistics(), 83 * PrintStatistics() or PrintStatisticsJSON() 84 */ 85 #define LLVM_FORCE_ENABLE_STATS 0 86 87 /* Define if we have z3 and want to build it */ 88 /* #undef LLVM_WITH_Z3 */ 89 90 /* Define if we have curl and want to use it */ 91 /* #undef LLVM_ENABLE_CURL */ 92 93 /* Define if we have cpp-httplib and want to use it */ 94 /* #undef LLVM_ENABLE_HTTPLIB */ 95 96 /* Define if zlib compression is available */ 97 #define LLVM_ENABLE_ZLIB 1 98 99 /* Define if zstd compression is available */ 100 #define LLVM_ENABLE_ZSTD 0 101 102 /* Define if LLVM was built with a dependency to the libtensorflow dynamic library */ 103 /* #undef LLVM_HAVE_TF_API */ 104 105 /* Define to 1 if you have the <sysexits.h> header file. */ 106 #define HAVE_SYSEXITS_H 1 107 108 /* Define if the xar_open() function is supported on this platform. */ 109 #if defined(__APPLE__) 110 #define LLVM_HAVE_LIBXAR 1 111 #endif 112 113 /* Define if building libLLVM shared library */ 114 /* #undef LLVM_BUILD_LLVM_DYLIB */ 115 116 /* Define if building LLVM with BUILD_SHARED_LIBS */ 117 /* #undef LLVM_BUILD_SHARED_LIBS */ 118 119 /* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */ 120 /* #undef LLVM_FORCE_USE_OLD_TOOLCHAIN */ 121 122 /* Define if llvm_unreachable should be optimized with undefined behavior 123 * in non assert builds */ 124 #define LLVM_UNREACHABLE_OPTIMIZE 1 125 126 /* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */ 127 #define LLVM_ENABLE_DIA_SDK 0 128 129 #endif 130