[llvm-branch-commits] [llvm] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStream (PR #160166)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/160166 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStream (PR #160166)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/160166 >From 632536e381904a570df09bbe7aed730815deb4a8 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 22 Sep 2025 16:26:04 + Subject: [PATCH] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStrea

[llvm-branch-commits] [llvm] [llvm][mustache] Simplify debug logging (PR #159193)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159193 >From ddcaf1691fbb84374ee8d5b9dfffb80e224ecd2b Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Sat, 13 Sep 2025 23:21:07 -0700 Subject: [PATCH] [llvm][mustache] Simplify debug logging --- llvm/lib/Support/Must

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid redundant saves in accessor splitting (PR #159197)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159197 >From b68de048650c907ce46aabe728f243c45bf3ba65 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:11:47 -0700 Subject: [PATCH] [llvm][mustache] Avoid redundant saves in accessor splitting The s

[llvm-branch-commits] [llvm] [llvm][mustache] Use StringRef parameters (PR #159190)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159190 >From 0b15e73c2fe65eaca4917b8beda50ecf01061cb5 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 12 Sep 2025 00:24:31 -0700 Subject: [PATCH] [llvm][mustache] Use StringRef parameters --- llvm/lib/Support/Mu

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStream (PR #160166)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/160166 The naive char-by-char lookup performed OK, but we can skip ahead to the next match, avoiding all the extra hash lookups in the key map. Likely there is a faster method than this, but its already a 42% win in the

[llvm-branch-commits] [llvm] [llvm][mustache] Specialize delimiter search (PR #160165)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/160165 Delimiters in mustache are generally 2-4 character sequences. While good for general search, we can beat find() for these short sequences by just using memchr() to find the first match, and then checking the next

[llvm-branch-commits] [llvm] [llvm][mustache] Support setting delimiters in templates (PR #159187)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159187 >From fbd889474300053fc91ee656753a13c30fce67dc Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 8 Sep 2025 21:22:02 -0700 Subject: [PATCH] [llvm][mustache] Support setting delimiters in templates The base m

[llvm-branch-commits] [llvm] [llvm][mustache] Precommit test for Set Delimiter (PR #159186)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159186 >From c3b7fae3695f64868ed7da1cd63baee1d4e94f46 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 29 Aug 2025 23:55:25 -0700 Subject: [PATCH] [llvm][mustache] Precommit test for Set Delimiter Adds a new unit

[llvm-branch-commits] [llvm] [llvm][mustache] Optimize accessor splitting with a single pass (PR #159198)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159198 >From 2de3866f5b7d2783da3f88ee2095ee43743e17c0 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:24:43 -0700 Subject: [PATCH] [llvm][mustache] Optimize accessor splitting with a single pass T

[llvm-branch-commits] [llvm] [llvm][mustache] Fix failing StandaloneIndentation test (PR #159192)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159192 >From d5312d1ac178c5505bc4584c730195d9b12c1daa Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 12 Sep 2025 17:16:08 -0700 Subject: [PATCH] [llvm][mustache] Fix failing StandaloneIndentation test When rende

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra copy for json strings (PR #159195)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159195 >From 1389ea30a5080a6bc76b76ffdcf43a361885d5e2 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 19:54:34 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra copy for json strings --- llvm/lib/S

[llvm-branch-commits] [llvm] [llvm][mustache] Optimize accessor splitting with a single pass (PR #159198)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159198 >From 2de3866f5b7d2783da3f88ee2095ee43743e17c0 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:24:43 -0700 Subject: [PATCH] [llvm][mustache] Optimize accessor splitting with a single pass T

[llvm-branch-commits] [llvm] [llvm][mustache] Support setting delimiters in templates (PR #159187)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159187 >From 7cea784823cb90b6f6030f7241a50d4040fab6a1 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 8 Sep 2025 21:22:02 -0700 Subject: [PATCH] [llvm][mustache] Support setting delimiters in templates The base m

[llvm-branch-commits] [llvm] [llvm][mustache] Refactor template rendering (PR #159189)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159189 >From 6a7db43434fb7657ac6057a18f95b52fa706347c Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 12 Sep 2025 00:06:14 -0700 Subject: [PATCH] [llvm][mustache] Refactor template rendering Move the rendering lo

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra allocations in parseSection (PR #159199)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159199 >From 5c65ae1e875260c109b3d8f4b6625c8a49a45313 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 09:40:04 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra allocations in parseSection We don't

[llvm-branch-commits] [llvm] [llvm][mustache] Align standalone partial indentation with spec (PR #159185)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159185 >From 31dc0edd7d3145d989d1132ce013f8579a5a284d Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 29 Aug 2025 23:26:29 -0700 Subject: [PATCH] [llvm][mustache] Align standalone partial indentation with spec T

[llvm-branch-commits] [llvm] [llvm][mustache] Refactor tokenizer for clarity (PR #159188)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159188 >From 97182cf5770867345323c9e7af7d9b69fa3e678d Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 11 Sep 2025 23:45:16 -0700 Subject: [PATCH] [llvm][mustache] Refactor tokenizer for clarity This patch refacto

[llvm-branch-commits] [llvm] [llvm][mustache] Simplify debug logging (PR #159193)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159193 >From e89315c0fdb99341871652728d877e1b88d5237d Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Sat, 13 Sep 2025 23:21:07 -0700 Subject: [PATCH] [llvm][mustache] Simplify debug logging --- llvm/lib/Support/Must

[llvm-branch-commits] [llvm] [llvm][mustache] Support setting delimiters in templates (PR #159187)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159187 >From 7cea784823cb90b6f6030f7241a50d4040fab6a1 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 8 Sep 2025 21:22:02 -0700 Subject: [PATCH] [llvm][mustache] Support setting delimiters in templates The base m

[llvm-branch-commits] [llvm] [llvm][mustache] Use single pass when tokenizing (PR #159196)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159196 >From b929e27245223a126e2835a3440f1ae4f0a5aa57 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 23:27:50 -0700 Subject: [PATCH] [llvm][mustache] Use single pass when tokenizing The old implement

[llvm-branch-commits] [clang-tools-extra] [llvm] [llvm][mustache] Use BumpPtrAllocator to save ASTNodes (PR #159194)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159194 >From b95282ae8b0c214bc01e2bb6972ec1f1108d51b3 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 16:26:11 -0700 Subject: [PATCH] [llvm][mustache] Use BumpPtrAllocator to save ASTNodes We make the

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid redundant saves in accessor splitting (PR #159197)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159197 >From 1acd65547a95bfc1afc24bfb03167375f171933b Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:11:47 -0700 Subject: [PATCH] [llvm][mustache] Avoid redundant saves in accessor splitting The s

[llvm-branch-commits] [llvm] [llvm][mustache] Optimize accessor splitting with a single pass (PR #159198)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159198 >From f5b321027fd1d0215d6bea358aee0b94a2431a08 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:24:43 -0700 Subject: [PATCH] [llvm][mustache] Optimize accessor splitting with a single pass T

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra allocations in parseSection (PR #159199)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159199 >From ac3d77f94baf7a3fd413816153209c4cb64538a7 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 09:40:04 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra allocations in parseSection We don't

[llvm-branch-commits] [llvm] [llvm][mustache] Precommit test for StandaloneIndentation (PR #159184)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159184 >From db6bc75e9aab9307b3443047ff2c42ccc4d76270 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 29 Aug 2025 22:30:51 -0700 Subject: [PATCH] [llvm][mustache] Precommit test for StandaloneIndentation --- llv

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra copy for json strings (PR #159195)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159195 >From 749306f161b925e502ad85577dd99ed89216e3c3 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 19:54:34 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra copy for json strings --- llvm/lib/S

[llvm-branch-commits] [llvm] [llvm][mustache] Use StringRef parameters (PR #159190)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159190 >From e79233da33b30f1c3bdbc8b5d0f18f0ee1909053 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 12 Sep 2025 00:24:31 -0700 Subject: [PATCH] [llvm][mustache] Use StringRef parameters --- llvm/lib/Support/Mu

[llvm-branch-commits] [llvm] [llvm][mustache] Introduce MustacheContext to simplify mustache APIs (PR #159191)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159191 >From f441a1c616e00020b87a2420ec4828d250e59486 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 12 Sep 2025 16:20:44 -0700 Subject: [PATCH] [llvm][mustache] Introduce MustacheContext to simplify mustache AP

[llvm-branch-commits] [llvm] [llvm][mustache] Align standalone partial indentation with spec (PR #159185)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159185 >From f2623ab3a25c5c1ef399a80bfcea10d761cba190 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 29 Aug 2025 23:26:29 -0700 Subject: [PATCH] [llvm][mustache] Align standalone partial indentation with spec T

[llvm-branch-commits] [llvm] [llvm][mustache] Add support for Triple Mustache (PR #159183)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159183 >From 30e848972cf380f7d726912419f2ba5c51341546 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 29 Aug 2025 21:46:49 -0700 Subject: [PATCH] [llvm][mustache] Add support for Triple Mustache We extend the log

[llvm-branch-commits] [llvm] [llvm][mustache] Refactor tokenizer for clarity (PR #159188)

2025-09-22 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159188 >From 6f78e4d2ac7a182233a966c1e0a83d730deb24d0 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 11 Sep 2025 23:45:16 -0700 Subject: [PATCH] [llvm][mustache] Refactor tokenizer for clarity This patch refacto

[llvm-branch-commits] [lit] Remove python 2.7 code paths in builtin diff (PR #157558)

2025-09-19 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. This seems fine to me, especially since it follows our written policy on version support. Does this need any kind of release note? It's a pure dev dependency, so I'd say "no", but I could also see how a consumer would have wanted to know a

[llvm-branch-commits] [llvm] [MC] Rewrite stdin.s to use python (PR #157232)

2025-09-19 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,17 @@ +# RUN: echo "// comment" > %t.input +# RUN: which llvm-mc | %python %s %t + +import subprocess +import sys + +llvm_mc_binary = sys.stdin.readlines()[0].strip() +temp_file = sys.argv[1] +input_file = temp_file + ".input" + +with open(temp_file, "w") as mc_stdout:

[llvm-branch-commits] [llvm] [MC] Rewrite stdin.s to use python (PR #157232)

2025-09-18 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM. IMO this is a much nicer way to test a property on `stdin`'s positioning. Lets get a bit more consensus from other maintainers before landing though. https://github.com/llvm/llvm-project/pull/157232 ___

[llvm-branch-commits] [lit] Add support for deleting symlinks to directories without -r (PR #158464)

2025-09-15 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/158464 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [Clang] Enable lit internal shell by default (PR #158465)

2025-09-15 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/158465 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [Clang] Make rewrite-includes-bom.c work with internal shell (PR #158463)

2025-09-15 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/158463 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-15 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. I slightly wonder if we should accept `-` too, but I doubt that would see much use in the tests. I figure we can cross that bridge if something needs it. https://github.com/llvm/llvm-project/pull/158447 _

[llvm-branch-commits] [Clang] Rewrite tests using subshells to set env variables (PR #158446)

2025-09-15 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/158446 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [lit] Implement ulimit builtin (PR #157958)

2025-09-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/157958 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [Clang] Port ulimit tests to work with internal shell (PR #157977)

2025-09-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/157977 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [APINotes] Prefer diff -u over diff -b (PR #157588)

2025-09-09 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/157588 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [MC] Rewrite stdin.s to use python (PR #157232)

2025-09-08 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: > Somewhat off-topic for this PR, but why can't `REQUIRES: shell` force use of > shell even if internal shell is the default? Then we don't lose test coverage > and don't block this on migration of the long-tail of tests. Previously, we've discussed giving lit a hybrid mode tha

[llvm-branch-commits] [llvm] [MC] Rewrite stdin.s to use python (PR #157232)

2025-09-08 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/157232 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [not] Update disable-symbolization.test to work with internal shell (PR #157236)

2025-09-06 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: Should we update the lit implementation handling for `not`/`env` to avoid reordering those two commands when combined? https://github.com/llvm/llvm-project/pull/157236 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.

[llvm-branch-commits] [MC] Invoke run line in stdin.s using bash (PR #157232)

2025-09-06 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: I don't know if I understand what you're going for in this patch. How is this an improvement over just keeping `REQUIRES: shell`? The `REQUIRES: ` bit is what's going to stop the test from running in the wrong environment. That seems like the right tradeoff. https://github.c

[llvm-branch-commits] [llvm] Use lit internal shell by default (PR #157237)

2025-09-06 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/157237 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [CGData] Rewrite tests to not use subshells (PR #157234)

2025-09-06 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/157234 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm][IR] Treat memcmp and bcmp as libcalls (PR #135706)

2025-08-29 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: Closing, since I think we're definitely moving away from this approach, and will be pursuing some of the ideas discussed w/ @efriedma-quic and others to address the core issues rather than paper over them. https://github.com/llvm/llvm-project/pull/135706 ___

[llvm-branch-commits] [llvm] [llvm][IR] Treat memcmp and bcmp as libcalls (PR #135706)

2025-08-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/135706 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add throws comments to comment template (PR #150649)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
@@ -126,6 +138,15 @@ static Object serializeComment(const CommentInfo &I, Object &Description) { auto TextCommentsArray = extractTextComments(CARef.front().getAsObject()); if (I.Name == "brief") insertComment(Description, TextCommentsArray, "BriefComments"); +

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add throws comments to comment template (PR #150649)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
@@ -126,6 +138,15 @@ static Object serializeComment(const CommentInfo &I, Object &Description) { auto TextCommentsArray = extractTextComments(CARef.front().getAsObject()); if (I.Name == "brief") insertComment(Description, TextCommentsArray, "BriefComments"); +

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add option to delete JSON residuals (PR #150656)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: > It'd be nice to have a test for this but I'm not sure how to check for the > existence of something after a LIT test is done. Why not just another `RUN` line? https://github.com/llvm/llvm-project/pull/150656 ___ llvm-branch-commits m

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add option to delete JSON residuals (PR #150656)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
@@ -41,8 +41,8 @@ getClangDocContext(std::vector UserStylesheets = {}, StringRef RepositoryUrl = "", StringRef RepositoryLinePrefix = "", StringRef Base = "") { ClangDocContext CDCtx{ - {}, "test-project", {}, {}, {}, RepositoryUr

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add option to delete JSON residuals (PR #150656)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
@@ -481,9 +481,9 @@ ClangDocContext::ClangDocContext(tooling::ExecutionContext *ECtx, StringRef RepositoryUrl, StringRef RepositoryLinePrefix, StringRef Base, std::vector UserSt

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/150648 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/150647 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add param comments to comment template (PR #150571)

2025-07-25 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/150571 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
@@ -1,40 +1,43 @@ ;; Test if temporary labels are generated for each indirect callsite with a callee_type metadata. -;; Test if the .callgraph section contains the numerical callee type id for each of the temporary -;; labels generated. +;; Test if the .callgraph section cont

[llvm-branch-commits] [clang] [clang] callee_type metadata for indirect calls (PR #117036)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
@@ -2869,9 +2870,23 @@ static void setLinkageForGV(llvm::GlobalValue *GV, const NamedDecl *ND) { GV->setLinkage(llvm::GlobalValue::ExternalWeakLinkage); } +static bool hasExistingGeneralizedTypeMD(llvm::Function *F) { + llvm::MDNode *MD = F->getMetadata(llvm::LLVMContext

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add param comments to comment template (PR #150470)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/150470 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add param comments to comment template (PR #150470)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM. Consider squashing this with the precommit tests, though. It's pretty clear how the output changed, and all the tests just end up dropping `-NOT`, which isn't great. plus I'd expect those tests to fail when something like a tag match

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Precommit param comment test changes (PR #150469)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: Since you're just dropping the NOT prefix in the next patch, I'd consider just squashing them together. Left a similar comment up the stack. https://github.com/llvm/llvm-project/pull/150469 ___ llvm-branch-commits mailing list llvm-bran

[llvm-branch-commits] [clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: Not totally convinced these are great precommit tests. TOday we don't emit these, but I think some of the tags will probably end up matching on later lines (at least I'd expect them to). Would be fine dropping this and just taking the patch after, since its clear how the functio

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Precommit param comment test changes (PR #150469)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
@@ -259,7 +259,24 @@ HTML-CALC: HTML-CALC: HTML-CALC: HTML-CALC: -HTML-CALC: +HTML-CALC-NOT: ilovepi wrote: Won't this check bre

[llvm-branch-commits] [clang-tools-extra] [clang-doc] generate comments for functions (PR #150468)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/150468 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] generate comments for functions (PR #150468)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/150468 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/150467 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/150467 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm] Extract and propagate callee_type metadata (PR #87575)

2025-07-22 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: I think this is mostly in good shape, but some of the tests could be reduced slightly using the method I gave in an another one of your PRs. After that its probably LGTM from my perspective. https://github.com/llvm/llvm-project/pull/87575 ___

[llvm-branch-commits] [clang-tools-extra] [clang-doc] separate comments into categories (PR #149564)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
@@ -210,12 +229,17 @@ serializeCommonAttributes(const Info &I, json::Object &Obj, } if (!I.Description.empty()) { -json::Value DescArray = json::Array(); -auto &DescArrayRef = *DescArray.getAsArray(); -DescArrayRef.reserve(I.Description.size()); -for (cons

[llvm-branch-commits] [clang-tools-extra] [clang-doc] enable comments in class templates (PR #149565)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
@@ -60,6 +60,17 @@ HTML-SHAPE: HTML-SHAPE: HTML-SHAPE: HTML-SHAPE: class Shape +HTML-SHAPE: +HTML-SHAPE: +HTML-SHAPE: Abstr

[llvm-branch-commits] [clang-tools-extra] [clang-doc] enable comments in class templates (PR #149565)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM, except the Q on formatting. Obviously doesn't need to be solved in this patch, though. https://github.com/llvm/llvm-project/pull/149565 ___ llvm-branch-commits mailing list llvm-branch-commi

[llvm-branch-commits] [clang-tools-extra] [clang-doc] enable comments in class templates (PR #149565)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/149565 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] enable comments in class templates (PR #149565)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
@@ -60,6 +60,17 @@ HTML-SHAPE: HTML-SHAPE: HTML-SHAPE: HTML-SHAPE: class Shape +HTML-SHAPE: +HTML-SHAPE: +HTML-SHAPE: Abstr

[llvm-branch-commits] [clang-tools-extra] [clang-doc] separate comments into categories (PR #149564)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
@@ -210,12 +229,17 @@ serializeCommonAttributes(const Info &I, json::Object &Obj, } if (!I.Description.empty()) { -json::Value DescArray = json::Array(); -auto &DescArrayRef = *DescArray.getAsArray(); -DescArrayRef.reserve(I.Description.size()); -for (cons

[llvm-branch-commits] [clang-tools-extra] [clang-doc] separate comments into categories (PR #149564)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi commented: This seems mostly fine. I'll probably LGTM once I go through the whole stack. https://github.com/llvm/llvm-project/pull/149564 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.l

[llvm-branch-commits] [clang-tools-extra] [clang-doc] separate comments into categories (PR #149564)

2025-07-18 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/149564 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] serialize friends (PR #146165)

2025-06-27 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM, modulo formatting and 1 small suggestion. https://github.com/llvm/llvm-project/pull/146165 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[llvm-branch-commits] [clang-tools-extra] [clang-doc] serialize friends (PR #146165)

2025-06-27 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/146165 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] serialize friends (PR #146165)

2025-06-27 Thread Paul Kirth via llvm-branch-commits
@@ -947,6 +952,53 @@ emitInfo(const NamespaceDecl *D, const FullComment *FC, Location Loc, return {std::move(NSI), makeAndInsertIntoParent(*NSI)}; } +static void parseFriends(RecordInfo &RI, const CXXRecordDecl *D) { + if (D->hasDefinition() && D->hasFriends()) ---

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Precommit friends test (PR #146164)

2025-06-27 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/146164 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] document global variables (PR #145070)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/145070 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] document global variables (PR #145070)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -25,7 +24,7 @@ typedef int MyTypedef; // CHECK-NEXT: { // CHECK-NEXT:"Location": { // CHECK-NEXT: "Filename": "{{.*}}namespace.cpp", -// CHECK-NEXT: "LineNumber": 15 +// CHECK-NEXT: "LineNumber": 14 ilovepi wrote: Sho

[llvm-branch-commits] [clang-tools-extra] [clang-doc] document global variables (PR #145070)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM, w/ one Q about the test expr. I could go either way on that, so its up to you. https://github.com/llvm/llvm-project/pull/145070 ___ llvm-branch-commits mailing list llvm-branch-commits@lists

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Precommit test for global variables (PR #145069)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. https://github.com/llvm/llvm-project/pull/145069 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -211,6 +214,15 @@ struct TemplateSpecializationInfo { std::vector Params; }; +struct ConstraintInfo { + ConstraintInfo() = default; + ConstraintInfo(SymbolID USR, StringRef Name) + : ConceptRef(USR, Name, InfoType::IT_concept) {} + Reference ConceptRef; + + Small

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -649,6 +693,9 @@ template <> void addTemplate(RecordInfo *I, TemplateInfo &&P) { template <> void addTemplate(FunctionInfo *I, TemplateInfo &&P) { I->Template.emplace(std::move(P)); } +template <> void addTemplate(ConceptInfo *I, TemplateInfo &&P) { + I->Template = std::

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -584,6 +613,18 @@ template <> llvm::Error addReference(RecordInfo *I, Reference &&R, FieldId F) { } } +template <> +llvm::Error addReference(ConstraintInfo *I, Reference &&R, FieldId F) { + switch (F) { + case FieldId::F_concept: +I->ConceptRef = std::move(R); +

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/144430 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -817,6 +872,20 @@ llvm::Error ClangDocBitcodeReader::readSubBlock(unsigned ID, T I) { addChild(I, std::move(TI)); return llvm::Error::success(); } + case BI_CONSTRAINT_BLOCK_ID: { +ConstraintInfo CI; +if (auto Err = readBlock(ID, &CI)) + return Err;

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -248,6 +257,27 @@ static void serializeCommonChildren(const ScopeChildren &Children, } } +template +static void serializeArray(const std::vector &Records, Object &Obj, + const std::string &Key, + SerializationFunc seri

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
@@ -662,6 +709,14 @@ void addTemplateSpecialization(TemplateInfo *I, I->Specialization.emplace(std::move(TSI)); } +template static void addConstraint(T I, ConstraintInfo &&C) { + llvm::errs() << "invalid container for constraint info"; + exit(1); +} ilove

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-20 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM. overall really good improvement. most of my comments are me noticing bad existing code we should fix. I also left a few nit comments to address, but they're rather minor. https://github.com/llvm/llvm-project/pull/144430 _

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

2025-06-17 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: > Linux CI shows failing but looks like all tests passed despite that. > > Added compound constraint support which just goes through the nested > expressions until it reaches the constraint. I've just been clicking re-run on those when i see it. you may want to file abug abou

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add namespaces to JSON generator (PR #143209)

2025-06-10 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/143209 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add namespaces to JSON generator (PR #143209)

2025-06-10 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,108 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --output=%t --format=json --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.json + +class MyClass {}; + +void myFunction(int Param); + +namespace NestedNamespace { +} // namespace Nested

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add namespaces to JSON generator (PR #143209)

2025-06-10 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,25 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --output=%t --format=json --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.json + +static void myFunction() {} + +void noExceptFunction() noexcept {} + +inline void inlineFunction() {} +

[llvm-branch-commits] [clang-tools-extra] [clang-doc] add namespaces to JSON generator (PR #143209)

2025-06-09 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi approved this pull request. LGTM. This seems like its in order, assuming CI is happy. https://github.com/llvm/llvm-project/pull/143209 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm

  1   2   3   4   5   6   7   8   9   >