[Lldb-commits] [lldb] [lldb] Add support for large watchpoints in lldb (PR #79962)

2024-02-01 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: > I didn't have time to review before merge, just looking at this now. > > > see what the Windows CI thinks. > > I assume you mean the buildbots (lldb isn't built in the pre-commit CI), but > I think given: > https://github.com/llvm/llvm-zorg/blob/590f0a62919ad313758362d18

[Lldb-commits] [lldb] [lldb] Add support for large watchpoints in lldb (PR #79962)

2024-02-01 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,109 @@ +//===-- WatchpointAlgorithms.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Add support for large watchpoints in lldb (PR #79962)

2024-02-01 Thread Jason Molenda via lldb-commits
@@ -0,0 +1,109 @@ +//===-- WatchpointAlgorithms.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread via lldb-commits
https://github.com/jeffreytan81 updated https://github.com/llvm/llvm-project/pull/80375 >From 59e1499ec0afebb533c4952f079278341b957241 Mon Sep 17 00:00:00 2001 From: jeffreytan81 Date: Thu, 1 Feb 2024 18:07:51 -0800 Subject: [PATCH 1/3] Add commands frequency to statistics dump --- lldb/inclu

[Lldb-commits] [llvm] [lldb] [mlir] [mlir] Introduce replaceWithZeroTripCheck in LoopLikeOpInterface (PR #80331)

2024-02-01 Thread Diego Caballero via lldb-commits
@@ -220,6 +220,28 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> { /*defaultImplementation=*/[{ return ::mlir::failure(); }] +>, +InterfaceMethod<[{ +Add a zero-trip-check around the loop to check if the loop body is ever +

[Lldb-commits] [lldb] [lldb] Add QSupported key to report watchpoint types supported (PR #80376)

2024-02-01 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda updated https://github.com/llvm/llvm-project/pull/80376 >From 70a518030f2b23ca130a8d0ea667729d7985795c Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Thu, 1 Feb 2024 17:46:03 -0800 Subject: [PATCH 1/2] [lldb] Add QSupported key to report watchpoint types sup

[Lldb-commits] [lldb] 7dd790d - [lldb] NFC fixes addressing David's feedback

2024-02-01 Thread Jason Molenda via lldb-commits
Author: Jason Molenda Date: 2024-02-01T19:17:44-08:00 New Revision: 7dd790db8b77c4a833c06632e903dc4f13877a64 URL: https://github.com/llvm/llvm-project/commit/7dd790db8b77c4a833c06632e903dc4f13877a64 DIFF: https://github.com/llvm/llvm-project/commit/7dd790db8b77c4a833c06632e903dc4f13877a64.diff

[Lldb-commits] [lldb] [lldb] Add frame recognizer for __builtin_verbose_trap (PR #80368)

2024-02-01 Thread via lldb-commits
jimingham wrote: There IS an AssertFrameRecogizer that does just what you suggest, but it is in source/Target. These really should go somewhere else, however, Target is too general for anything but the base recognizer class. Jim > On Feb 1, 2024, at 6:43 PM, Greg Clayton ***@***.***> wrote:

[Lldb-commits] [lldb] [lldb] Add frame recognizer for __builtin_verbose_trap (PR #80368)

2024-02-01 Thread via lldb-commits
jimingham wrote: That one's odd, it almost belongs in Platform, after all, there's no guarantee that "assert" is implemented by pthread functions at all. It just happens to be on Unix systems. Jim > On Feb 1, 2024, at 7:32 PM, Jim Ingham ***@***.***> wrote: > > There IS an AssertFrameRecog

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread via lldb-commits
https://github.com/jeffreytan81 edited https://github.com/llvm/llvm-project/pull/80375 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread via lldb-commits
https://github.com/jeffreytan81 ready_for_review https://github.com/llvm/llvm-project/pull/80375 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (jeffreytan81) Changes Adding command interpreter statistics into "statistics dump" command so that we can track the command usage frequency for telemetry purpose. This is useful to answer questions like what is the most frequently us

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
https://github.com/clayborg edited https://github.com/llvm/llvm-project/pull/80375 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -150,7 +150,7 @@ bool SBCommandInterpreter::WasInterrupted() const { bool SBCommandInterpreter::InterruptCommand() { LLDB_INSTRUMENT_VA(this); - + clayborg wrote: revert non related whitespace change https://github.com/llvm/llvm-project/pull/80375 ___

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -246,13 +247,13 @@ class SBCommandInterpreter { lldb::SBStringList &matches, lldb::SBStringList &descriptions); - /// Returns whether an interrupt flag was raised either by the SBDebugger - + /

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1788,12 +1792,13 @@ class CommandObjectCommandsScriptDelete : public CommandObjectParsed { return; } const char *leaf_cmd = command[num_args - 1].c_str(); -llvm::Error llvm_error = container->RemoveUserSubcommand(leaf_cmd, -

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -240,7 +241,7 @@ class CommandInterpreter : public Broadcaster, eCommandTypesAllThem = 0x //< all commands }; - // The CommandAlias and CommandInterpreter both have a hand in + // The CommandAlias and CommandInterpreter both have a hand in cla

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -246,13 +247,13 @@ class SBCommandInterpreter { lldb::SBStringList &matches, lldb::SBStringList &descriptions); - /// Returns whether an interrupt flag was raised either by the SBDebugger - + /

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -307,7 +311,8 @@ llvm::json::Value DebuggerStats::ReportStatistics(Debugger &debugger, {"totalModuleCount", num_modules}, {"totalModuleCountHasDebugInfo", num_modules_has_debug_info}, {"totalModuleCountWithVariableErrors", num_modules_with_variable_errors}

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -575,7 +576,7 @@ class CommandInterpreter : public Broadcaster, void SetEchoCommentCommands(bool enable); bool GetRepeatPreviousCommand() const; - + clayborg wrote: revert non related whitespace change https://github.com/llvm/llvm-project/pull/80375

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -70,3 +73,26 @@ def test_stats_api(self): True, 'Make sure the "failures" key in in "frameVariable" dictionary"', ) + +def test_command_stats_api(self): +""" +Test GetCommandInterpreter::GetStatistics() API. +""" +

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1623,15 +1625,16 @@ class CommandObjectCommandsScriptAdd : public CommandObjectParsed, m_options.m_class_name.c_str()); if (!cmd_obj_sp) { result.AppendErrorWithFormatv("cannot create helper object for: " - "'{0}

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1788,12 +1792,13 @@ class CommandObjectCommandsScriptDelete : public CommandObjectParsed { return; } const char *leaf_cmd = command[num_args - 1].c_str(); -llvm::Error llvm_error = container->RemoveUserSubcommand(leaf_cmd, -

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1623,15 +1625,16 @@ class CommandObjectCommandsScriptAdd : public CommandObjectParsed, m_options.m_class_name.c_str()); if (!cmd_obj_sp) { result.AppendErrorWithFormatv("cannot create helper object for: " - "'{0}

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1577,7 +1579,7 @@ class CommandObjectCommandsScriptAdd : public CommandObjectParsed, case eLazyBoolNo: m_overwrite = false; } - + clayborg wrote: revert non related whitespace change https://github.com/llvm/llvm-project/pull/80375 _

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -3055,8 +3055,8 @@ void CommandInterpreter::PrintCommandOutput(IOHandler &io_handler, } std::lock_guard guard(io_handler.GetOutputMutex()); - if (had_output && INTERRUPT_REQUESTED(GetDebugger(), -"Interrupted dumping command ou

[Lldb-commits] [lldb] Add commands frequency to statistics dump (PR #80375)

2024-02-01 Thread Greg Clayton via lldb-commits
@@ -1644,8 +1647,9 @@ class CommandObjectCommandsScriptAdd : public CommandObjectParsed, llvm::Error llvm_error = m_container->LoadUserSubcommand(m_cmd_name, new_cmd_sp, m_overwrite); if (llvm_error) -result.AppendErrorWithFormat("cannot add comma

[Lldb-commits] [lld] [libcxxabi] [clang] [libc] [flang] [libcxx] [lldb] [llvm] [msan] Unpoison indirect outputs for userspace using memset for large operands (PR #79924)

2024-02-01 Thread Fangrui Song via lldb-commits
@@ -4552,16 +4552,22 @@ struct MemorySanitizerVisitor : public InstVisitor { } if (!ElemTy->isSized()) return; -Value *SizeVal = - IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); +auto Size = DL.getTypeStoreSize(ElemTy); +Value *Siz

[Lldb-commits] [lldb] [mlir] [llvm] [mlir] Introduce replaceWithZeroTripCheck in LoopLikeOpInterface (PR #80331)

2024-02-01 Thread Mehdi Amini via lldb-commits
https://github.com/joker-eph requested changes to this pull request. Can you add some tests for this? https://github.com/llvm/llvm-project/pull/80331 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

<    1   2