clang 20.0.0git
|
A "future" for a completed constant initializer, which can be passed around independently of any sub-builders (but not the original parent). More...
#include "clang/CodeGen/ConstantInitFuture.h"
Public Member Functions | |
ConstantInitFuture () | |
ConstantInitFuture (llvm::Constant *initializer) | |
A future can be explicitly created from a fixed initializer. | |
operator bool () const | |
Is this future non-null? | |
llvm::Type * | getType () const |
Return the type of the initializer. | |
void | abandon () |
Abandon this initializer. | |
void | installInGlobal (llvm::GlobalVariable *global) |
Install the initializer into a global variable. | |
void * | getOpaqueValue () const |
Static Public Member Functions | |
static ConstantInitFuture | getFromOpaqueValue (void *value) |
Static Public Attributes | |
static constexpr int | NumLowBitsAvailable |
Friends | |
class | ConstantInitBuilderBase |
A "future" for a completed constant initializer, which can be passed around independently of any sub-builders (but not the original parent).
Definition at line 47 of file ConstantInitFuture.h.
|
inline |
Definition at line 56 of file ConstantInitFuture.h.
|
inlineexplicit |
A future can be explicitly created from a fixed initializer.
Definition at line 59 of file ConstantInitFuture.h.
void ConstantInitFuture::abandon | ( | ) |
Abandon this initializer.
Definition at line 30 of file ConstantInitBuilder.cpp.
|
inlinestatic |
Definition at line 77 of file ConstantInitFuture.h.
|
inline |
Definition at line 76 of file ConstantInitFuture.h.
References Data.
Referenced by llvm::PointerLikeTypeTraits< ::clang::CodeGen::ConstantInitFuture >::getAsVoidPointer().
llvm::Type * ConstantInitFuture::getType | ( | ) | const |
Return the type of the initializer.
Definition at line 21 of file ConstantInitBuilder.cpp.
References clang::C.
void ConstantInitFuture::installInGlobal | ( | llvm::GlobalVariable * | global | ) |
Install the initializer into a global variable.
This cannot be called multiple times.
Definition at line 38 of file ConstantInitBuilder.cpp.
References clang::C.
|
inlineexplicit |
Is this future non-null?
Definition at line 64 of file ConstantInitFuture.h.
|
friend |
Definition at line 52 of file ConstantInitFuture.h.
|
staticconstexpr |
Definition at line 82 of file ConstantInitFuture.h.