class ConstantInitFuture
Declaration
class ConstantInitFuture { /* full declaration omitted */ };
Description
A "future" for a completed constant initializer, which can be passed around independently of any sub-builders (but not the original parent).
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:47
Member Variables
- private clang::CodeGen::ConstantInitFuture::PairTy Data
- public static const int NumLowBitsAvailable = llvm::PointerLikeTypeTraits<PointerUnion<ConstantInitBuilderBase *, Constant *>>::NumLowBitsAvailable
Method Overview
- private ConstantInitFuture(clang::CodeGen::ConstantInitBuilderBase * builder)
- public ConstantInitFuture()
- public ConstantInitFuture(llvm::Constant * initializer)
- public void abandon()
- public static clang::CodeGen::ConstantInitFuture getFromOpaqueValue(void * value)
- public void * getOpaqueValue() const
- public llvm::Type * getType() const
- public void installInGlobal(llvm::GlobalVariable * global)
- public bool operator bool() const
Methods
¶ConstantInitFuture(
clang::CodeGen::ConstantInitBuilderBase*
builder)
ConstantInitFuture(
clang::CodeGen::ConstantInitBuilderBase*
builder)
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:53
Parameters
¶ConstantInitFuture()
ConstantInitFuture()
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:56
¶ConstantInitFuture(llvm::Constant* initializer)
ConstantInitFuture(llvm::Constant* initializer)
Description
A future can be explicitly created from a fixed initializer.
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:59
Parameters
- llvm::Constant* initializer
¶void abandon()
void abandon()
Description
Abandon this initializer.
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:70
¶static clang::CodeGen::ConstantInitFuture
getFromOpaqueValue(void* value)
static clang::CodeGen::ConstantInitFuture
getFromOpaqueValue(void* value)
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:77
Parameters
- void* value
¶void* getOpaqueValue() const
void* getOpaqueValue() const
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:76
¶llvm::Type* getType() const
llvm::Type* getType() const
Description
Return the type of the initializer.
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:67
¶void installInGlobal(llvm::GlobalVariable* global)
void installInGlobal(llvm::GlobalVariable* global)
Description
Install the initializer into a global variable. This cannot be called multiple times.
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:74
Parameters
- llvm::GlobalVariable* global
¶bool operator bool() const
bool operator bool() const
Description
Is this future non-null?
Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:64