clang 22.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::CIRGen::CIRGenFunction::ConstantEmission Class Reference

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

Public Member Functions

 ConstantEmission ()
 
 operator bool () const
 
bool isReference () const
 
LValue getReferenceLValue (CIRGenFunction &cgf, Expr *refExpr) const
 
mlir::TypedAttr getValue () const
 

Static Public Member Functions

static ConstantEmission forReference (mlir::TypedAttr c)
 
static ConstantEmission forValue (mlir::TypedAttr c)
 

Detailed Description

Definition at line 422 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ ConstantEmission()

clang::CIRGen::CIRGenFunction::ConstantEmission::ConstantEmission ( )
inline

Definition at line 429 of file CIRGenFunction.h.

Referenced by forReference(), and forValue().

Member Function Documentation

◆ forReference()

static ConstantEmission clang::CIRGen::CIRGenFunction::ConstantEmission::forReference ( mlir::TypedAttr  c)
inlinestatic

Definition at line 430 of file CIRGenFunction.h.

References c, and ConstantEmission().

◆ forValue()

static ConstantEmission clang::CIRGen::CIRGenFunction::ConstantEmission::forValue ( mlir::TypedAttr  c)
inlinestatic

Definition at line 433 of file CIRGenFunction.h.

References c, and ConstantEmission().

Referenced by clang::CIRGen::CIRGenFunction::tryEmitAsConstant().

◆ getReferenceLValue()

LValue clang::CIRGen::CIRGenFunction::ConstantEmission::getReferenceLValue ( CIRGenFunction cgf,
Expr refExpr 
) const
inline

◆ getValue()

mlir::TypedAttr clang::CIRGen::CIRGenFunction::ConstantEmission::getValue ( ) const
inline

Definition at line 449 of file CIRGenFunction.h.

References isReference().

Referenced by clang::CIRGen::CIRGenFunction::emitScalarConstant().

◆ isReference()

bool clang::CIRGen::CIRGenFunction::ConstantEmission::isReference ( ) const
inline

◆ operator bool()

clang::CIRGen::CIRGenFunction::ConstantEmission::operator bool ( ) const
inlineexplicit

Definition at line 437 of file CIRGenFunction.h.


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