llvm-config-linux.h 4.4 KB

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