Home
last modified time | relevance | path

Searched refs:Guard (Results 1 – 25 of 86) 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_interface.cpp222 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 Dxray_init.cpp64 SpinMutexLock Guard(&XRayInitMutex); in __xray_init() local
84 SpinMutexLock Guard(&XRayInstrMapMutex); in __xray_init() 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/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/Transforms/Scalar/
H A DLoopPredication.cpp1 //===-- LoopPredication.cpp - Guard based loop predication pass -----------===//
295 Value *expandCheck(SCEVExpander &Expander, Instruction *Guard,
301 Instruction *Guard);
305 Instruction *Guard);
309 Instruction *Guard);
312 SCEVExpander &Expander, Instruction *Guard);
314 bool widenWidenableBranchGuardConditions(BranchInst *Guard, SCEVExpander &Expander);
376 Instruction *Guard, in run()
383 IRBuilder<> Builder(Guard); in run()
392 Expander.expandCodeFor(LHS, Ty, findInsertPt(Expander, Guard, {LH in parseLoopICmp()
416 expandCheck(SCEVExpander & Expander,Instruction * Guard,ICmpInst::Predicate Pred,const SCEV * LHS,const SCEV * RHS) expandCheck() argument
582 widenICmpRangeCheckIncrementingLoop(LoopICmp LatchCheck,LoopICmp RangeCheck,SCEVExpander & Expander,Instruction * Guard) widenICmpRangeCheckIncrementingLoop() argument
632 widenICmpRangeCheckDecrementingLoop(LoopICmp LatchCheck,LoopICmp RangeCheck,SCEVExpander & Expander,Instruction * Guard) widenICmpRangeCheckDecrementingLoop() argument
695 widenICmpRangeCheck(ICmpInst * ICI,SCEVExpander & Expander,Instruction * Guard) widenICmpRangeCheck() argument
760 collectChecks(SmallVectorImpl<Value * > & Checks,Value * Condition,SCEVExpander & Expander,Instruction * Guard) collectChecks() argument
811 widenGuardConditions(IntrinsicInst * Guard,SCEVExpander & Expander) widenGuardConditions() argument
1322 for (auto *Guard : Guards) runOnLoop() local
1324 for (auto *Guard : GuardsAsWidenableBranches) runOnLoop() local
[all...]
H A DMakeGuardsExplicit.cpp46 static void turnToExplicitForm(CallInst *Guard, Function *DeoptIntrinsic) { in turnToExplicitForm() argument
48 BasicBlock *OriginalBB = Guard->getParent(); in turnToExplicitForm()
50 makeGuardControlFlowExplicit(DeoptIntrinsic, Guard, true); in turnToExplicitForm()
53 Guard->eraseFromParent(); in turnToExplicitForm()
76 for (auto *Guard : GuardIntrinsics) in explicifyGuards() local
77 turnToExplicitForm(Guard, DeoptIntrinsic); in explicifyGuards()
/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
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/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
193 std::lock_guard<std::mutex> Guard(Mutex); in finalize() local
319 std::lock_guard<std::mutex> Guard(Mutex); in insertString() local
341 std::lock_guard<std::mutex> Guard(Mutex); in addFunctionInfo() local
347 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local
356 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo() local
364 std::lock_guard<std::mutex> Guard(Mutex); in getNumFunctionInfos() local
480 std::lock_guard<std::mutex> Guard(Mutex); in copyFunctionInfo() local
/freebsd/contrib/llvm-project/llvm/lib/Debuginfod/
H A DDebuginfod.cpp329 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
360 std::lock_guard<sys::Mutex> Guard(UpdateMutex); in update() local
425 std::lock_guard<std::mutex> Guard(IteratorMutex); in findBinaries() local
471 std::unique_lock<std::mutex> Guard(IteratorMutex); in findBinaries() local
480 std::shared_lock<sys::RWMutex> Guard(BinariesMutex); in getBinaryPath() local
492 std::shared_lock<sys::RWMutex> Guard(DebugBinariesMutex); in getDebugBinaryPath() local
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp503 Value *Guard = TLI->getIRStackGuard(B); in InsertStackProtectors()
505 if ((GuardMode == "tls" || GuardMode.empty()) && Guard) in InsertStackProtectors()
506 return B.CreateLoad(B.getPtrTy(), Guard, true, "StackGuard"); in InsertStackProtectors()
626 LoadInst *Guard = B.CreateLoad(B.getPtrTy(), AI, true, "Guard"); in CreateFailBB()
627 CallInst *Call = B.CreateCall(GuardCheck, {Guard}); in CreateFailBB()
664 Value *Guard = getStackGuard(TLI, M, B);
666 auto *Cmp = cast<ICmpInst>(B.CreateICmpNE(Guard, LI2));
419 Value *Guard = TLI->getIRStackGuard(B); getStackGuard() local
543 LoadInst *Guard = B.CreateLoad(B.getInt8PtrTy(), AI, true, "Guard"); InsertStackProtectors() local
581 Value *Guard = getStackGuard(TLI, M, B); InsertStackProtectors() local
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DConcurrentHashtable.h179 CurBucket.Guard.lock(); in insert()
199 CurBucket.Guard.unlock(); in insert()
211 CurBucket.Guard.unlock(); in insert()
293 std::mutex Guard;
294 std::mutex Guard; global() member
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXUtilities.cpp51 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache() local
67 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local
101 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD() local
136 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation() local
159 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation() local
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueMap.h263 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBlockInCriticalSectionChecker.cpp95 mutable const IdentifierInfo *Guard{}; member in __anon83a18dc50111::RAIIMutexDescriptor
107 Guard = &ASTCtx.Idents.get(GuardName); in initIdentifierInfo()
117 return II == Guard; in matchesImpl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp771 llvm::GlobalVariable *Guard = new llvm::GlobalVariable( in EmitCXXModuleInitFunc() local
776 Guard->setAlignment(GuardAlign.getAsAlign()); in EmitCXXModuleInitFunc()
777 GuardAddr = ConstantAddress(Guard, Int8Ty, GuardAlign); in EmitCXXModuleInitFunc()
1060 ConstantAddress Guard) { in GenerateCXXGlobalInitFunc() argument
1069 if (Guard.isValid()) { in GenerateCXXGlobalInitFunc()
1072 llvm::Value *GuardVal = Builder.CreateLoad(Guard); in GenerateCXXGlobalInitFunc()
1083 Builder.CreateStore(llvm::ConstantInt::get(GuardVal->getType(),1), Guard); in GenerateCXXGlobalInitFunc()
1087 Guard.getPointer(), in GenerateCXXGlobalInitFunc()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DGuardUtils.h29 void makeGuardControlFlowExplicit(Function *DeoptIntrinsic, CallInst *Guard,
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp287 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/contrib/llvm-project/llvm/utils/TableGen/
H A DSearchableTableEmitter.cpp197 void emitIfdef(StringRef Guard, raw_ostream &OS);
303 void SearchableTableEmitter::emitIfdef(StringRef Guard, raw_ostream &OS) { in emitIfdef() argument
304 OS << "#ifdef " << Guard << "\n"; in emitIfdef()
305 PreprocessorGuards.insert(std::string(Guard)); in emitIfdef()
897 for (const auto &Guard : PreprocessorGuards) in run() local
898 OS << "#undef " << Guard << "\n"; in run()

1234