[clang] 54f040f - [clang-format] Add SpacesInParensOption for filtering repeated parens (#77522)

2024-07-02 Thread via cfe-commits
Author: Gedare Bloom Date: 2024-07-02T00:00:14-07:00 New Revision: 54f040fff301a629f2ed032863408ed119789b0e URL: https://github.com/llvm/llvm-project/commit/54f040fff301a629f2ed032863408ed119789b0e DIFF: https://github.com/llvm/llvm-project/commit/54f040fff301a629f2ed032863408ed119789b0e.diff

[clang] [clang-format] Add SpacesInParensOption for filtering repeated parens (PR #77522)

2024-07-02 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/77522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Code implementing SpacesInParensOptions.ExceptDoubleParentheses logic (PR #93439)

2024-07-02 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/93439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/15] [libc]: add missing aarch64 headers --- libc/con

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread James Henderson via cfe-commits
https://github.com/jh7370 commented: I've skimmed through this, and it looks okay, but I don't have enough experience with the clang driver to feel comfortable signing it off. https://github.com/llvm/llvm-project/pull/97378 ___ cfe-commits mailing lis

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - -fsanitize=numerical %s | FileCheck %s MaskRay wrote: remove `-unknown-unknown` https://github.com/llvm/llvm-project/pull/97359 ___ cf

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/97359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/17] [libc]: add missing aarch64 headers --- libc/con

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/17] [libc]: add missing aarch64 headers --- libc/con

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/17] [libc]: add missing aarch64 headers --- libc/con

