clang 22.0.0git
clang::CodeGen::CodeGenFunction::ConstantEmission Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CodeGenFunction.h"

Public Member Functions

 ConstantEmission ()
 operator bool () const
bool isReference () const
LValue getReferenceLValue (CodeGenFunction &CGF, const Expr *RefExpr) const
llvm::Constant * getValue () const

Static Public Member Functions

static ConstantEmission forReference (llvm::Constant *C)
static ConstantEmission forValue (llvm::Constant *C)

Detailed Description

Definition at line 4427 of file CodeGenFunction.h.

Constructor & Destructor Documentation

◆ ConstantEmission()

clang::CodeGen::CodeGenFunction::ConstantEmission::ConstantEmission ( )
inline

Definition at line 4433 of file CodeGenFunction.h.

Referenced by forReference(), and forValue().

Member Function Documentation

◆ forReference()

ConstantEmission clang::CodeGen::CodeGenFunction::ConstantEmission::forReference ( llvm::Constant * C)
inlinestatic

Definition at line 4434 of file CodeGenFunction.h.

References clang::C, and ConstantEmission().

Referenced by clang::CodeGen::CodeGenFunction::tryEmitAsConstant().

◆ forValue()

ConstantEmission clang::CodeGen::CodeGenFunction::ConstantEmission::forValue ( llvm::Constant * C)
inlinestatic

Definition at line 4437 of file CodeGenFunction.h.

References clang::C, and ConstantEmission().

Referenced by clang::CodeGen::CodeGenFunction::tryEmitAsConstant().

◆ getReferenceLValue()

LValue clang::CodeGen::CodeGenFunction::ConstantEmission::getReferenceLValue ( CodeGenFunction & CGF,
const Expr * RefExpr ) const
inline

◆ getValue()

llvm::Constant * clang::CodeGen::CodeGenFunction::ConstantEmission::getValue ( ) const
inline

Definition at line 4452 of file CodeGenFunction.h.

References isReference().

Referenced by clang::CodeGen::CodeGenFunction::emitScalarConstant().

◆ isReference()

bool clang::CodeGen::CodeGenFunction::ConstantEmission::isReference ( ) const
inline

◆ operator bool()

clang::CodeGen::CodeGenFunction::ConstantEmission::operator bool ( ) const
inlineexplicit

Definition at line 4441 of file CodeGenFunction.h.


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