/external/llvm-project/llvm/include/llvm/Support/ |
D | SaveAndRestore.h | 21 template <typename T> struct SaveAndRestore { struct 22 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() argument 23 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() function 26 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | SaveAndRestore.h | 21 template <typename T> struct SaveAndRestore { struct 22 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() argument 23 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() argument 26 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
|
/external/llvm/include/llvm/Support/ |
D | SaveAndRestore.h | 22 template <typename T> struct SaveAndRestore { struct 23 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() function 24 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() argument 27 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | split_utils_test.cc | 30 Status SaveAndRestore(SplitProvider* split_provider) { in SaveAndRestore() function 73 TEST(IndexSplitProviderTest, SaveAndRestore) { in TEST() argument 78 TF_ASSERT_OK(SaveAndRestore(&split_provider)); in TEST() 85 TF_ASSERT_OK(SaveAndRestore(&split_provider)); in TEST() 120 TEST(ShardingSplitProviderTest, SaveAndRestore) { in TEST() argument 126 TF_ASSERT_OK(SaveAndRestore(&split_provider)); in TEST() 133 TF_ASSERT_OK(SaveAndRestore(&split_provider)); in TEST()
|
/external/clang/lib/AST/ |
D | TypePrinter.cpp | 154 SaveAndRestore<bool> PHVal(HasEmptyPlaceHolder, PlaceHolder.empty()); in print() 257 SaveAndRestore<bool> PrevPHIsEmpty(HasEmptyPlaceHolder); in printBefore() 332 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerBefore() 342 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerAfter() 352 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerBefore() 358 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerAfter() 365 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceBefore() 376 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceAfter() 387 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceBefore() 398 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceAfter() [all …]
|
/external/clang/include/clang/Basic/ |
D | LLVM.h | 39 struct SaveAndRestore; 71 using llvm::SaveAndRestore;
|
/external/llvm-project/clang/include/clang/Basic/ |
D | LLVM.h | 41 struct SaveAndRestore; 69 using llvm::SaveAndRestore;
|
/external/llvm-project/clang/lib/AST/ |
D | TypePrinter.cpp | 184 SaveAndRestore<bool> PHVal(HasEmptyPlaceHolder, PlaceHolder.empty()); in print() 300 SaveAndRestore<bool> PrevPHIsEmpty(HasEmptyPlaceHolder); in printBefore() 377 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerBefore() 388 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerAfter() 398 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerBefore() 405 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerAfter() 420 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceBefore() 433 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceAfter() 445 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceBefore() 458 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceAfter() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 510 SaveAndRestore<const char *> SavedTokenStart(TokStart); in peekTokens() 511 SaveAndRestore<const char *> SavedCurPtr(CurPtr); in peekTokens() 512 SaveAndRestore<bool> SavedAtStartOfLine(IsAtStartOfLine); in peekTokens() 513 SaveAndRestore<bool> SavedAtStartOfStatement(IsAtStartOfStatement); in peekTokens() 514 SaveAndRestore<bool> SavedSkipSpace(SkipSpace, ShouldSkipSpace); in peekTokens() 515 SaveAndRestore<bool> SavedIsPeeking(IsPeeking, true); in peekTokens()
|
/external/llvm-project/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 638 SaveAndRestore<const char *> SavedTokenStart(TokStart); in peekTokens() 639 SaveAndRestore<const char *> SavedCurPtr(CurPtr); in peekTokens() 640 SaveAndRestore<bool> SavedAtStartOfLine(IsAtStartOfLine); in peekTokens() 641 SaveAndRestore<bool> SavedAtStartOfStatement(IsAtStartOfStatement); in peekTokens() 642 SaveAndRestore<bool> SavedSkipSpace(SkipSpace, ShouldSkipSpace); in peekTokens() 643 SaveAndRestore<bool> SavedIsPeeking(IsPeeking, true); in peekTokens()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 2170 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitIfStmt() 2199 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 2225 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 2400 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitForStmt() 2426 SaveAndRestore<JumpTarget> save_break(BreakJumpTarget); in VisitForStmt() 2436 SaveAndRestore<CFGBlock*> save_Block(Block), save_Succ(Succ); in VisitForStmt() 2437 SaveAndRestore<JumpTarget> save_continue(ContinueJumpTarget); in VisitForStmt() 2644 SaveAndRestore<CFGBlock*> save_Block(Block), save_Succ(Succ); in VisitObjCForCollectionStmt() 2645 SaveAndRestore<JumpTarget> save_continue(ContinueJumpTarget), in VisitObjCForCollectionStmt() 2745 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitWhileStmt() [all …]
|
/external/llvm-project/clang/lib/Analysis/ |
D | CFG.cpp | 2962 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitIfStmt() 2987 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 3013 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 3129 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitSEHExceptStmt() 3219 SaveAndRestore<CFGBlock *> save_try(TryTerminatedBlock, in VisitSEHTryStmt() 3226 SaveAndRestore<JumpTarget> save_break(SEHLeaveJumpTarget); in VisitSEHTryStmt() 3337 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos); in VisitForStmt() 3365 SaveAndRestore<JumpTarget> save_break(BreakJumpTarget); in VisitForStmt() 3375 SaveAndRestore<CFGBlock*> save_Block(Block), save_Succ(Succ); in VisitForStmt() 3376 SaveAndRestore<JumpTarget> save_continue(ContinueJumpTarget); in VisitForStmt() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 40 SaveAndRestore<bool> inFinally(inEH, true); in TraverseObjCAtFinallyStmt() 45 SaveAndRestore<bool> inCatch(inEH, true); in TraverseObjCAtCatchStmt() 50 SaveAndRestore<bool> inCatch(inEH, true); in TraverseCXXCatchStmt()
|
D | VirtualCallChecker.cpp | 96 SaveAndRestore<const CallExpr *> SaveCall(visitingCallExpr, WLUnit); in Execute()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 40 SaveAndRestore<bool> inFinally(inEH, true); in TraverseObjCAtFinallyStmt() 45 SaveAndRestore<bool> inCatch(inEH, true); in TraverseObjCAtCatchStmt() 50 SaveAndRestore<bool> inCatch(inEH, true); in TraverseCXXCatchStmt()
|
/external/llvm/lib/CodeGen/ |
D | CallingConvLower.cpp | 238 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters() 239 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CallingConvLower.cpp | 244 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters() 245 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CallingConvLower.cpp | 251 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters() 252 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ConstraintManager.h | 154 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ConstraintManager.h | 168 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | ASTSelection.cpp | 66 llvm::SaveAndRestore<bool> LookThrough(LookThroughOpaqueValueExprs, true); in TraversePseudoObjectExpr() 73 llvm::SaveAndRestore<bool> LookThrough(LookThroughOpaqueValueExprs, false); in TraverseOpaqueValueExpr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | PrettyStackTrace.cpp | 77 SaveAndRestore<PrettyStackTraceEntry *> SavedStack{PrettyStackTraceHead, in PrintStack()
|
/external/llvm-project/llvm/lib/Support/ |
D | PrettyStackTrace.cpp | 83 SaveAndRestore<PrettyStackTraceEntry *> SavedStack{PrettyStackTraceHead, in PrintStack()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCallAndReturn.cpp | 179 SaveAndRestore<const NodeBuilderContext *> NodeContextRAII(currBldrCtx, &BC); in removeDeadOnEndOfFunction() 327 SaveAndRestore<const NodeBuilderContext*> NBCSave(currBldrCtx, in processCallExit() 329 SaveAndRestore<unsigned> CBISave(currStmtIdx, calleeCtx->getIndex()); in processCallExit()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | Transforms.h | 200 SaveAndRestore<Decl *> SetParent(ParentD, D); in TraverseObjCMethodDecl()
|