clang  5.0.0
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 49 of file ConstantInitFuture.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NumLowBitsAvailable 

Definition at line 84 of file ConstantInitFuture.h.

Constructor & Destructor Documentation

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

Definition at line 58 of file ConstantInitFuture.h.

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

A future can be explicitly created from a fixed initializer.

Definition at line 61 of file ConstantInitFuture.h.

Member Function Documentation

void ConstantInitFuture::abandon ( )

Abandon this initializer.

Definition at line 31 of file ConstantInitBuilder.cpp.

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

Definition at line 79 of file ConstantInitFuture.h.

void* clang::CodeGen::ConstantInitFuture::getOpaqueValue ( ) const
inline
llvm::Type * ConstantInitFuture::getType ( ) const

Return the type of the initializer.

Definition at line 22 of file ConstantInitBuilder.cpp.

References Buffer.

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.

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

Is this future non-null?

Definition at line 66 of file ConstantInitFuture.h.

References bool.

Friends And Related Function Documentation

friend class ConstantInitBuilderBase
friend

Definition at line 54 of file ConstantInitFuture.h.


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