Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/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.cpp496 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 Dxray_init.cpp111 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 Dxray_interface.cpp161 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 Dxray_buffer_queue.cpp71 SpinMutexLock Guard(&Mutex); in init() local
167 SpinMutexLock Guard(&Mutex); in getBuffer() local
189 SpinMutexLock Guard(&Mutex); in releaseBuffer() local
H A Dxray_basic_logging.cpp80 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 DLoopPredication.cpp294 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 DMakeGuardsExplicit.cpp44 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 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()
/freebsd/contrib/libcxxrt/
H A Dguard.cc278 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 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
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 Dunity_fixture.c176 } 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 Dzalloc_malloc.c75 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 Dzalloc_defs.h71 typedef struct Guard { struct
74 } Guard; argument
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp42 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 DDebuginfod.cpp341 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 Drwlock.h64 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 DNVPTXUtilities.cpp54 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 DStackProtector.cpp526 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 DConcurrentHashtable.h180 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 DPerfJITEventListener.cpp66 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 DValueMap.h268 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 DGuardUtils.h29 void makeGuardControlFlowExplicit(Function *DeoptIntrinsic, CallInst *Guard,
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DSveEmitter.cpp206 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 DCGDeclCXX.cpp791 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()

1234