Go to the source code of this file.
Whether LLVM itself is built with AddressSanitizer instrumentation.
Definition at line 309 of file Compiler.h.
LLVM_ATTRIBUTE_ALWAYS_INLINE - On compilers where we have a directive to do so, mark a method "always inline" because it is performance sensitive. GCC 3.4 supported this but is buggy in various cases and produces unimplemented errors, just use it in GCC 4.0 and later.
Definition at line 209 of file Compiler.h.
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inlining".
Definition at line 197 of file Compiler.h.
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. LLVM_BUILTIN_TRAP - On compilers which support it, expands to an expression which causes the program to exit abnormally.
Definition at line 269 of file Compiler.h.
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
Definition at line 329 of file Compiler.h.
Expands to __func__ on compilers which support it. Otherwise, expands to a compiler-dependent replacement.
Definition at line 290 of file Compiler.h.
Does the compiler support r-value reference *this?
Sadly, this is separate from just r-value reference support because GCC implemented this later than everything else.
Definition at line 82 of file Compiler.h.
Is unaligned memory access fast on the host machine.
LLVM_IS_UNALIGNED_ACCESS_FAST Don't specialize on alignment for platforms where unaligned memory accesses generates the same code as aligned memory accesses for common types.
Definition at line 322 of file Compiler.h.
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.
Definition at line 110 of file Compiler.h.
Expands to '&' if r-value references are supported.
This can be used to provide l-value/r-value overrides of member functions. The r-value override should be guarded by LLVM_HAS_RVALUE_REFERENCE_THIS
Definition at line 92 of file Compiler.h.
Whether LLVM itself is built with MemorySanitizer instrumentation.
Definition at line 299 of file Compiler.h.
Extend the default __GNUC_PREREQ even if glibc's features.h isn't available.
LLVM_GNUC_PREREQ LLVM_MSC_PREREQ Is the compiler MSVC of at least the specified version? The common
|version||values to check for are: 1800: Microsoft Visual Studio 2013 / 12.0 1900: Microsoft Visual Studio 2015 / 14.0 |
Definition at line 66 of file Compiler.h.
A thread-local storage specifier which can be used with globals, extern globals, and static globals.
LLVM_THREAD_LOCAL This is essentially an extremely restricted analog to C++11's thread_local support, and uses that when available. However, it falls back on platform-specific or vendor-provided extensions when necessary. These extensions don'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 355 of file Compiler.h.