Path: blob/main/lib/clang/include/llvm/Config/llvm-config.h
35231 views
/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/1/* */2/* Part of the LLVM Project, under the Apache License v2.0 with LLVM */3/* Exceptions. */4/* See https://llvm.org/LICENSE.txt for license information. */5/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */6/* */7/*===----------------------------------------------------------------------===*/89/* This file enumerates variables from the LLVM configuration so that they10can be in exported headers and won't override package specific directives.11This is a C header that can be included in the llvm-c headers. */1213#ifndef LLVM_CONFIG_H14#define LLVM_CONFIG_H1516/* Define if LLVM_ENABLE_DUMP is enabled */17/* #undef LLVM_ENABLE_DUMP */1819/* Target triple LLVM will generate code for by default */20/* Doesn't use `cmakedefine` because it is allowed to be empty. */21/* #undef LLVM_DEFAULT_TARGET_TRIPLE */2223/* Define if threads enabled */24#define LLVM_ENABLE_THREADS 12526/* Has gcc/MSVC atomic intrinsics */27#define LLVM_HAS_ATOMICS 12829/* Host triple LLVM will be executed on */30/* #undef LLVM_HOST_TRIPLE */3132/* LLVM architecture name for the native architecture, if available */33/* #undef LLVM_NATIVE_ARCH */3435/* LLVM name for the native AsmParser init function, if available */36/* #undef LLVM_NATIVE_ASMPARSER */3738/* LLVM name for the native AsmPrinter init function, if available */39/* #undef LLVM_NATIVE_ASMPRINTER */4041/* LLVM name for the native Disassembler init function, if available */42/* #undef LLVM_NATIVE_DISASSEMBLER */4344/* LLVM name for the native Target init function, if available */45/* #undef LLVM_NATIVE_TARGET */4647/* LLVM name for the native TargetInfo init function, if available */48/* #undef LLVM_NATIVE_TARGETINFO */4950/* LLVM name for the native target MC init function, if available */51/* #undef LLVM_NATIVE_TARGETMC */5253/* LLVM name for the native target MCA init function, if available */54/* #undef LLVM_NATIVE_TARGETMCA */5556/* Define if the AArch64 target is built in */57#ifdef LLVM_TARGET_ENABLE_AARCH6458#define LLVM_HAS_AARCH64_TARGET 159#else60#define LLVM_HAS_AARCH64_TARGET 061#endif6263/* Define if the AMDGPU target is built in */64#define LLVM_HAS_AMDGPU_TARGET 06566/* Define if the ARC target is built in */67#define LLVM_HAS_ARC_TARGET 06869/* Define if the ARM target is built in */70#ifdef LLVM_TARGET_ENABLE_ARM71#define LLVM_HAS_ARM_TARGET 172#else73#define LLVM_HAS_ARM_TARGET 074#endif7576/* Define if the AVR target is built in */77#define LLVM_HAS_AVR_TARGET 07879/* Define if the BPF target is built in */80#ifdef LLVM_TARGET_ENABLE_BPF81#define LLVM_HAS_BPF_TARGET 182#else83#define LLVM_HAS_BPF_TARGET 084#endif8586/* Define if the CSKY target is built in */87#define LLVM_HAS_CSKY_TARGET 08889/* Define if the DirectX target is built in */90#define LLVM_HAS_DIRECTX_TARGET 09192/* Define if the Hexagon target is built in */93#define LLVM_HAS_HEXAGON_TARGET 09495/* Define if the Lanai target is built in */96#define LLVM_HAS_LANAI_TARGET 09798/* Define if the LoongArch target is built in */99#define LLVM_HAS_LOONGARCH_TARGET 0100101/* Define if the M68k target is built in */102#define LLVM_HAS_M68K_TARGET 0103104/* Define if the Mips target is built in */105#ifdef LLVM_TARGET_ENABLE_MIPS106#define LLVM_HAS_MIPS_TARGET 1107#else108#define LLVM_HAS_MIPS_TARGET 0109#endif110111/* Define if the MSP430 target is built in */112#define LLVM_HAS_MSP430_TARGET 0113114/* Define if the NVPTX target is built in */115#define LLVM_HAS_NVPTX_TARGET 0116117/* Define if the PowerPC target is built in */118#ifdef LLVM_TARGET_ENABLE_POWERPC119#define LLVM_HAS_POWERPC_TARGET 1120#else121#define LLVM_HAS_POWERPC_TARGET 0122#endif123124/* Define if the RISCV target is built in */125#ifdef LLVM_TARGET_ENABLE_RISCV126#define LLVM_HAS_RISCV_TARGET 1127#else128#define LLVM_HAS_RISCV_TARGET 0129#endif130131/* Define if the Sparc target is built in */132#define LLVM_HAS_SPARC_TARGET 0133134/* Define if the SPIRV target is built in */135#define LLVM_HAS_SPIRV_TARGET 0136137/* Define if the SystemZ target is built in */138#define LLVM_HAS_SYSTEMZ_TARGET 0139140/* Define if the VE target is built in */141#define LLVM_HAS_VE_TARGET 0142143/* Define if the WebAssembly target is built in */144#define LLVM_HAS_WEBASSEMBLY_TARGET 0145146/* Define if the X86 target is built in */147#ifdef LLVM_TARGET_ENABLE_X86148#define LLVM_HAS_X86_TARGET 1149#else150#define LLVM_HAS_X86_TARGET 0151#endif152153/* Define if the XCore target is built in */154#define LLVM_HAS_XCORE_TARGET 0155156/* Define if the Xtensa target is built in */157#define LLVM_HAS_XTENSA_TARGET 0158159/* Define if this is Unixish platform */160#define LLVM_ON_UNIX 1161162/* Define if we have the Intel JIT API runtime support library */163#define LLVM_USE_INTEL_JITEVENTS 0164165/* Define if we have the oprofile JIT-support library */166#define LLVM_USE_OPROFILE 0167168/* Define if we have the perf JIT-support library */169#define LLVM_USE_PERF 0170171/* Major version of the LLVM API */172#define LLVM_VERSION_MAJOR 19173174/* Minor version of the LLVM API */175#define LLVM_VERSION_MINOR 1176177/* Patch version of the LLVM API */178#define LLVM_VERSION_PATCH 7179180/* LLVM version string */181#define LLVM_VERSION_STRING "19.1.7"182183/* Whether LLVM records statistics for use with GetStatistics(),184* PrintStatistics() or PrintStatisticsJSON()185*/186#define LLVM_FORCE_ENABLE_STATS 0187188/* Define if we have z3 and want to build it */189/* #undef LLVM_WITH_Z3 */190191/* Define if we have curl and want to use it */192/* #undef LLVM_ENABLE_CURL */193194/* Define if we have cpp-httplib and want to use it */195/* #undef LLVM_ENABLE_HTTPLIB */196197/* Define if zlib compression is available */198#define LLVM_ENABLE_ZLIB 1199200/* Define if zstd compression is available */201#define LLVM_ENABLE_ZSTD 1202203/* Define if LLVM is using tflite */204/* #undef LLVM_HAVE_TFLITE */205206/* Define to 1 if you have the <sysexits.h> header file. */207#define HAVE_SYSEXITS_H 1208209/* Define if building libLLVM shared library */210/* #undef LLVM_BUILD_LLVM_DYLIB */211212/* Define if building LLVM with BUILD_SHARED_LIBS */213/* #undef LLVM_BUILD_SHARED_LIBS */214215/* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */216/* #undef LLVM_FORCE_USE_OLD_TOOLCHAIN */217218/* Define if llvm_unreachable should be optimized with undefined behavior219* in non assert builds */220#define LLVM_UNREACHABLE_OPTIMIZE 1221222/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */223#define LLVM_ENABLE_DIA_SDK 0224225/* Define if plugins enabled */226/* #undef LLVM_ENABLE_PLUGINS */227228/* Define if logf128 is available */229/* #undef LLVM_HAS_LOGF128 */230231#endif232233234