llvm-config.h.cmake 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. #cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}"
  18. /* Define if threads enabled */
  19. #cmakedefine01 LLVM_ENABLE_THREADS
  20. /* Has gcc/MSVC atomic intrinsics */
  21. #cmakedefine01 LLVM_HAS_ATOMICS
  22. /* Host triple LLVM will be executed on */
  23. #cmakedefine LLVM_HOST_TRIPLE "${LLVM_HOST_TRIPLE}"
  24. /* LLVM architecture name for the native architecture, if available */
  25. #cmakedefine LLVM_NATIVE_ARCH ${LLVM_NATIVE_ARCH}
  26. /* LLVM name for the native AsmParser init function, if available */
  27. #cmakedefine LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser
  28. /* LLVM name for the native AsmPrinter init function, if available */
  29. #cmakedefine LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter
  30. /* LLVM name for the native Disassembler init function, if available */
  31. #cmakedefine LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler
  32. /* LLVM name for the native Target init function, if available */
  33. #cmakedefine LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target
  34. /* LLVM name for the native TargetInfo init function, if available */
  35. #cmakedefine LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo
  36. /* LLVM name for the native target MC init function, if available */
  37. #cmakedefine LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC
  38. /* LLVM name for the native target MCA init function, if available */
  39. #cmakedefine LLVM_NATIVE_TARGETMCA LLVMInitialize${LLVM_NATIVE_ARCH}TargetMCA
  40. /* Define if this is Unixish platform */
  41. #cmakedefine LLVM_ON_UNIX ${LLVM_ON_UNIX}
  42. /* Define if we have the Intel JIT API runtime support library */
  43. #cmakedefine01 LLVM_USE_INTEL_JITEVENTS
  44. /* Define if we have the oprofile JIT-support library */
  45. #cmakedefine01 LLVM_USE_OPROFILE
  46. /* Define if we have the perf JIT-support library */
  47. #cmakedefine01 LLVM_USE_PERF
  48. /* Major version of the LLVM API */
  49. #define LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
  50. /* Minor version of the LLVM API */
  51. #define LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
  52. /* Patch version of the LLVM API */
  53. #define LLVM_VERSION_PATCH ${LLVM_VERSION_PATCH}
  54. /* LLVM version string */
  55. #define LLVM_VERSION_STRING "${PACKAGE_VERSION}"
  56. /* Whether LLVM records statistics for use with GetStatistics(),
  57. * PrintStatistics() or PrintStatisticsJSON()
  58. */
  59. #cmakedefine01 LLVM_FORCE_ENABLE_STATS
  60. /* Define if we have z3 and want to build it */
  61. #cmakedefine LLVM_WITH_Z3 ${LLVM_WITH_Z3}
  62. /* Define if we have curl and want to use it */
  63. #cmakedefine LLVM_ENABLE_CURL ${LLVM_ENABLE_CURL}
  64. /* Define if zlib compression is available */
  65. #cmakedefine01 LLVM_ENABLE_ZLIB
  66. /* Define if LLVM was built with a dependency to the libtensorflow dynamic library */
  67. #cmakedefine LLVM_HAVE_TF_API
  68. /* Define to 1 if you have the <sysexits.h> header file. */
  69. #cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H}
  70. /* Define to 1 to enable the experimental new pass manager by default */
  71. #cmakedefine01 LLVM_ENABLE_NEW_PASS_MANAGER
  72. /* Define if the xar_open() function is supported on this platform. */
  73. #cmakedefine LLVM_HAVE_LIBXAR ${LLVM_HAVE_LIBXAR}
  74. /* Define if building libLLVM shared library */
  75. #cmakedefine LLVM_BUILD_LLVM_DYLIB
  76. /* Define if building LLVM with BUILD_SHARED_LIBS */
  77. #cmakedefine LLVM_BUILD_SHARED_LIBS
  78. /* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */
  79. #cmakedefine LLVM_FORCE_USE_OLD_TOOLCHAIN $(LLVM_FORCE_USE_OLD_TOOLCHAIN)
  80. #endif