[clang] [compiler-rt] [llvm] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-17 Thread Florian Hahn via cfe-commits
fhahn wrote: > I guess there are no release notes or manual b/c this is not ready to be used > by general users on the command line and that will come via another PR? I added a release note as part of the Clang patch to the `Sanitizers` section: https://clang.llvm.org/docs/ReleaseNotes.html#sa

[clang] [flang] [Flang][OpenMP] Add -fopenmp-default-none command line flag (PR #120287)

2024-12-17 Thread David Truby via cfe-commits
https://github.com/DavidTruby commented: Would it be a lot of work to add this flag for clang as well? It seems like the behaviour would be equally useful there and I would prefer us to keep flags available for both compilers where it makes sense. In terms of implementation it looks like there'

[clang] [flang] [Flang][OpenMP] Add -fopenmp-default-none command line flag (PR #120287)

2024-12-17 Thread David Truby via cfe-commits
DavidTruby wrote: Would it be a lot of work to add this flag for `clang` as well? It seems like the behaviour would be equally useful there and I would prefer us to keep flags available for both compilers where it makes sense. In terms of implementation it looks like there's already a clang-ti

[clang] [compiler-rt] [driver] Fix sanitizer libc++ runtime linking (PR #120370)

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

[clang] [compiler-rt] [driver] Fix sanitizer libc++ runtime linking (PR #120370)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes 1. -f[no-]sanitize-link-c++-runtime suppose to override defauld behavior implied from `CCCIsCXX` 2. Take into account -nostdlib++ 3. Fix typo hasFlag vs hasArg. --- Ful

[clang] [compiler-rt] [driver] Fix sanitizer libc++ runtime linking (PR #120370)

2024-12-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/120370 1. -f[no-]sanitize-link-c++-runtime suppose to override defauld behavior implied from `CCCIsCXX` 2. Take into account -nostdlib++ 3. Fix typo hasFlag vs hasArg. >From 6787146cf0e81ad8a69b3b2fadd7caf0f49c7

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/7269 Here is the re

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-debian` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/10896

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 7 "test-build-unified-tree-check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/15483 Here is the rel

[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

2024-12-17 Thread Farzon Lotfi via cfe-commits
@@ -1754,6 +1755,17 @@ static bool interp__builtin_vector_reduce(InterpState &S, CodePtr OpPC, PrimType ElemT = *S.getContext().classify(ElemType); unsigned NumElems = Arg.getNumElems(); + if (ElemType->isRealFloatingType()) { +if (ID != Builtin::BI__builtin_reduce_a

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `llvm` at step 8 "Add check check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/13297 Here is th

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/10519 Here is the

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/14775 Here is the rele

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/10388 Here i

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-rel-x86-64` running on `ml-opt-rel-x86-64-b1` while building `llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/10388 Here is the

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `llvm` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/12501 Here is the relevan

[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Farzon Lotfi (farzonl) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120367.diff 8 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+2-1) - (modified) clang/lib/AST/ByteCode/Int

[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Farzon Lotfi (farzonl) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120367.diff 8 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+2-1) - (modified) clang/lib/AST/ByteCode/InterpBuilt

[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

2024-12-17 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/120367 None >From bcc2e3e36bd179047237da3ca495220a542dc742 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Wed, 18 Dec 2024 01:44:42 -0500 Subject: [PATCH] [Clang] Add float type support to __builtin_reduce_add and

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-17 Thread via cfe-commits
https://github.com/amane-ame edited https://github.com/llvm/llvm-project/pull/119563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (PR #112284)

2024-12-17 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak updated https://github.com/llvm/llvm-project/pull/112284 >From ea92377ca9b449e62dcb9385184c9edda8e14fdb Mon Sep 17 00:00:00 2001 From: MalavikaSamak Date: Fri, 11 Oct 2024 12:24:58 -0700 Subject: [PATCH] [Wunsafe-buffer-usage] False positives for & expression i

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-17 Thread via cfe-commits
https://github.com/amane-ame updated https://github.com/llvm/llvm-project/pull/119563 From 659eda3ec76b63418f8b621b004728d9d7bf26ad Mon Sep 17 00:00:00 2001 From: amane-ame Date: Wed, 11 Dec 2024 22:17:51 +0800 Subject: [PATCH 01/10] [clang] Fix crashes when passing VLA to va_arg --- clang/li

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-17 Thread via cfe-commits
https://github.com/amane-ame updated https://github.com/llvm/llvm-project/pull/119563 From 3e2e04fbf1978d657bb6968c16f68ef7c4adfbdb Mon Sep 17 00:00:00 2001 From: amane-ame Date: Wed, 11 Dec 2024 22:17:51 +0800 Subject: [PATCH 01/10] [clang] Fix crashes when passing VLA to va_arg --- clang/li

[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2024-12-17 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 f6f4744176c8838a55fabd6f978ac08c3612aabc 4b31ec912a6482e85ca64b71482e3911fd2dbba6 --e

[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: David Green (davemgreen) Changes This started out as trying to combine bf16 fpround to BFCVT2 instructions, but ended up removing the aarch64.neon.nfcvt intrinsics in favour of generating fpround instructions directly. This simp

[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: David Green (davemgreen) Changes This started out as trying to combine bf16 fpround to BFCVT2 instructions, but ended up removing the aarch64.neon.nfcvt intrinsics in favour of generating fpround instructions directly. This simpli

[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2024-12-17 Thread David Green via cfe-commits
https://github.com/davemgreen created https://github.com/llvm/llvm-project/pull/120363 This started out as trying to combine bf16 fpround to BFCVT2 instructions, but ended up removing the aarch64.neon.nfcvt intrinsics in favour of generating fpround instructions directly. This simplifies the p

[clang-tools-extra] [clangd] Augment code completion results with documentation from the index. (PR #120099)

2024-12-17 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thanks. I haven't had a chance to look through the patch in detail yet, but the general shape seems reasonable. I also wanted to check, have you resolved the issue you described in [this comment](https://github.com/clangd/clangd/issues/2252#issuecomment-2545141457)? > no

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-17 Thread Rashmi Mudduluru via cfe-commits
@@ -365,3 +365,20 @@ namespace call_with_explicit_temporary_obj { RefPtr { provide() }->method(); } } + +namespace call_with_adopt_ref { + class Obj { + public: +void ref() const; +void deref() const; +void method(); + }; + + struct dummy { +RefPtr any

[clang] [clang] Fix missing check for nullptr in CallExpr::getUnusedResultAttr (PR #118636)

2024-12-17 Thread Yihe Li via cfe-commits
Mick235711 wrote: > This was approved, do you need someone to merge this for you? Yes, I do; I don't really have merge permissions. Thanks a lot for the helping hand. https://github.com/llvm/llvm-project/pull/118636 ___ cfe-commits mailing list cfe-c

[clang] [llvm] [BoundsChecking] Add parameters to pass (PR #119894)

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

[clang] 55e87a7 - [BoundsChecking] Add parameters to pass (#119894)

2024-12-17 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-17T22:07:14-08:00 New Revision: 55e87a79b9c3e0cb80503a4b6eec0fab404b2966 URL: https://github.com/llvm/llvm-project/commit/55e87a79b9c3e0cb80503a4b6eec0fab404b2966 DIFF: https://github.com/llvm/llvm-project/commit/55e87a79b9c3e0cb80503a4b6eec0fab404b2966.diff L

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #120149)

2024-12-17 Thread Ian Anderson via cfe-commits
@@ -0,0 +1,26 @@ +// UNSUPPORTED: system-windows +// Windows is unsupported because we use the Unix path separator `/` in the test. + +// Add default directories before running clang to check default +// search paths. +// RUN: rm -rf %t && mkdir -p %t +// RUN: cp -R %S/Inputs/M

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/120063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-12-17 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: > @ilya-biryukov I remember last time, the codes you shared to me actually > based an open source project. I am wondering if you can open source some use > for such projects (even for testing purpose). I think it will be pretty > helpful to speedup the overall development

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread via cfe-commits
https://github.com/easyonaadit updated https://github.com/llvm/llvm-project/pull/120063 >From 999d6ffbc6adffcb499842467bec8d07b881af46 Mon Sep 17 00:00:00 2001 From: easyonaadit Date: Mon, 16 Dec 2024 15:25:07 +0530 Subject: [PATCH 1/2] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread via cfe-commits
@@ -17,12 +13,62 @@ define amdgpu_kernel void @kernel_dynamic_stackalloc_vgpr_align4(ptr addrspace(1 ret void } +; ERR: remark: :0:0: cannot select: %{{[0-9]+}}:sreg_32(p5) = G_DYN_STACKALLOC %{{[0-9]+}}:vgpr(s32), 1 (in function: kernel_dynamic_stackalloc_vgpr_default_al

[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

2024-12-17 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > Any chance this is backportable to the 19.x series? Or is it too dependent on > changes since then? > > Or even better 18.x? (since a lot of downstream tools are dependent on 18.x > and will be a while before they bump to 19) If you're asking about the change being bac

[clang] [analyzer] Handle [[assume(cond)]] as __builtin_assume(cond) (PR #116462)

2024-12-17 Thread Vinay Deshmukh via cfe-commits
vinay-deshmukh wrote: Aside: As I've been working on this issue, I've realized that it involves some complexities that might not make it an ideal "good first issue" (in my opinion). To keep labels consistent with the difficult level, if it is okay with you, it would be great if you could re-

[clang] [llvm] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic allocas (PR #120063)

2024-12-17 Thread via cfe-commits
https://github.com/easyonaadit updated https://github.com/llvm/llvm-project/pull/120063 >From 999d6ffbc6adffcb499842467bec8d07b881af46 Mon Sep 17 00:00:00 2001 From: easyonaadit Date: Mon, 16 Dec 2024 15:25:07 +0530 Subject: [PATCH 1/2] [NFC][AMDGPU] Pre-commit clang and llvm tests for dynamic

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-17 Thread via cfe-commits
@@ -332,6 +332,11 @@ Changes in existing checks ` check to validate ``namespace`` aliases. +-Improved :doc: `readability-implicit-bool-conversion + ` + - `CheckConversionsToBool`: Allows enabling or disabling warnings for implicit conversions to `bool` (default) : true .

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-17 Thread via cfe-commits
@@ -332,6 +332,11 @@ Changes in existing checks ` check to validate ``namespace`` aliases. +-Improved :doc: `readability-implicit-bool-conversion EugeneZelenko wrote: Please extend existing `readability-implicit-bool-conversion` entry. https://github.com

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
shafik wrote: I just realized it was already merged https://github.com/llvm/llvm-project/pull/119098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Thank you for the fix. Please add a more detailed summary, these are important since they go into the git log and can be important for debugging downstream breaks. Something like "Fix by adding check in ActOnGCCAsmStmt that the domains of the input and out

[clang] [analyzer] Handle [[assume(cond)]] as __builtin_assume(cond) (PR #116462)

2024-12-17 Thread Vinay Deshmukh via cfe-commits
https://github.com/vinay-deshmukh updated https://github.com/llvm/llvm-project/pull/116462 >From daddb9e13db6ca8373dc7298d17aa36a03014aeb Mon Sep 17 00:00:00 2001 From: Vinay Deshmukh <32487576+vinay-deshm...@users.noreply.github.com> Date: Fri, 15 Nov 2024 07:37:17 -0500 Subject: [PATCH 01/11]

[clang] [analyzer] Handle [[assume(cond)]] as __builtin_assume(cond) (PR #116462)

2024-12-17 Thread Vinay Deshmukh via cfe-commits
https://github.com/vinay-deshmukh updated https://github.com/llvm/llvm-project/pull/116462 >From daddb9e13db6ca8373dc7298d17aa36a03014aeb Mon Sep 17 00:00:00 2001 From: Vinay Deshmukh <32487576+vinay-deshm...@users.noreply.github.com> Date: Fri, 15 Nov 2024 07:37:17 -0500 Subject: [PATCH 01/11]

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

2024-12-17 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: ``` diff --git a/clang/lib/Driver/SanitizerArgs.cpp b/clang/lib/Driver/SanitizerArgs.cpp index 89f1215afd0c..234c28bfd2c3 100644 --- a/clang/lib/Driver/SanitizerArgs.cpp +++ b/clang/lib/Driver/SanitizerArgs.cpp @@ -1083,10 +1083,11 @@ SanitizerArgs::SanitizerArgs(const ToolChai

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-17 Thread via cfe-commits
4m4n-x-B4w4ne wrote: > update release note and doc also I am doing it. https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

2024-12-17 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: The problem is that some of check_cxx_source_compiles invocation does: ``` cat t.cpp int main() { } /usr/local/google/home/vitalybuka/tmp/bot/llvm_build0/bin/clang++ -fsanitize=memory -nostdlib++ -nostdinc++ -fuse-ld=lld t.cpp >> referenced by ubsan_type_hash_itanium.cp

[clang] [clang][Sema] Fix type of an statement expression ending with an atomic type (PR #119711)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?= Message-ID: In-Reply-To: https://github.com/shafik commented: This will eventually need a release note. https://github.com/llvm/llvm-project/pull/119711 __

[clang] [AIX] fix unsupported diff flag on AIX (-strip-trailing-cr) (PR #120276)

2024-12-17 Thread Owen Pan via cfe-commits
@@ -19,3 +22,8 @@ config.suffixes = [ ".td", ".test" ] + +# AIX 'diff' command doesn't support --strip-trailing-cr, but the internal +# python implementation does, so use that for cross platform compatibility +if platform.system() == "AIX": +config.test_format = lit

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

2024-12-17 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > > > > Actually this PR is the case of > > > > https://lab.llvm.org/buildbot/#/builders/164/builds/3908, not #113491 > > > > > > > > > Sorry about that. > > > Are you able to dig up any of the cmake configure logs from these builds, > > > so that we can figure out how this

[clang] [clang][NFC] Increase NumStmtBits by 2 as we are approaching the limit (PR #120341)

2024-12-17 Thread John McCall via cfe-commits
https://github.com/rjmccall commented: Let's just increase to 9 bits. Have you checked whether the size of `Stmt` or `Expr` changes when you do this? https://github.com/llvm/llvm-project/pull/120341 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [compiler-rt] [llvm] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
@@ -0,0 +1,65 @@ +// RUN: %clang_tysan -O0 %s -o %t && %run %t 10 >%t.out.0 2>&1 +// RUN: FileCheck %s < %t.out.0 +// RUN: %clang_tysan -O2 %s -o %t && %run %t 10 >%t.out 2>&1 +// RUN: FileCheck %s < %t.out + +#include +#include +#include + +void __attribute__((noinline)) add_f

[clang] [compiler-rt] [llvm] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
@@ -0,0 +1,18 @@ +// RUN: %clang_tysan -O0 %s -o %t && %run %t >%t.out 2>&1 +// RUN: FileCheck %s < %t.out + +#include + +// CHECK-NOT: ERROR: TypeSanitizer: type-aliasing-violation + +int main() { + union { +int i; +short s; + } u; + + u.i = 42; + u.s = 1; + + print

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

2024-12-17 Thread via cfe-commits
h-vetinari wrote: Ping @vitalybuka https://github.com/llvm/llvm-project/pull/108357 ___ 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-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: zotnhucucbot (wonbinbk) Changes A change list may include files that are not part of the compile database, which can cause clang-tidy to fail (e.g., due to missing included headers). To prevent false negatives, we should allow to skip

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

2024-12-17 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] [flang] Ignore -f[no-]realloc-lhs. (PR #120320)

2024-12-17 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari closed https://github.com/llvm/llvm-project/pull/120320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] Ignore -f[no-]realloc-lhs. (PR #120320)

2024-12-17 Thread Slava Zakharin via cfe-commits
vzakhari wrote: Okay, I do not see an easy way to allow this option for `clang` without printing it in the `--help` output, so I guess I will let it behave same way as the other Flang-only options. https://github.com/llvm/llvm-project/pull/120320 ___

[clang] [compiler-rt] [llvm] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-17 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I guess there are no release notes or manual b/c this is not ready to be used by general users on the command line and that will come via another PR? https://github.com/llvm/llvm-project/pull/76261 ___ cfe-commits

[clang] [clang][NFC] Increase NumStmtBits by 2 as we are approaching the limit (PR #120341)

2024-12-17 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 edited https://github.com/llvm/llvm-project/pull/120341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Increase NumStmtBits by 2 as we are approaching the limit (PR #120341)

2024-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ziqing Luo (ziqingluo-90) Changes We have already hit the limit of NumStmtBits downstream after 010d0115fc8e3834fc6f747f0841f3b1e467c4da, which adds 4 new StmtNodes. --- Full diff: https://github.com/llvm/llvm-project/pull/120341.diff 1

[clang] [clang] Increase NumStmtBits by 2 as we are approaching the limit (PR #120341)

2024-12-17 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 created https://github.com/llvm/llvm-project/pull/120341 We have already hit the limit of NumStmtBits downstream after 010d0115fc8e3834fc6f747f0841f3b1e467c4da, which adds 4 new StmtNodes. >From 6cb8ccb8005342c74018508e7e4d267bd6f44e4c Mon Sep 17 00:00:00 2001 F

[clang] c48d45e - [sanitizer] Refactor -f(no-)?sanitize-recover parsing (#119819)

2024-12-17 Thread via cfe-commits
Author: Thurston Dang Date: 2024-12-17T16:35:11-08:00 New Revision: c48d45e6a3bcc03ecc233499c6ba9d04e07ec68a URL: https://github.com/llvm/llvm-project/commit/c48d45e6a3bcc03ecc233499c6ba9d04e07ec68a DIFF: https://github.com/llvm/llvm-project/commit/c48d45e6a3bcc03ecc233499c6ba9d04e07ec68a.diff

[clang] [clang][cmake] Apply bolt optimizations as part of the clang target (PR #119896)

2024-12-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/119896 >From dd1f6807904691586c715d447fff54915a46c751 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 3 Dec 2024 22:32:46 + Subject: [PATCH 1/4] [clang][cmake] Apply bolt optimizations as part of the clang

[clang] [llvm] [InstCombine] Infer nuw for gep inbounds from base of object (PR #119225)

2024-12-17 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > I think > [llvm/llvm-test-suite#190](https://github.com/llvm/llvm-test-suite/pull/190) > should fix this issue, but haven't tested on an affected arch. > > I'm a bit worried that we don't have a sanitizer to catch this issue (the > negative left shift issue is an unrelated

[clang] [clang][cmake] Apply bolt optimizations as part of the clang target (PR #119896)

2024-12-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/119896 >From dd1f6807904691586c715d447fff54915a46c751 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 3 Dec 2024 22:32:46 + Subject: [PATCH 1/3] [clang][cmake] Apply bolt optimizations as part of the clang

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/119819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][cmake] Apply bolt optimizations as part of the clang target (PR #119896)

2024-12-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/119896 >From dd1f6807904691586c715d447fff54915a46c751 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 3 Dec 2024 22:32:46 + Subject: [PATCH 1/2] [clang][cmake] Apply bolt optimizations as part of the clang

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/119819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Vitaly Buka via cfe-commits
@@ -317,7 +311,7 @@ static SanitizerMask parseSanitizeTrapArgs(const Driver &D, SanitizerMask AlwaysTrap; // Empty vitalybuka wrote: technically local-bounds is alwaystrap, but I working to change that. https://github.com/llvm/llvm-project/pull/119819 ___

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/119819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/119819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/119819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-17 Thread Helena Kotas via cfe-commits
https://github.com/hekota converted_to_draft https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
@@ -247,49 +247,87 @@ static SanitizerMask setGroupBits(SanitizerMask Kinds) { return Kinds; } -// Computes the sanitizer mask based on the default plus opt-in (if supported) -// minus opt-out. +// Computes the sanitizer mask as: +// Default + Arguments (in or out) + Alw

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/119819 >From 9afe71655814ead9bd29acf5ebd515253777081d Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 13 Dec 2024 05:14:56 + Subject: [PATCH 1/7] [sanitizer] Refactor -f(no-)?sanitize-recover parsing Thi

[clang-tools-extra] [clang-doc] Use LangOpts when printing types (PR #120308)

2024-12-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/120308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Use LangOpts when printing types (PR #120308)

2024-12-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/120308 >From ac3ce2e8bacdf6b2e7f7d812b16b2854d5ca34f2 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 17 Dec 2024 13:58:09 -0800 Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?= =?UTF-

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

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

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Kirill Stoimenov via cfe-commits
@@ -652,44 +679,12 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // default in ASan? // Parse -f(no-)?sanitize-recover flags. - SanitizerMask RecoverableKinds = RecoverableByDefault | AlwaysRecoverable; - SanitizerMask DiagnosedUnrecoverableKinds; - SanitizerMask

[clang-tools-extra] [clang-doc] Use LangOpts when printing types (PR #120308)

2024-12-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/120308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add test for functions with builtin return types (PR #120318)

2024-12-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/120318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] f8d9f8e - [clang-doc] Add test for functions with builtin return types (#120318)

2024-12-17 Thread via cfe-commits
Author: Paul Kirth Date: 2024-12-17T15:55:05-08:00 New Revision: f8d9f8ed9524ef01aeedca7833001efabc6cd223 URL: https://github.com/llvm/llvm-project/commit/f8d9f8ed9524ef01aeedca7833001efabc6cd223 DIFF: https://github.com/llvm/llvm-project/commit/f8d9f8ed9524ef01aeedca7833001efabc6cd223.diff LO

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-12-17 Thread Paul Kirth via cfe-commits
ilovepi wrote: @PeterChou1 It's been a few weeks since we've seen progress here. Is this something you're planning to finish out? or should @petrhosek or I should dedicate some effort into getting landed? The Clang-Doc refactor to use the templates is going to be hard to review until this is i

[clang] [clang][ObjectiveC] Fix Parsing Types with the `::` Optional Scope Specifier (PR #119908)

2024-12-17 Thread Qiongsi Wu via cfe-commits
@@ -,8 +,15 @@ bool Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec( } } - if (SS.isEmpty()) + if (SS.isEmpty()) { +if (getLangOpts().ObjC && !getLangOpts().CPlusPlus && qiongsiwu wrote: Good question. The reason I added the guard for Ob

[clang-tools-extra] [clang-tidy] Exclude Files Not Present in the Compile Database (PR #120325)

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

[clang] [flang] Ignore -f[no-]realloc-lhs. (PR #120320)

2024-12-17 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: > > > After #120165 clang started complaining about unknown option > > > -f[no-]realloc-lhs. > > > > > > Was this on an existing test? > > I noticed it when trying to compile a Fortran/C mix test where flang/clang > were used as compilers and I passed `-fno-realloc-l

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Vitaly Buka via cfe-commits
@@ -652,44 +679,12 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // default in ASan? // Parse -f(no-)?sanitize-recover flags. - SanitizerMask RecoverableKinds = RecoverableByDefault | AlwaysRecoverable; - SanitizerMask DiagnosedUnrecoverableKinds; - SanitizerMask

[clang] [clang][ObjectiveC] Fix Parsing Types with the `::` Optional Scope Specifier (PR #119908)

2024-12-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjectiveC] Fix Parsing Types with the `::` Optional Scope Specifier (PR #119908)

2024-12-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-12-17 Thread via cfe-commits
goldsteinn wrote: ping https://github.com/llvm/llvm-project/pull/112792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-17 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/2] [SYCL] Basic diagnostics for the sycl_kernel_entry_point

[clang] [flang] Ignore -f[no-]realloc-lhs. (PR #120320)

2024-12-17 Thread Slava Zakharin via cfe-commits
@@ -3465,7 +3465,7 @@ defm diagnostics_show_line_numbers : BoolFOption<"diagnostics-show-line-numbers" PosFlag>; def fno_realloc_lhs : Flag<["-"], "fno-realloc-lhs">, Group, HelpText<"An allocatable left-hand side of an intrinsic assignment is assumed to be allocated and

[clang] [flang] Ignore -f[no-]realloc-lhs. (PR #120320)

2024-12-17 Thread Slava Zakharin via cfe-commits
vzakhari wrote: > > After #120165 clang started complaining about unknown option > > -f[no-]realloc-lhs. > > Was this on an existing test? I noticed it when trying to compile a Fortran/C mix test where flang/clang were used as compilers and I passed `-fno-realloc-lhs` in flags that were used

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-12-17 Thread Petr Hosek via cfe-commits
@@ -0,0 +1,785 @@ +//===-- Mustache.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-doc] Add test for functions with builtin return types (PR #120318)

2024-12-17 Thread via cfe-commits
https://github.com/zeroomega approved this pull request. https://github.com/llvm/llvm-project/pull/120318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-17 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 9f231a85004fad080980e80ef881c81d1d5bb60e 6ed96d3bf22c5da5af995ea5ffe083baf91594bb --e

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-17 Thread Thurston Dang via cfe-commits
@@ -652,44 +679,12 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, // default in ASan? // Parse -f(no-)?sanitize-recover flags. - SanitizerMask RecoverableKinds = RecoverableByDefault | AlwaysRecoverable; - SanitizerMask DiagnosedUnrecoverableKinds; - SanitizerMask

  1   2   3   4   5   >