| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | HeaderGuardCheck.cpp | 27 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 D | xray_log_interface.cpp | 70 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 D | xray_fdr_logging.cpp | 499 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 D | xray_init.cpp | 64 SpinMutexLock Guard(&XRayInitMutex); in __xray_init() local 84 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_init() local
|
| H A D | xray_interface.cpp | 222 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 D | GuardUtils.cpp | 31 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 D | MakeGuardsExplicit.cpp | 56 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 D | LoopPredication.cpp | 414 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 D | PassRegistry.cpp | 36 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 D | GsymCreator.cpp | 39 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 D | join-at-loop-exit.ll | 4 ; 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 D | trivial-join-at-loop-exit.ll | 4 ; 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 D | LoopInfoTest.cpp | 287 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 D | cfguard-checks.ll | 2 ; 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 D | cfguard-module-flag.ll | 3 ; 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 D | Debuginfod.cpp | 237 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 D | cfguard-checks.ll | 2 ; 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 D | cfguard-module-flag.ll | 3 ; 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 D | cfguard-checks.ll | 3 ; 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 D | cfguard-module-flag.ll | 4 ; 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 D | StackProtector.cpp | 385 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 D | check-select-type.cpp | 38 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 D | cfguard-giats.ll | 2 ; 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 D | NVPTXUtilities.cpp | 48 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 D | Logger.cpp | 37 std::lock_guard<std::mutex> Guard(Mu); in logImpl() local 56 std::lock_guard<std::mutex> Guard(StreamMutex); in log() local
|