| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | SaveAndRestore.h | 22 template <typename T> struct SaveAndRestore { struct 23 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore() argument 24 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { in SaveAndRestore() argument 27 ~SaveAndRestore() { X = OldValue; } in ~SaveAndRestore() argument
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | TypePrinter.cpp | 289 SaveAndRestore<bool> PrevPHIsEmpty(HasEmptyPlaceHolder); in printBefore() 366 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerBefore() 377 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printPointerAfter() 387 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerBefore() 394 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printBlockPointerAfter() 409 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceBefore() 422 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printLValueReferenceAfter() 434 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceBefore() 447 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printRValueReferenceAfter() 459 SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); in printMemberPointerBefore() [all …]
|
| H A D | ExprConstant.cpp | 8150 llvm::SaveAndRestore<bool> InConstantContext(Info.InConstantContext, true); in VisitConstantExpr()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | LLVM.h | 42 struct SaveAndRestore; 69 using llvm::SaveAndRestore;
|
| /freebsd-12.1/contrib/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 508 SaveAndRestore<const char *> SavedTokenStart(TokStart); in peekTokens() 509 SaveAndRestore<const char *> SavedCurPtr(CurPtr); in peekTokens() 510 SaveAndRestore<bool> SavedAtStartOfLine(IsAtStartOfLine); in peekTokens() 511 SaveAndRestore<bool> SavedAtStartOfStatement(IsAtStartOfStatement); in peekTokens() 512 SaveAndRestore<bool> SavedSkipSpace(SkipSpace, ShouldSkipSpace); in peekTokens() 513 SaveAndRestore<bool> SavedIsPeeking(IsPeeking, true); in peekTokens()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2791 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 2817 SaveAndRestore<CFGBlock*> sv(Succ); in VisitIfStmt() 3015 SaveAndRestore<CFGBlock *> save_try(TryTerminatedBlock, in VisitSEHTryStmt() 3022 SaveAndRestore<JumpTarget> save_break(SEHLeaveJumpTarget); in VisitSEHTryStmt() 3139 SaveAndRestore<JumpTarget> save_break(BreakJumpTarget); in VisitForStmt() 3149 SaveAndRestore<CFGBlock*> save_Block(Block), save_Succ(Succ); in VisitForStmt() 3150 SaveAndRestore<JumpTarget> save_continue(ContinueJumpTarget); in VisitForStmt() 3840 SaveAndRestore<CFGBlock*> save_switch(SwitchTerminatedBlock), in VisitSwitchStmt() 3842 SaveAndRestore<JumpTarget> save_break(BreakJumpTarget); in VisitSwitchStmt() 3872 SaveAndRestore<Expr::EvalResult*> save_switchCond(switchCond, in VisitSwitchStmt() [all …]
|
| H A D | AnalysisDeclContext.cpp | 233 SaveAndRestore<bool> NotPrune(cfgBuildOptions.PruneTriviallyFalseEdges, in getUnoptimizedCFG()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A 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()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CallingConvLower.cpp | 255 SaveAndRestore<bool> SavedVarArg(IsVarArg, false); in analyzeMustTailForwardedRegisters() 256 SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); in analyzeMustTailForwardedRegisters()
|
| H A D | TargetPassConfig.cpp | 785 SaveAndRestore<bool> SavedAddingMachinePasses(AddingMachinePasses, true); in addCoreISelPasses()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ConstraintManager.h | 173 SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); in isNull()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 68 llvm::SaveAndRestore<bool> LookThrough(LookThroughOpaqueValueExprs, true); in TraversePseudoObjectExpr() 75 llvm::SaveAndRestore<bool> LookThrough(LookThroughOpaqueValueExprs, false); in TraverseOpaqueValueExpr()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | Transforms.h | 201 SaveAndRestore<Decl *> SetParent(ParentD, D); in TraverseObjCMethodDecl()
|
| H A D | TransGCAttrs.cpp | 50 SaveAndRestore<bool> Save(FullyMigratable, isMigratable(D)); in TraverseDecl()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCallAndReturn.cpp | 178 SaveAndRestore<const NodeBuilderContext *> NodeContextRAII(currBldrCtx, &BC); in removeDeadOnEndOfFunction() 320 SaveAndRestore<const NodeBuilderContext*> NBCSave(currBldrCtx, in processCallExit() 322 SaveAndRestore<unsigned> CBISave(currStmtIdx, calleeCtx->getIndex()); in processCallExit()
|
| H A D | ExprEngine.cpp | 2200 SaveAndRestore<const NodeBuilderContext *> NodeContextRAII(currBldrCtx, &BC); in processBeginOfFunction()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | MacroArgs.cpp | 178 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument()
|
| H A D | PPExpressions.cpp | 826 SaveAndRestore<bool> PPDir(ParsingIfOrElifDirective, true); in EvaluateDirectiveExpression()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.cpp | 234 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad(CGF.CurrentFuncletPad); in EmitTryCatchStmt()
|
| H A D | CGException.cpp | 1177 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in ExitCXXTryStmt() 1211 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in ExitCXXTryStmt() 1535 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in getTerminateFunclet()
|
| H A D | CGCleanup.cpp | 982 SaveAndRestore<llvm::Instruction *> RestoreCurrentFuncletPad( in PopCleanupBlock()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Parse/ |
| H A D | Parser.h | 895 SaveAndRestore<bool> WithinObjCContainer;
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 3926 SaveAndRestore<bool> GuardPassingDeclsToConsumer(PassingDeclsToConsumer, in PassInterestingDeclsToConsumer()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 9337 SaveAndRestore<bool> Restore(ProvingSplitPredicate, true); in isKnownPredicateViaSplitting() 9404 SaveAndRestore<bool> ClearOnExit(WalkingBEDominatingConds, true); in isLoopBackedgeGuardedByCond()
|
| /freebsd-12.1/contrib/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 5451 SaveAndRestore<PerFunctionState *> ScopeExit(BlockAddressPFS, &PFS); in ParseFunctionBody()
|