| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | DynamicLibrary.cpp | 33 static void DLClose(void *Handle); 39 HandleList::iterator Find(void *Handle) { return find(Handles, Handle); } in Find() argument 41 bool Contains(void *Handle) { in Contains() argument 42 return Handle == Process || Find(Handle) != Handles.end(); in Contains() 53 DLClose(Handle); in AddLibrary() 56 Handles.push_back(Handle); in AddLibrary() 62 if (Process == Handle) in AddLibrary() 66 Process = Handle; in AddLibrary() 150 if (Handle != &Invalid) { in getPermanentLibrary() 155 return DynamicLibrary(Handle); in getPermanentLibrary() [all …]
|
| /llvm-project-15.0.7/llvm/utils/KillTheDoctor/ |
| H A D | KillTheDoctor.cpp | 81 handle_type Handle; member in __anon594f3b190111::ScopedHandle 88 : Handle(handle) {} in ScopedHandle() 91 HandleType::Destruct(Handle); in ~ScopedHandle() 96 if (!HandleType::isValid(Handle)) in operator =() 97 HandleType::Destruct(Handle); in operator =() 98 Handle = handle; in operator =() 103 return HandleType::isValid(Handle); in operator bool() 107 return Handle; in operator handle_type() 120 ::CloseHandle(Handle); in Destruct() 136 ::CloseHandle(Handle); in Destruct() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/Windows/ |
| H A D | WindowsSupport.h | 80 handle_type Handle; variable 86 : Handle(HandleTraits::GetInvalid()) {} in ScopedHandle() 89 : Handle(h) {} in ScopedHandle() 92 if (HandleTraits::IsValid(Handle)) in ~ScopedHandle() 93 HandleTraits::Close(Handle); in ~ScopedHandle() 97 handle_type t = Handle; in take() 98 Handle = HandleTraits::GetInvalid(); in take() 103 if (HandleTraits::IsValid(Handle)) 104 HandleTraits::Close(Handle); 105 Handle = h; [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_addrhashmap.h | 72 class Handle { 78 ~Handle(); 104 friend class Handle; 107 void acquire(Handle *h); 108 void release(Handle *h); 140 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr) { in Handle() function 149 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr, in Handle() function 159 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr, in Handle() function 169 AddrHashMap<T, kSize>::Handle::~Handle() { in ~Handle() 184 T &AddrHashMap<T, kSize>::Handle::operator*() { [all …]
|
| H A D | sanitizer_chained_origin_depot.cpp | 44 struct Handle { struct 47 Handle(const ChainedOriginDepotNode *node, u32 id) : node_(node), id_(id) {} in Handle() argument 54 static Handle get_handle(u32 id); 56 typedef Handle handle_type; 119 ChainedOriginDepotNode::Handle ChainedOriginDepotNode::get_handle(u32 id) { in get_handle() 120 return Handle(&depot.nodes[id], id); in get_handle()
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | DynamicLibrary.inc | 18 for (void *Handle : llvm::reverse(Handles)) 19 ::dlclose(Handle); 28 void *Handle = ::dlopen(File, RTLD_LAZY|RTLD_GLOBAL); 29 if (!Handle) { 38 Handle = RTLD_DEFAULT; 41 return Handle; 44 void DynamicLibrary::HandleSet::DLClose(void *Handle) { 45 ::dlclose(Handle); 48 void *DynamicLibrary::HandleSet::DLSym(void *Handle, const char *Symbol) { 49 return ::dlsym(Handle, Symbol); [all …]
|
| /llvm-project-15.0.7/openmp/libomptarget/test/offloading/ |
| H A D | dynamic_module_load.c | 15 void *Handle = dlopen(argv[1], RTLD_NOW); in main() local 18 if (Handle == NULL) { in main() 22 Foo = (int (*)(void)) dlsym(Handle, "foo"); in main() 23 if (Handle == NULL) { in main()
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | DynamicLibrary.inc | 26 for (void *Handle : llvm::reverse(Handles)) 27 FreeLibrary(HMODULE(Handle)); 30 assert((!Process || Process==this) && "Bad Handle"); 48 HMODULE Handle = LoadLibraryW(FileUnicode.data()); 49 if (Handle == NULL) { 54 return reinterpret_cast<void*>(Handle); 61 return Handle == &Inst ? &Inst : nullptr; 64 void DynamicLibrary::HandleSet::DLClose(void *Handle) { 65 if (HandleSet* HS = IsOpenedHandlesInstance(Handle)) 68 FreeLibrary((HMODULE)Handle); [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/profile/Inputs/ |
| H A D | instrprof-value-prof-visibility.c | 30 void *Handle = dlopen(DLOPEN_FUNC_DIR "/func.shared", RTLD_NOW); in main() local 31 if (!Handle) { in main() 41 Handle, "lprofMergeValueProfData"); in main() 49 dlclose(Handle); in main()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | FuchsiaHandleChecker.cpp | 324 if (SymbolRef Handle = Call.getArgSVal(Arg).getAsSymbol()) in checkPreCall() local 343 for (SymbolRef Handle : Handles) { in checkPreCall() local 344 const HandleState *HState = State->get<HStateMap>(Handle); in checkPreCall() 351 reportUseAfterFree(Handle, Call.getArgSourceRange(Arg), C); in checkPreCall() 419 for (SymbolRef Handle : Handles) { in checkPostCall() local 420 const HandleState *HState = State->get<HStateMap>(Handle); in checkPostCall() 425 reportDoubleRelease(Handle, Call.getArgSourceRange(Arg), C); in checkPostCall() 428 reportUnownedRelease(Handle, Call.getArgSourceRange(Arg), C); in checkPostCall() 457 Handle, HandleState::getMaybeAllocated(ResultSymbol)); in checkPostCall() 585 for (SymbolRef Handle : Handles) { in checkPointerEscape() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerUtilFuchsia.cpp | 224 ~ScopedHandle() { _zx_handle_close(Handle); } in CrashHandler() 225 zx_handle_t Handle = ZX_HANDLE_INVALID; in CrashHandler() member 235 Self, ZX_EXCEPTION_CHANNEL_DEBUGGER, &Channel.Handle), in CrashHandler() 252 .handle = Channel.Handle, in CrashHandler() 265 ExitOnErr(_zx_channel_read(Channel.Handle, 0, &ExceptionInfo, in CrashHandler() 266 &Exception.Handle, sizeof(ExceptionInfo), 1, in CrashHandler() 284 ExitOnErr(_zx_exception_get_thread(Exception.Handle, &Thread.Handle), in CrashHandler() 288 ExitOnErr(_zx_thread_read_state(Thread.Handle, ZX_THREAD_STATE_GENERAL_REGS, in CrashHandler() 319 _zx_thread_write_state(Thread.Handle, ZX_THREAD_STATE_GENERAL_REGS, in CrashHandler() 325 ExitOnErr(_zx_object_set_property(Exception.Handle, ZX_PROP_EXCEPTION_STATE, in CrashHandler()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCDynamicLibrarySearchGenerator.cpp | 18 auto Handle = ES.getExecutorProcessControl().loadDylib(LibraryPath); in Load() local 19 if (!Handle) in Load() 20 return Handle.takeError(); in Load() 22 return std::make_unique<EPCDynamicLibrarySearchGenerator>(ES, *Handle, in Load()
|
| H A D | ELFNixPlatform.cpp | 433 SendDeinitializerSequenceFn SendResult, ExecutorAddr Handle) { in rt_getDeinitializers() argument 436 << formatv("{0:x}", Handle.getValue()) << "\")\n"; in rt_getDeinitializers() 443 auto I = HandleAddrToJITDylib.find(Handle); in rt_getDeinitializers() 451 << formatv("{0:x}", Handle.getValue()) << "\n"; in rt_getDeinitializers() 454 formatv("{0:x}", Handle.getValue()), in rt_getDeinitializers() 463 ExecutorAddr Handle, in rt_lookupSymbol() argument 467 << formatv("{0:x}", Handle.getValue()) << "\")\n"; in rt_lookupSymbol() 474 auto I = HandleAddrToJITDylib.find(Handle); in rt_lookupSymbol() 482 << formatv("{0:x}", Handle.getValue()) << "\n"; in rt_lookupSymbol() 485 formatv("{0:x}", Handle.getValue()), in rt_lookupSymbol()
|
| H A D | EPCGenericDylibManager.cpp | 50 return MemberSerialization::size(ExecutorAddr(LR.Handle), LR.Symbols); in size() 55 return MemberSerialization::serialize(OB, ExecutorAddr(LR.Handle), in serialize()
|
| /llvm-project-15.0.7/polly/tools/GPURuntime/ |
| H A D | GPUJIT.c | 211 static void *getAPIHandleCL(void *Handle, const char *FuncName) { in getAPIHandleCL() argument 215 FuncPtr = dlsym(Handle, FuncName); in getAPIHandleCL() 256 void *Handle = in initialDeviceAPIsCL() local 275 Handle, "clCreateCommandQueue"); in initialDeviceAPIsCL() 281 Handle, "clEnqueueWriteBuffer"); in initialDeviceAPIsCL() 286 Handle, "clCreateProgramWithLLVMIntel"); in initialDeviceAPIsCL() 290 Handle, "clCreateProgramWithBinary"); in initialDeviceAPIsCL() 302 Handle, "clEnqueueNDRangeKernel"); in initialDeviceAPIsCL() 307 clFlushFcnPtr = (clFlushFcnTy *)getAPIHandleCL(Handle, "clFlush"); in initialDeviceAPIsCL() 321 Handle, "clReleaseCommandQueue"); in initialDeviceAPIsCL() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/dd/ |
| H A D | dd_rtl.cpp | 116 MutexHashMap::Handle h(&ctx->mutex_map, m); in MutexBeforeLock() 129 MutexHashMap::Handle h(&ctx->mutex_map, m); in MutexAfterLock() 142 MutexHashMap::Handle h(&ctx->mutex_map, m); in MutexBeforeUnlock() 152 MutexHashMap::Handle h(&ctx->mutex_map, m, true); in MutexDestroy()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/generic-elf-64bit/src/ |
| H A D | rtl.cpp | 45 void *Handle; member 102 if (Lib.Handle) { in ~RTLDeviceInfoTy() 103 dlclose(Lib.Handle); in ~RTLDeviceInfoTy() 216 if (!Lib.Handle) { in __tgt_rtl_load_binary() 224 struct link_map *LibInfo = (struct link_map *)Lib.Handle; in __tgt_rtl_load_binary()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/ |
| H A D | err58-cpp.rst | 10 `ERR58-CPP. Handle all exceptions thrown before main() begins executing 11 <https://www.securecoding.cert.org/confluence/display/cplusplus/ERR58-CPP.+Handle+all+exceptions+th…
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_utils.cpp | 110 zx_handle_t Handle; in Open() local 111 Status =_zx_handle_duplicate(Vmo, ZX_RIGHT_SAME_RIGHTS, &Handle); in Open() 121 __sanitizer_publish_data(ProfileSinkName, Handle); in Open()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | PassBuilderCallbacksTest.cpp | 51 DerivedT *Handle; member in __anona795cd440111::MockAnalysisHandleBase::Analysis 53 Analysis(DerivedT &Handle) : Handle(&Handle) { in Analysis() argument 62 DerivedT *Handle; member in __anona795cd440111::MockAnalysisHandleBase::Analysis::Result 64 Result(DerivedT &Handle) : Handle(&Handle) {} in Result() argument 70 return Handle->invalidate(IR, PA, Inv); in invalidate() 75 return Handle->run(IR, AM, ExtraArgs...); in run() 126 DerivedT *Handle; member in __anona795cd440111::MockPassHandleBase::Pass 128 Pass(DerivedT &Handle) : Handle(&Handle) { in Pass() argument 136 return Handle->run(IR, AM, ExtraArgs...); in run()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/ |
| H A D | RemoteJITUtils.cpp | 47 if (auto Handle = ES.getExecutorProcessControl().loadDylib(RemotePath.data())) in loadDylib() local 48 return std::make_unique<EPCDynamicLibrarySearchGenerator>(ES, *Handle); in loadDylib() 50 return Handle.takeError(); in loadDylib()
|
| /llvm-project-15.0.7/mlir/test/mlir-pdll/CodeGen/MLIR/ |
| H A D | expr.pdll | 43 // Handle implicit "all" operation results access. 58 // Handle result indexing on unregistered op. 71 // Handle implicit "named" operation results access.
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMCallingConv.td | 32 // Handle all vector types as either f64 or v2f64. 58 // Handle all vector types as either f64 or v2f64. 73 // Handle all vector types as either f64 or v2f64. 93 // Handle all vector types as either f64 or v2f64. 110 // Handle all vector types as either f64 or v2f64. 167 // Handle all vector types as either f64 or v2f64. 185 // Handle all vector types as either f64 or v2f64. 212 // Handle all vector types as either f64 or v2f64. 235 // Handle all vector types as either f64 or v2f64.
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | 2008-02-05-LiveIntervalsAssert.ll | 3 %struct.Handle = type { %struct.oopDesc** } 8 %struct.KlassHandle = type { %struct.Handle }
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kISelDAGToDAG.cpp | 516 HandleSDNode Handle(N); in matchADD() local 520 matchAddressRecursively(Handle.getValue().getOperand(1), AM, Depth + 1)) { in matchADD() 526 if (matchAddressRecursively(Handle.getValue().getOperand(1), AM, Depth + 1) && in matchADD() 527 matchAddressRecursively(Handle.getValue().getOperand(0), AM, Depth + 1)) { in matchADD() 536 N = Handle.getValue(); in matchADD() 543 N = Handle.getValue(); in matchADD()
|