LLVM 22.0.0git
Macros
Compiler.h File Reference
#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_warning(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.
 
#define LLVM_MSC_PREREQ(version)   0
 \macro LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common
 
#define LLVM_ATTRIBUTE_VISIBILITY_HIDDEN
 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.
 
#define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
 
#define LLVM_EXTERNAL_VISIBILITY
 
#define LLVM_LIBRARY_VISIBILITY   LLVM_ATTRIBUTE_VISIBILITY_HIDDEN
 
#define LLVM_LIBRARY_VISIBILITY_NAMESPACE   LLVM_ATTRIBUTE_VISIBILITY_HIDDEN
 
#define LLVM_ALWAYS_EXPORT   LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
 
#define LLVM_ABI_NOT_EXPORTED
 LLVM_ABI is the main export/visibility macro to mark something as explicitly exported when llvm is built as a shared library with everything else that is unannotated will have internal visibility.
 
#define LLVM_ABI
 
#define LLVM_TEMPLATE_ABI
 
#define LLVM_EXPORT_TEMPLATE
 
#define LLVM_ABI_EXPORT
 
#define LLVM_ABI_FOR_TEST   LLVM_ABI
 
#define LLVM_PREFETCH(addr, rw, locality)
 
#define LLVM_ATTRIBUTE_UNINITIALIZED
 
#define LLVM_ATTRIBUTE_USED
 
#define LLVM_ATTRIBUTE_RETAIN
 
#define LLVM_DEPRECATED(MSG, FIX)   [[deprecated(MSG)]]
 
#define LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_PUSH
 
#define LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_POP
 
#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".
 
#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.
 
#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.
 
#define LLVM_ATTRIBUTE_RETURNS_NONNULL
 
#define LLVM_ATTRIBUTE_RESTRICT
 LLVM_ATTRIBUTE_RESTRICT - Annotates a pointer to tell the compiler that it is not aliased in the current scope.
 
#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.
 
#define LLVM_FALLTHROUGH
 LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
 
#define LLVM_REQUIRE_CONSTANT_INITIALIZATION
 LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized.
 
#define LLVM_GSL_OWNER
 LLVM_GSL_OWNER - Apply this to owning classes like SmallVector to enable lifetime warnings.
 
#define LLVM_GSL_POINTER
 LLVM_GSL_POINTER - Apply this to non-owning classes like StringRef to enable lifetime warnings.
 
#define LLVM_LIFETIME_BOUND
 
#define LLVM_CTOR_NODISCARD
 
#define LLVM_EXTENSION
 LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics.
 
#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.
 
#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.
 
#define LLVM_ASSUME_ALIGNED(p, a)   (p)
 \macro LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment.
 
#define LLVM_PACKED(d)   d __attribute__((packed))
 \macro LLVM_PACKED Used to specify a packed structure.
 
#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.
 
#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.
 
#define __asan_poison_memory_region(p, size)
 
#define __asan_unpoison_memory_region(p, size)
 
#define LLVM_HWADDRESS_SANITIZER_BUILD   0
 \macro LLVM_HWADDRESS_SANITIZER_BUILD Whether LLVM itself is built with HWAddressSanitizer instrumentation.
 
#define LLVM_THREAD_SANITIZER_BUILD   0
 \macro LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation.
 
#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.
 
#define LLVM_DUMP_METHOD    LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED LLVM_ATTRIBUTE_RETAIN
 Mark debug helper function definitions like dump() that should not be stripped from debug builds.
 
#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.
 
#define LLVM_THREAD_LOCAL
 \macro LLVM_THREAD_LOCAL A thread-local storage specifier which can be used with globals, extern globals, and static globals.
 
#define LLVM_NO_PROFILE_INSTRUMENT_FUNCTION
 \macro LLVM_ENABLE_EXCEPTIONS Whether LLVM is built with exception support.
 
#define LLVM_PREFERRED_TYPE(T)
 \macro LLVM_PREFERRED_TYPE Adjust type of bit-field in debug info.
 
#define LLVM_DECLARE_VIRTUAL_ANCHOR_FUNCTION()    virtual void anchor()
 \macro LLVM_VIRTUAL_ANCHOR_FUNCTION This macro is used to adhere to LLVM's policy that each class with a vtable must have at least one out-of-line virtual function.
 

Macro Definition Documentation

◆ __asan_poison_memory_region

#define __asan_poison_memory_region (   p,
  size 
)

Definition at line 568 of file Compiler.h.

◆ __asan_unpoison_memory_region

#define __asan_unpoison_memory_region (   p,
  size 
)

Definition at line 569 of file Compiler.h.

