[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [ConstantRange] Estimate tighter lower (upper) bounds for masked binary and (or) (PR #120352)

2024-12-23 Thread Stephen Senran Zhang via cfe-commits
zsrkmyn wrote: Ah, by applying the patch below, I just found the lower bound is still not optimal for non-wrapped cases. E.g., for 4-bit ints, given 2 ranges, ``` [0011, ] [1101, ] ``` the optimal lower bound is 1, while the algorithm gives 0. ```diff diff --git a/llvm/unittests/IR/Co

[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)

2024-12-23 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni updated https://github.com/llvm/llvm-project/pull/112724 >From e4172ca273a6fdfcbfc4662c9e37276ef34c2df4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 17 Oct 2024 00:32:26 +0900 Subject: [PATCH 1/5] Introduce the type `CounterPair` for RegionCounterMap `Co

[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)

2024-12-23 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni updated https://github.com/llvm/llvm-project/pull/112702 >From fc697f04fd6c9f3c217ce04e3f1dd082c1f1a705 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 16 Oct 2024 23:16:53 +0900 Subject: [PATCH 1/5] [Coverage] Introduce `getBranchCounterPair()`. NFC. This

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -206,3 +208,124 @@ void SemaSYCL::handleKernelEntryPointAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(::new (SemaRef.Context) SYCLKernelEntryPointAttr(SemaRef.Context, AL, TSI)); } + +static SourceLocation SourceLocationForType(QualType QT) { + Source

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -1134,8 +1134,18 @@ void ASTDeclReader::VisitFunctionDecl(FunctionDecl *FD) { // the presence of a sycl_kernel_entry_point attribute, register it so that // associated metadata is recreated. if (FD->hasAttr()) { +const auto *SKEPAttr = FD->getAttr(); ASTContex

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -206,3 +208,124 @@ void SemaSYCL::handleKernelEntryPointAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(::new (SemaRef.Context) SYCLKernelEntryPointAttr(SemaRef.Context, AL, TSI)); } + +static SourceLocation SourceLocationForType(QualType QT) { + Source

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -206,3 +208,124 @@ void SemaSYCL::handleKernelEntryPointAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(::new (SemaRef.Context) SYCLKernelEntryPointAttr(SemaRef.Context, AL, TSI)); } + +static SourceLocation SourceLocationForType(QualType QT) { + Source

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -206,3 +208,124 @@ void SemaSYCL::handleKernelEntryPointAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(::new (SemaRef.Context) SYCLKernelEntryPointAttr(SemaRef.Context, AL, TSI)); } + +static SourceLocation SourceLocationForType(QualType QT) { + Source

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -206,3 +208,124 @@ void SemaSYCL::handleKernelEntryPointAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(::new (SemaRef.Context) SYCLKernelEntryPointAttr(SemaRef.Context, AL, TSI)); } + +static SourceLocation SourceLocationForType(QualType QT) { + Source

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -15978,6 +15988,24 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, CheckCoroutineWrapper(FD); } + // Diagnose invalid SYCL kernel entry point function declarations. + if (FD && !FD->isInvalidDecl() && !FD->isTemplated() && + FD->hasAttr()) { +

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -12408,6 +12408,29 @@ def err_sycl_special_type_num_init_method : Error< "types with 'sycl_special_class' attribute must have one and only one '__init' " "method defined">; +// SYCL kernel entry point diagnostics +def err_sycl_entry_point_invalid : Error< + "'sycl_ker

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
@@ -12408,6 +12408,29 @@ def err_sycl_special_type_num_init_method : Error< "types with 'sycl_special_class' attribute must have one and only one '__init' " "method defined">; +// SYCL kernel entry point diagnostics +def err_sycl_entry_point_invalid : Error< + "'sycl_ker

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/120327 >From 6ed96d3bf22c5da5af995ea5ffe083baf91594bb Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Fri, 1 Nov 2024 16:03:24 -0700 Subject: [PATCH 1/6] [SYCL] Basic diagnostics for the sycl_kernel_entry_point

[clang] Add `pragma clang scope [push|pop]` (PR #121025)

2024-12-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 2c95e60df53ba1a5765b3fad9e8ddaff70f21994 5433a9134beb8faf1e2b662c96f76d7e8bc814de --e

[clang] Add `pragma clang scope [push|pop]` (PR #121025)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chris B (llvm-beanz) Changes Have you ever had that horrible realization that some header you included defines a macro that matches a commonly used word that appears throughout your codebase? What kind of horrible person would define `max

[clang] Add `pragma clang scope [push|pop]` (PR #121025)

2024-12-23 Thread Chris B via cfe-commits
https://github.com/llvm-beanz created https://github.com/llvm/llvm-project/pull/121025 Have you ever had that horrible realization that some header you included defines a macro that matches a commonly used word that appears throughout your codebase? What kind of horrible person would define `m

[clang] [clang][RISCV] Remove unneeded RISCV tuple code (PR #121024)

2024-12-23 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. Nice cleanup. https://github.com/llvm/llvm-project/pull/121024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Remove unneeded RISCV tuple code (PR #121024)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes These code are no longer needed because we've modeled tuple type using target extension type rather than structure of scalable vectors. --- Full diff: https://github

[clang] [clang][RISCV] Remove unneeded RISCV tuple code (PR #121024)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes These code are no longer needed because we've modeled tuple type using target extension type rather than structure of scalable vectors. --- Full diff: https://github.com/llvm/llvm-project/pull/121024.diff 2

[clang] [clang-format] extend clang-format directive with options to prevent formatting for one line (PR #118566)

2024-12-23 Thread Owen Pan via cfe-commits
owenca wrote: > A nice multiline example I stumbled upon is: > > ```c++ > Tree tree[] > { > {'D', tree + 1, tree + 2}, > //│ > //┌───┴┐ > //│

[clang] [clang][RISCV] Remove unneeded RISCV tuple code (PR #121024)

2024-12-23 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/121024 These code are no longer needed because we've modeled tuple type using target extension type rather than structure of scalable vectors. >From 72401387483dd5839d09f508c1bc988325c5e456 Mon Sep 17 00:00:00 2001 Fr

[clang] [llvm] [ConstantRange] Estimate tighter lower (upper) bounds for masked binary and (or) (PR #120352)

2024-12-23 Thread Stephen Senran Zhang via cfe-commits
zsrkmyn wrote: > > I'm thinking if I need to add a new test mode to test the optimal lower > > (upper) bound only for AND (OR). > > If you cannot make it optimal for all non-wrapped cases, please just add some > special cases (e.g., `[7, 14) & [-1, 0) = [7, 14)`) before > `TestBinaryOpExhaust

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-23 Thread Owen Pan via cfe-commits
@@ -3246,8 +3246,15 @@ tooling::Replacements sortCppIncludes(const FormatStyle &Style, StringRef Code, SmallVector RawStringMatches; std::string RawStringTermination = ")\""; - for (;;) { -auto Pos = Code.find('\n', SearchFrom); + for (const auto Size = Code.size();

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-23 Thread Tristan Ross via cfe-commits
RossComputerGuy wrote: This has been rebased now, conflicts are gone. https://github.com/llvm/llvm-project/pull/120632 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-23 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/120632 >From 1a76395c0dbe55146d1dd1ff943909f34c19a90a Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 19 Dec 2024 10:54:58 -0800 Subject: [PATCH 1/4] [clang] fix uefi data layout on x86 & aarch64 --- c

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-23 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/119091 >From 767d34a0469aa67c2c47a35bc9bff29d20ae1222 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Sat, 7 Dec 2024 13:47:23 -0600 Subject: [PATCH 1/2] [OpenMP] Use generic IR for the OpenMP DeviceRTL Summary: We

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-23 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_P

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-23 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_P

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-23 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_P

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/121006 >From 37bc7bd45b3c70074686b62dd8d0e2109dec558d Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 23 Dec 2024 13:56:11 -0800 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/121006 >From 37bc7bd45b3c70074686b62dd8d0e2109dec558d Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 23 Dec 2024 13:56:11 -0800 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2024-12-23 Thread Harald van Dijk via cfe-commits
hvdijk wrote: ping @sdkrystian FWIW, `getTemplateArgsAsWritten()` is implemented as ```c++ /// Retrieve the template argument list as written in the sources, /// if any. const ASTTemplateArgumentListInfo *getTemplateArgsAsWritten() const { if (auto *Info = ExplicitInfo.dyn_cast())

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung edited https://github.com/llvm/llvm-project/pull/120920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [Coverage][Single] Round Counters to boolean after evaluation (PR #110972)

2024-12-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/6149 Here is the relevant piece of the build log for

[clang] [clang-format] extend clang-format directive with options to prevent formatting for one line (PR #118566)

2024-12-23 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > > > I struggle with changes that encourage people to not be fully > > > clang-formatted, I would prefer to ask why we need this feature, can we > > > have some examples of where this would be used? > > > > > > This makes it so only one line isn't formatted instead

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread Kirill Stoimenov via cfe-commits
https://github.com/kstoimenov approved this pull request. https://github.com/llvm/llvm-project/pull/121006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [llvm] [libcxx] implement views::concat (PR #120920)

2024-12-23 Thread Nhat Nguyen via cfe-commits
changkhothuychung wrote: I have no idea why I am getting `error: no type named 'concat_view' in namespace 'std::ranges'` in the buildkite. My test runs successfully locally. Does anyone know what is wrong? https://github.com/llvm/llvm-project/pull/120920 __

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/121006 >From 37bc7bd45b3c70074686b62dd8d0e2109dec558d Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 23 Dec 2024 13:56:11 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?

[clang] [compiler-rt] [llvm] [Coverage][Single] Round Counters to boolean after evaluation (PR #110972)

2024-12-23 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni closed https://github.com/llvm/llvm-project/pull/110972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-23 Thread Emilia Kond via cfe-commits
@@ -3246,8 +3246,15 @@ tooling::Replacements sortCppIncludes(const FormatStyle &Style, StringRef Code, SmallVector RawStringMatches; std::string RawStringTermination = ")\""; - for (;;) { -auto Pos = Code.find('\n', SearchFrom); + for (const auto Size = Code.size();

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/120327 >From 6ed96d3bf22c5da5af995ea5ffe083baf91594bb Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Fri, 1 Nov 2024 16:03:24 -0700 Subject: [PATCH 1/4] [SYCL] Basic diagnostics for the sycl_kernel_entry_point

[clang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2024-12-23 Thread via cfe-commits
https://github.com/GeorgeKA updated https://github.com/llvm/llvm-project/pull/120900 >From faf8597dbb58a08991e11e9c4b9a0aad2f0b4234 Mon Sep 17 00:00:00 2001 From: GeorgeKA Date: Sun, 22 Dec 2024 09:42:36 -0500 Subject: [PATCH 1/2] [Clang][Driver][Test] Created test for unsupported driver optio

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-23 Thread Tristan Ross via cfe-commits
RossComputerGuy wrote: Will rebase tonight since #111719 was just merged. If we can get this merged soon then I can try more testing. https://github.com/llvm/llvm-project/pull/120632 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-23 Thread via cfe-commits
https://github.com/Prabhuk closed https://github.com/llvm/llvm-project/pull/111719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ac586fd - [clang] Introduce a new UEFI target predefine. (#111719)

2024-12-23 Thread via cfe-commits
Author: Prabhuk Date: 2024-12-23T14:15:16-08:00 New Revision: ac586fd204e92b76b1ee255342ba26a45a29a1d9 URL: https://github.com/llvm/llvm-project/commit/ac586fd204e92b76b1ee255342ba26a45a29a1d9 DIFF: https://github.com/llvm/llvm-project/commit/ac586fd204e92b76b1ee255342ba26a45a29a1d9.diff LOG:

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes Linking this runtime requires C++ ABI, which breaks -nostdlib++ builds. However, UBSAN C++ runtime is only needed for CFI and VPTR checks. Unblocks #120370. ---

[clang] [compiler-rt] [Ubsan][Driver] Remove UBSAN C++ runtime from other sanitizers (PR #121006)

2024-12-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/121006 Linking this runtime requires C++ ABI, which breaks -nostdlib++ builds. However, UBSAN C++ runtime is only needed for CFI and VPTR checks. Unblocks #120370. >From 37bc7bd45b3c70074686b62dd8d0e2109dec558d Mo

[clang] [compiler-rt] [llvm] [Coverage][Single] Round Counters to boolean after evaluation (PR #110972)

2024-12-23 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/110972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce SingleByteCoverage tests (w/yaml2obj) (PR #113114)

2024-12-23 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni closed https://github.com/llvm/llvm-project/pull/113114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-23 Thread via cfe-commits
https://github.com/wonbinbk updated https://github.com/llvm/llvm-project/pull/120348 >From 1335058a52275970fd6e8e41ab78f7e73d863d78 Mon Sep 17 00:00:00 2001 From: wonbinbk Date: Wed, 18 Dec 2024 15:33:55 +1300 Subject: [PATCH 1/2] [clang-tidy] Add an option to exclude files not present in the

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-23 Thread via cfe-commits
wonbinbk wrote: > Please mention changes in Release Notes. Thanks. I have updated the Release Notes in `clang-tools-extra/docs/ReleaseNotes.rst`. Please tell me if there is other files need to be updated. https://github.com/llvm/llvm-project/pull/120348 ___

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-23 Thread via cfe-commits
https://github.com/wonbinbk updated https://github.com/llvm/llvm-project/pull/120348 >From 9b784106f2488d34a329404937d45872e1532fdf Mon Sep 17 00:00:00 2001 From: wonbinbk Date: Wed, 18 Dec 2024 15:33:55 +1300 Subject: [PATCH 1/2] [clang-tidy] Add an option to exclude files not present in the

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-23 Thread via cfe-commits
@@ -124,6 +125,19 @@ def merge_replacement_files(tmpdir, mergefile): open(mergefile, "w").close() +def get_compiling_file_list(compiledb : Path) -> list[Path]: +""" Read a compile_commands.json database and return a list of file paths """ +file_list = [] +

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-23 Thread via cfe-commits
https://github.com/wonbinbk updated https://github.com/llvm/llvm-project/pull/120348 >From 800dbc34337f3504d647a74bbfda0625f3b0cd75 Mon Sep 17 00:00:00 2001 From: wonbinbk Date: Wed, 18 Dec 2024 15:33:55 +1300 Subject: [PATCH 1/2] [clang-tidy] Add an option to exclude files not present in the

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/10287 Here is the relevant piece o

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/120996 >From a0b71504fa31e55d42cb54e349838b2669f6fde5 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 23 Dec 2024 19:42:30 +0100 Subject: [PATCH] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher

[clang] [NFC][Driver] Simplify linking of ubsan_standalone_cxx (PR #120938)

2024-12-23 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/120938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4ad3de3 - [NFC][Driver] Simplify linking of ubsan_standalone_cxx (#120938)

2024-12-23 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-23T12:00:16-08:00 New Revision: 4ad3de3d4d2acb1fed551b6af67ca42f8dce59e6 URL: https://github.com/llvm/llvm-project/commit/4ad3de3d4d2acb1fed551b6af67ca42f8dce59e6 DIFF: https://github.com/llvm/llvm-project/commit/4ad3de3d4d2acb1fed551b6af67ca42f8dce59e6.diff L

[clang] [llvm] [mlir] [NVPTX] Switch front-ends and tests to ptx_kernel cc (PR #120806)

2024-12-23 Thread Guray Ozen via cfe-commits
grypp wrote: Thank you for clarifying! I wasn’t aware that this change also benefits nvcc. A 2% improvement is an excellent result! >From the MLIR side, the PR looks good to me. https://github.com/llvm/llvm-project/pull/120806 ___ cfe-commits mailing

[clang] [llvm] [mlir] [NVPTX] Switch front-ends and tests to ptx_kernel cc (PR #120806)

2024-12-23 Thread Guray Ozen via cfe-commits
https://github.com/grypp approved this pull request. https://github.com/llvm/llvm-project/pull/120806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang,llvm` at step 2 "checkout". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/builds/11244 Here is the relev

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar closed https://github.com/llvm/llvm-project/pull/120983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c2b89fc - [Hexagon] Add V79 support to compiler and assembler (#120983)

2024-12-23 Thread via cfe-commits
Author: Ikhlas Ajbar Date: 2024-12-23T13:36:28-06:00 New Revision: c2b89fc9e45d325282b8eb6536f6145282dc3fdf URL: https://github.com/llvm/llvm-project/commit/c2b89fc9e45d325282b8eb6536f6145282dc3fdf DIFF: https://github.com/llvm/llvm-project/commit/c2b89fc9e45d325282b8eb6536f6145282dc3fdf.diff

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
https://github.com/jvoung commented: Thanks Gábor! https://github.com/llvm/llvm-project/pull/120249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
@@ -555,24 +557,26 @@ void handleConstMemberCall(const CallExpr *CE, LatticeTransferState &State) { // If the const method returns an optional or reference to an optional. if (RecordLoc != nullptr && isSupportedOptionalType(CE->getType())) { -

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
@@ -71,10 +73,28 @@ template class CachedConstAccessorsLattice : public Base { /// Requirements: /// /// - `CE` should return a location (GLValue or a record type). + /// + /// DEPRECATED: switch users to the below overload which takes Callee and Type + /// directl

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
https://github.com/jvoung edited https://github.com/llvm/llvm-project/pull/120249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-23 Thread via cfe-commits
@@ -13299,7 +13293,18 @@ static NonConstCaptureKind isReferenceToNonConstCapture(Sema &S, Expr *E) { // The declaration must be a variable which is not declared 'const'. VarDecl *var = dyn_cast(DRE->getDecl()); - if (!var) return NCCK_None; + if (!var) { +// Binding

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-23 Thread via cfe-commits
@@ -13299,7 +13293,18 @@ static NonConstCaptureKind isReferenceToNonConstCapture(Sema &S, Expr *E) { // The declaration must be a variable which is not declared 'const'. VarDecl *var = dyn_cast(DRE->getDecl()); - if (!var) return NCCK_None; + if (!var) { +// Binding

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-23 Thread via cfe-commits
https://github.com/TilakChad updated https://github.com/llvm/llvm-project/pull/120849 >From f35f0712ea3fcb8c053e7f0405b606c01450ad57 Mon Sep 17 00:00:00 2001 From: Tilak Chad Date: Sat, 21 Dec 2024 19:22:37 +0545 Subject: [PATCH 1/2] [Clang] Prevent assignment to captured structured bindings i

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-23 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/120327 >From 6ed96d3bf22c5da5af995ea5ffe083baf91594bb Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Fri, 1 Nov 2024 16:03:24 -0700 Subject: [PATCH 1/3] [SYCL] Basic diagnostics for the sycl_kernel_entry_point

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/120249 >From c526263a7accc434dbf6e93c2995ceb2f95873b8 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Tue, 17 Dec 2024 15:38:19 + Subject: [PATCH 1/6] [clang][dataflow] Use smart pointer caching in unchecked optiona

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-23 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/120249 >From c526263a7accc434dbf6e93c2995ceb2f95873b8 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Tue, 17 Dec 2024 15:38:19 + Subject: [PATCH 1/5] [clang][dataflow] Use smart pointer caching in unchecked optiona

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/120996 >From 56b650ffe1634833b3147261a32b7b2d1c84c079 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 23 Dec 2024 19:42:30 +0100 Subject: [PATCH] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 11676da80874787a47856da87911234837c53f06 0e6e3334dafa4aa3a613ff996d55fb452b3fc350 --e

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Add AST Matcher for `DependentScopeDeclRefExpr` Fixes: #120937 --- Full diff: https://github.com/llvm/llvm-project/pull/120996.diff 7 Files Affected: - (modified) clang/docs/LibASTMatchersReference.htm

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/120996 Add AST Matcher for `DependentScopeDeclRefExpr` Fixes: #120937 >From 0e6e3334dafa4aa3a613ff996d55fb452b3fc350 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 23 Dec 2024 19:42:30 +0100 Subject: [PA

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-23 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > but now templates seem to be skipped completely Template instantiations are skipped, not their definition. The matchers no longer work, because the types you are working with are no longer necessarily concrete types, but instead they can be dependent. And so can be expression

[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

2024-12-23 Thread Ilia Kuklin via cfe-commits
@@ -20008,6 +20008,87 @@ bool Sema::IsValueInFlagEnum(const EnumDecl *ED, const llvm::APInt &Val, return !(FlagMask & Val) || (AllowMask && !(FlagMask & ~Val)); } +bool Sema::ComputeBestEnumProperties(ASTContext &Context, EnumDecl *Enum, +

[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

2024-12-23 Thread Ilia Kuklin via cfe-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/120965 >From ab8dcaef120233d0145508aaa4bf45eec22cadf1 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Mon, 23 Dec 2024 17:49:32 +0500 Subject: [PATCH 1/2] [clang][Sema] Move calculating enum width and type to a separa

[clang] [NFC][Driver] Simplify linking of ubsan_standalone_cxx (PR #120938)

2024-12-23 Thread Kirill Stoimenov via cfe-commits
https://github.com/kstoimenov approved this pull request. https://github.com/llvm/llvm-project/pull/120938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

2024-12-23 Thread Ilia Kuklin via cfe-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/120965 >From ab8dcaef120233d0145508aaa4bf45eec22cadf1 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Mon, 23 Dec 2024 17:49:32 +0500 Subject: [PATCH 1/2] [clang][Sema] Move calculating enum width and type to a separa

[clang-tools-extra] [clang-tidy] fix incorrect argument names in documentation for ExtraArgs and ExtraArgsBefore (PR #120963)

2024-12-23 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Sync with [ClangTidyMain.cpp](https://github.com/llvm/llvm-project/blob/d36836de0183b9b1939cc679d153e3b313e55c76/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp#L57-L58)? https://github.com/llvm/llvm-project/blob/d36836de0183b9b1939cc679d153e3b313e55c76/clang-tools-extra/cla

[clang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2024-12-23 Thread via cfe-commits
GeorgeKA wrote: @Maetveis All of the Visibility fields appear to be not null, but that's a good check to add anyway. Thanks. After adding it though, the same failures occur. Here's an example. Maybe there's a gap in my understanding: The script generates tests for both flang & clang -cc1as w

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-23 Thread Joseph Huber via cfe-commits
jhuber6 wrote: @ronlieb https://gist.github.com/jhuber6/26e3fc8473a750410d2ca1db4a65918d https://github.com/llvm/llvm-project/pull/119091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V79 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. It also adds missing Hexag

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V79 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. It also adds missing Hexagon v73 builtin

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V79 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. It also adds missing Hexagon v73

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-x86 Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V79 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. It also a

[clang] [llvm] [Hexagon] Add V79 support to compiler and assembler (PR #120983)

2024-12-23 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar created https://github.com/llvm/llvm-project/pull/120983 This patch introduces support for the Hexagon V79 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. It also adds missing Hexagon v73 builtins to

[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

2024-12-23 Thread Mariya Podchishchaeva via cfe-commits
@@ -20008,6 +20008,87 @@ bool Sema::IsValueInFlagEnum(const EnumDecl *ED, const llvm::APInt &Val, return !(FlagMask & Val) || (AllowMask && !(FlagMask & ~Val)); } +bool Sema::ComputeBestEnumProperties(ASTContext &Context, EnumDecl *Enum, +

[clang] [clang][Sema] Move computing enum width and type to a separate function (PR #120965)

2024-12-23 Thread Mariya Podchishchaeva via cfe-commits
@@ -20099,73 +20176,12 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceRange BraceRange, BestPromotionType = BestType; BestWidth = Context.getIntWidth(BestType); - } - else if (NumNegativeBits) { -// If there is a negative value, figure out the small

[clang] [llvm] [mlir] [NVPTX] Switch front-ends and tests to ptx_kernel cc (PR #120806)

2024-12-23 Thread Alex MacLean via cfe-commits
AlexMaclean wrote: > In MLIR, we also have other NVVM metadata such as `reqntid` and `maxntid`, > among others. What is the plan for these? Will they remain as metadata, or > will they be expressed differently? Eventually, I hope to migrate all !nvvm.annotations, including `reqntid` and `maxn

[clang] 99dddef - [Clang][Sema] Process warnings conditionally (#120591)

2024-12-23 Thread via cfe-commits
Author: Dmitry Chestnykh Date: 2024-12-23T20:02:28+03:00 New Revision: 99dddef340e566e9d303010f1219f7d7d6d37a11 URL: https://github.com/llvm/llvm-project/commit/99dddef340e566e9d303010f1219f7d7d6d37a11 DIFF: https://github.com/llvm/llvm-project/commit/99dddef340e566e9d303010f1219f7d7d6d37a11.di

[clang] [Clang][Sema] Process warnings conditionally (PR #120591)

2024-12-23 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh closed https://github.com/llvm/llvm-project/pull/120591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Process warnings conditionally (PR #120591)

2024-12-23 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/120591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-23 Thread via cfe-commits
@@ -13299,7 +13293,18 @@ static NonConstCaptureKind isReferenceToNonConstCapture(Sema &S, Expr *E) { // The declaration must be a variable which is not declared 'const'. VarDecl *var = dyn_cast(DRE->getDecl()); - if (!var) return NCCK_None; + if (!var) { +// Binding

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-23 Thread via cfe-commits
@@ -13299,7 +13293,18 @@ static NonConstCaptureKind isReferenceToNonConstCapture(Sema &S, Expr *E) { // The declaration must be a variable which is not declared 'const'. VarDecl *var = dyn_cast(DRE->getDecl()); - if (!var) return NCCK_None; + if (!var) { +// Binding

  1   2   >