| /freebsd-14.2/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 | 501 RecursionGuard Guard{Running}; in fdrLoggingHandleArg0() local 502 if (!Guard) in fdrLoggingHandleArg0() 531 RecursionGuard Guard{Running}; in fdrLoggingHandleArg1() local 532 if (!Guard) in fdrLoggingHandleArg1() 561 RecursionGuard Guard{Running}; in fdrLoggingHandleCustomEvent() local 562 if (!Guard) in fdrLoggingHandleCustomEvent() 591 RecursionGuard Guard{Running}; in fdrLoggingHandleTypedEvent() local 592 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 284 SpinMutexLock Guard(&XRayInstrMapMutex); in controlPatching() local 351 SpinMutexLock Guard(&XRayInstrMapMutex); in mprotectAndPatchFunction() local 508 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_function_address() local 528 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_max_function_id() 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-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopPredication.cpp | 383 IRBuilder<> Builder(Guard); in expandCheck() 542 Instruction *Guard) { in widenICmpRangeCheckIncrementingLoop() argument 564 if (!Expander.isSafeToExpandAt(LatchStart, Guard) || in widenICmpRangeCheckIncrementingLoop() 592 Instruction *Guard) { in widenICmpRangeCheckDecrementingLoop() argument 731 LLVM_DEBUG(Guard->dump()); in widenGuardConditions() 736 parseWidenableGuard(Guard, Checks); in widenGuardConditions() 744 IRBuilder<> Builder(findInsertPt(Guard, Checks)); in widenGuardConditions() 746 auto *OldCond = Guard->getOperand(0); in widenGuardConditions() 747 Guard->setOperand(0, AllChecks); in widenGuardConditions() 1239 for (auto *Guard : Guards) in runOnLoop() local [all …]
|
| H A D | MakeGuardsExplicit.cpp | 45 static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) { in turnToExplicitForm() argument 47 BasicBlock *OriginalBB = Guard->getParent(); in turnToExplicitForm() 49 makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true); in turnToExplicitForm() 52 Guard->eraseFromParent(); in turnToExplicitForm() 75 for (auto *Guard : GuardIntrinsics) in explicifyGuards() local 76 turnToExplicitForm(Guard, DeoptIntrinsic); in explicifyGuards()
|
| /freebsd-14.2/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 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
|
| /freebsd-14.2/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-14.2/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; typedef
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | GsymCreator.cpp | 41 std::lock_guard<std::mutex> Guard(Mutex); in insertFileEntry() local 77 std::lock_guard<std::mutex> Guard(Mutex); in encode() local 189 std::lock_guard<std::mutex> Guard(Mutex); in finalize() local 312 std::lock_guard<std::mutex> Guard(Mutex); in insertString() local 334 std::lock_guard<std::mutex> Guard(Mutex); in addFunctionInfo() local 340 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local 349 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local 357 std::lock_guard<std::mutex> Guard(Mutex); in getNumFunctionInfos() local 473 std::lock_guard<std::mutex> Guard(Mutex); in copyFunctionInfo() local
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Debuginfod/ |
| H A D | Debuginfod.cpp | 329 std::lock_guard<std::mutex> Guard(QueueMutex); in push() local 337 std::unique_lock<std::mutex> Guard(QueueMutex); in pop() local 339 QueueCondition.wait(Guard, [&] { return !LogEntryQueue.empty(); }); in pop() 341 std::lock_guard<std::mutex> Guard(QueueMutex); in pop() local 359 std::lock_guard<sys::Mutex> Guard(UpdateMutex); in update() local 424 std::lock_guard<std::mutex> Guard(IteratorMutex); in findBinaries() local 470 std::unique_lock<std::mutex> Guard(IteratorMutex); in findBinaries() local 479 std::shared_lock<sys::RWMutex> Guard(BinariesMutex); in getBinaryPath() local 491 std::shared_lock<sys::RWMutex> Guard(DebugBinariesMutex); in getDebugBinaryPath() local
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 503 Value *Guard = TLI->getIRStackGuard(B); in getStackGuard() local 505 if ((GuardMode == "tls" || GuardMode.empty()) && Guard) in getStackGuard() 506 return B.CreateLoad(B.getPtrTy(), Guard, true, "StackGuard"); in getStackGuard() 626 LoadInst *Guard = B.CreateLoad(B.getPtrTy(), AI, true, "Guard"); in InsertStackProtectors() local 627 CallInst *Call = B.CreateCall(GuardCheck, {Guard}); in InsertStackProtectors() 664 Value *Guard = getStackGuard(TLI, M, B); in InsertStackProtectors() local 666 auto *Cmp = cast<ICmpInst>(B.CreateICmpNE(Guard, LI2)); in InsertStackProtectors()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXUtilities.cpp | 49 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache() local 55 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local 82 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local 117 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation() local 132 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation() local
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | ConcurrentHashtable.h | 179 CurBucket.Guard.lock(); in insert() 199 CurBucket.Guard.unlock(); in insert() 211 CurBucket.Guard.unlock(); in insert() 293 std::mutex Guard; member
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | GuardUtils.h | 29 void makeGuardControlFlowExplicit(Function *DeoptIntrinsic, CallInst *Guard,
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ValueMap.h | 263 std::unique_lock<typename Config::mutex_type> Guard; 265 Guard = std::unique_lock<typename Config::mutex_type>(*M); 276 std::unique_lock<typename Config::mutex_type> Guard; 278 Guard = std::unique_lock<typename Config::mutex_type>(*M);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGDeclCXX.cpp | 760 llvm::GlobalVariable *Guard = new llvm::GlobalVariable( in EmitCXXModuleInitFunc() local 765 Guard->setAlignment(GuardAlign.getAsAlign()); in EmitCXXModuleInitFunc() 766 GuardAddr = ConstantAddress(Guard, Int8Ty, GuardAlign); in EmitCXXModuleInitFunc() 1045 ConstantAddress Guard) { in GenerateCXXGlobalInitFunc() argument 1054 if (Guard.isValid()) { in GenerateCXXGlobalInitFunc() 1057 llvm::Value *GuardVal = Builder.CreateLoad(Guard); in GenerateCXXGlobalInitFunc() 1068 Builder.CreateStore(llvm::ConstantInt::get(GuardVal->getType(),1), Guard); in GenerateCXXGlobalInitFunc() 1072 Guard.getPointer(), in GenerateCXXGlobalInitFunc()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
| H A D | PerfJITEventListener.cpp | 287 std::lock_guard<sys::Mutex> Guard(Mutex); in notifyObjectLoaded() local 426 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyCode() local 468 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyDebug() local
|
| /freebsd-14.2/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | SveEmitter.cpp | 168 std::string Guard; member in __anonc999c1430111::Intrinsic 187 ClassKind Class, SVEEmitter &Emitter, StringRef Guard); 197 StringRef getGuard() const { return Guard; } in getGuard() 946 SVEEmitter &Emitter, StringRef Guard) in Intrinsic() argument 948 BaseTypeSpec(BT), Class(Class), Guard(Guard.str()), in Intrinsic() 1150 StringRef Guard = R->getValueAsString("TargetGuard"); in createIntrinsic() local 1206 TS, ClassS, *this, Guard)); in createIntrinsic() 1212 ImmChecks, TS, ClassG, *this, Guard)); in createIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | SearchableTableEmitter.cpp | 193 void emitIfdef(StringRef Guard, raw_ostream &OS); 290 void SearchableTableEmitter::emitIfdef(StringRef Guard, raw_ostream &OS) { in emitIfdef() argument 291 OS << "#ifdef " << Guard << "\n"; in emitIfdef() 292 PreprocessorGuards.insert(std::string(Guard)); in emitIfdef() 840 for (const auto &Guard : PreprocessorGuards) in run() local 841 OS << "#undef " << Guard << "\n"; in run()
|