|
#define | __has_feature(x) |
|
#define | __has_extension(x) |
|
#define | __has_attribute(x) |
|
#define | __has_builtin(x) |
|
#define | LLVM_HAS_CPP_ATTRIBUTE(x) |
|
#define | LLVM_GNUC_PREREQ(maj, min, patch) |
| \macro LLVM_GNUC_PREREQ Extend the default __GNUC_PREREQ even if glibc's features.h isn't available.
|
|
#define | LLVM_MSC_PREREQ(version) |
| \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_C_ABI LLVM_ABI |
|
#define | LLVM_PREFETCH(addr, rw, locality) |
|
#define | LLVM_ATTRIBUTE_USED |
|
#define | LLVM_DEPRECATED(MSG, FIX) |
|
#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) |
|
#define | LLVM_UNLIKELY(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 std::string_view 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) |
| \macro LLVM_ASSUME_ALIGNED Returns a pointer with an assumed alignment.
|
|
#define | LLVM_PACKED(d) |
| \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 |
| 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 __thread |
| \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_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_C_ABI is used to annotated functions and data that need to be exported for the libllvm-c API. This used both for the llvm-c headers and for the functions declared in the different Target's c++ source files that don't include the header forward declaring them.
#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.