llvm-config.h.cmake 4.8 KB

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