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

Methods

ConstantInitFuture(
    clang::CodeGen::ConstantInitBuilderBase*
        builder)

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:53

Parameters

clang::CodeGen::ConstantInitBuilderBase* builder

ConstantInitFuture()

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:56

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()

Description

Abandon this initializer.

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:70

static clang::CodeGen::ConstantInitFuture
getFromOpaqueValue(void* value)

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:77

Parameters

void* value

void* getOpaqueValue() const

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:76

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)

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

Description

Is this future non-null?

Declared at: clang/include/clang/CodeGen/ConstantInitFuture.h:64