◆ __has_attribute

#define __has_attribute (   x)    0

Definition at line 35 of file Compiler.h.

◆ __has_builtin

#define __has_builtin (   x)    0

Definition at line 39 of file Compiler.h.

◆ __has_extension

#define __has_extension (   x)    0

Definition at line 31 of file Compiler.h.

◆ __has_feature

#define __has_feature (   x)    0

Definition at line 27 of file Compiler.h.

◆ __has_warning

#define __has_warning (   x)    0

Definition at line 43 of file Compiler.h.

◆ __msan_allocated_memory

#define __msan_allocated_memory (   p,
  size 
)

Definition at line 543 of file Compiler.h.

◆ __msan_unpoison

#define __msan_unpoison (   p,
  size 
)

Definition at line 544 of file Compiler.h.

◆ LLVM_ABI

#define LLVM_ABI

◆ LLVM_ABI_EXPORT

#define LLVM_ABI_EXPORT

Definition at line 216 of file Compiler.h.

◆ LLVM_ABI_FOR_TEST

#define LLVM_ABI_FOR_TEST   LLVM_ABI

Definition at line 218 of file Compiler.h.

◆ LLVM_ABI_NOT_EXPORTED

#define LLVM_ABI_NOT_EXPORTED

LLVM_ABI is the main export/visibility macro to mark something as explicitly exported when llvm is built as a shared library with everything else that is unannotated will have internal visibility.

LLVM_ABI_EXPORT is for the special case for things like plugin symbol declarations or definitions where we don't want the macro to be switching between dllexport and dllimport on windows based on what codebase is being built, it will only be dllexport. For non windows platforms this macro behaves the same as LLVM_ABI.

LLVM_EXPORT_TEMPLATE is used on explicit template instantiations in source files that were declared extern in a header. This macro is only set as a compiler export attribute on windows, on other platforms it does nothing.

LLVM_TEMPLATE_ABI is for annotating extern template declarations in headers for both functions and classes. On windows its turned in to dllimport for library consumers, for other platforms its a default visibility attribute.

LLVM_ABI_FOR_TEST is for annotating symbols that are only exported because they are imported from a test. These symbols are not technically part of the LLVM public interface and could be conditionally excluded when not building tests in the future.

Definition at line 182 of file Compiler.h.

◆ LLVM_ADDRESS_SANITIZER_BUILD

#define LLVM_ADDRESS_SANITIZER_BUILD   0

\macro LLVM_ADDRESS_SANITIZER_BUILD Whether LLVM itself is built with AddressSanitizer instrumentation.

Definition at line 567 of file Compiler.h.

◆ LLVM_ALWAYS_EXPORT

#define LLVM_ALWAYS_EXPORT   LLVM_ATTRIBUTE_VISIBILITY_DEFAULT

Definition at line 145 of file Compiler.h.

◆ LLVM_ASSUME_ALIGNED

#define LLVM_ASSUME_ALIGNED (   p,
 
)    (p)

\macro LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment.

Definition at line 504 of file Compiler.h.

◆ LLVM_ATTRIBUTE_ALWAYS_INLINE

#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 356 of file Compiler.h.

◆ LLVM_ATTRIBUTE_MINSIZE

#define LLVM_ATTRIBUTE_MINSIZE

Definition at line 328 of file Compiler.h.

◆ LLVM_ATTRIBUTE_NODEBUG

#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 365 of file Compiler.h.

◆ LLVM_ATTRIBUTE_NOINLINE

#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 346 of file Compiler.h.

◆ LLVM_ATTRIBUTE_REINITIALIZES

#define LLVM_ATTRIBUTE_REINITIALIZES

Definition at line 284 of file Compiler.h.

◆ LLVM_ATTRIBUTE_RESTRICT

#define LLVM_ATTRIBUTE_RESTRICT

LLVM_ATTRIBUTE_RESTRICT - Annotates a pointer to tell the compiler that it is not aliased in the current scope.

Definition at line 381 of file Compiler.h.

◆ LLVM_ATTRIBUTE_RETAIN

#define LLVM_ATTRIBUTE_RETAIN

Definition at line 246 of file Compiler.h.

◆ LLVM_ATTRIBUTE_RETURNS_NOALIAS

#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 391 of file Compiler.h.

◆ LLVM_ATTRIBUTE_RETURNS_NONNULL

#define LLVM_ATTRIBUTE_RETURNS_NONNULL

Definition at line 373 of file Compiler.h.

◆ LLVM_ATTRIBUTE_UNINITIALIZED

#define LLVM_ATTRIBUTE_UNINITIALIZED

Definition at line 230 of file Compiler.h.

◆ LLVM_ATTRIBUTE_UNUSED

#define LLVM_ATTRIBUTE_UNUSED

Definition at line 298 of file Compiler.h.

◆ LLVM_ATTRIBUTE_USED

#define LLVM_ATTRIBUTE_USED

Definition at line 236 of file Compiler.h.

◆ LLVM_ATTRIBUTE_VISIBILITY_DEFAULT

#define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT

Definition at line 126 of file Compiler.h.

◆ LLVM_ATTRIBUTE_VISIBILITY_HIDDEN

#define LLVM_ATTRIBUTE_VISIBILITY_HIDDEN

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.

◆ LLVM_ATTRIBUTE_WEAK

#define LLVM_ATTRIBUTE_WEAK

Definition at line 306 of file Compiler.h.

◆ LLVM_BUILTIN_DEBUGTRAP

#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 493 of file Compiler.h.

◆ LLVM_BUILTIN_TRAP

#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 476 of file Compiler.h.

◆ LLVM_CTOR_NODISCARD

#define LLVM_CTOR_NODISCARD

Definition at line 441 of file Compiler.h.

◆ LLVM_DECLARE_VIRTUAL_ANCHOR_FUNCTION

#define LLVM_DECLARE_VIRTUAL_ANCHOR_FUNCTION ( )     virtual void anchor()

\macro LLVM_VIRTUAL_ANCHOR_FUNCTION This macro is used to adhere to LLVM's policy that each class with a vtable must have at least one out-of-line virtual function.

This macro allows us to declare such a function in final classes without triggering a warning.

Definition at line 728 of file Compiler.h.

◆ LLVM_DEPRECATED

#define LLVM_DEPRECATED (   MSG,
  FIX 
)    [[deprecated(MSG)]]

Definition at line 252 of file Compiler.h.

◆ LLVM_DUMP_METHOD

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 638 of file Compiler.h.

◆ LLVM_EXPORT_TEMPLATE

#define LLVM_EXPORT_TEMPLATE

Definition at line 215 of file Compiler.h.

◆ LLVM_EXTENSION

#define LLVM_EXTENSION

LLVM_EXTENSION - Support compilers where we have a keyword to suppress pedantic diagnostics.

Definition at line 449 of file Compiler.h.

◆ LLVM_EXTERNAL_VISIBILITY

#define LLVM_EXTERNAL_VISIBILITY

Definition at line 132 of file Compiler.h.

◆ LLVM_FALLTHROUGH

#define LLVM_FALLTHROUGH

LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.

Definition at line 404 of file Compiler.h.

◆ LLVM_GNUC_PREREQ

#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.

◆ LLVM_GSL_OWNER

#define LLVM_GSL_OWNER

LLVM_GSL_OWNER - Apply this to owning classes like SmallVector to enable lifetime warnings.

Definition at line 421 of file Compiler.h.

◆ LLVM_GSL_POINTER

#define LLVM_GSL_POINTER

LLVM_GSL_POINTER - Apply this to non-owning classes like StringRef to enable lifetime warnings.

Definition at line 429 of file Compiler.h.

◆ LLVM_HAS_CPP_ATTRIBUTE

#define LLVM_HAS_CPP_ATTRIBUTE (   x)    0

Definition at line 52 of file Compiler.h.

◆ LLVM_HWADDRESS_SANITIZER_BUILD

#define LLVM_HWADDRESS_SANITIZER_BUILD   0

\macro LLVM_HWADDRESS_SANITIZER_BUILD Whether LLVM itself is built with HWAddressSanitizer instrumentation.

Definition at line 577 of file Compiler.h.

◆ LLVM_LIBRARY_VISIBILITY

#define LLVM_LIBRARY_VISIBILITY   LLVM_ATTRIBUTE_VISIBILITY_HIDDEN

Definition at line 137 of file Compiler.h.

◆ LLVM_LIBRARY_VISIBILITY_NAMESPACE

#define LLVM_LIBRARY_VISIBILITY_NAMESPACE   LLVM_ATTRIBUTE_VISIBILITY_HIDDEN

Definition at line 143 of file Compiler.h.

◆ LLVM_LIFETIME_BOUND

#define LLVM_LIFETIME_BOUND

Definition at line 435 of file Compiler.h.

◆ LLVM_LIKELY

#define LLVM_LIKELY (   EXPR)    (EXPR)

Definition at line 335 of file Compiler.h.

◆ LLVM_MEMORY_SANITIZER_BUILD

#define LLVM_MEMORY_SANITIZER_BUILD   0

