| /llvm-project-15.0.7/clang/test/CodeGenCoroutines/ |
| H A D | coro-symmetric-transfer-03.cpp | 29 Task(std::coroutine_handle<promise_type> handle) : handle(handle) {} in Task() 31 if (handle) in ~Task() 32 handle.destroy(); in ~Task() 36 std::coroutine_handle<promise_type> handle; member 37 Awaiter(std::coroutine_handle<promise_type> handle) : handle(handle) {} in Awaiter() 41 return handle; in await_suspend() 44 int ret = handle.promise()._value; in await_resume() 45 handle.destroy(); in await_resume() 51 auto handle_ = handle; in operator co_await() 52 handle = nullptr; in operator co_await() [all …]
|
| H A D | coro-elide.cpp | 31 Task(std::coroutine_handle<promise_type> handle) : handle(handle) {} in Task() 33 if (handle) in ~Task() 34 handle.destroy(); in ~Task() 50 std::coroutine_handle<promise_type> handle; member
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | branch-clone-if-constexpr-template.cpp | 3 void handle(int); 9 handle(0); in shouldFail() 11 handle(1); in shouldFail() 13 handle(0); in shouldFail() 20 handle(0); in shouldPass() 22 handle(1); in shouldPass() 24 handle(2); in shouldPass() 32 handle(0); in shouldFailNonTemplate() 34 handle(1); in shouldFailNonTemplate() 36 handle(0); in shouldFailNonTemplate() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/msan/Linux/ |
| H A D | name_to_handle_at.cpp | 12 struct file_handle *handle = reinterpret_cast<struct file_handle *>( in main() local 13 malloc(sizeof(*handle) + MAX_HANDLE_SZ)); in main() 14 handle->handle_bytes = MAX_HANDLE_SZ; in main() 17 int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0); in main() 20 __msan_check_mem_is_initialized(&handle->handle_bytes, in main() 21 sizeof(handle->handle_bytes)); in main() 22 __msan_check_mem_is_initialized(&handle->handle_type, in main() 23 sizeof(handle->handle_type)); in main() 24 __msan_check_mem_is_initialized(&handle->f_handle, handle->handle_bytes); in main() 26 free(handle); in main()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | DialectHandle.cpp | 12 unwrap(MlirDialectHandle handle) { in unwrap() argument 13 return (const MlirDialectRegistrationHooks *)handle.ptr; in unwrap() 16 MlirStringRef mlirDialectHandleGetNamespace(MlirDialectHandle handle) { in mlirDialectHandleGetNamespace() argument 17 return unwrap(handle)->getNamespaceHook(); in mlirDialectHandleGetNamespace() 20 void mlirDialectHandleInsertDialect(MlirDialectHandle handle, in mlirDialectHandleInsertDialect() argument 22 unwrap(handle)->insertHook(registry); in mlirDialectHandleInsertDialect() 25 void mlirDialectHandleRegisterDialect(MlirDialectHandle handle, in mlirDialectHandleRegisterDialect() argument 28 mlirDialectHandleInsertDialect(handle, wrap(®istry)); in mlirDialectHandleRegisterDialect() 32 MlirDialect mlirDialectHandleLoadDialect(MlirDialectHandle handle, in mlirDialectHandleLoadDialect() argument 34 return unwrap(handle)->loadHook(ctx); in mlirDialectHandleLoadDialect()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | braces-around-statements-constexpr-if-templates.cpp | 3 void handle(bool); 9 handle(true); in shouldFail() 12 handle(false); in shouldFail() 18 handle(true); in shouldPass() 20 handle(false); in shouldPass() 28 handle(true); in shouldFailNonTemplate() 31 handle(false); in shouldFailNonTemplate() 37 handle(true); in shouldPass() 39 handle(false); in shouldPass()
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | Timing.h | 161 virtual void hideTimer(void *handle) {} in hideTimer() argument 191 other.handle = nullptr; in Timer() 196 handle = other.handle; 198 other.handle = nullptr; 211 tm->startTimer(handle); in start() 218 tm->stopTimer(handle); in stop() 248 tm->hideTimer(handle); in hide() 252 Timer(TimingManager &tm, void *handle) : tm(&tm), handle(handle) {} in Timer() argument 262 void *handle = nullptr; variable 403 void stopTimer(void *handle) override; [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/Coroutines/ |
| H A D | coro-alloca-06.ll | 5 %handle = type { i8* } 9 %0 = alloca %"handle", align 8 10 %1 = alloca %"handle"*, align 8 19 %3 = getelementptr inbounds %"handle", %"handle"* %0, i32 0, i32 0 21 %4 = bitcast %"handle"** %1 to i8* 23 store %"handle"* %0, %"handle"** %1, align 8 24 %5 = load %"handle"*, %"handle"** %1, align 8 25 %6 = getelementptr inbounds %"handle", %"handle"* %5, i32 0, i32 0 27 %8 = bitcast %"handle"** %1 to i8* 52 ; CHECK-NEXT: [[TMP1:%.*]] = alloca %handle*, align 8 [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ConfigYAML.cpp | 82 Dict.handle("PathMatch", [&](Node &N) { in parse() 95 Dict.handle("Compiler", [&](Node &N) { in parse() 99 Dict.handle("Add", [&](Node &N) { in parse() 103 Dict.handle("Remove", [&](Node &N) { in parse() 124 Dict.handle("Suppress", [&](Node &N) { in parse() 138 Dict.handle("Add", [&](Node &N) { in parse() 142 Dict.handle("Remove", [&](Node &N) { in parse() 169 Dict.handle("Background", in parse() 208 Dict.handle("Server", in parse() 210 Dict.handle("MountPoint", in parse() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Bindings/Python/ |
| H A D | PybindAdaptors.h | 70 bool load(handle src, bool) { 78 static handle cast(MlirAffineMap v, return_value_policy, handle) { 92 bool load(handle src, bool) { 97 static handle cast(MlirAttribute v, return_value_policy, handle) { 111 bool load(handle src, bool) { 131 bool load(handle src, bool) { 136 static handle cast(MlirDialectRegistry v, return_value_policy, handle) { 161 static handle cast(MlirLocation v, return_value_policy, handle) { 180 static handle cast(MlirModule v, return_value_policy, handle) { 199 static handle cast(MlirOperation v, return_value_policy, handle) { [all …]
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/make/ |
| H A D | dylib.h | 9 #define dylib_get_symbol(handle, name) GetProcAddress((HMODULE)handle, name) argument 10 #define dylib_close(handle) (!FreeLibrary((HMODULE)handle)) argument 14 #define dylib_get_symbol(handle, name) dlsym(handle, name) argument 15 #define dylib_close(handle) dlclose(handle) argument
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/lib/libscanbuild/ |
| H A D | report.py | 80 handle.write(reindent(""" 90 handle.write(reindent(""" 111 handle.write(reindent(""" 120 with open(name, 'w') as handle: 122 handle.write(reindent(""" 133 handle.write(reindent(""" 161 handle.write(reindent(""" 177 handle.write(reindent(""" 208 handle.write(reindent(""" 224 handle.write(reindent(""" [all …]
|
| /llvm-project-15.0.7/openmp/libompd/src/ |
| H A D | omp-icv.cpp | 85 ompd_rc_t ompd_enumerate_icvs(ompd_address_space_handle_t *handle, in ompd_enumerate_icvs() argument 89 if (!handle) { in ompd_enumerate_icvs() 998 if (!handle) { in ompd_get_icv_from_scope() 1012 device_kind = ((ompd_thread_handle_t *)handle)->ah->kind; in ompd_get_icv_from_scope() 1021 device_kind = ((ompd_task_handle_t *)handle)->ah->kind; in ompd_get_icv_from_scope() 1098 if (!handle) { in ompd_get_icv_string_from_scope() 1112 device_kind = ((ompd_thread_handle_t *)handle)->ah->kind; in ompd_get_icv_string_from_scope() 1121 device_kind = ((ompd_task_handle_t *)handle)->ah->kind; in ompd_get_icv_string_from_scope() 1242 if (!handle) { in ompd_get_tool_data() 1250 device_kind = ((ompd_thread_handle_t *)handle)->ah->kind; in ompd_get_tool_data() [all …]
|
| /llvm-project-15.0.7/openmp/runtime/tools/lib/ |
| H A D | tools.pm | 1379 my $handle; 1404 $handle = $file; 1437 $handle->close() 1528 my $handle; 1535 $handle = $file; 1545 binmode( $handle ); 1575 $handle->close() 1607 my $handle = $arg->{ handle }; # Handle to manipulate. 1617 $handle->flush(); 1685 my $handle = $arg->{ handle }; # Handle to save and set. [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Transform/IR/ |
| H A D | TransformInterfaces.cpp | 49 if (Value handle = mapping.reverse.lookup(op)) in getHandleForPayloadOp() local 50 return handle; in getHandleForPayloadOp() 56 Mappings &map, Operation *operation, Value handle) { in tryEmplaceReverseMapping() argument 61 diag.attachNote(handle.getLoc()) << "handle"; in tryEmplaceReverseMapping() 147 Operation *owner = handle.getOwner(); in recordHandleInvalidation() 148 unsigned operandNo = handle.getOperandNumber(); in recordHandleInvalidation() 354 for (Value handle : handles) { in consumesHandle() local 372 bool transform::isHandleConsumed(Value handle, in isHandleConsumed() argument 376 iface.getEffectsOnValue(handle, effects); in isHandleConsumed() 384 for (Value handle : handles) { in producesHandle() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | name_to_handle_at.cpp | 12 struct file_handle *handle = reinterpret_cast<struct file_handle *>( in main() local 13 malloc(sizeof(*handle) + MAX_HANDLE_SZ)); in main() 15 handle->handle_bytes = MAX_HANDLE_SZ; in main() 16 int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0); in main() 19 free(handle); in main()
|
| H A D | resize_tls_dynamic.cpp | 35 void *handle = dlopen(buff, RTLD_LAZY); in main() local 36 assert(handle != 0); in main() 37 assert(handle != prev_handle); in main() 38 prev_handle = handle; in main() 41 ((FnType)dlsym(handle, "StoreToTLS"))(i); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | stack-trace-dlclose.cpp | 26 void *handle; variable 29 void *handle = dlopen(SO_DIR "/stack_trace_dlclose.so", RTLD_LAZY); in main() local 30 assert(handle); in main() 31 void *(*foo)() = (void *(*)())dlsym(handle, "foo"); in main() 35 dlclose(handle); in main()
|
| H A D | function-sections-are-bad.cpp | 19 void *handle = dlopen(path, RTLD_LAZY); in main() local 20 if (!handle) fprintf(stderr, "%s\n", dlerror()); in main() 21 assert(handle != 0); in main() 24 F f = (F)dlsym(handle, "call_rtl_from_dso"); in main() 29 dlclose(handle); in main()
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/tests/unit/ |
| H A D | test_report.py | 17 with open(file_name, 'w') as handle: 18 handle.writelines(content) 26 with open(file_name, 'w') as handle: 27 handle.writelines(content) 82 with open(filename, 'w') as handle: 83 handle.write('int main() { return 0') 364 with open(file_name, 'w') as handle: 365 json.dump(content, handle) 521 with open(file_name, 'w') as handle: 522 json.dump(content, handle) [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | WindowsMMap.c | 128 int lock(HANDLE handle, DWORD lockType, BOOL blocking) { in lock() argument 136 BOOL result = LockFileEx(handle, flags, 0, MAXDWORD, MAXDWORD, &overlapped); in lock() 150 if (!GetOverlappedResult(handle, &overlapped, &dwNumBytes, TRUE)) in lock() 159 HANDLE handle = (HANDLE)_get_osfhandle(fd); in flock() local 160 if (handle == INVALID_HANDLE_VALUE) in flock() 168 return lock(handle, LOCKFILE_EXCLUSIVE_LOCK, blocking); in flock() 171 return lock(handle, 0, blocking); in flock() 174 if (!UnlockFile(handle, 0, 0, MAXDWORD, MAXDWORD)) in flock()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | fuchsia_handle.cpp | 29 zx_handle_t handle ZX_HANDLE_RELEASE); 344 return zx_handle_close(handle); in test_release_handle() 354 void use_handle(zx_handle_t handle) { in use_handle() argument 384 if (handle != ZX_HANDLE_INVALID) in close() 385 zx_handle_close(handle); in close() 390 T handle; member 405 if (handle != ZX_HANDLE_INVALID) in close() 406 zx_handle_close(handle); in close() 411 T handle; member 472 if (zx_channel_create(0, &sa, handle->hp)) in escape_through_store01() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Host/ |
| H A D | MainLoopTest.cpp | 77 auto handle = loop.RegisterReadObject(socketpair[1], make_callback(), error); in TEST_F() local 79 ASSERT_TRUE(handle); in TEST_F() 108 auto handle = loop.RegisterReadObject( in TEST_F() local 118 ASSERT_TRUE(handle); in TEST_F() 130 auto handle = loop.RegisterReadObject( in TEST_F() local 145 ASSERT_TRUE(handle); in TEST_F() 162 auto handle = in TEST_F() local 175 auto handle = loop.RegisterSignal(SIGUSR1, make_callback(), error); in TEST_F() local 193 auto handle = loop.RegisterSignal(SIGUSR1, make_callback(), error); in TEST_F() local 214 auto handle = loop.RegisterSignal(SIGUSR1, make_callback(), error); in TEST_F() local
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/PDL/IR/ |
| H A D | PDLTypes.td | 33 let summary = "PDL handle to an `mlir::Attribute`"; 35 This type represents a handle to an instance of an `mlir::Attribute`, bound 45 let summary = "PDL handle to an `mlir::Operation *`"; 47 This type represents a handle to an instance of an `mlir::Operation *`, 57 let summary = "PDL handle to a range of a given sub-type"; 79 let summary = "PDL handle to an `mlir::Type`"; 81 This type represents a handle to an instance of an `mlir::Type`, bound to a 91 let summary = "PDL handle for an `mlir::Value`"; 93 This type represents a handle to an instance of an `mlir::Value`, bound to a
|
| /llvm-project-15.0.7/compiler-rt/test/lsan/TestCases/Linux/ |
| H A D | dso-unknown.cpp | 34 void *handle = dlopen(path.c_str(), RTLD_LAZY); in main() local 35 assert(handle != 0); in main() 37 fn my_alloc = (fn)dlsym(handle, "my_alloc"); in main() 42 dlclose(handle); in main()
|