clang
8.0.0
|
An aggregate value slot. More...
#include "/work/www-prereleases/8.0.0/rc2/builddocs/llvm.src/tools/clang/lib/CodeGen/CGValue.h"
Public Types | |
enum | IsAliased_t { IsNotAliased, IsAliased } |
enum | IsDestructed_t { IsNotDestructed, IsDestructed } |
enum | IsZeroed_t { IsNotZeroed, IsZeroed } |
enum | Overlap_t { DoesNotOverlap, MayOverlap } |
enum | NeedsGCBarriers_t { DoesNotNeedGCBarriers, NeedsGCBarriers } |
enum | IsSanitizerChecked_t { IsNotSanitizerChecked, IsSanitizerChecked } |
Public Member Functions | |
IsDestructed_t | isExternallyDestructed () const |
void | setExternallyDestructed (bool destructed=true) |
Qualifiers | getQualifiers () const |
bool | isVolatile () const |
void | setVolatile (bool flag) |
Qualifiers::ObjCLifetime | getObjCLifetime () const |
NeedsGCBarriers_t | requiresGCollection () const |
llvm::Value * | getPointer () const |
Address | getAddress () const |
bool | isIgnored () const |
CharUnits | getAlignment () const |
IsAliased_t | isPotentiallyAliased () const |
Overlap_t | mayOverlap () const |
bool | isSanitizerChecked () const |
RValue | asRValue () const |
void | setZeroed (bool V=true) |
IsZeroed_t | isZeroed () const |
CharUnits | getPreferredSize (ASTContext &Ctx, QualType Type) const |
Get the preferred size to use when storing a value to this slot. More... | |
Static Public Member Functions | |
static AggValueSlot | ignored () |
ignored - Returns an aggregate value slot indicating that the aggregate value is being ignored. More... | |
static AggValueSlot | forAddr (Address addr, Qualifiers quals, IsDestructed_t isDestructed, NeedsGCBarriers_t needsGC, IsAliased_t isAliased, Overlap_t mayOverlap, IsZeroed_t isZeroed=IsNotZeroed, IsSanitizerChecked_t isChecked=IsNotSanitizerChecked) |
forAddr - Make a slot for an aggregate value. More... | |
static AggValueSlot | forLValue (const LValue &LV, IsDestructed_t isDestructed, NeedsGCBarriers_t needsGC, IsAliased_t isAliased, Overlap_t mayOverlap, IsZeroed_t isZeroed=IsNotZeroed, IsSanitizerChecked_t isChecked=IsNotSanitizerChecked) |
|
inline |
Definition at line 607 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitAnyExpr(), clang::CodeGen::CodeGenFunction::EmitCallArg(), emitPseudoObjectExpr(), and isBlockVarRef().
|
inlinestatic |
forAddr - Make a slot for an aggregate value.
quals | - The qualifiers that dictate how the slot should be initialied. Only 'volatile' and the Objective-C lifetime qualifiers matter. |
isDestructed | - true if something else is responsible for calling destructors on this object |
needsGC | - true if the slot is potentially located somewhere that ObjC GC calls should be emitted for |
Definition at line 514 of file CGValue.h.
References clang::CodeGen::Address::getAlignment(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), and clang::CodeGen::Address::isValid().
Referenced by createPlaceholderSlot(), clang::CodeGen::CodeGenFunction::EmitAnyExprToMem(), EmitBaseInitializer(), clang::CodeGen::CodeGenFunction::EmitDelegatingCXXConstructorCall(), clang::CodeGen::CodeGenFunction::EmitMaterializeTemporaryExpr(), findPeephole(), clang::CodeGen::CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction(), InitCatchParam(), isSimpleZero(), and StoreAnyExprIntoOneUnit().
|
inlinestatic |
Definition at line 540 of file CGValue.h.
References clang::CodeGen::LValue::getAddress(), and clang::CodeGen::LValue::getQuals().
Referenced by clang::CodeGen::CodeGenFunction::EmitAggExprToLValue(), clang::CodeGen::CodeGenFunction::EmitAtomicInit(), EmitDeclInit(), clang::CodeGen::CodeGenFunction::EmitExprAsInit(), clang::CodeGen::CodeGenFunction::EmitInitializerForField(), clang::CodeGen::CodeGenFunction::GenerateObjCCtorDtorMethod(), isBlockVarRef(), and isSimpleZero().
|
inline |
Definition at line 583 of file CGValue.h.
Referenced by CheckAggExprForMemSetUse(), clang::CodeGen::CodeGenFunction::EmitAggExpr(), clang::CodeGen::CodeGenFunction::EmitAtomicLoad(), clang::CodeGen::CodeGenFunction::EmitCallArg(), clang::CodeGen::CodeGenFunction::EmitCXXBindTemporaryLValue(), clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(), clang::CodeGen::CodeGenFunction::EmitLambdaExpr(), clang::CodeGen::CodeGenFunction::EmitLambdaLValue(), emitPseudoObjectExpr(), findPeephole(), isBlockVarRef(), and isSimpleZero().
|
inline |
|
inline |
Definition at line 571 of file CGValue.h.
References clang::Qualifiers::getObjCLifetime().
|
inline |
|
inline |
Get the preferred size to use when storing a value to this slot.
This is the type size unless that might overlap another object, in which case it's the dsize.
Definition at line 623 of file CGValue.h.
References clang::ASTContext::getTypeInfoDataSizeInChars(), and clang::ASTContext::getTypeSizeInChars().
Referenced by CheckAggExprForMemSetUse().
|
inline |
Definition at line 558 of file CGValue.h.
Referenced by findPeephole().
|
inlinestatic |
ignored - Returns an aggregate value slot indicating that the aggregate value is being ignored.
Definition at line 499 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(), clang::CodeGen::CodeGenFunction::EmitAtomicLoad(), EmitAtomicUpdateValue(), clang::CodeGen::CodeGenFunction::EmitCoawaitLValue(), clang::CodeGen::CodeGenFunction::EmitCoyieldLValue(), clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(), clang::CodeGen::CodeGenFunction::EmitPseudoObjectLValue(), emitSimdlenSafelenClause(), and findPeephole().
|
inline |
Definition at line 551 of file CGValue.h.
Referenced by findPeephole(), and isBlockVarRef().
|
inline |
Definition at line 587 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitAggExpr(), clang::CodeGen::CodeGenFunction::EmitAnyExpr(), clang::CodeGen::CodeGenFunction::EmitAtomicLoad(), clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(), and findPeephole().
|
inline |
Definition at line 595 of file CGValue.h.
Referenced by findPeephole(), and isTrivialFiller().
|
inline |
Definition at line 603 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr().
|
inline |
Definition at line 560 of file CGValue.h.
References clang::Qualifiers::hasVolatile().
Referenced by CheckAggExprForMemSetUse(), findPeephole(), and isBlockVarRef().
|
inline |
Definition at line 616 of file CGValue.h.
Referenced by CheckAggExprForMemSetUse(), clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(), findPeephole(), isSimpleZero(), and isTrivialFiller().
|
inline |
Definition at line 599 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr().
|
inline |
Definition at line 575 of file CGValue.h.
Referenced by findPeephole().
Definition at line 554 of file CGValue.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCallArg(), clang::CodeGen::CodeGenFunction::EmitCXXBindTemporaryLValue(), and isBlockVarRef().
|
inline |
Definition at line 564 of file CGValue.h.
References clang::Qualifiers::addVolatile(), and clang::Qualifiers::removeVolatile().
Referenced by isBlockVarRef().
Definition at line 615 of file CGValue.h.
Referenced by CheckAggExprForMemSetUse().