| /freebsd/contrib/llvm-project/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 | 496 RecursionGuard Guard{Running}; in fdrLoggingHandleArg0() local 497 if (!Guard) in fdrLoggingHandleArg0() 526 RecursionGuard Guard{Running}; in fdrLoggingHandleArg1() local 527 if (!Guard) in fdrLoggingHandleArg1() 556 RecursionGuard Guard{Running}; in fdrLoggingHandleCustomEvent() local 557 if (!Guard) in fdrLoggingHandleCustomEvent() 586 RecursionGuard Guard{Running}; in fdrLoggingHandleTypedEvent() local 587 if (!Guard) in fdrLoggingHandleTypedEvent()
|
| H A D | xray_init.cpp | 111 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_register_sleds() local 125 SpinMutexLock Guard(&XRayInitMutex); in __xray_init() local 220 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_deregister_dso() local
|
| H A D | xray_interface.cpp | 161 SpinMutexLock Guard(&XRayInstrMapMutex); in isObjectLoaded() local 239 SpinMutexLock Guard(&XRayInstrMapMutex); in patchFunction() local 299 SpinMutexLock Guard(&XRayInstrMapMutex); in controlPatchingObjectUnchecked() local 443 SpinMutexLock Guard(&XRayInstrMapMutex); in mprotectAndPatchFunction() local 637 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_function_address_in_object() local 668 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_max_function_id_in_object() local 676 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_num_objects() local
|
| H A D | xray_buffer_queue.cpp | 71 SpinMutexLock Guard(&Mutex); in init() local 167 SpinMutexLock Guard(&Mutex); in getBuffer() local 189 SpinMutexLock Guard(&Mutex); in releaseBuffer() local
|
| H A D | xray_basic_logging.cpp | 80 thread_local atomic_uint8_t Guard{0}; variable 168 RecursionGuard G(Guard); in InMemoryRawLog() 279 RecursionGuard G(Guard); in InMemoryRawLogWithArg()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPredication.cpp | 294 Value *expandCheck(SCEVExpander &Expander, Instruction *Guard, 300 Instruction *Guard); 304 Instruction *Guard); 308 Instruction *Guard); 311 SCEVExpander &Expander, Instruction *Guard); 313 bool widenWidenableBranchGuardConditions(BranchInst *Guard, SCEVExpander &Expander); 375 Instruction *Guard, in expandCheck() argument 382 IRBuilder<> Builder(Guard); in expandCheck() 391 Expander.expandCodeFor(LHS, Ty, findInsertPt(Expander, Guard, {LHS})); in expandCheck() 393 Expander.expandCodeFor(RHS, Ty, findInsertPt(Expander, Guard, {RHS})); in expandCheck() [all …]
|
| H A D | MakeGuardsExplicit.cpp | 44 static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) { in turnToExplicitForm() argument 46 BasicBlock *OriginalBB = Guard->getParent(); in turnToExplicitForm() 48 makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true); in turnToExplicitForm() 51 Guard->eraseFromParent(); in turnToExplicitForm() 74 for (auto *Guard : GuardIntrinsics) in explicifyGuards() local 75 turnToExplicitForm(Guard, DeoptIntrinsic); in explicifyGuards()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/libcxxrt/ |
| H A D | guard.cc | 278 using Guard = SingleWordGuard<uint32_t, 31, 0>; typedef 286 using Guard = SingleWordGuard<uint64_t, 63, 0>; typedef 293 using Guard = SingleWordGuard<uint64_t, 0, 56>; typedef 300 using Guard = DoubleWordGuard<31, 0>; typedef 305 using Guard = DoubleWordGuard<0, 24>; typedef 316 extern "C" int __cxa_guard_acquire(Guard *guard_object) in __cxa_guard_acquire() 354 extern "C" void __cxa_guard_abort(Guard *guard_object) in __cxa_guard_abort() 363 extern "C" void __cxa_guard_release(Guard *guard_object) in __cxa_guard_release()
|
| /freebsd/contrib/llvm-project/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 72 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener() local 77 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener() local
|
| /freebsd/contrib/ntp/sntp/unity/ |
| H A D | unity_fixture.c | 176 } Guard; typedef 184 Guard* guard; in unity_malloc() 195 guard = (Guard*)malloc(size + sizeof(Guard) + 4); in unity_malloc() 205 Guard* guard = (Guard*)mem; in isOverrun() 214 Guard* guard = (Guard*)mem; in release_memory() 240 Guard* guard = (Guard*)oldMem; in unity_realloc()
|
| /freebsd/stand/libsa/ |
| H A D | zalloc_malloc.c | 75 Guard *res; in Malloc_align() 113 Guard *res = (void *)((char *)ptr - MALLOCALIGN); in Free() 184 Guard *g = (Guard *)((char *)ptr - MALLOCALIGN); in Realloc()
|
| H A D | zalloc_defs.h | 71 typedef struct Guard { struct 74 } Guard; argument
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | GsymCreator.cpp | 42 std::lock_guard<std::mutex> Guard(Mutex); in insertFileEntry() local 81 std::lock_guard<std::mutex> Guard(Mutex); in encode() local 242 std::lock_guard<std::mutex> Guard(Mutex); in finalize() local 369 std::lock_guard<std::mutex> Guard(Mutex); in insertString() local 397 std::lock_guard<std::mutex> Guard(Mutex); in addFunctionInfo() local 403 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local 412 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local 420 std::lock_guard<std::mutex> Guard(Mutex); in getNumFunctionInfos() local 536 std::lock_guard<std::mutex> Guard(Mutex); in copyFunctionInfo() local
|
| /freebsd/contrib/llvm-project/llvm/lib/Debuginfod/ |
| H A D | Debuginfod.cpp | 341 std::lock_guard<std::mutex> Guard(QueueMutex); in push() local 349 std::unique_lock<std::mutex> Guard(QueueMutex); in pop() local 351 QueueCondition.wait(Guard, [&] { return !LogEntryQueue.empty(); }); in pop() 353 std::lock_guard<std::mutex> Guard(QueueMutex); in pop() local 372 std::lock_guard<sys::Mutex> Guard(UpdateMutex); in update() local 437 std::lock_guard<std::mutex> Guard(IteratorMutex); in findBinaries() local 483 std::unique_lock<std::mutex> Guard(IteratorMutex); in findBinaries() local 492 std::shared_lock<sys::RWMutex> Guard(BinariesMutex); in getBinaryPath() local 504 std::shared_lock<sys::RWMutex> Guard(DebugBinariesMutex); in getDebugBinaryPath() local
|
| /freebsd/contrib/llvm-project/libc/src/__support/threads/linux/ |
| H A D | rwlock.h | 64 class Guard { 68 LIBC_INLINE Guard(WaitingQueue &queue, bool is_pshared) in Guard() function 74 LIBC_INLINE ~Guard() { queue.unlock(is_pshared); } in ~Guard() 95 LIBC_INLINE Guard acquire(bool is_pshared) { in acquire() 96 return Guard(*this, is_pshared); in acquire() 425 WaitingQueue::Guard guard = queue.acquire(is_pshared); 449 WaitingQueue::Guard guard = queue.acquire(is_pshared); 498 WaitingQueue::Guard guard = queue.acquire(is_pshared); in notify_pending_threads()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.cpp | 54 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache() local 70 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local 105 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local 134 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation() local 154 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation() local
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 526 Value *Guard = TLI->getIRStackGuard(B); in getStackGuard() local 528 if ((GuardMode == "tls" || GuardMode.empty()) && Guard) in getStackGuard() 529 return B.CreateLoad(B.getPtrTy(), Guard, true, "StackGuard"); in getStackGuard() 641 LoadInst *Guard = B.CreateLoad(B.getPtrTy(), AI, true, "Guard"); in InsertStackProtectors() local 642 CallInst *Call = B.CreateCall(GuardCheck, {Guard}); in InsertStackProtectors() 679 Value *Guard = getStackGuard(TLI, M, B); in InsertStackProtectors() local 681 auto *Cmp = cast<ICmpInst>(B.CreateICmpNE(Guard, LI2)); in InsertStackProtectors()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | ConcurrentHashtable.h | 180 CurBucket.Guard.lock(); in insert() 200 CurBucket.Guard.unlock(); in insert() 212 CurBucket.Guard.unlock(); in insert() 294 std::mutex Guard; member
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
| H A D | PerfJITEventListener.cpp | 66 std::lock_guard<sys::Mutex> Guard(Mutex); in ~PerfJITEventListener() local 290 std::lock_guard<sys::Mutex> Guard(Mutex); in notifyObjectLoaded() local 429 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyCode() local 471 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyDebug() local
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ValueMap.h | 268 std::unique_lock<typename Config::mutex_type> Guard; 270 Guard = std::unique_lock<typename Config::mutex_type>(*M); 281 std::unique_lock<typename Config::mutex_type> Guard; 283 Guard = std::unique_lock<typename Config::mutex_type>(*M);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | GuardUtils.h | 29 void makeGuardControlFlowExplicit(Function *DeoptIntrinsic, CallInst *Guard,
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | SveEmitter.cpp | 206 std::string Guard; in getGuard() local 207 llvm::raw_string_ostream OS(Guard); in getGuard() 225 return Guard; in getGuard() 974 auto FormatGuard = [](StringRef Guard, StringRef Base) -> std::string { in Intrinsic() argument 975 if (Guard.contains('|')) in Intrinsic() 976 return Base.str() + ",(" + Guard.str() + ")"; in Intrinsic() 977 if (Guard.empty() || Guard == Base || Guard.starts_with(Base.str() + ",")) in Intrinsic() 978 return Guard.str(); in Intrinsic() 979 return Base.str() + "," + Guard.str(); in Intrinsic()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGDeclCXX.cpp | 791 llvm::GlobalVariable *Guard = new llvm::GlobalVariable( in EmitCXXModuleInitFunc() local 796 Guard->setAlignment(GuardAlign.getAsAlign()); in EmitCXXModuleInitFunc() 797 GuardAddr = ConstantAddress(Guard, Int8Ty, GuardAlign); in EmitCXXModuleInitFunc() 1083 ConstantAddress Guard) { in GenerateCXXGlobalInitFunc() argument 1092 if (Guard.isValid()) { in GenerateCXXGlobalInitFunc() 1095 llvm::Value *GuardVal = Builder.CreateLoad(Guard); in GenerateCXXGlobalInitFunc() 1106 Builder.CreateStore(llvm::ConstantInt::get(GuardVal->getType(),1), Guard); in GenerateCXXGlobalInitFunc() 1110 Guard.getPointer(), in GenerateCXXGlobalInitFunc()
|