Searched refs:NRVO (Results 1 – 8 of 8) sorted by relevance
/external/clang/lib/Sema/ |
D | Scope.cpp | 95 NRVO.setPointerAndInt(nullptr, 0); in Init() 123 if (VarDecl *Candidate = NRVO.getPointer()) { in mergeNRVOIntoParent() 131 if (NRVO.getInt()) in mergeNRVOIntoParent() 133 else if (NRVO.getPointer()) in mergeNRVOIntoParent() 134 getParent()->addNRVOCandidate(NRVO.getPointer()); in mergeNRVOIntoParent() 224 if (NRVO.getInt()) in dumpImpl() 226 else if (NRVO.getPointer()) in dumpImpl() 227 OS << "NRVO candidate : (clang::VarDecl*)" << NRVO.getPointer() << '\n'; in dumpImpl()
|
D | SemaInit.cpp | 2955 return LocAndNRVO.NRVO; in allowsNRVO()
|
/external/clang/include/clang/Sema/ |
D | Scope.h | 198 llvm::PointerIntPair<VarDecl *, 1, bool> NRVO; variable 455 if (NRVO.getInt()) in addNRVOCandidate() 457 if (NRVO.getPointer() == nullptr) { in addNRVOCandidate() 458 NRVO.setPointer(VD); in addNRVOCandidate() 461 if (NRVO.getPointer() != VD) in addNRVOCandidate() 466 NRVO.setInt(1); in setNoNRVO() 467 NRVO.setPointer(nullptr); in setNoNRVO()
|
D | Initialization.h | 118 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/ |
D | nrvo.mm | 10 @interface NRVO interface 13 @implementation NRVO implementation 14 // CHECK: define internal void @"\01-[NRVO getNRVO]"
|
/external/clang/lib/CodeGen/ |
D | CGDecl.cpp | 453 bool NRVO = flags.isForNormalCleanup() && NRVOFlag; in Emit() local 456 if (NRVO) { in Emit() 471 if (NRVO) CGF.EmitBlock(SkipDtorBB); in Emit() 969 bool NRVO = getLangOpts().ElideConstructors && in EmitAutoVarAlloca() local 989 if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef && in EmitAutoVarAlloca() 1006 if (NRVO) { in EmitAutoVarAlloca()
|
/external/clang/include/clang/AST/ |
D | Decl.h | 1230 void setNRVOVariable(bool NRVO) { in setNRVOVariable() argument 1232 NonParmVarDeclBits.NRVOVariable = NRVO; in setNRVOVariable()
|
/external/clang/include/clang/Basic/ |
D | AttrDocs.td | 2313 optimizations like C++'s named return value optimization (NRVO).
|