Home
last modified time | relevance | path

Searched refs:SaveAndRestore (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm-project/llvm/include/llvm/Support/
DSaveAndRestore.h21 template <typename T> struct SaveAndRestore { struct
22 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() function
23 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() argument
26 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DSaveAndRestore.h21 template <typename T> struct SaveAndRestore { struct
22 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() function
23 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() function
26 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
/external/llvm/include/llvm/Support/
DSaveAndRestore.h22 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() function
27 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
/external/tensorflow/tensorflow/core/kernels/data/
Dsplit_utils_test.cc30 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/
DTypePrinter.cpp154 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/
DLLVM.h39 struct SaveAndRestore;
71 using llvm::SaveAndRestore;
/external/llvm-project/clang/include/clang/Basic/
DLLVM.h41 struct SaveAndRestore;
69 using llvm::SaveAndRestore;
/external/llvm-project/clang/lib/AST/
DTypePrinter.cpp184 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/
DAsmLexer.cpp510 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/
DAsmLexer.cpp638 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/
DCFG.cpp2170 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/
DCFG.cpp2962 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/
DDeadStoresChecker.cpp40 SaveAndRestore<bool> inFinally(inEH, true); in TraverseObjCAtFinallyStmt()
45 SaveAndRestore<bool> inCatch(inEH, true); in TraverseObjCAtCatchStmt()
50 SaveAndRestore<bool> inCatch(inEH, true); in TraverseCXXCatchStmt()
DVirtualCallChecker.cpp96 SaveAndRestore<const CallExpr *> SaveCall(visitingCallExpr, WLUnit); in Execute()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp40 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/
DCallingConvLower.cpp238 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/
DCallingConvLower.cpp244 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters()
245 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
/external/llvm-project/llvm/lib/CodeGen/
DCallingConvLower.cpp251 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters()
252 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DConstraintManager.h154 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DConstraintManager.h168 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DASTSelection.cpp66 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/
DPrettyStackTrace.cpp77 SaveAndRestore<PrettyStackTraceEntry *> SavedStack{PrettyStackTraceHead, in PrintStack()
/external/llvm-project/llvm/lib/Support/
DPrettyStackTrace.cpp83 SaveAndRestore<PrettyStackTraceEntry *> SavedStack{PrettyStackTraceHead, in PrintStack()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp179 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/
DTransforms.h200 SaveAndRestore<Decl *> SetParent(ParentD, D); in TraverseObjCMethodDecl()

123