\macro LLVM_MEMORY_SANITIZER_BUILD Whether LLVM itself is built with MemorySanitizer instrumentation.

Definition at line 542 of file Compiler.h.

◆ LLVM_MSC_PREREQ

#define LLVM_MSC_PREREQ (   version)    0

\macro LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common

Parameters
versionvalues to check for are:
  • 1910: VS2017, version 15.1 & 15.2
  • 1911: VS2017, version 15.3 & 15.4
  • 1912: VS2017, version 15.5
  • 1913: VS2017, version 15.6
  • 1914: VS2017, version 15.7
  • 1915: VS2017, version 15.8
  • 1916: VS2017, version 15.9
  • 1920: VS2019, version 16.0
  • 1921: VS2019, version 16.1
  • 1922: VS2019, version 16.2
  • 1923: VS2019, version 16.3
  • 1924: VS2019, version 16.4
  • 1925: VS2019, version 16.5
  • 1926: VS2019, version 16.6
  • 1927: VS2019, version 16.7
  • 1928: VS2019, version 16.8 + 16.9
  • 1929: VS2019, version 16.10 + 16.11
  • 1930: VS2022, version 17.0

Definition at line 104 of file Compiler.h.

◆ LLVM_NO_PROFILE_INSTRUMENT_FUNCTION

#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 698 of file Compiler.h.

◆ LLVM_NO_SANITIZE

#define LLVM_NO_SANITIZE (   KIND)

\macro LLVM_NO_SANITIZE Disable a particular sanitizer for a function.

Definition at line 628 of file Compiler.h.

◆ LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE

#define LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE

Definition at line 545 of file Compiler.h.

◆ LLVM_PACKED

#define LLVM_PACKED (   d)    d __attribute__((packed))

\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 530 of file Compiler.h.

◆ LLVM_PACKED_END

#define LLVM_PACKED_END   _Pragma("pack(pop)")

Definition at line 532 of file Compiler.h.

◆ LLVM_PACKED_START

#define LLVM_PACKED_START   _Pragma("pack(push, 1)")

Definition at line 531 of file Compiler.h.

◆ LLVM_PREFERRED_TYPE

#define LLVM_PREFERRED_TYPE (   T)

\macro LLVM_PREFERRED_TYPE Adjust type of bit-field in debug info.

Definition at line 706 of file Compiler.h.

◆ LLVM_PREFETCH

#define LLVM_PREFETCH (   addr,
  rw,
  locality 
)

Definition at line 224 of file Compiler.h.

◆ LLVM_PRETTY_FUNCTION

#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 654 of file Compiler.h.

◆ LLVM_READNONE

#define LLVM_READNONE

Definition at line 315 of file Compiler.h.

◆ LLVM_READONLY

#define LLVM_READONLY

Definition at line 322 of file Compiler.h.

◆ LLVM_REQUIRE_CONSTANT_INITIALIZATION

#define LLVM_REQUIRE_CONSTANT_INITIALIZATION

LLVM_REQUIRE_CONSTANT_INITIALIZATION - Apply this to globals to ensure that they are constant initialized.

Definition at line 413 of file Compiler.h.

◆ LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_POP

#define LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_POP

Definition at line 270 of file Compiler.h.

◆ LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_PUSH

#define LLVM_SUPPRESS_DEPRECATED_DECLARATIONS_PUSH

Definition at line 269 of file Compiler.h.

◆ LLVM_TEMPLATE_ABI

#define LLVM_TEMPLATE_ABI

Definition at line 214 of file Compiler.h.

◆ LLVM_THREAD_LOCAL

#define LLVM_THREAD_LOCAL

\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 679 of file Compiler.h.

◆ LLVM_THREAD_SANITIZER_BUILD

#define LLVM_THREAD_SANITIZER_BUILD   0

\macro LLVM_THREAD_SANITIZER_BUILD Whether LLVM itself is built with ThreadSanitizer instrumentation.

Definition at line 585 of file Compiler.h.

◆ LLVM_UNLIKELY

#define LLVM_UNLIKELY (   EXPR)    (EXPR)

Definition at line 336 of file Compiler.h.

◆ TsanHappensAfter

#define TsanHappensAfter (   cv)

Definition at line 618 of file Compiler.h.

◆ TsanHappensBefore

#define TsanHappensBefore (   cv)

Definition at line 617 of file Compiler.h.

◆ TsanIgnoreWritesBegin

#define TsanIgnoreWritesBegin ( )

Definition at line 619 of file Compiler.h.

◆ TsanIgnoreWritesEnd

#define TsanIgnoreWritesEnd ( )

Definition at line 620 of file Compiler.h.