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

RValue - This trivial value class is used to represent the result of an expression that is evaluated. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/CodeGen/CGValue.h"

Public Member Functions

bool isScalar () const
 
bool isComplex () const
 
bool isAggregate () const
 
bool isVolatileQualified () const
 
llvm::ValuegetScalarVal () const
 getScalarVal() - Return the Value* of this scalar value. More...
 
std::pair< llvm::Value *, llvm::Value * > getComplexVal () const
 getComplexVal - Return the real/imag components of this complex value. More...
 
Address getAggregateAddress () const
 getAggregateAddr() - Return the Value* of the address of the aggregate. More...
 
llvm::ValuegetAggregatePointer () const
 

Static Public Member Functions

static RValue getIgnored ()
 
static RValue get (llvm::Value *V)
 
static RValue getComplex (llvm::Value *V1, llvm::Value *V2)
 
static RValue getComplex (const std::pair< llvm::Value *, llvm::Value *> &C)
 
static RValue getAggregate (Address addr, bool isVolatile=false)
 

Detailed Description

RValue - This trivial value class is used to represent the result of an expression that is evaluated.

It can be one of three things: either a simple LLVM SSA value, a pair of SSA values for complex numbers, or the address of an aggregate value in memory.

Definition at line 39 of file CGValue.h.

Member Function Documentation

◆ get()

static RValue clang::CodeGen::RValue::get ( llvm::Value V)
inlinestatic

Definition at line 86 of file CGValue.h.

Referenced by AddDirectArgument(), AdjustObjCObjectType(), commonEmitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenFunction::convertTempToRValue(), convertToType(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), clang::CodeGen::CodeGenFunction::EmitAtomicInit(), clang::CodeGen::CodeGenFunction::EmitAtomicLoad(), clang::CodeGen::CodeGenFunction::EmitAtomicStore(), clang::CodeGen::CodeGenFunction::EmitAutoVarInit(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::emitBuiltinOSLogFormat(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), emitCXXDestructor(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitDelegateCallArg(), clang::CodeGen::CodeGenFunction::EmitInitializerForField(), emitInitWithReductionInitializer(), clang::CodeGen::CodeGenFunction::EmitLambdaBlockInvokeBody(), clang::CodeGen::CodeGenFunction::EmitLambdaDelegatingInvokeBody(), clang::CodeGen::CodeGenFunction::EmitLoadOfBitfieldLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfExtVectorElementLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfGlobalRegLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(), clang::CodeGen::CodeGenFunction::emitOMPSimpleStore(), emitProxyTaskFunction(), emitReductionCombiner(), clang::CodeGen::CodeGenFunction::EmitRValueForField(), clang::CodeGen::CodeGenFunction::EmitScalarInit(), clang::CodeGen::CodeGenFunction::EmitStoreOfScalar(), clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(), emitStructSetterCall(), emitWriteback(), emitWritebackArg(), forConstantArrayExpansion(), clang::CodeGen::CodeGenFunction::GenerateObjCCtorDtorMethod(), clang::CodeGen::CodeGenFunction::generateObjCGetterBody(), clang::CodeGen::CodeGenFunction::generateObjCSetterBody(), GetIntrinsic(), clang::CodeGen::CodeGenFunction::GetUndefRValue(), isWeakLinkedClass(), PerformReturnAdjustment(), and performTypeAdjustment().

◆ getAggregate()

static RValue clang::CodeGen::RValue::getAggregate ( Address  addr,
bool  isVolatile = false 
)
inlinestatic

◆ getAggregateAddress()

Address clang::CodeGen::RValue::getAggregateAddress ( ) const
inline

◆ getAggregatePointer()

llvm::Value* clang::CodeGen::RValue::getAggregatePointer ( ) const
inline

Definition at line 76 of file CGValue.h.

◆ getComplex() [1/2]

static RValue clang::CodeGen::RValue::getComplex ( llvm::Value V1,
llvm::Value V2 
)
inlinestatic

◆ getComplex() [2/2]

static RValue clang::CodeGen::RValue::getComplex ( const std::pair< llvm::Value *, llvm::Value *> &  C)
inlinestatic

Definition at line 101 of file CGValue.h.

◆ getComplexVal()

std::pair<llvm::Value *, llvm::Value *> clang::CodeGen::RValue::getComplexVal ( ) const
inline

getComplexVal - Return the real/imag components of this complex value.

Definition at line 66 of file CGValue.h.

Referenced by convertToComplexValue(), convertToScalarValue(), clang::CodeGen::CodeGenFunction::EmitAtomicLoad(), EmitAtomicUpdateValue(), EmitInitStoreOfNonAggregate(), and forConstantArrayExpansion().

◆ getIgnored()

static RValue clang::CodeGen::RValue::getIgnored ( )
inlinestatic

Definition at line 81 of file CGValue.h.

◆ getScalarVal()

llvm::Value* clang::CodeGen::RValue::getScalarVal ( ) const
inline

◆ isAggregate()

bool clang::CodeGen::RValue::isAggregate ( ) const
inline

◆ isComplex()

bool clang::CodeGen::RValue::isComplex ( ) const
inline

Definition at line 53 of file CGValue.h.

Referenced by convertToComplexValue(), and EmitAtomicUpdateValue().

◆ isScalar()

bool clang::CodeGen::RValue::isScalar ( ) const
inline

◆ isVolatileQualified()

bool clang::CodeGen::RValue::isVolatileQualified ( ) const
inline

Definition at line 56 of file CGValue.h.

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


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