| /llvm-project-15.0.7/flang/runtime/ |
| H A D | unit.cpp | 116 FlushOutput(handler); in OpenUnit() 178 convert, handler); in OpenAnonymousUnit() 183 FlushOutput(handler); in CloseUnit() 184 Close(status, handler); in CloseUnit() 446 RUNTIME_CHECK(handler, in BeginReadingRecord() 610 Flush(handler); in FlushOutput() 629 DoEndfile(handler); in Endfile() 666 handler.SignalError( in SetStreamPos() 689 handler.SignalError( in SetDirectRec() 902 FlushOutput(handler); in DoEndfile() [all …]
|
| H A D | file.cpp | 55 handler.SignalErrno(); in openfile_mkstemp() 69 CloseFd(handler); in Open() 187 CloseFd(handler); in Close() 195 CheckOpen(handler); in Read() 196 if (!Seek(at, handler)) { in Read() 224 CheckOpen(handler); in Write() 225 if (!Seek(at, handler)) { in Write() 257 CheckOpen(handler); in Truncate() 260 handler.SignalErrno(); in Truncate() 271 CheckOpen(handler); in ReadAsynchronously() [all …]
|
| H A D | buffer.h | 68 Flush(handler); in ReadFrame() 69 Reallocate(bytes, handler); in ReadFrame() 78 DiscardLeadingBytes(frame_, handler); in ReadFrame() 79 MakeDataContiguous(handler, bytes); in ReadFrame() 84 RUNTIME_CHECK(handler, next < size_); in ReadFrame() 96 Reallocate(bytes, handler); in WriteFrame() 99 Flush(handler); in WriteFrame() 103 Flush(handler, length_ - newFrame); in WriteFrame() 104 MakeDataContiguous(handler, bytes); in WriteFrame() 120 DiscardLeadingBytes(put, handler); [all …]
|
| H A D | internal-unit.cpp | 54 const char *data, std::size_t bytes, IoErrorHandler &handler) { in Emit() argument 56 handler.Crash("InternalDescriptorUnit<Direction::Input>::Emit() called"); in Emit() 64 handler.SignalError(IostatInternalWriteOverrun); in Emit() 71 handler.SignalError(IostatRecordWriteOverrun); in Emit() 88 const char *&p, IoErrorHandler &handler) { in GetNextInputBytes() argument 90 handler.Crash("InternalDescriptorUnit<Direction::Output>::" in GetNextInputBytes() 96 handler.SignalEnd(); in GetNextInputBytes() 108 bool InternalDescriptorUnit<DIR>::AdvanceRecord(IoErrorHandler &handler) { in AdvanceRecord() argument 110 handler.SignalEnd(); in AdvanceRecord() 134 void InternalDescriptorUnit<DIR>::BackspaceRecord(IoErrorHandler &handler) { in BackspaceRecord() argument [all …]
|
| H A D | namelist.cpp | 164 handler.SignalError( in HandleSubscripts() 190 handler.SignalError( in HandleSubscripts() 230 handler.SignalError( in HandleSubscripts() 234 handler.SignalError( in HandleSubscripts() 295 handler.SignalError( in HandleSubstring() 298 handler.SignalError( in HandleSubstring() 318 handler.SignalError( in HandleComponent() 389 handler.SignalError( in IONAME() 410 handler.SignalError( in IONAME() 422 handler.SignalError( in IONAME() [all …]
|
| H A D | descriptor-io.cpp | 21 IoErrorHandler &handler{io.GetIoErrorHandler()}; in DefinedFormattedIo() local 23 RUNTIME_CHECK(handler, edit.descriptor == peek->descriptor); in DefinedFormattedIo() 47 external = &ExternalFileUnit::NewUnit(handler, true); in DefinedFormattedIo() 64 handler.Forward(ioStat, ioMsg, sizeof ioMsg); in DefinedFormattedIo() 69 RUNTIME_CHECK(handler, external == closing); in DefinedFormattedIo() 72 return handler.GetIoStat() == IostatOk; in DefinedFormattedIo() 85 IoErrorHandler &handler{io.GetIoErrorHandler()}; in DefinedUnformattedIo() local 87 RUNTIME_CHECK(handler, external != nullptr); in DefinedUnformattedIo() 101 handler.Forward(ioStat, ioMsg, sizeof ioMsg); in DefinedUnformattedIo() 103 return handler.GetIoStat() == IostatOk; in DefinedUnformattedIo()
|
| H A D | descriptor-io.h | 272 IoErrorHandler &handler{io.GetIoErrorHandler()}; in FormattedDerivedTypeIO() 275 RUNTIME_CHECK(handler, addendum != nullptr); in FormattedDerivedTypeIO() 277 RUNTIME_CHECK(handler, type != nullptr); in FormattedDerivedTypeIO() 289 RUNTIME_CHECK(handler, compArray.rank() == 1); in FormattedDerivedTypeIO() 318 IoErrorHandler &handler{io.GetIoErrorHandler()}; in UnformattedDescriptorIO() 376 if (handler.InError()) { in DescriptorIO() 409 handler.Crash( in DescriptorIO() 430 handler.Crash( in DescriptorIO() 450 handler.Crash( in DescriptorIO() 464 handler.Crash( in DescriptorIO() [all …]
|
| /llvm-project-15.0.7/mlir/test/python/ir/ |
| H A D | diagnostic_handler.py | 19 assert handler.attached 23 assert not handler.attached 26 handler = None 35 assert handler.attached 36 handler.detach() 37 assert not handler.attached 45 assert handler.attached 46 assert not handler.attached 54 assert handler.attached 55 handler.detach() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | preinstalled_signal.cpp | 28 const char *handler = nullptr; variable 29 void SigHandler(int signum) { handler = "TestSigHandler"; } in SigHandler() 36 __sighandler_t handler; member 38 __sighandler_t handler; 65 assert(pre_asan.handler == SIG_DFL || pre_asan.handler == SIG_IGN); in Init() 68 pre_asan.handler = &SigHandler; in Init() 74 pre_asan.handler = (__sighandler_t)&SigAction; in Init() 94 assert(post_asan.handler != SIG_DFL); in main() 95 assert(post_asan.handler != SIG_IGN); in main() 97 (post_asan.handler == pre_asan.handler)); in main() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | attr-swift-async-error.m | 8 void test_good(void (^handler)(int)); 18 void test_good3(void (^handler)(enum SomeEnum, double)); 22 void test_rev_order(void (^handler)(int)); 28 void test_nserror(void (^handler)(NSError *)); 34 void test_cferror(void (^handler)(CFErrorRef)); 38 void test_interror(void (^handler)(int)); 42 void test_not_integral(void (^handler)(double)); 67 -(void)m1:(void (^)(int))handler 79 -(void)m4:(void (^)(double, int, float))handler 83 -(void)m5:(void (^)(NSError *))handler [all …]
|
| H A D | warn-called-once.m | 913 handler(); 985 handler(); 1078 handler(); 1101 handler(); 1118 handler(); 1131 handler(); 1137 handler(); 1145 handler(); 1151 handler(); 1159 handler(); [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | DebugAction.h | 85 static bool classof(const DebugActionManager::HandlerBase *handler) { in classof() argument 86 return handler->getHandlerID() == TypeID::get<GenericHandler>(); in classof() 91 void registerActionHandler(std::unique_ptr<HandlerBase> handler) { in registerActionHandler() argument 94 actionHandlers.emplace_back(std::move(handler)); in registerActionHandler() 116 auto shouldExecuteFn = [&](auto *handler, auto &&...handlerParams) { in shouldExecute() 117 return handler->shouldExecute( in shouldExecute() 152 if (auto *handler = dyn_cast<typename ActionType::Handler>(&*it)) { in dispatchToHandler() local 153 result = handlerCallback(handler, std::forward<Args>(args)...); in dispatchToHandler() 210 static bool classof(const DebugActionManager::HandlerBase *handler) { in classof() argument 211 return handler->getHandlerID() == in classof()
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | BufferTest.cpp | 33 std::size_t maxBytes, IoErrorHandler &handler) { in Read() argument 35 handler.SignalError("Read(%d,%d,%d) not at expected %d", in Read() 39 handler.SignalError("Read(%d,%d,%d) is out of bounds", in Read() 49 IoErrorHandler &handler) { in Write() argument 51 handler.SignalError("Write(%d,%d) not at expected %d", in Write() 55 handler.SignalError("Write(%d,%d) is out of bounds", static_cast<int>(at), in Write() 84 IoErrorHandler handler{terminator}; in TEST() local 92 store.WriteFrame(at, chunk, handler); in TEST() 100 store.Flush(handler); in TEST() 106 std::size_t frame{store.ReadFrame(at, chunk, handler)}; in TEST()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | wineh-coreclr.ll | 176 ; ^ offset of end of handler 189 ; ^ offset of end of handler 202 ; ^ offset of end of handler 218 ; ^ offset of end of handler 231 ; ^ offset of end of handler 247 ; ^ offset of end of handler 263 ; ^ offset of end of handler 353 ; ^ offset of end of handler 366 ; ^ offset of end of handler 379 ; ^ offset of end of handler [all …]
|
| /llvm-project-15.0.7/mlir/lib/Transforms/Utils/ |
| H A D | InliningUtils.cpp | 62 if (auto *handler = getInterfaceFor(call)) in isLegalToInline() local 78 if (auto *handler = getInterfaceFor(op)) in isLegalToInline() local 84 auto *handler = getInterfaceFor(op); in shouldAnalyzeRecursively() local 85 return handler ? handler->shouldAnalyzeRecursively(op) : true; in shouldAnalyzeRecursively() 91 auto *handler = getInterfaceFor(op); in handleTerminator() local 92 assert(handler && "expected valid dialect handler"); in handleTerminator() 93 handler->handleTerminator(op, newDest); in handleTerminator() 100 auto *handler = getInterfaceFor(op); in handleTerminator() local 101 assert(handler && "expected valid dialect handler"); in handleTerminator() 102 handler->handleTerminator(op, valuesToRepl); in handleTerminator() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | replace_sigaction.cpp | 14 template <typename T> void install(T *handler, struct sigaction *prev) { in install() argument 15 bool siginfo = handler == (T *)&sasigaction; in install() 19 act.sa_sigaction = (decltype(act.sa_sigaction))handler; in install() 21 act.sa_handler = (decltype(act.sa_handler))handler; in install() 26 if (handler == (T *)&sahandler) { in install() 32 if (handler == (T *)&sasigaction) { in install()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
| H A D | llvm.trap.ll | 4 ; RUN: llc -global-isel -mtriple=amdgcn--amdhsa --amdhsa-code-object-version=2 -mattr=+trap-handler… 5 ; RUN: llc -global-isel -mtriple=amdgcn--amdhsa --amdhsa-code-object-version=2 -mattr=-trap-handler… 6 ; RUN: llc -global-isel -mtriple=amdgcn--amdhsa --amdhsa-code-object-version=2 -mattr=-trap-handler… 8 ; enable trap handler feature 9 ; RUN: llc -global-isel -mtriple=amdgcn-unknown-mesa3d -mattr=+trap-handler -verify-machineinstrs <… 10 ; RUN: llc -global-isel -mtriple=amdgcn-unknown-mesa3d -mattr=+trap-handler -verify-machineinstrs <… 12 ; disable trap handler feature 13 ; RUN: llc -global-isel -mtriple=amdgcn-unknown-mesa3d -mattr=-trap-handler -verify-machineinstrs <… 14 ; RUN: llc -global-isel -mtriple=amdgcn-unknown-mesa3d -mattr=-trap-handler -verify-machineinstrs <…
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | ErrorHandling.cpp | 64 void llvm::install_fatal_error_handler(fatal_error_handler_t handler, in install_fatal_error_handler() argument 70 ErrorHandler = handler; in install_fatal_error_handler() 91 llvm::fatal_error_handler_t handler = nullptr; in report_fatal_error() local 99 handler = ErrorHandler; in report_fatal_error() 103 if (handler) { in report_fatal_error() 104 handler(handlerData, Reason.str().c_str(), GenCrashDiag); in report_fatal_error() 128 void llvm::install_bad_alloc_error_handler(fatal_error_handler_t handler, in install_bad_alloc_error_handler() argument 134 BadAllocErrorHandler = handler; in install_bad_alloc_error_handler() 222 LLVMFatalErrorHandler handler = in bindingsErrorHandler() local 224 handler(reason); in bindingsErrorHandler()
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Diagnostic.h | 156 if (handler) in report() 157 handler(diagnostic); in report() 161 const HandlerFn &getHandlerFn() const { return handler; } in getHandlerFn() 165 HandlerFn oldHandler = std::move(handler); in takeHandlerFn() 166 handler = {}; in takeHandlerFn() 171 void setHandlerFn(HandlerFn &&newHandler) { handler = std::move(newHandler); } in setHandlerFn() 175 HandlerFn handler;
|
| /llvm-project-15.0.7/llvm/utils/UpdateTestChecks/ |
| H A D | isel.py | 36 handler = None 40 handler = s 43 if handler is None: 45 handler = (scrub_isel_default, ISEL_FUNCTION_DEFAULT_RE) 47 return handler
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | LogTest.cpp | 111 handler.Dump(stream); in GetDumpAsString() 177 handler.Emit("Foobar"); in TEST() 182 RotatingLogHandler handler(3); in TEST() local 184 handler.Emit("foo"); in TEST() 185 handler.Emit("bar"); in TEST() 186 EXPECT_EQ(GetDumpAsString(handler), "foobar"); in TEST() 188 handler.Emit("baz"); in TEST() 189 handler.Emit("qux"); in TEST() 190 EXPECT_EQ(GetDumpAsString(handler), "barbazqux"); in TEST() 192 handler.Emit("quux"); in TEST() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Tools/lsp-server-support/ |
| H A D | Transport.h | 61 llvm::Error run(MessageHandler &handler); 65 bool handleMessage(llvm::json::Value msg, MessageHandler &handler); 134 void (ThisT::*handler)(const Param &, Callback<Result>)) { in method() 135 methodHandlers[method] = [method, handler, in method() 141 (thisPtr->*handler)(*param, std::move(reply)); in method() 147 void (ThisT::*handler)(const Param &)) { in notification() 148 notificationHandlers[method] = [method, handler, in notification() 153 (thisPtr->*handler)(*param); in notification()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_interceptors_libdispatch.cpp | 418 if (handler == nullptr) in TSAN_INTERCEPTOR() 436 if (handler == nullptr) in TSAN_INTERCEPTOR() 439 handler(dispatch_get_context(source)); in TSAN_INTERCEPTOR() 447 if (handler == nullptr) in TSAN_INTERCEPTOR() 465 handler); in TSAN_INTERCEPTOR() 466 if (handler == nullptr) in TSAN_INTERCEPTOR() 469 handler(dispatch_get_context(source)); in TSAN_INTERCEPTOR() 477 handler); in TSAN_INTERCEPTOR() 478 if (handler == nullptr) in TSAN_INTERCEPTOR() 496 handler); in TSAN_INTERCEPTOR() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_libdispatch.cpp | 418 if (handler == nullptr) in TSAN_INTERCEPTOR() 436 if (handler == nullptr) in TSAN_INTERCEPTOR() 439 handler(dispatch_get_context(source)); in TSAN_INTERCEPTOR() 447 if (handler == nullptr) in TSAN_INTERCEPTOR() 465 handler); in TSAN_INTERCEPTOR() 466 if (handler == nullptr) in TSAN_INTERCEPTOR() 469 handler(dispatch_get_context(source)); in TSAN_INTERCEPTOR() 477 handler); in TSAN_INTERCEPTOR() 478 if (handler == nullptr) in TSAN_INTERCEPTOR() 496 handler); in TSAN_INTERCEPTOR() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/msan/Linux/ |
| H A D | syscalls_sigaction.cpp | 15 long flags, handler; member 17 long handler, flags, restorer; 26 __msan_poison(&act.handler, sizeof(act.handler)); in main()
|