Home
last modified time | relevance | path

Searched refs:Guard (Results 1 – 25 of 112) sorted by relevance

12345

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DHeaderGuardCheck.cpp27 Guard = llvm::sys::path::convert_to_slash(Guard); in getHeaderGuard()
35 Guard = Guard.substr(PosInclude + std::strlen("include/")); in getHeaderGuard()
40 Guard = Guard.substr(PosToolsClang + std::strlen("tools/")); in getHeaderGuard()
47 Guard = Guard.replace(PosLLVMProject, LLVMProject.size(), "/llvm/"); in getHeaderGuard()
52 Guard = Guard.substr(PosLLVM); in getHeaderGuard()
54 std::replace(Guard.begin(), Guard.end(), '/', '_'); in getHeaderGuard()
55 std::replace(Guard.begin(), Guard.end(), '.', '_'); in getHeaderGuard()
56 std::replace(Guard.begin(), Guard.end(), '-', '_'); in getHeaderGuard()
60 Guard = "LLVM_" + Guard; in getHeaderGuard()
64 Guard = "FORTRAN" + Guard.substr(sizeof("flang") - 1); in getHeaderGuard()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_log_interface.cpp70 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_register_mode() local
86 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_select_mode() local
100 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_get_current_mode() local
109 SpinMutexLock Guard(&XRayImplMutex); in __xray_set_log_impl() local
117 SpinMutexLock Guard(&XRayImplMutex); in __xray_set_log_impl() local
124 SpinMutexLock Guard(&XRayImplMutex); in __xray_remove_log_impl() local
133 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_init() local
141 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_init_mode() local
162 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_init_mode_bin() local
181 SpinMutexLock Guard(&XRayImplMutex); in __xray_log_finalize() local
[all …]
H A Dxray_fdr_logging.cpp499 RecursionGuard Guard{Running}; in fdrLoggingHandleArg0() local
500 if (!Guard) in fdrLoggingHandleArg0()
529 RecursionGuard Guard{Running}; in fdrLoggingHandleArg1() local
530 if (!Guard) in fdrLoggingHandleArg1()
559 RecursionGuard Guard{Running}; in fdrLoggingHandleCustomEvent() local
560 if (!Guard) in fdrLoggingHandleCustomEvent()
589 RecursionGuard Guard{Running}; in fdrLoggingHandleTypedEvent() local
590 if (!Guard) in fdrLoggingHandleTypedEvent()
H A Dxray_init.cpp64 SpinMutexLock Guard(&XRayInitMutex); in __xray_init() local
84 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_init() local
H A Dxray_interface.cpp222 SpinMutexLock Guard(&XRayInstrMapMutex); in patchFunction() local
280 SpinMutexLock Guard(&XRayInstrMapMutex); in controlPatching() local
347 SpinMutexLock Guard(&XRayInstrMapMutex); in mprotectAndPatchFunction() local
499 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_function_address() local
519 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_max_function_id() local
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DGuardUtils.cpp31 CallInst *Guard, bool UseWC) { in makeGuardControlFlowExplicit() argument
32 OperandBundleDef DeoptOB(*Guard->getOperandBundle(LLVMContext::OB_deopt)); in makeGuardControlFlowExplicit()
33 SmallVector<Value *, 4> Args(drop_begin(Guard->args())); in makeGuardControlFlowExplicit()
35 auto *CheckBB = Guard->getParent(); in makeGuardControlFlowExplicit()
37 SplitBlockAndInsertIfThen(Guard->getArgOperand(0), Guard, true); in makeGuardControlFlowExplicit()
48 if (auto *MD = Guard->getMetadata(LLVMContext::MD_make_implicit)) in makeGuardControlFlowExplicit()
51 MDBuilder MDB(Guard->getContext()); in makeGuardControlFlowExplicit()
65 DeoptCall->setCallingConv(Guard->getCallingConv()); in makeGuardControlFlowExplicit()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DMakeGuardsExplicit.cpp56 static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) { in turnToExplicitForm() argument
58 BasicBlock *OriginalBB = Guard->getParent(); in turnToExplicitForm()
60 makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true); in turnToExplicitForm()
63 Guard->eraseFromParent(); in turnToExplicitForm()
86 for (auto *Guard : GuardIntrinsics) in explicifyGuards() local
87 turnToExplicitForm(Guard, DeoptIntrinsic); in explicifyGuards()
H A DLoopPredication.cpp414 IRBuilder<> Builder(Guard); in expandCheck()
573 SCEVExpander &Expander, Instruction *Guard) { in widenICmpRangeCheckIncrementingLoop() argument
595 if (!Expander.isSafeToExpandAt(LatchStart, Guard) || in widenICmpRangeCheckIncrementingLoop()
622 SCEVExpander &Expander, Instruction *Guard) { in widenICmpRangeCheckDecrementingLoop() argument
804 LLVM_DEBUG(Guard->dump()); in widenGuardConditions()
809 Guard); in widenGuardConditions()
816 IRBuilder<> Builder(findInsertPt(Guard, Checks)); in widenGuardConditions()
818 auto *OldCond = Guard->getOperand(0); in widenGuardConditions()
819 Guard->setOperand(0, AllChecks); in widenGuardConditions()
1307 for (auto *Guard : Guards) in runOnLoop() local
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DPassRegistry.cpp36 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo() local
41 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo() local
50 sys::SmartScopedWriter<true> Guard(Lock); in registerPass() local
66 sys::SmartScopedReader<true> Guard(Lock); in enumerateWith() local
90 sys::SmartScopedWriter<true> Guard(Lock); in registerAnalysisGroup() local
111 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener() local
116 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener() local
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp39 std::lock_guard<std::mutex> Guard(Mutex); in insertFile() local
59 std::lock_guard<std::mutex> Guard(Mutex); in encode() local
192 std::lock_guard<std::mutex> Guard(Mutex); in finalize() local
309 std::lock_guard<std::mutex> Guard(Mutex); in insertString() local
325 std::lock_guard<std::mutex> Guard(Mutex); in addFunctionInfo() local
332 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local
341 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local
349 std::lock_guard<std::mutex> Guard(Mutex); in getNumFunctionInfos() local
360 std::lock_guard<std::mutex> Guard(Mutex); in hasFunctionInfoForAddress() local
/llvm-project-15.0.7/llvm/test/Analysis/DivergenceAnalysis/AMDGPU/
H A Djoin-at-loop-exit.ll4 ; CHECK: DIVERGENT: %Guard.bb4 = phi i1 [ true, %bb1 ], [ false, %bb2 ]
5 ; CHECK: DIVERGENT: br i1 %Guard.bb4, label %bb4, label %bb5
26 %Guard.bb4 = phi i1 [ true, %bb1 ], [ false, %bb2 ]
27 br i1 %Guard.bb4, label %bb4, label %bb5
H A Dtrivial-join-at-loop-exit.ll4 ; CHECK-NOT: DIVERGENT: %Guard.bb2 = phi i1 [ true, %bb1 ], [ false, %bb0 ]
21 %Guard.bb2 = phi i1 [ true, %bb1 ], [ false, %bb0 ]
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DLoopInfoTest.cpp287 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
346 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
405 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
464 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
523 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
583 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
639 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
698 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
757 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
815 EXPECT_EQ(L->getLoopGuardBranch(), Guard); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dcfguard-checks.ll2 ; Control Flow Guard is currently only available on Windows
4 ; Test that Control Flow Guard checks are correctly added when required.
10 ; Test that Control Flow Guard checks are not added on calls with the "guard_nocf" attribute.
28 ; Test that Control Flow Guard checks are added even at -O0.
51 ; Test that Control Flow Guard checks are correctly added in optimized code (common case).
72 ; Test that Control Flow Guard checks are correctly added on invoke instructions.
H A Dcfguard-module-flag.ll3 ; Control Flow Guard is currently only available on Windows
5 ; Test that Control Flow Guard checks are not added in modules with the
/llvm-project-15.0.7/llvm/lib/Debuginfod/
H A DDebuginfod.cpp237 std::lock_guard<std::mutex> Guard(QueueMutex); in push() local
245 std::unique_lock<std::mutex> Guard(QueueMutex); in pop() local
247 QueueCondition.wait(Guard, [&] { return !LogEntryQueue.empty(); }); in pop()
249 std::lock_guard<std::mutex> Guard(QueueMutex); in pop() local
267 std::lock_guard<sys::Mutex> Guard(UpdateMutex); in update() local
342 std::lock_guard<std::mutex> Guard(IteratorMutex); in findBinaries() local
388 std::unique_lock<std::mutex> Guard(IteratorMutex); in findBinaries() local
397 std::shared_lock<sys::RWMutex> Guard(BinariesMutex); in getBinaryPath() local
409 std::shared_lock<sys::RWMutex> Guard(DebugBinariesMutex); in getDebugBinaryPath() local
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dcfguard-checks.ll2 ; Control Flow Guard is currently only available on Windows
4 ; Test that Control Flow Guard checks are correctly added when required.
10 ; Test that Control Flow Guard checks are not added on calls with the "guard_nocf" attribute.
29 ; Test that Control Flow Guard checks are added even at -O0.
54 ; Test that Control Flow Guard checks are correctly added in optimized code (common case).
76 ; Test that Control Flow Guard checks are correctly added on invoke instructions.
H A Dcfguard-module-flag.ll3 ; Control Flow Guard is currently only available on Windows
5 ; Test that Control Flow Guard checks are not added in modules with the
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcfguard-checks.ll3 ; Control Flow Guard is currently only available on Windows
5 ; Test that Control Flow Guard checks are correctly added when required.
11 ; Test that Control Flow Guard checks are not added on calls with the "guard_nocf" attribute.
33 ; Test that Control Flow Guard checks are added even at -O0.
62 ; Test that Control Flow Guard checks are correctly added in optimized code (common case).
86 ; Test that Control Flow Guard checks are correctly added on invoke instructions.
124 ; Test that Control Flow Guard preserves floating point arguments.
155 ; Test that Control Flow Guard checks are correctly added for tail calls.
178 ; Test that Control FLow Guard Checks are added well for targets in try-catch.
229 ; Test that Control Flow Guard checks are correctly added for variadic musttail
H A Dcfguard-module-flag.ll4 ; Control Flow Guard is currently only available on Windows
6 ; Test that Control Flow Guard checks are not added in modules with the
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DStackProtector.cpp385 Value *Guard = TLI->getIRStackGuard(B); in getStackGuard() local
387 if ((GuardMode == "tls" || GuardMode.empty()) && Guard) in getStackGuard()
388 return B.CreateLoad(B.getInt8PtrTy(), Guard, true, "StackGuard"); in getStackGuard()
496 LoadInst *Guard = B.CreateLoad(B.getInt8PtrTy(), AI, true, "Guard"); in InsertStackProtectors() local
497 CallInst *Call = B.CreateCall(GuardCheck, {Guard}); in InsertStackProtectors()
551 Value *Guard = getStackGuard(TLI, M, B); in InsertStackProtectors() local
553 Value *Cmp = B.CreateICmpEQ(Guard, LI2); in InsertStackProtectors()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-select-type.cpp38 const auto &guard{std::get<parser::TypeGuardStmt::Guard>(typeGuardStmt.t)}; in AddTypeCase()
53 const parser::TypeGuardStmt::Guard &guard) { in GetGuardType()
77 const auto &guard{std::get<parser::TypeGuardStmt::Guard>(typeGuardStmt.t)}; in PassesChecksOnGuard()
184 const parser::TypeGuardStmt::Guard &GetGuardFromStmt( in GetGuardFromStmt()
187 return std::get<parser::TypeGuardStmt::Guard>(typeGuardStmt.t); in GetGuardFromStmt()
/llvm-project-15.0.7/llvm/test/CodeGen/WinCFGuard/
H A Dcfguard-giats.ll2 ; Control Flow Guard is currently only available on Windows
10 ; Guard Address-Taken IAT Entry (.giats) and Guard Function ID (.gfids) sections.
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp48 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache() local
54 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local
81 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local
116 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation() local
131 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation() local
/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DLogger.cpp37 std::lock_guard<std::mutex> Guard(Mu); in logImpl() local
56 std::lock_guard<std::mutex> Guard(StreamMutex); in log() local

12345