Home
last modified time | relevance | path

Searched refs:NRVO (Results 1 – 7 of 7) sorted by relevance

/external/clang/lib/Sema/
DScope.cpp91 NRVO.setPointerAndInt(nullptr, 0); in Init()
119 if (VarDecl *Candidate = NRVO.getPointer()) { in mergeNRVOIntoParent()
127 if (NRVO.getInt()) in mergeNRVOIntoParent()
129 else if (NRVO.getPointer()) in mergeNRVOIntoParent()
130 getParent()->addNRVOCandidate(NRVO.getPointer()); in mergeNRVOIntoParent()
220 if (NRVO.getInt()) in dumpImpl()
222 else if (NRVO.getPointer()) in dumpImpl()
223 OS << "NRVO candidate : (clang::VarDecl*)" << NRVO.getPointer() << '\n'; in dumpImpl()
DSemaInit.cpp2868 return LocAndNRVO.NRVO; in allowsNRVO()
/external/clang/include/clang/Sema/
DScope.h197 llvm::PointerIntPair<VarDecl *, 1, bool> NRVO; variable
452 if (NRVO.getInt()) in addNRVOCandidate()
454 if (NRVO.getPointer() == nullptr) { in addNRVOCandidate()
455 NRVO.setPointer(VD); in addNRVOCandidate()
458 if (NRVO.getPointer() != VD) in addNRVOCandidate()
463 NRVO.setInt(1); in setNoNRVO()
464 NRVO.setPointer(nullptr); in setNoNRVO()
DInitialization.h118 bool NRVO; member
172 bool NRVO = false)
176 LocAndNRVO.NRVO = NRVO; in Kind()
242 QualType Type, bool NRVO) { in InitializeResult() argument
243 return InitializedEntity(EK_Result, ReturnLoc, Type, NRVO); in InitializeResult()
247 QualType Type, bool NRVO) { in InitializeBlock() argument
248 return InitializedEntity(EK_BlockElement, BlockVarLoc, Type, NRVO); in InitializeBlock()
253 QualType Type, bool NRVO) { in InitializeException() argument
254 return InitializedEntity(EK_Exception, ThrowLoc, Type, NRVO); in InitializeException()
/external/clang/test/CodeGenObjCXX/
Dnrvo.mm10 @interface NRVO interface
13 @implementation NRVO implementation
14 // CHECK: define internal void @"\01-[NRVO getNRVO]"
/external/clang/lib/CodeGen/
DCGDecl.cpp437 bool NRVO = flags.isForNormalCleanup() && NRVOFlag; in Emit() local
440 if (NRVO) { in Emit()
455 if (NRVO) CGF.EmitBlock(SkipDtorBB); in Emit()
958 bool NRVO = getLangOpts().ElideConstructors && in EmitAutoVarAlloca() local
978 if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef && in EmitAutoVarAlloca()
995 if (NRVO) { in EmitAutoVarAlloca()
/external/clang/include/clang/AST/
DDecl.h1208 void setNRVOVariable(bool NRVO) { in setNRVOVariable() argument
1210 NonParmVarDeclBits.NRVOVariable = NRVO; in setNRVOVariable()