LLVM
15.0.0git
|
#include "llvm/Config/llvm-config.h"
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | __has_feature(x) 0 |
#define | __has_extension(x) 0 |
#define | __has_attribute(x) 0 |
#define | __has_builtin(x) 0 |
#define | __has_include(x) 0 |
#define | LLVM_HAS_CPP_ATTRIBUTE(x) 0 |
#define | LLVM_GNUC_PREREQ(maj, min, patch) 0 |
\macro LLVM_GNUC_PREREQ Extend the default __GNUC_PREREQ even if glibc's features.h isn't available. More... | |
#define | LLVM_MSC_PREREQ(version) 0 |
\macro LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common More... | |
#define | LLVM_LIBRARY_VISIBILITY |
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library, then the class should be private to the library and not accessible from outside it. More... | |
#define | LLVM_EXTERNAL_VISIBILITY |
#define | LLVM_PREFETCH(addr, rw, locality) |
#define | LLVM_ATTRIBUTE_USED |
#define | LLVM_NODISCARD |
LLVM_NODISCARD - Warn if a type or return value is discarded. More... | |
#define | LLVM_ATTRIBUTE_REINITIALIZES |
#define | LLVM_ATTRIBUTE_UNUSED |
#define | LLVM_ATTRIBUTE_WEAK |
#define | LLVM_READNONE |
#define | LLVM_READONLY |
#define | LLVM_ATTRIBUTE_MINSIZE |
#define | LLVM_LIKELY(EXPR) (EXPR) |
#define | LLVM_UNLIKELY(EXPR) (EXPR) |
#define | LLVM_ATTRIBUTE_NOINLINE |
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inlining". More... | |
#define | LLVM_ATTRIBUTE_ALWAYS_INLINE inline |
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always inline" because it is performance sensitive. More... | |
#define | LLVM_ATTRIBUTE_NODEBUG |
LLVM_ATTRIBUTE_NO_DEBUG - On compilers where we have a directive to do so, mark a method "no debug" because debug info makes the debugger experience worse. More... | |
#define | LLVM_ATTRIBUTE_RETURNS_NONNULL |
#define | LLVM_ATTRIBUTE_RETURNS_NOALIAS |
\macro LLVM_ATTRIBUTE_RETURNS_NOALIAS Used to mark a function as returning a pointer that does not alias any other valid pointer. More... | |
#define | LLVM_FALLTHROUGH |
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements. More... | |
#define | LLVM_REQUIRE_CONSTANT_INITIALIZATION |
LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized. More... | |
#define | LLVM_GSL_OWNER |
LLVM_GSL_OWNER - Apply this to owning classes like SmallVector to enable lifetime warnings. More... | |
#define | LLVM_GSL_POINTER |
LLVM_GSL_POINTER - Apply this to non-owning classes like StringRef to enable lifetime warnings. More... | |
#define | LLVM_EXTENSION |
LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics. More... | |
#define | LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0 |
LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands to an expression which states that it is undefined behavior for the compiler to reach this point. More... | |
#define | LLVM_BUILTIN_DEBUGTRAP |
LLVM_BUILTIN_DEBUGTRAP - On compilers which support it, expands to an expression which causes the program to break while running under a debugger. More... | |
#define | LLVM_ASSUME_ALIGNED(p, a) (p) |
\macro LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment. More... | |
#define | LLVM_PACKED(d) d __attribute__((packed)) |
\macro LLVM_PACKED Used to specify a packed structure. More... | |
#define | LLVM_PACKED_START _Pragma("pack(push, 1)") |
#define | LLVM_PACKED_END _Pragma("pack(pop)") |
#define | LLVM_MEMORY_SANITIZER_BUILD 0 |
\macro LLVM_MEMORY_SANITIZER_BUILD Whether LLVM itself is built with MemorySanitizer instrumentation. More... | |
#define | __msan_allocated_memory(p, size) |
#define | __msan_unpoison(p, size) |
#define | LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE |
#define | LLVM_ADDRESS_SANITIZER_BUILD 0 |
\macro LLVM_ADDRESS_SANITIZER_BUILD Whether LLVM itself is built with AddressSanitizer instrumentation. More... | |
#define | __asan_poison_memory_region(p, size) |
#define | __asan_unpoison_memory_region(p, size) |
#define | LLVM_THREAD_SANITIZER_BUILD 0 |
\macro LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation. More... | |
#define | TsanHappensBefore(cv) |
#define | TsanHappensAfter(cv) |
#define | TsanIgnoreWritesBegin() |
#define | TsanIgnoreWritesEnd() |
#define | LLVM_NO_SANITIZE(KIND) |
\macro LLVM_NO_SANITIZE Disable a particular sanitizer for a function. More... | |
#define | LLVM_DUMP_METHOD LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED |
Mark debug helper function definitions like dump() that should not be stripped from debug builds. More... | |
#define | LLVM_PRETTY_FUNCTION __func__ |
\macro LLVM_PRETTY_FUNCTION Gets a user-friendly looking function signature for the current scope using the best available method on each platform. More... | |
#define | LLVM_THREAD_LOCAL __thread |
\macro LLVM_THREAD_LOCAL A thread-local storage specifier which can be used with globals, extern globals, and static globals. More... | |
#define | LLVM_NO_PROFILE_INSTRUMENT_FUNCTION |
\macro LLVM_ENABLE_EXCEPTIONS Whether LLVM is built with exception support. More... | |
Definition at line 432 of file Compiler.h.
Definition at line 433 of file Compiler.h.
#define __has_attribute | ( | x | ) | 0 |
Definition at line 35 of file Compiler.h.
#define __has_builtin | ( | x | ) | 0 |
Definition at line 39 of file Compiler.h.
#define __has_extension | ( | x | ) | 0 |
Definition at line 31 of file Compiler.h.
#define __has_feature | ( | x | ) | 0 |
Definition at line 27 of file Compiler.h.
#define __has_include | ( | x | ) | 0 |
Definition at line 43 of file Compiler.h.
Definition at line 407 of file Compiler.h.
Definition at line 408 of file Compiler.h.
#define LLVM_ADDRESS_SANITIZER_BUILD 0 |
\macro LLVM_ADDRESS_SANITIZER_BUILD Whether LLVM itself is built with AddressSanitizer instrumentation.
Definition at line 431 of file Compiler.h.
\macro LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment.
Definition at line 368 of file Compiler.h.
#define LLVM_ATTRIBUTE_ALWAYS_INLINE inline |
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always inline" because it is performance sensitive.
Definition at line 240 of file Compiler.h.
#define LLVM_ATTRIBUTE_MINSIZE |
Definition at line 212 of file Compiler.h.
#define LLVM_ATTRIBUTE_NODEBUG |
LLVM_ATTRIBUTE_NO_DEBUG - On compilers where we have a directive to do so, mark a method "no debug" because debug info makes the debugger experience worse.
Definition at line 249 of file Compiler.h.
#define LLVM_ATTRIBUTE_NOINLINE |
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inlining".
Definition at line 230 of file Compiler.h.
#define LLVM_ATTRIBUTE_REINITIALIZES |
Definition at line 168 of file Compiler.h.
#define LLVM_ATTRIBUTE_RETURNS_NOALIAS |
\macro LLVM_ATTRIBUTE_RETURNS_NOALIAS Used to mark a function as returning a pointer that does not alias any other valid pointer.
Definition at line 267 of file Compiler.h.
#define LLVM_ATTRIBUTE_RETURNS_NONNULL |
Definition at line 257 of file Compiler.h.
#define LLVM_ATTRIBUTE_UNUSED |
Definition at line 182 of file Compiler.h.
#define LLVM_ATTRIBUTE_USED |
Definition at line 138 of file Compiler.h.
#define LLVM_ATTRIBUTE_WEAK |
Definition at line 190 of file Compiler.h.
#define LLVM_BUILTIN_DEBUGTRAP |
LLVM_BUILTIN_DEBUGTRAP - On compilers which support it, expands to an expression which causes the program to break while running under a debugger.
Definition at line 357 of file Compiler.h.
#define LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0 |
LLVM_BUILTIN_UNREACHABLE - On compilers which support it, expands to an expression which states that it is undefined behavior for the compiler to reach this point.
Otherwise is not defined.
'else' is intentionally left out so that other macro logic (e.g., LLVM_ASSUME_ALIGNED and llvm_unreachable()) can detect whether LLVM_BUILTIN_UNREACHABLE has a definition. LLVM_BUILTIN_TRAP - On compilers which support it, expands to an expression which causes the program to exit abnormally.
Definition at line 340 of file Compiler.h.
#define LLVM_DUMP_METHOD LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED |
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
Note that you should also surround dump() functions with #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
so they do always get stripped in release builds.
Definition at line 494 of file Compiler.h.
#define LLVM_EXTENSION |
LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics.
Definition at line 313 of file Compiler.h.
#define LLVM_EXTERNAL_VISIBILITY |
Definition at line 126 of file Compiler.h.
#define LLVM_FALLTHROUGH |
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
Definition at line 280 of file Compiler.h.
#define LLVM_GNUC_PREREQ | ( | maj, | |
min, | |||
patch | |||
) | 0 |
\macro LLVM_GNUC_PREREQ Extend the default __GNUC_PREREQ even if glibc's features.h isn't available.
Definition at line 68 of file Compiler.h.
#define LLVM_GSL_OWNER |
LLVM_GSL_OWNER - Apply this to owning classes like SmallVector to enable lifetime warnings.
Definition at line 297 of file Compiler.h.
#define LLVM_GSL_POINTER |
LLVM_GSL_POINTER - Apply this to non-owning classes like StringRef to enable lifetime warnings.
Definition at line 305 of file Compiler.h.
#define LLVM_HAS_CPP_ATTRIBUTE | ( | x | ) | 0 |
Definition at line 52 of file Compiler.h.
#define LLVM_LIBRARY_VISIBILITY |
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library, then the class should be private to the library and not accessible from outside it.
Can also be used to mark variables and functions, making them private to any shared library they are linked into. On PE/COFF targets, library visibility is the default, so this isn't needed.
LLVM_EXTERNAL_VISIBILITY - classes, functions, and variables marked with this attribute will be made public and visible outside of any shared library they are linked in to.
Definition at line 125 of file Compiler.h.
#define LLVM_LIKELY | ( | EXPR | ) | (EXPR) |
Definition at line 219 of file Compiler.h.
#define LLVM_MEMORY_SANITIZER_BUILD 0 |
\macro LLVM_MEMORY_SANITIZER_BUILD Whether LLVM itself is built with MemorySanitizer instrumentation.
Definition at line 406 of file Compiler.h.
#define LLVM_MSC_PREREQ | ( | version | ) | 0 |
\macro LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common
version | values to check for are:
|
Definition at line 104 of file Compiler.h.
#define LLVM_NO_PROFILE_INSTRUMENT_FUNCTION |
\macro LLVM_ENABLE_EXCEPTIONS Whether LLVM is built with exception support.
\macro LLVM_NO_PROFILE_INSTRUMENT_FUNCTION Disable the profile instrument for a function.
Definition at line 553 of file Compiler.h.
#define LLVM_NO_SANITIZE | ( | KIND | ) |
\macro LLVM_NO_SANITIZE Disable a particular sanitizer for a function.
Definition at line 484 of file Compiler.h.
#define LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE |
Definition at line 409 of file Compiler.h.
#define LLVM_NODISCARD |
LLVM_NODISCARD - Warn if a type or return value is discarded.
Definition at line 155 of file Compiler.h.
\macro LLVM_PACKED Used to specify a packed structure.
LLVM_PACKED( struct A { int i; int j; int k; long long l; });
LLVM_PACKED_START struct B { int i; int j; int k; long long l; }; LLVM_PACKED_END
Definition at line 394 of file Compiler.h.
#define LLVM_PACKED_END _Pragma("pack(pop)") |
Definition at line 396 of file Compiler.h.
#define LLVM_PACKED_START _Pragma("pack(push, 1)") |
Definition at line 395 of file Compiler.h.
#define LLVM_PREFETCH | ( | addr, | |
rw, | |||
locality | |||
) |
Definition at line 132 of file Compiler.h.
#define LLVM_PRETTY_FUNCTION __func__ |
\macro LLVM_PRETTY_FUNCTION Gets a user-friendly looking function signature for the current scope using the best available method on each platform.
The exact format of the resulting string is implementation specific and non-portable, so this should only be used, for example, for logging or diagnostics.
Definition at line 509 of file Compiler.h.
#define LLVM_READNONE |
Definition at line 199 of file Compiler.h.
#define LLVM_READONLY |
Definition at line 206 of file Compiler.h.
#define LLVM_REQUIRE_CONSTANT_INITIALIZATION |
LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized.
Definition at line 289 of file Compiler.h.
#define LLVM_THREAD_LOCAL __thread |
\macro LLVM_THREAD_LOCAL A thread-local storage specifier which can be used with globals, extern globals, and static globals.
This is essentially an extremely restricted analog to C++11's thread_local support. It uses thread_local if available, falling back on gcc __thread if not. __thread doesn't support many of the C++11 thread_local's features. You should only use this for PODs that you can statically initialize to some constant value. In almost all circumstances this is most appropriate for use with a pointer, integer, or small aggregation of pointers and integers.
Definition at line 529 of file Compiler.h.
#define LLVM_THREAD_SANITIZER_BUILD 0 |
\macro LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation.
Definition at line 441 of file Compiler.h.
#define LLVM_UNLIKELY | ( | EXPR | ) | (EXPR) |
Definition at line 220 of file Compiler.h.
#define TsanHappensAfter | ( | cv | ) |
Definition at line 474 of file Compiler.h.
#define TsanHappensBefore | ( | cv | ) |
Definition at line 473 of file Compiler.h.
#define TsanIgnoreWritesBegin | ( | ) |
Definition at line 475 of file Compiler.h.
#define TsanIgnoreWritesEnd | ( | ) |
Definition at line 476 of file Compiler.h.