LLVM 22.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. | |
LLVM_ABI void | destroy () const |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::ManagedStaticBase | |
LLVM_ABI 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 85 of file ManagedStatic.h.
|
inline |
Definition at line 110 of file ManagedStatic.h.
References llvm::CallingConv::C, and llvm::ManagedStaticBase::Ptr.
|
inline |
Definition at line 88 of file ManagedStatic.h.
References llvm::CallingConv::C, llvm::ManagedStaticBase::Ptr, and llvm::ManagedStaticBase::RegisterManagedStatic().
|
inline |
Definition at line 98 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.
|
inline |
Definition at line 106 of file ManagedStatic.h.
References llvm::CallingConv::C.