[clang] [llvm] [Clang] Fix nomerge attribute not working with __builtin_trap(), __debugbreak(), __builtin_verbose_trap() (PR #101549)

2024-08-01 Thread Zequan Wu via cfe-commits
ZequanWu wrote: > > > Thanks for reporting. Those tests are failed due to not updated properly. > > > I relanded this change with updated tests: > > > [ae6dc64](https://github.com/llvm/llvm-project/commit/ae6dc64ec670891cb15049277e43133d4df7fb4b). > > > > > > Your updated change still seems t

[clang] 6c375ae - Fix attr-nomerge.cpp with fixed triple

2024-08-01 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2024-08-01T19:57:28-07:00 New Revision: 6c375ae7a4d97a9947fdc16be4d86e9eba3dde4c URL: https://github.com/llvm/llvm-project/commit/6c375ae7a4d97a9947fdc16be4d86e9eba3dde4c DIFF: https://github.com/llvm/llvm-project/commit/6c375ae7a4d97a9947fdc16be4d86e9eba3dde4c.diff LOG

[clang] [llvm] [Clang] Fix nomerge attribute not working with __builtin_trap(), __debugbreak(), __builtin_verbose_trap() (PR #101549)

2024-08-01 Thread Zequan Wu via cfe-commits
ZequanWu wrote: > > > > > Thanks for reporting. Those tests are failed due to not updated > > > > > properly. I relanded this change with updated tests: > > > > > [ae6dc64](https://github.com/llvm/llvm-project/commit/ae6dc64ec670891cb15049277e43133d4df7fb4b). > > > > > > > > > > > > Your upda

[clang] be57057 - [clang-format] fix namepsace format when the name is macro expansion

2022-03-04 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2022-03-04T16:01:17-08:00 New Revision: be5705767aad8d8eafd40225f7dba8e7e661c6b5 URL: https://github.com/llvm/llvm-project/commit/be5705767aad8d8eafd40225f7dba8e7e661c6b5 DIFF: https://github.com/llvm/llvm-project/commit/be5705767aad8d8eafd40225f7dba8e7e661c6b5.diff LOG

[clang] 1c740b2 - [clang-cl] make -ffile-compilation-dir a CoreOption.

2021-03-18 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-03-18T13:20:47-07:00 New Revision: 1c740b29fae3962a9c8644496352b10798d925ef URL: https://github.com/llvm/llvm-project/commit/1c740b29fae3962a9c8644496352b10798d925ef DIFF: https://github.com/llvm/llvm-project/commit/1c740b29fae3962a9c8644496352b10798d925ef.diff LOG

[clang] aae84b8 - Revert "[Driver] Bring back "Clean up Debian multiarch /usr/include/ madness" and restore i586-linux-gnu"

2021-03-23 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-03-23T20:12:09-07:00 New Revision: aae84b8e3939e815bbc1e64b3b30c0f10b055be4 URL: https://github.com/llvm/llvm-project/commit/aae84b8e3939e815bbc1e64b3b30c0f10b055be4 DIFF: https://github.com/llvm/llvm-project/commit/aae84b8e3939e815bbc1e64b3b30c0f10b055be4.diff LOG

[clang] e53bbd9 - [IR] move nomerge attribute from function declaration/definition to callsites

2021-01-12 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-01-12T12:10:46-08:00 New Revision: e53bbd99516fc7b612df1ae08d48288d0b8784ea URL: https://github.com/llvm/llvm-project/commit/e53bbd99516fc7b612df1ae08d48288d0b8784ea DIFF: https://github.com/llvm/llvm-project/commit/e53bbd99516fc7b612df1ae08d48288d0b8784ea.diff LOG

[clang] 4fffbc1 - [clang][MSVC] Fix missing MSInheritanceAttr in template specialization.

2021-01-14 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-01-14T10:37:35-08:00 New Revision: 4fffbc150cca1638051b8ad2a20f4b8240df0869 URL: https://github.com/llvm/llvm-project/commit/4fffbc150cca1638051b8ad2a20f4b8240df0869 DIFF: https://github.com/llvm/llvm-project/commit/4fffbc150cca1638051b8ad2a20f4b8240df0869.diff LOG

[clang] f931692 - [clang-format-diff] Fix missing formatting for zero length git diff lines

2021-10-08 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-10-08T10:25:54-07:00 New Revision: f93169226a298f8fb22d768671d5564030c0ffa9 URL: https://github.com/llvm/llvm-project/commit/f93169226a298f8fb22d768671d5564030c0ffa9 DIFF: https://github.com/llvm/llvm-project/commit/f93169226a298f8fb22d768671d5564030c0ffa9.diff LOG

[clang] 57553ce - Revert "Reland [clang] Pass -clear-ast-before-backend in Clang::ConstructJob()"

2021-10-19 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2021-10-19T12:39:34-07:00 New Revision: 57553ce43281a7c379e375161320cc09d8236839 URL: https://github.com/llvm/llvm-project/commit/57553ce43281a7c379e375161320cc09d8236839 DIFF: https://github.com/llvm/llvm-project/commit/57553ce43281a7c379e375161320cc09d8236839.diff LOG

[clang] [Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads (PR #93113)

2024-06-27 Thread Zequan Wu via cfe-commits
ZequanWu wrote: This causes clang to crash when building chromium: ``` Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"), function setPointOfInstantiation, file DeclTemplate.h, line 1938. PLEASE submit a bug report to https://crbug.com in the Tools>LLVM component, run

[clang] Revert "[Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads" (PR #97002)

2024-06-27 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/97002 Reverts llvm/llvm-project#93113 >From 62d7d5611e70682f8743e7322e34204480ffe189 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Fri, 28 Jun 2024 00:36:19 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20"[Clang]=20Fix=2

[clang] Revert "[Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads" (PR #97002)

2024-06-27 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu closed https://github.com/llvm/llvm-project/pull/97002 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads (PR #93113)

2024-06-27 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Reverting for now as this also breaks LLVM CI builder. https://github.com/llvm/llvm-project/pull/93113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads" (PR #97002)

2024-06-27 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu edited https://github.com/llvm/llvm-project/pull/97002 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads (PR #93113)

2024-06-28 Thread Zequan Wu via cfe-commits
ZequanWu wrote: I have a partially reduced repro: ``` $ clang++ "-cc1" "-triple" "arm64-apple-macosx10.15.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-emit-llvm-bc" "-flto=thin" "-flto-unit" "-disable-free" "-clear-a

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-21 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Hi. this change caused chromium windows pgo build to fail: https://g-issues.chromium.org/issues/373478548 and we see the profile runtime error message: ``` LLVM Profile Error: Invalid profile data to merge LLVM Profile Error: Profile Merging of file default_16487515506031793746

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-21 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Oh, I see, there are windows version of `flock` in `WindowsMMap.h`, and this new macro `COMPILER_RT_HAS_FLOCK` is defined here: [for linux](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/profile/CMakeLists.txt#L41-L50) https://github.com/llvm/llvm-project/pull/1

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-21 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Given there's already an implementation of `flock` in `compiler-rt/lib/profile/WindowsMMap.c`. Setting `COMPILER_RT_TARGET_HAS_FLOCK` according to this https://github.com/llvm/llvm-project/blob/7dc2542ac24fcae89dfd179fa58c4ec4fb959e2b/compiler-rt/lib/profile/CMakeLists.txt#L41-

[clang] [clang] Avoid unnecessary call to clang::NamespaceDecl::isRedundantInlineQualifierFor(). (PR #115196)

2024-11-08 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu closed https://github.com/llvm/llvm-project/pull/115196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Avoid unnecessary call to clang::NamespaceDecl::isRedundantInlineQualifierFor(). (PR #115196)

2024-11-06 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/115196 We observed 2X slowdown in lldb's expression evaluation with https://github.com/llvm/llvm-project/pull/109147. It turns out that calling `isRedundantInlineQualifierFor` is quite expensive. Using short-circuit

[clang] [clang] Avoid unnecessary call to clang::NamespaceDecl::isRedundantInlineQualifierFor(). (PR #115196)

2024-11-06 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu edited https://github.com/llvm/llvm-project/pull/115196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

2024-11-27 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Verified that it no longer crashes. https://github.com/llvm/llvm-project/pull/91991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c60b055 - Reapply "Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (#91991)"

2024-11-27 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2024-11-27T11:18:05-08:00 New Revision: c60b055d463a3e9f18a494aec075f35d38d447a0 URL: https://github.com/llvm/llvm-project/commit/c60b055d463a3e9f18a494aec075f35d38d447a0 DIFF: https://github.com/llvm/llvm-project/commit/c60b055d463a3e9f18a494aec075f35d38d447a0.diff LOG

[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

2024-11-14 Thread Zequan Wu via cfe-commits
ZequanWu wrote: It's actually an existing crash not caused by this one. https://github.com/llvm/llvm-project/pull/91991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

2024-11-14 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Confirmed that this change causes crash with -Wunsafe-buffer-usage: https://godbolt.org/z/vcv8d6sYr. My previously manual-reduced repro in https://github.com/llvm/llvm-project/pull/91991#issuecomment-2477311737 happens to crash before this change. https://github.com/llvm/llv

[clang] b05d37d - Revert "Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (#91991)"

2024-11-14 Thread Zequan Wu via cfe-commits
Author: Zequan Wu Date: 2024-11-14T13:43:59-08:00 New Revision: b05d37d0d25e5f3ef181e11eb2a61dd816ae72e1 URL: https://github.com/llvm/llvm-project/commit/b05d37d0d25e5f3ef181e11eb2a61dd816ae72e1 DIFF: https://github.com/llvm/llvm-project/commit/b05d37d0d25e5f3ef181e11eb2a61dd816ae72e1.diff LOG

[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

2024-11-14 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Hi, we have found this causing clang to crash with -Wunsafe-buffer-usage: https://godbolt.org/z/nvWxW43fK https://github.com/llvm/llvm-project/pull/91991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [NFC][Driver] Use global --implicit-check-not=libclang_rt (PR #121081)

2024-12-30 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Hi, we see this test failed on our clang bots, looks like we should relax the check log: ``` /b/s/w/ir/cache/builder/src/third_party/llvm/clang/test/Driver/sanitizer-ld.c:335:39: error: CHECK-ASAN-ANDROID-SHARED-LIBASAN: expected string not found in input // CHECK-ASAN-ANDROID

[clang] [Clang][test] Relax checking for libclang_rt.asan.so and libclang_rt.asan_static.a on arm android. (PR #121361)

2024-12-30 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/121361 This fixes test breakage on clang bots. See comment https://github.com/llvm/llvm-project/pull/121081#issuecomment-2565933062 >From c2e29a1822a592cdd96b5f4e9efc3bbf2ef2bf95 Mon Sep 17 00:00:00 2001 From: Zequan

[clang] [Clang][test] Relax checking for libclang_rt.asan.so and libclang_rt.asan_static.a on arm android. (PR #121361)

2024-12-30 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu closed https://github.com/llvm/llvm-project/pull/121361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

2025-02-06 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu approved this pull request. https://github.com/llvm/llvm-project/pull/123963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

2025-02-06 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu closed https://github.com/llvm/llvm-project/pull/123963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

2025-02-06 Thread Zequan Wu via cfe-commits
ZequanWu wrote: That should be fixed by https://github.com/llvm/llvm-project/commit/8d925a1c72600807199894b5852bd8a032eca795. https://github.com/llvm/llvm-project/pull/123963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

2025-02-06 Thread Zequan Wu via cfe-commits
@@ -2916,6 +2917,12 @@ instrumentation: $ LLVM_PROFILE_FILE="code-%m.profraw" ./code + Although rare, binary signatures used by the ``%m`` specifier can have + collisions. In this case, the ``%b`` specifier, which expands to the binary + ID (build ID in ELF and COF

[clang] [profile] Add a clang option -fprofile-continuous that enables continuous instrumentation profiling mode (PR #124353)

2025-04-05 Thread Zequan Wu via cfe-commits
@@ -785,6 +786,34 @@ static void addPGOAndCoverageFlags(const ToolChain &TC, Compilation &C, D.Diag(diag::err_drv_unsupported_option_argument) << A->getSpelling() << Val; } + if (const auto *A = Args.getLastArg(options::OPT_fprofile_continuous)) { +if (!

[clang] [profile] Add a clang option -fprofile-continuous that enables continuous instrumentation profiling mode (PR #124353)

2025-03-25 Thread Zequan Wu via cfe-commits
@@ -785,6 +786,34 @@ static void addPGOAndCoverageFlags(const ToolChain &TC, Compilation &C, D.Diag(diag::err_drv_unsupported_option_argument) << A->getSpelling() << Val; } + if (const auto *A = Args.getLastArg(options::OPT_fprofile_continuous)) { +if (!

[clang] [compiler-rt] [Coverage] Fix mapping for do-while loops with terminating statements (PR #139777)

2025-05-19 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu approved this pull request. LGTM. Thanks for fixing it. https://github.com/llvm/llvm-project/pull/139777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3