Searched refs:NRVO (Results 1 - 4 of 4) sorted by relevance

/external/clang/include/clang/Sema/
H A DInitialization.h112 /// named return value optimization (NRVO).
113 bool NRVO; member in struct:clang::InitializedEntity::__anon3391::__anon3392
146 bool NRVO = false)
150 LocAndNRVO.NRVO = NRVO;
207 QualType Type, bool NRVO) {
208 return InitializedEntity(EK_Result, ReturnLoc, Type, NRVO);
212 QualType Type, bool NRVO) {
213 return InitializedEntity(EK_BlockElement, BlockVarLoc, Type, NRVO);
218 QualType Type, bool NRVO) {
206 InitializeResult(SourceLocation ReturnLoc, QualType Type, bool NRVO) argument
211 InitializeBlock(SourceLocation BlockVarLoc, QualType Type, bool NRVO) argument
217 InitializeException(SourceLocation ThrowLoc, QualType Type, bool NRVO) argument
[all...]
/external/clang/lib/CodeGen/
H A DCGDecl.cpp376 bool NRVO = flags.isForNormalCleanup() && NRVOFlag; local
379 if (NRVO) {
380 // If we exited via NRVO, we skip the destructor call.
391 if (NRVO) CGF.EmitBlock(SkipDtorBB);
798 bool NRVO = getContext().getLangOpts().ElideConstructors && local
815 // If the variable's a const type, and it's neither an NRVO
818 if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef &&
832 // unless it's an NRVO variable.
835 if (NRVO) {
843 // Create a flag that is used to indicate when the NRVO wa
[all...]
/external/clang/include/clang/AST/
H A DDecl.h760 /// (NRVO).
1162 /// return value optimization (NRVO).
1164 /// The named return value optimization (NRVO) works by marking certain
1165 /// non-volatile local variables of class type as NRVO objects. These
1169 /// each return that returns the NRVO object will have this variable as its
1170 /// NRVO candidate.
1172 void setNRVOVariable(bool NRVO) { VarDeclBits.NRVOVariable = NRVO; }
/external/clang/lib/Sema/
H A DSemaInit.cpp2373 return LocAndNRVO.NRVO;
4700 // If the entity allows NRVO, mark the construction as elidable

Completed in 161 milliseconds