LLVM 20.0.0git
|
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on demand (good for reducing startup times of dynamic libraries that link in LLVM components) and for making destruction be explicit through the llvm_shutdown() function call. More...
#include "llvm/Support/ManagedStatic.h"
Public Member Functions | |
C & | operator* () |
C * | operator-> () |
const C & | operator* () const |
const C * | operator-> () const |
C * | claim () |
Public Member Functions inherited from llvm::ManagedStaticBase | |
constexpr | ManagedStaticBase ()=default |
bool | isConstructed () const |
isConstructed - Return true if this object has not been created yet. | |
void | destroy () const |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::ManagedStaticBase | |
void | RegisterManagedStatic (void *(*creator)(), void(*deleter)(void *)) const |
Protected Attributes inherited from llvm::ManagedStaticBase | |
std::atomic< void * > | Ptr {} |
void(* | DeleterFn )(void *) = nullptr |
const ManagedStaticBase * | Next = nullptr |
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on demand (good for reducing startup times of dynamic libraries that link in LLVM components) and for making destruction be explicit through the llvm_shutdown() function call.
Definition at line 83 of file ManagedStatic.h.
|
inline |
Definition at line 108 of file ManagedStatic.h.
References llvm::CallingConv::C, and llvm::ManagedStaticBase::Ptr.
|
inline |
Definition at line 86 of file ManagedStatic.h.
References llvm::CallingConv::C, llvm::ManagedStaticBase::Ptr, and llvm::ManagedStaticBase::RegisterManagedStatic().
|
inline |
Definition at line 96 of file ManagedStatic.h.
References llvm::CallingConv::C, llvm::ManagedStaticBase::Ptr, and llvm::ManagedStaticBase::RegisterManagedStatic().
|
inline |
Definition at line 94 of file ManagedStatic.h.
|
inline |
Definition at line 104 of file ManagedStatic.h.