Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/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/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() argument
27 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
/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/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DAsmLexer.cpp504 SaveAndRestore<const char *> SavedTokenStart(TokStart); in peekTokens()
505 SaveAndRestore<const char *> SavedCurPtr(CurPtr); in peekTokens()
506 SaveAndRestore<bool> SavedAtStartOfLine(IsAtStartOfLine); in peekTokens()
507 SaveAndRestore<bool> SavedAtStartOfStatement(IsAtStartOfStatement); in peekTokens()
508 SaveAndRestore<bool> SavedSkipSpace(SkipSpace, ShouldSkipSpace); in peekTokens()
509 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 …]
DAnalysisDeclContext.cpp235 SaveAndRestore<bool> NotPrune(cfgBuildOptions.PruneTriviallyFalseEdges, in getUnoptimizedCFG()
/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/lib/CodeGen/
DCallingConvLower.cpp238 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters()
239 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCallingConvLower.cpp255 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters()
256 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DConstraintManager.h154 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
/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()
DExprEngine.cpp1768 SaveAndRestore<const NodeBuilderContext *> NodeContextRAII(currBldrCtx, &BC); in processBeginOfFunction()
/external/clang/lib/ARCMigrate/
DTransforms.h201 SaveAndRestore<Decl *> SetParent(ParentD, D); in TraverseObjCMethodDecl()
DTransGCAttrs.cpp50 SaveAndRestore<bool> Save(FullyMigratable, isMigratable(D)); in TraverseDecl()
/external/boringssl/src/crypto/err/
Derr_test.cc133 TEST(ErrTest, SaveAndRestore) { in TEST() argument
/external/clang/lib/Lex/
DMacroArgs.cpp158 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument()
DPPExpressions.cpp801 SaveAndRestore<bool> PPDir(ParsingIfOrElifDirective, true); in EvaluateDirectiveExpression()
/external/clang/lib/CodeGen/
DCGException.cpp1058 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in ExitCXXTryStmt()
1331 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in getTerminateHandler()
DCGCleanup.cpp934 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in PopCleanupBlock()
/external/clang/include/clang/Parse/
DParser.h736 SaveAndRestore<bool> WithinObjCContainer;
/external/clang/tools/libclang/
DCIndex.cpp619 SaveAndRestore<DeclContext::decl_iterator*> DI_saved(DI_current, &I); in VisitDeclContext()
620 SaveAndRestore<DeclContext::decl_iterator> DE_saved(DE_current, E); in VisitDeclContext()
/external/clang/lib/Serialization/
DASTReader.cpp3478 llvm::SaveAndRestore<SourceLocation> in ReadAST()
6717 SaveAndRestore<bool> GuardPassingDeclsToConsumer(PassingDeclsToConsumer, in PassInterestingDeclsToConsumer()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp7835 SaveAndRestore<bool> Restore(ProvingSplitPredicate, true); in isKnownPredicateViaSplitting()
7897 SaveAndRestore<bool> ClearOnExit(WalkingBEDominatingConds, true); in isLoopBackedgeGuardedByCond()

12