[libclc] [libclc] Fix cross in-tree builds (PR #97392)

2024-07-02 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk created https://github.com/llvm/llvm-project/pull/97392 When performing cross in-tree builds, we need native versions of various tools, we cannot assume the cross builds that are part of the current build are executable. LLVM provides the setup_host_tool function to h

[clang] [clang-format] Add SpacesInParensOption for filtering repeated parens (PR #77522)

2024-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/685 Here is the relevant piece of the buil

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/17] [libc]: add missing aarch64 headers --- libc/con

[clang] [Clang][Comments] Attach comments to decl even if preproc directives are in between (PR #88367)

2024-07-02 Thread Dmitri Gribenko via cfe-commits
gribozavr wrote: I'd like to push back against this change, I believe it is too broad. (Full disclosure: I'm the original author of this subsystem in Clang.) We (Google) are integrating this change downstream and it causes a bunch of comments to get associated to unrelated declarations. The pr

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,37 @@ +Obtaining the Static Analyzer += + +This page describes how to download and install the analyzer. Once the analyzer is installed, follow the asdf :doc:`CommandLineUsage` on using the commandline to get started analyzing your code. --

[clang] [clang][Sema] Add support for OpenBSD's syslog format attribute (PR #97366)

2024-07-02 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: `Sema.h` changes look good. https://github.com/llvm/llvm-project/pull/97366 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/18] [libc]: add missing aarch64 headers --- libc/con

[clang-tools-extra] [clang-tidy] Clarify diagnostics of bugprone-sizeof-expression (PR #95550)

2024-07-02 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/95550 From 06adc063c2388ea534537f5a417751fdf64b22cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Fri, 14 Jun 2024 15:16:34 +0200 Subject: [PATCH 1/4] [clang-tidy] Clarify diagnostics of bugpron

[clang-tools-extra] [clang-tidy] Clarify diagnostics of bugprone-sizeof-expression (PR #95550)

2024-07-02 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I mentioned this change in the paragraph that was describing my earlier commit (that was also modifying this check). https://github.com/llvm/llvm-project/pull/95550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang-tools-extra] fdcfb27 - [clang-tidy] Clarify diagnostics of bugprone-sizeof-expression (#95550)

2024-07-02 Thread via cfe-commits
Author: Donát Nagy Date: 2024-07-02T10:27:45+02:00 New Revision: fdcfb277465e4530e5837fb8a95031794e58cb9b URL: https://github.com/llvm/llvm-project/commit/fdcfb277465e4530e5837fb8a95031794e58cb9b DIFF: https://github.com/llvm/llvm-project/commit/fdcfb277465e4530e5837fb8a95031794e58cb9b.diff LO

[clang-tools-extra] [clang-tidy] Clarify diagnostics of bugprone-sizeof-expression (PR #95550)

2024-07-02 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/95550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] Fix stack corruption due to argument mismatch (PR #96386)

2024-07-02 Thread Sushant Gokhale via cfe-commits
https://github.com/sushgokh updated https://github.com/llvm/llvm-project/pull/96386 >From 7c6e2e6b0b7e55d98148386f314e779c55385f24 Mon Sep 17 00:00:00 2001 From: sgokhale Date: Sat, 22 Jun 2024 17:16:24 +0530 Subject: [PATCH] [OpenMP] Fix stack corruption due to argument mismatch While lowerin

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/19] [libc]: add missing aarch64 headers --- libc/con

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-02 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 01/19] [libc]: add missing aarch64 headers --- libc/con

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +=== + +This document provides guidelines for running Clang Static Analyzer from the command line on whole projects. +CodeChecker and scan-build are two CLI tools for usi

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +=== + +This document provides guidelines for running Clang Static Analyzer from the command line on whole projects. +CodeChecker and scan-build are two CLI tools for usi

[clang] [clang][analyzer][doc] Migrate checkers-related docs from HTML to RST (PR #97032)

2024-07-02 Thread Donát Nagy via cfe-commits
NagyDonat wrote: :thinking: Deleting the html files could break some links on external sites, so I think it would be better to replace them with a very simple "This content was moved to " placeholder. https://github.com/llvm/llvm-project/pull/97032 _

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-07-02 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: This change broke Windows builds of OpenMP. Building succeed, but many build scenarios fail due to `__kmpc_dispatch_deinit` being undefined. It looks like it only is defined in the OpenMP device offload library, but is missing if the offload library isn't being built/used. Se

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +=== + +This document provides guidelines for running Clang Static Analyzer from the command line on whole projects. +CodeChecker and scan-build are two CLI tools for usi

[clang-tools-extra] [llvm] [Support] Remove raw_ostream::tie (PR #97396)

2024-07-02 Thread Alexis Engelke via cfe-commits
https://github.com/aengelke created https://github.com/llvm/llvm-project/pull/97396 Originally, tie was introduced by D81156 to flush stdout before writing to stderr. 030897523 reverted this due to race conditions. Nonetheless, it does cost performance, causing an extra check in the "cold" pat

[clang-tools-extra] [llvm] [Support] Remove raw_ostream::tie (PR #97396)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang-tools-extra Author: Alexis Engelke (aengelke) Changes Originally, tie was introduced by D81156 to flush stdout before writing to stderr. 030897523 reverted this due to race condition

[clang] [clang-repl] Support wasm execution (PR #86402)

2024-07-02 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/86402 >From ac273dc784a356f6b61e0928b02cdd74418846ce Mon Sep 17 00:00:00 2001 From: Anubhab Ghosh Date: Sat, 23 Mar 2024 15:13:57 + Subject: [PATCH] [clang-repl] Support wasm execution. This commit introduces s

[clang] [analyzer] Check the correct first and last elements in cstring.UninitializedRead (PR #95408)

2024-07-02 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. LGTM, with the disclaimer that I'd still prefer e.g. "second argument instead of "2nd argument" -- but I won't block the review with this bikeshedding. https://github.com/llvm/llvm-project/pull/95408 __

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread Simon Pilgrim via cfe-commits
@@ -48,6 +48,7 @@ set(sources X86AvoidStoreForwardingBlocks.cpp X86DynAllocaExpander.cpp X86FixupSetCC.cpp + X86WinFixupBufferSecurityCheck.cpp RKSimon wrote: (style) alpha sorting https://github.com/llvm/llvm-project/pull/95904 ___

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread Simon Pilgrim via cfe-commits
@@ -0,0 +1,248 @@ +//=== X86FixupBufferSecurityCheck.cpp Fix Buffer Security Check Call RKSimon wrote: Fix filename and '===// 'comment overflow https://github.com/llvm/llvm-project/pull/95904 ___ cfe-commits maili

[clang] 86b3794 - Reapply [InstCombine] Fix context for multi-use demanded bits simplification

2024-07-02 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2024-07-02T11:02:55+02:00 New Revision: 86b37944a70229b07626e63bdb9a46b4bc3d1460 URL: https://github.com/llvm/llvm-project/commit/86b37944a70229b07626e63bdb9a46b4bc3d1460 DIFF: https://github.com/llvm/llvm-project/commit/86b37944a70229b07626e63bdb9a46b4bc3d1460.diff

[clang] [clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (PR #97071)

2024-07-02 Thread David Spickett via cfe-commits
Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= Message-ID: In-Reply-To: https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/97071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang-tools-extra] [llvm] [Support] Remove raw_ostream::tie (PR #97396)

2024-07-02 Thread James Henderson via cfe-commits
jh7370 wrote: > What was the motivation to keep this in llvm-dwarfdump? If warnings or errors are printed by llvm-dwarfdump without this, we end up with corrupted output, where stderr and stdout are intermixed in a semi-arbitrary way. It was a while back that I made the original change mind y

[clang] 05670b4 - [InstCombine] Remove root special case in demanded bits simplification

2024-07-02 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2024-07-02T11:14:36+02:00 New Revision: 05670b42f5b45710bfdba48dcb7e8c30c8c7478f URL: https://github.com/llvm/llvm-project/commit/05670b42f5b45710bfdba48dcb7e8c30c8c7478f DIFF: https://github.com/llvm/llvm-project/commit/05670b42f5b45710bfdba48dcb7e8c30c8c7478f.diff

[clang] [clang][analyzer][doc] Migrate checkers-related docs from HTML to RST (PR #97032)

2024-07-02 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: steakhal wrote: > 🤔 Deleting the html files could break some links on external sites, so I > think it would be better to replace them with a very simple "This content was > moved to ``" placeholder. Maybe something l

[clang] [llvm] [Hashing] Use a non-deterministic seed if LLVM_ENABLE_ABI_BREAKING_CHECKS (PR #96282)

2024-07-02 Thread Slava Zakharin via cfe-commits
@@ -322,24 +306,20 @@ struct hash_state { } }; - -/// A global, fixed seed-override variable. -/// -/// This variable can be set using the \see llvm::set_fixed_execution_seed -/// function. See that function for details. Do not, under any circumstances, -/// set or read this

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To:

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To:

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf

[clang] [clang][FMV] Do not omit explicit default target_version attribute. (PR #96628)

2024-07-02 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/96628 >From ff4635208e9cd83c6735c95ebf12125ca737029a Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Tue, 25 Jun 2024 00:27:45 +0100 Subject: [PATCH 1/3] [clang][FMV] Do not omit explicit default target_ver

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub created https://github.com/llvm/llvm-project/pull/97402 Adds support for sm_100 (Blackwell), similar to https://github.com/llvm/llvm-project/pull/74895 One important aspect is that `sm_100` is not compatible with `sm_90a`, only with `sm_90` - note the defines i

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Sergey Kozub (sergey-kozub) Changes Adds support for sm_100 (Blackwell), similar to https://github.com/llvm/llvm-project/pull/74895 One important aspect is that `sm_100` is not compatible with `sm_90a`, o

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Sergey Kozub (sergey-kozub) Changes Adds support for sm_100 (Blackwell), similar to https://github.com/llvm/llvm-project/pull/74895 One important aspect is that `sm_100` is not compatible with `sm_90a`, only with `sm_90` - note t

[clang] 030ea6d - [clang][Interp] Only check toplevel declarations

2024-07-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-02T11:50:41+02:00 New Revision: 030ea6d38b7c6afc191bc721be9d59e89bbf7631 URL: https://github.com/llvm/llvm-project/commit/030ea6d38b7c6afc191bc721be9d59e89bbf7631 DIFF: https://github.com/llvm/llvm-project/commit/030ea6d38b7c6afc191bc721be9d59e89bbf7631.diff LO

[clang] [llvm] [CUDA] Add support for CUDA-12.6 and sm_100 (PR #97402)

2024-07-02 Thread Sergey Kozub via cfe-commits
sergey-kozub wrote: @Artem-B, @andportnoy, you might want to take a look https://github.com/llvm/llvm-project/pull/97402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Peter Smith via cfe-commits
https://github.com/smithp35 commented: A few small comments, but otherwise looks good to me. https://github.com/llvm/llvm-project/pull/97378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Peter Smith via cfe-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/97378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Peter Smith via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: not %clang -### -c --target=x86_64 -Wa,--crel %s 2>&1 | FileCheck %s --check-prefix=NOEXP + +// NOEXP: error: -Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes a non-standard section type code + +// RUN: %

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Peter Smith via cfe-commits
@@ -801,6 +801,9 @@ def warn_drv_missing_multilib : Warning< def note_drv_available_multilibs : Note< "available multilibs are:%0">; +def err_drv_experimental_crel : Error< + "-Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes

[clang] [Driver] Add -Wa, options --crel and --allow-experimental-crel (PR #97378)

2024-07-02 Thread Peter Smith via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: not %clang -### -c --target=x86_64 -Wa,--crel %s 2>&1 | FileCheck %s --check-prefix=NOEXP + +// NOEXP: error: -Wa,--allow-experimental-crel must be specified to use -Wa,--crel. CREL is experimental and takes a non-standard section type code + +// RUN: %

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +=== + +This document provides guidelines for running Clang Static Analyzer from the command line on whole projects. +CodeChecker and scan-build are two CLI tools for usi

[clang] 62e6255 - [clang][Interp] Add missing fallthrough in loops

2024-07-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-02T11:51:07+02:00 New Revision: 62e6255a58eb0e9bb31e366a9e30d5c1eaadd004 URL: https://github.com/llvm/llvm-project/commit/62e6255a58eb0e9bb31e366a9e30d5c1eaadd004 DIFF: https://github.com/llvm/llvm-project/commit/62e6255a58eb0e9bb31e366a9e30d5c1eaadd004.diff LO

[clang] [libcxx] [Clang] Implement CWG2137 (list-initialization from objects of the same type) (PR #94355)

2024-07-02 Thread Mital Ashok via cfe-commits
MitalAshok wrote: I'm waiting to rebase on #97403 to remove the libc++ component of this now https://github.com/llvm/llvm-project/pull/94355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 1/9] added regcall strct by reg support --- clang/lib/Co

[clang] [Clang] Implement CWG2351 `void{}` (PR #78060)

2024-07-02 Thread Mital Ashok via cfe-commits
MitalAshok wrote: Is there anything else that needs to be done for this? Also, thanks for all the reviews and help on this! https://github.com/llvm/llvm-project/pull/78060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] c49c386 - [clang][Interp] Reject StmtExprs containing return statements

2024-07-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-02T12:15:24+02:00 New Revision: c49c386caaf7132908995749fed4894cfa1b62d1 URL: https://github.com/llvm/llvm-project/commit/c49c386caaf7132908995749fed4894cfa1b62d1 DIFF: https://github.com/llvm/llvm-project/commit/c49c386caaf7132908995749fed4894cfa1b62d1.diff LO

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 1/9] added regcall strct by reg support --- clang/lib/Co

[clang] 9a9546e - [clang-repl] Support wasm execution (#86402)

2024-07-02 Thread via cfe-commits
Author: Vassil Vassilev Date: 2024-07-02T13:29:31+03:00 New Revision: 9a9546e30cbce764fb96de1ae0b4f8f01f6d223f URL: https://github.com/llvm/llvm-project/commit/9a9546e30cbce764fb96de1ae0b4f8f01f6d223f DIFF: https://github.com/llvm/llvm-project/commit/9a9546e30cbce764fb96de1ae0b4f8f01f6d223f.dif

[clang] [clang-repl] Support wasm execution (PR #86402)

2024-07-02 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/86402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 1/9] added regcall strct by reg support --- clang/lib/Co

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 1/9] added regcall strct by reg support --- clang/lib/Co

[clang] [flang] [Flang-new][OpenMP] Add bitcode files for AMD GPU OpenMP (PR #96742)

2024-07-02 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. I think this is okay. I don't want to block the PR on diagnostics for an FC1 flag which aren't present in clang. LGTM and thanks for answering my questions. Please also wait for @banach-space's approval. https://github.com/llvm/llvm-project/

[clang] [flang] [flang] Implement -mcmodel flag (PR #95411)

2024-07-02 Thread Tom Eccles via cfe-commits
@@ -21,4 +22,14 @@ CodeGenOptions::CodeGenOptions() { #include "flang/Frontend/CodeGenOptions.def" } +std::optional getCodeModel(llvm::StringRef string) { + return llvm::StringSwitch>(string) + .Case("tiny", llvm::CodeModel::Model::Tiny) + .Case("small", llvm::CodeM

[clang] b67d557 - [C2y] Add -std=c2y and -std=gnu2y

2024-07-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-02T07:00:19-04:00 New Revision: b67d557bd3627a428d5041edec129587d6d3972c URL: https://github.com/llvm/llvm-project/commit/b67d557bd3627a428d5041edec129587d6d3972c DIFF: https://github.com/llvm/llvm-project/commit/b67d557bd3627a428d5041edec129587d6d3972c.diff

[clang] [flang] [flang] Implement -mcmodel flag (PR #95411)

2024-07-02 Thread Mats Petersson via cfe-commits
@@ -21,4 +22,14 @@ CodeGenOptions::CodeGenOptions() { #include "flang/Frontend/CodeGenOptions.def" } +std::optional getCodeModel(llvm::StringRef string) { + return llvm::StringSwitch>(string) + .Case("tiny", llvm::CodeModel::Model::Tiny) + .Case("small", llvm::CodeM

[clang] c5f7f38 - [clang][Interp][NFC] Make some local pointers const

2024-07-02 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-02T13:17:06+02:00 New Revision: c5f7f380314c7d290e039e9c35562e1cedc01268 URL: https://github.com/llvm/llvm-project/commit/c5f7f380314c7d290e039e9c35562e1cedc01268 DIFF: https://github.com/llvm/llvm-project/commit/c5f7f380314c7d290e039e9c35562e1cedc01268.diff LO

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,238 @@ +Command-Line Usage: CodeChecker and scan-build +=== + +This document provides guidelines for running Clang Static Analyzer from the command line on whole projects. +CodeChecker and scan-build are two CLI tools for usi

[clang] 7d0656d - [C2y] Add test coverage for WG14 N3192

2024-07-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-02T07:26:02-04:00 New Revision: 7d0656d734bdc19f2478b394b15378a637cc43ee URL: https://github.com/llvm/llvm-project/commit/7d0656d734bdc19f2478b394b15378a637cc43ee DIFF: https://github.com/llvm/llvm-project/commit/7d0656d734bdc19f2478b394b15378a637cc43ee.diff

[clang] 0f387ec - Add missed test coverage

2024-07-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-02T07:26:02-04:00 New Revision: 0f387ec7d502e51fd5ac074f1f1037b44aa686fc URL: https://github.com/llvm/llvm-project/commit/0f387ec7d502e51fd5ac074f1f1037b44aa686fc DIFF: https://github.com/llvm/llvm-project/commit/0f387ec7d502e51fd5ac074f1f1037b44aa686fc.diff

[clang] [Clang] Clarify diagnostic notes for implicitly generated deduction guides (PR #96084)

2024-07-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/96084 >From 23844cd8b8fad07bce0c34f58430322090c5a793 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 19 Jun 2024 23:25:13 +0800 Subject: [PATCH 01/11] [Clang] Add diagnostic notes for implcitly generated deduct

[clang-tools-extra] [llvm] [Support] Remove raw_ostream::tie (PR #97396)

2024-07-02 Thread Alexis Engelke via cfe-commits
https://github.com/aengelke updated https://github.com/llvm/llvm-project/pull/97396 >From 04b794a8a02f06803f96c40de042b13fd4b12c5f Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Mon, 1 Jul 2024 16:50:44 +0200 Subject: [PATCH 1/2] [Support] Remove raw_ostream::tie Originally, tie was intro

[clang-tools-extra] [llvm] [Support] Remove raw_ostream::tie (PR #97396)

2024-07-02 Thread Alexis Engelke via cfe-commits
aengelke wrote: > What I feel the right initial question is, is this check actually making a > significant difference to performance in real-world use cases? raw_ostream::write shows up in my (downstream application) profiles at ~0.6%, mostly through raw_svector_ostream, which is always unbuff

[clang-tools-extra] [llvm] [Support] Move raw_ostream::tie to raw_fd_ostream (PR #97396)

2024-07-02 Thread Alexis Engelke via cfe-commits
https://github.com/aengelke edited https://github.com/llvm/llvm-project/pull/97396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3b639d7 - [Clang] Clarify diagnostic notes for implicitly generated deduction guides (#96084)

2024-07-02 Thread via cfe-commits
Author: Younan Zhang Date: 2024-07-02T19:34:48+08:00 New Revision: 3b639d7d1d9b9f352c57460deaf70aaad238f8d9 URL: https://github.com/llvm/llvm-project/commit/3b639d7d1d9b9f352c57460deaf70aaad238f8d9 DIFF: https://github.com/llvm/llvm-project/commit/3b639d7d1d9b9f352c57460deaf70aaad238f8d9.diff

[clang] [Clang] Clarify diagnostic notes for implicitly generated deduction guides (PR #96084)

2024-07-02 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/96084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Support] Move raw_ostream::tie to raw_fd_ostream (PR #97396)

2024-07-02 Thread Alexis Engelke via cfe-commits
https://github.com/aengelke edited https://github.com/llvm/llvm-project/pull/97396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer][doc] Migrate user-related docs from HTML to RST (PR #97034)

2024-07-02 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf

[clang] Support C++20 Modules in clang-repl (PR #79261)

2024-07-02 Thread Balazs Benics via cfe-commits
steakhal wrote: @vgvassilev It appears that this PR added an entry to the Static Analyzer section, and I'm not sure if that's the right one. Could you please suggest an alternative section where I should move it? https://github.com/llvm/llvm-project/pull/79261 __

[clang] [AST] Add dump() method to TypeLoc (PR #65484)

2024-07-02 Thread Balazs Benics via cfe-commits
steakhal wrote: > Release note added in > [e33dc6b](https://github.com/llvm/llvm-project/commit/e33dc6b0282fb28d5289490981ad57d97d83db42), > thank you for the improvements! @AaronBallman It appears that that commit added an entry to the Static Analyzer section, and I'm not sure if that's the

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 01/10] added regcall strct by reg support --- clang/lib/

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
@@ -0,0 +1,248 @@ +//=== X86FixupBufferSecurityCheck.cpp Fix Buffer Security Check Call mahesh-attarde wrote: done. https://github.com/llvm/llvm-project/pull/95904 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-02 Thread via cfe-commits
@@ -48,6 +48,7 @@ set(sources X86AvoidStoreForwardingBlocks.cpp X86DynAllocaExpander.cpp X86FixupSetCC.cpp + X86WinFixupBufferSecurityCheck.cpp mahesh-attarde wrote: done. https://github.com/llvm/llvm-project/pull/95904

[clang] [Clang] Clarify diagnostic notes for implicitly generated deduction guides (PR #96084)

2024-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/1796 Here is t

[clang] [NFC] Add assertion to ensure FiniteMathOnly syncs with HonorINFs and HonorNANs. (PR #97342)

2024-07-02 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/97342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Add assertion to ensure FiniteMathOnly syncs with HonorINFs and HonorNANs. (PR #97342)

2024-07-02 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/97342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Add assertion to ensure FiniteMathOnly is in sync with HonorINFs and HonorNANs. (PR #97342)

2024-07-02 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/97342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread Kristóf Umann via cfe-commits
https://github.com/Szelethus created https://github.com/llvm/llvm-project/pull/97407 Yes, I basically copy-pasted some posts from discord and Artem's book, but these make for a rather decent docs. From 9fed2b7dc5395f487cb91c10eb076bb87e05e9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Kristóf Umann (Szelethus) Changes Yes, I basically copy-pasted some posts from discord and Artem's book, but these make for a rather decent docs. --- Full diff: https://github.com/llvm/llvm-pro

[clang] [clang] Don't emit the warn_dangling_lifetime_pointer diagnostic for the assignment case. (PR #97408)

2024-07-02 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/97408 The lifetime_pointer case is handled before the assignment case. In some scenario where we have the gsl::Pointer attr, we will end up with emitting the `-Wdangling-gsl` warning for the assignment case. This means

[clang] [clang] Don't emit the warn_dangling_lifetime_pointer diagnostic for the assignment case. (PR #97408)

2024-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes The lifetime_pointer case is handled before the assignment case. In some scenario where we have the gsl::Pointer attr, we will end up with emitting the `-Wdangling-gsl` warning for the assignment case. This mea

[clang] [analyzer][NFC] Add some docs for LazyCompoundValue (PR #97407)

2024-07-02 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 d78211912391b724a064ef017dbf239eff10380a 9fed2b7dc5395f487cb91c10eb076bb87e05e9b6 --

[clang] efefee2 - [C2y] Modify diagnostics for generic selection with a type operand

2024-07-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-07-02T08:19:07-04:00 New Revision: efefee28a41ec323f74ee481cce8b620b49ecf84 URL: https://github.com/llvm/llvm-project/commit/efefee28a41ec323f74ee481cce8b620b49ecf84 DIFF: https://github.com/llvm/llvm-project/commit/efefee28a41ec323f74ee481cce8b620b49ecf84.diff

[clang] [AST] Add dump() method to TypeLoc (PR #65484)

2024-07-02 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Good catch, sorry for that! Let's move it under `Non-comprehensive list of changes in this release`, WDYT? https://github.com/llvm/llvm-project/pull/65484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [llvm] Fix MSVC 1920+ auto NTTP mangling for pointers to members (PR #97007)

2024-07-02 Thread via cfe-commits
https://github.com/zmodem approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/97007 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >