clang  6.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::CodeGen::ConstantInitFuture Class Reference

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 Types

enum  { NumLowBitsAvailable }
 

Public Member Functions

 ConstantInitFuture ()
 
 ConstantInitFuture (llvm::Constant *initializer)
 A future can be explicitly created from a fixed initializer. More...
 
 operator bool () const
 Is this future non-null? More...
 
llvm::TypegetType () const
 Return the type of the initializer. More...
 
void abandon ()
 Abandon this initializer. More...
 
void installInGlobal (llvm::GlobalVariable *global)
 Install the initializer into a global variable. More...
 
void * getOpaqueValue () const
 

Static Public Member Functions

static ConstantInitFuture getFromOpaqueValue (void *value)
 

Friends

class ConstantInitBuilderBase
 

Detailed Description

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 48 of file ConstantInitFuture.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NumLowBitsAvailable 

Definition at line 83 of file ConstantInitFuture.h.

Constructor & Destructor Documentation

◆ ConstantInitFuture() [1/2]

clang::CodeGen::ConstantInitFuture::ConstantInitFuture ( )
inline

Definition at line 57 of file ConstantInitFuture.h.

◆ ConstantInitFuture() [2/2]

clang::CodeGen::ConstantInitFuture::ConstantInitFuture ( llvm::Constant *  initializer)
inlineexplicit

A future can be explicitly created from a fixed initializer.

Definition at line 60 of file ConstantInitFuture.h.

Member Function Documentation

◆ abandon()

void ConstantInitFuture::abandon ( )

Abandon this initializer.

Definition at line 31 of file ConstantInitBuilder.cpp.

◆ getFromOpaqueValue()

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

Definition at line 78 of file ConstantInitFuture.h.

◆ getOpaqueValue()

void* clang::CodeGen::ConstantInitFuture::getOpaqueValue ( ) const
inline

◆ getType()

llvm::Type * ConstantInitFuture::getType ( ) const

Return the type of the initializer.

Definition at line 22 of file ConstantInitBuilder.cpp.

◆ installInGlobal()

void ConstantInitFuture::installInGlobal ( llvm::GlobalVariable *  global)

Install the initializer into a global variable.

This cannot be called multiple times.

Definition at line 39 of file ConstantInitBuilder.cpp.

◆ operator bool()

clang::CodeGen::ConstantInitFuture::operator bool ( ) const
inlineexplicit

Is this future non-null?

Definition at line 65 of file ConstantInitFuture.h.

References bool, and clang::CodeGen::Type.

Friends And Related Function Documentation

◆ ConstantInitBuilderBase

friend class ConstantInitBuilderBase
friend

Definition at line 53 of file ConstantInitFuture.h.


The documentation for this class was generated from the following files: