[clang] [llvm] [X86][AMX] Support AMX-AVX512 (PR #114070)

2024-11-06 Thread Feng Zou via cfe-commits
@@ -0,0 +1,381 @@ +/*===- amxavx512intrin.h - AMXAVX512 === + * + * 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] [llvm] [X86][AMX] Support AMX-AVX512 (PR #114070)

2024-11-06 Thread Feng Zou via cfe-commits
@@ -0,0 +1,381 @@ +/*===- amxavx512intrin.h - AMXAVX512 === + * + * 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] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-06 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,261 @@ +//===-- RemoteJITUtils.cpp - Utilities for remote-JITing *- C++ -*-===// +// +// 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] [llvm] [MIPS] LLVM data layout give i128 an alignment of 16 for mips64 (PR #112084)

2024-11-06 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/112084 >From fa5a4850d80db1258a7dfa77ee46c3902c5dd857 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Sat, 12 Oct 2024 03:12:44 -0400 Subject: [PATCH] [MIPS] LLVM data layout give i128 an alignment of 16 for mips64 F

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/7728 Here is the relevant p

[clang] [C2y] Add test coverage for WG14 N3370 (PR #115054)

2024-11-06 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I've fixed up a failing test caught by precommit CI and added a release note. https://github.com/llvm/llvm-project/pull/115054 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [C2y] Add test coverage for WG14 N3370 (PR #115054)

2024-11-06 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/115054 >From 7570adf7a47d5a863e399aca38984031387e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 5 Nov 2024 15:01:18 -0500 Subject: [PATCH 1/3] [C2y] Add test coverage for WG14 N3370 This paper added

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun updated https://github.com/llvm/llvm-project/pull/115021 From 81b8faed9e6da8d8a0cc9905d14716f4b2f09665 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Tue, 5 Nov 2024 16:37:57 + Subject: [PATCH] [clang] Support 'this' position for lifetimebound attribute Thi

[clang] [Clang] [NFC] Refactor AST visitors in Sema and the static analyser to use DRAV (PR #115144)

2024-11-06 Thread Balazs Benics via cfe-commits
steakhal wrote: What's the benefit of using `DRAV` over `RAV`? I couldn't find the motivation in the PR summary in neither of this or the linked PR. https://github.com/llvm/llvm-project/pull/115144 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-11-06 Thread Akash Banerjee via cfe-commits
TIFitis wrote: @jdoerfert @jsjodin Polite request for review :) https://github.com/llvm/llvm-project/pull/110001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/7441 Here is the

[clang] Revert "Reapply "[Clang][Sema] Always use latest redeclaration of primary template" (#114569)" (PR #115156)

2024-11-06 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian created https://github.com/llvm/llvm-project/pull/115156 This reverts commit b24650e814e55d90acfc40acf045456c98f32b9c. >From 026f442bd600bd50921bdcfe550b5ff4c376066e Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Wed, 6 Nov 2024 08:28:50 -0500 Subject: [

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/7979 Here

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 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 cfa5ecde415d509b835b2dc5551187f2b7eff773 81b8faed9e6da8d8a0cc9905d14716f4b2f09665 --e

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun updated https://github.com/llvm/llvm-project/pull/115021 From 80aa4c2c5675e1de12fa4ee05c02355346e88c06 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Tue, 5 Nov 2024 16:37:57 + Subject: [PATCH] [clang] Support 'this' position for lifetimebound attribute Thi

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Horváth (Xazax-hun) Changes This patch makes the position -1 interpreted as the position for 'this'. Adds some basic infrastructure and support for lifetimebound attribute. --- Full diff: https://github.com/llvm/llvm-project/pull/11

[clang] 2bbb6c0 - [clang][NFC] Spell out DynTypedNode instead of auto (#114427)

2024-11-06 Thread via cfe-commits
Author: Chris Cotter Date: 2024-11-06T12:15:11+01:00 New Revision: 2bbb6c067020bef50435c2ba5addcd66d1b9a1dd URL: https://github.com/llvm/llvm-project/commit/2bbb6c067020bef50435c2ba5addcd66d1b9a1dd DIFF: https://github.com/llvm/llvm-project/commit/2bbb6c067020bef50435c2ba5addcd66d1b9a1dd.diff

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/7323 Here is the relevant piec

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/7048 Here is the relevant piece of

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/8949 Here is the

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/8129 Here is the rele

[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Malay Sanghi (MalaySanghi) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 81.48 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115151.diff 31 Files Affect

[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-clang Author: Malay Sanghi (MalaySanghi) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 81.48 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115151.d

[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Malay Sanghi (MalaySanghi) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 81.48 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115151.diff 31 Files Affected

[clang] [llvm] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2024-11-06 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > My intent with changes made for this issue is to (continue to) treat all > paths specified by /I as user paths and all paths specified by /external:I, > /external:env, %INCLUDE%, or %EXTERNAL_INCLUDE% as system paths. I think this option is the least disruptive. > Ideall

[clang] [Clang] [NFC] Refactor AST visitors in Sema and the static analyser to use DRAV (PR #115144)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang-analysis Author: None (Sirraide) Changes This pr refactors all recursive AST visitors in `Sema`, `Analyze`, and `StaticAnalysis` to inherit from DRAV instead. This is over half of the visitors that inherit from RAV direc

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2024-11-06 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: Maybe a stupid question, but couldn't we make the function simply `__attribute__((overloadable, enable_if(true, ""))) `? https://github.com/llvm/llvm-project/pull/115099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] Revert "Reapply "[Clang][Sema] Always use latest redeclaration of primary template" (#114569)" (PR #115156)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/8946 Here is the

[clang-tools-extra] Fix false positive in bugprone-throw-keyword-missing (PR #115138)

2024-11-06 Thread via cfe-commits
@@ -186,6 +186,10 @@ Changes in existing checks ` check to allow specifying additional functions to match. +- Improved :doc:`bugprone-throw-keyword-missing EugeneZelenko wrote: Should be after `bugprone-sizeof-expression`. https://github.com/llvm/llvm-pr

[clang] [clang][NFC] Spell out DynTypedNode instead of auto (PR #114427)

2024-11-06 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/114427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-11-06 Thread Alexander Kornienko via cfe-commits
alexfh wrote: @kadircet is working on a repro for the crash we're seeing. @usx95 is looking at the compilation errors. https://github.com/llvm/llvm-project/pull/111852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] f548d39 - [Clang][Test] Update test after #115159 (#115172)

2024-11-06 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-11-06T11:04:35-05:00 New Revision: f548d39c3c751446d124c08769080214680d53ba URL: https://github.com/llvm/llvm-project/commit/f548d39c3c751446d124c08769080214680d53ba DIFF: https://github.com/llvm/llvm-project/commit/f548d39c3c751446d124c08769080214680d53ba

[clang] [Clang][Test] Update test after #115159 (PR #115172)

2024-11-06 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/115172 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c10d4b4 - [clang][SYCL] Add a missing include to make the header standalone

2024-11-06 Thread Dmitri Gribenko via cfe-commits
Author: Dmitri Gribenko Date: 2024-11-06T16:58:10+01:00 New Revision: c10d4b492d981c96fa3269bc0fe0b3ea9b1ca486 URL: https://github.com/llvm/llvm-project/commit/c10d4b492d981c96fa3269bc0fe0b3ea9b1ca486 DIFF: https://github.com/llvm/llvm-project/commit/c10d4b492d981c96fa3269bc0fe0b3ea9b1ca486.dif

[clang] [Clang][Test] Update test after #115159 (PR #115172)

2024-11-06 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr approved this pull request. LGTM to temporarily fix the bots. https://github.com/llvm/llvm-project/pull/115172 ___ 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-11-06 Thread Dmitry Polukhin via cfe-commits
dmpolukhin wrote: FYI, in our internal testing we also found a case when this PR fixes issue. Also we don't see any examples when it may break something so I think we should merge it ASAP because it fixes known issues and don't have any known regressions. @alexfh what is the ETA for release t

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2024-11-06 Thread Simon Pilgrim via cfe-commits
@@ -31,10 +31,13 @@ // All MMX instructions will be generated via builtins. Any MMX vector // types (<1 x i64>, <2 x i32>, etc.) that aren't used by these builtins will be // expanded by the back-end. +// // FIXME: _mm_prefetch must be a built-in because it takes a compile-ti

[clang] [llvm] [Clang][Darwin] Introduce `SubFrameworks` as a SDK default location (PR #115048)

2024-11-06 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/115048 >From 9359df8624a75b7c0c361fdfcd9fc9102824dc68 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Tue, 5 Nov 2024 10:48:09 -0800 Subject: [PATCH 1/2] [Clang][Darwin] Introduce `SubFrameworks` as a SDK defaul

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-11-06 Thread Akash Banerjee via cfe-commits
@@ -2801,6 +2801,67 @@ class OpenMPIRBuilder { using GenMapInfoCallbackTy = function_ref; +private: + /// Emit the array initialization or deletion portion for user-defined mapper + /// code generation. First, it evaluates whether an array section is mapped + /// an

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-11-06 Thread Akash Banerjee via cfe-commits
https://github.com/TIFitis edited https://github.com/llvm/llvm-project/pull/110001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2024-11-06 Thread James Y Knight via cfe-commits
jyknight wrote: So, this is interesting, because the decls _already_ don't conflict, normally. They only conflict if the x86intrin.h is included within a `extern "C++" {}` block, _and_ is included after windows.h. It comes down to, effectively this. Note, run the examples with `-fms-extension

[libcxx] [libcxxabi] [libunwind] [llvm] [libc++] Unify the benchmarks with the test suite (PR #101399)

2024-11-06 Thread Louis Dionne via cfe-commits
ldionne wrote: > I do care. I sometimes like to compare benchmarks from different iterations. > Currently when I build a benchmark I get a message where the executable is > stored. The new approach makes harder to find the location of the executable. > I wonder whether we can show a message wh

[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

2024-11-06 Thread Vladislav Belov via cfe-commits
vbe-sc wrote: @Endilll, please, could you take a look? Also, do you have any ideas why the Win pipeline fails with checkout failure? How can I fix it? https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-06 Thread via cfe-commits
@@ -0,0 +1,263 @@ +//===-- RemoteJITUtils.cpp - Utilities for remote-JITing *- C++ -*-===// +// +// 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] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-06 Thread via cfe-commits
@@ -8236,11 +8236,14 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -// Fields are not shadowed by variables in C++ static methods. -if (CXXMethodDecl *MD = d

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang Author: Paul Osmialowski (pawosm-arm) Changes The `-frtlib-add-rpath` is very convenient when linking against various runtimes (OpenMP, Fortran, sanitizers), so much so we could argue that this should be a defaul

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Paul Osmialowski (pawosm-arm) Changes The `-frtlib-add-rpath` is very convenient when linking against various runtimes (OpenMP, Fortran, sanitizers), so much so we could argue that this should be a default behavior. This patch add

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-06 Thread Vassil Vassilev via cfe-commits
@@ -47,6 +76,59 @@ static llvm::cl::opt OptHostSupportsJit("host-supports-jit", static llvm::cl::list OptInputs(llvm::cl::Positional, llvm::cl::desc("[code to run]")); +static llvm::Error sanitizeOopArguments(const char *ArgV0) { +

[clang] [Clang] Ensure default arguments in friend declarations are only allowed in defining declarations to prevent multiple reachable declarations (PR #113777)

2024-11-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/113777 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH 1/4] [Clang] prevent assertion failure from an invalid template

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-11-06 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: @alexfh @wlei-llvm Please send a repro when you can! https://github.com/llvm/llvm-project/pull/111852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-06 Thread via cfe-commits
https://github.com/SahilPatidar updated https://github.com/llvm/llvm-project/pull/110418 >From a3bdb2c9e5f9f5c75dfb35647cf3513c6c631412 Mon Sep 17 00:00:00 2001 From: SahilPatidar Date: Fri, 7 Jun 2024 13:30:08 +0530 Subject: [PATCH 01/10] [Clang-Repl] Implement out-of-process execution interf

[clang] [Clang] Ensure default arguments in friend declarations are only allowed in defining declarations to prevent multiple reachable declarations (PR #113777)

2024-11-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/113777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Refine LCV handling in Store for better taint propagation (PR #114835)

2024-11-06 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Thanks for handling this issue! My quick first impression is that I'm satisfied with your changes. However, I'm a bit confused because as far as I see, the empty struct is _unable to_ transfer any attacker-controlled data, and therefore I don't know what does it mean that it'

[clang] [Clang] [Tests] Refactor most unit tests to use DRAV instead (PR #115132)

2024-11-06 Thread via cfe-commits
Sirraide wrote: CI on Windows seems to be broken trying to check out the branch: ```console > git fetch -v --prune -- origin 0dd745286a124f7142d827810be5185abdc196cf POST git-upload-pack (112 bytes) >From https://github.com/llvm/llvm-project * branch 0dd745286a124f7142d82781

[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

2024-11-06 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > Also, do you have any ideas why the Win pipeline fails with checkout failure? > How can I fix it? It seems to be unrelated to you. Might be fixed when you'll push a new commit. https://github.com/llvm/llvm-project/pull/114978 ___ cfe

[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

2024-11-06 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > @Endilll, please, could you take a look? My knowledge of wording about templates is not deep enough, unfortunately. https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [llvm] [LLVM][IR] Use splat syntax when printing Constant[Data]Vector. (PR #112548)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang,llvm,mlir` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/8943 H

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 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 `clang` at step 6 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/10286 Here is

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm created https://github.com/llvm/llvm-project/pull/115163 The `-frtlib-add-rpath` is very convenient when linking against various runtimes (OpenMP, Fortran, sanitizers), so much so we could argue that this should be a default behavior. This patch adds the ability

[clang] [llvm] [llvm][AMDGPU] Fold `llvm.amdgcn.wavefrontsize` early (PR #114481)

2024-11-06 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/114481 >From 3ba88ce598aaab269169f0a5db5981c9a9ac8603 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 31 Oct 2024 22:38:36 + Subject: [PATCH 1/9] Add pass to handle AMDGCN pseudo-intrinsics (abstract placehol

[clang] 2904f80 - Revert "[Clang][Sema] Use the correct injected template arguments for partial specializations when collecting multi-level template argument lists (#112381)" (#115157)

2024-11-06 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-11-06T08:43:37-05:00 New Revision: 2904f809cd1bf2651d6eceb2ad86553f407bf530 URL: https://github.com/llvm/llvm-project/commit/2904f809cd1bf2651d6eceb2ad86553f407bf530 DIFF: https://github.com/llvm/llvm-project/commit/2904f809cd1bf2651d6eceb2ad86553f407bf530

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun ready_for_review https://github.com/llvm/llvm-project/pull/115021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-11-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/113777 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH 1/3] [Clang] prevent assertion failure from an invalid template

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/6348 Here is the relevant pie

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (PR #111852)

2024-11-06 Thread Alexander Kornienko via cfe-commits
alexfh wrote: We've also found a clang crash and a few new compilation errors after https://github.com/llvm/llvm-project/pull/114569. We definitely need to revert it as well as this commit. https://github.com/llvm/llvm-project/pull/111852 ___ cfe-com

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/10961

[clang] fb90733 - [HLSL] implement elementwise firstbithigh hlsl builtin (#111082)

2024-11-06 Thread via cfe-commits
Author: Sarah Spall Date: 2024-11-06T07:31:39-08:00 New Revision: fb90733e196039b0a77f43af98c42c9267a31e07 URL: https://github.com/llvm/llvm-project/commit/fb90733e196039b0a77f43af98c42c9267a31e07 DIFF: https://github.com/llvm/llvm-project/commit/fb90733e196039b0a77f43af98c42c9267a31e07.diff L

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun updated https://github.com/llvm/llvm-project/pull/115021 From 3ef43fcbb6540b50ed0b41c68d6b26bb31cb1a68 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Tue, 5 Nov 2024 16:37:57 + Subject: [PATCH] [clang] Support 'this' position for lifetimebound attribute Thi

[clang] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-06 Thread Oleksandr T. via cfe-commits
@@ -8236,11 +8236,14 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -// Fields are not shadowed by variables in C++ static methods. -if (CXXMethodDecl *MD = d

[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

2024-11-06 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi created https://github.com/llvm/llvm-project/pull/115151 Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 >From 3b6510da8fb3b9709839ea0c102355879b11aa6d Mon Sep 17 00:00:00 2001 From: Malay Sanghi Date: Tue, 5 Nov 2024 13:37:54 +0800 Subject: [PATCH 1/2] [X

[clang] [CUDA/HIP] fix propagate -cuid to a host-only compilation. (PR #111650)

2024-11-06 Thread Pankaj Dwivedi via cfe-commits
https://github.com/PankajDwivedi-25 closed https://github.com/llvm/llvm-project/pull/111650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-06 Thread via cfe-commits
@@ -8236,11 +8236,14 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -// Fields are not shadowed by variables in C++ static methods. -if (CXXMethodDecl *MD = d

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 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 `clang` at step 6 "test-build-unified-tree-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/12011 Here is the r

[clang] Add `EvalASTMutator` interface (PR #115168)

2024-11-06 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/115168 None >From 5ca48e03412b1b8e9253f13356b9cc957f6fd9e5 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 6 Nov 2024 17:58:43 +0300 Subject: [PATCH 1/2] Add EvalASTMutator interface with `InstantiateFun

[clang] [CUDA/HIP] fix propagate -cuid to a host-only compilation. (PR #111650)

2024-11-06 Thread Pankaj Dwivedi via cfe-commits
PankajDwivedi-25 wrote: Great, looks it is part of another bug propagated. Including fix path resolved the issue. Closing this PR now. Thank you for your feedback. https://github.com/llvm/llvm-project/pull/111650 ___ cfe-commits mailing list cfe-comm

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/1614 Here is the relevant piece o

[clang] [llvm] [llvm] Deprecate Type::getPointerTo() (PR #113331)

2024-11-06 Thread Youngsuk Kim via cfe-commits
https://github.com/JOE1994 updated https://github.com/llvm/llvm-project/pull/113331 >From 01755acec5beb6884d7c3dbcc7e250952feaac15 Mon Sep 17 00:00:00 2001 From: Youngsuk Kim Date: Fri, 18 Oct 2024 10:40:23 -0500 Subject: [PATCH 1/3] [llvm] Deprecate Type::getPointerTo() Replace remaining uses

[clang] [llvm] [LLVM][IR] Use splat syntax when printing Constant[Data]Vector. (PR #112548)

2024-11-06 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/112548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add `EvalASTMutator` interface (PR #115168)

2024-11-06 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/115168 >From 5ca48e03412b1b8e9253f13356b9cc957f6fd9e5 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 6 Nov 2024 17:58:43 +0300 Subject: [PATCH 1/3] Add EvalASTMutator interface with `InstantiateFunctionD

[clang] 86e4beb - [MIPS] LLVM data layout give i128 an alignment of 16 for mips64 (#112084)

2024-11-06 Thread via cfe-commits
Author: yingopq Date: 2024-11-06T16:14:30+01:00 New Revision: 86e4beb702fde407a35938a1c37279a61c0291e7 URL: https://github.com/llvm/llvm-project/commit/86e4beb702fde407a35938a1c37279a61c0291e7 DIFF: https://github.com/llvm/llvm-project/commit/86e4beb702fde407a35938a1c37279a61c0291e7.diff LOG:

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-11-06 Thread Mikołaj Piróg via cfe-commits
mikolaj-pirog wrote: > > I would like to benchmark `lld` after this change, since I have added a > > loop that goes through every section of every object file. Could someone > > point in the direction of a good benchmark for that? I was thinking I can > > benchmark on the linking of `clang` or

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread David Truby via cfe-commits
https://github.com/DavidTruby edited https://github.com/llvm/llvm-project/pull/115163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread David Truby via cfe-commits
@@ -0,0 +1,34 @@ +! REQUIRES: x86-registered-target DavidTruby wrote: This test doesn't actually need x86-registered-target. The driver is able to construct command lines for targets that aren't registered as LLVM backends, and since we're using -### all we nee

[clang] [flang] [clang][Driver] Add the ability to specify that RPATH should be added by default (PR #115163)

2024-11-06 Thread David Truby via cfe-commits
https://github.com/DavidTruby approved this pull request. LGTM, and seems useful especially for flang. https://github.com/llvm/llvm-project/pull/115163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/9043 Here is the relevant piece of the build log for th

[clang] [Clang] eliminate shadowing warnings for parameters using deducing this (PR #114813)

2024-11-06 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/114813 >From 91ff2b4226110ea35c78f0f1b6ff89b4bec2c788 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 4 Nov 2024 17:38:46 +0200 Subject: [PATCH 1/3] [Clang] eliminate shadowing warnings for parameters using d

[clang] [llvm] [Clang] Fix argument extensions in CGBlocks.cpp (PR #111740)

2024-11-06 Thread Jonas Paulsson via cfe-commits
https://github.com/JonPsson1 closed https://github.com/llvm/llvm-project/pull/111740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f61a8bc - [clang][x86] Prevent signed/unsigned comparison warnings on constexpr m128i/m256i/m512i match helpers.

2024-11-06 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-11-06T15:19:00Z New Revision: f61a8bc305d60f1ab04225e2b210d8b3d9c97eb8 URL: https://github.com/llvm/llvm-project/commit/f61a8bc305d60f1ab04225e2b210d8b3d9c97eb8 DIFF: https://github.com/llvm/llvm-project/commit/f61a8bc305d60f1ab04225e2b210d8b3d9c97eb8.diff LOG:

[clang] 7585e2f - [clang][x86] Add constexpr support for _mm_movepi64_pi64 and _mm_move_epi64

2024-11-06 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-11-06T15:19:00Z New Revision: 7585e2fd3caee30d5332c93995b7a6f51ab06660 URL: https://github.com/llvm/llvm-project/commit/7585e2fd3caee30d5332c93995b7a6f51ab06660 DIFF: https://github.com/llvm/llvm-project/commit/7585e2fd3caee30d5332c93995b7a6f51ab06660.diff LOG:

[clang] [llvm] [Clang] Fix argument extensions in CGBlocks.cpp (PR #111740)

2024-11-06 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: I will abandon this now since @efriedma-quic's patch (#113506) is the better approach and approved. https://github.com/llvm/llvm-project/pull/111740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [clang] Support 'this' position for lifetimebound attribute (PR #115021)

2024-11-06 Thread Gábor Horváth via cfe-commits
@@ -730,7 +731,9 @@ class YAMLConverter { } } - void convertParams(const ParamsSeq &Params, FunctionInfo &OutInfo) { + std::optional convertParams(const ParamsSeq &Params, + FunctionInfo &OutInfo) { Xazax-hun wro

[clang] [llvm] [MIPS] LLVM data layout give i128 an alignment of 16 for mips64 (PR #112084)

2024-11-06 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/112084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move relational functions to the CLC library (PR #115171)

2024-11-06 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 5d8be4c036aa5ce4a94f1f37a9155d5c877e23db 97ace17c59193fe29e9bdce4c6f53be398f15d01 --e

[clang] [Clang] [NFC] Refactor AST visitors in Sema and the static analyser to use DRAV (PR #115144)

2024-11-06 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 0e907c17214aa3b1a60b66867fea3cc0f0dcbaa0 2074e8a732fbe04365d82ec8fcbff5635228be2d --e

[clang] Add `EvalASTMutator` interface (PR #115168)

2024-11-06 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 05b6c2e4b933e7a3606899c72067c92b6077287b 548298c8e2d1030b5d4edb8b548609b55aeba7f0 --e

[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

2024-11-06 Thread Malay Sanghi via cfe-commits
MalaySanghi wrote: @phoebewang please review https://github.com/llvm/llvm-project/pull/115151 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 7 "test-build-stage1-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/bu

[clang] [Clang][Test] Update test after #115159 (PR #115172)

2024-11-06 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian created https://github.com/llvm/llvm-project/pull/115172 After #111852 was reverted in #115159, two tests now fail because they partially depend on its changes. This patch temporarily fixes the failing cases by updating the expected output to match the actual outp

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-11-06 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 `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/11565 Here is the rel

[clang] [Clang][Test] Update test after #115159 (PR #115172)

2024-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krystian Stasiowski (sdkrystian) Changes After #111852 was reverted in #115159, two tests now fail because they partially depend on its changes. This patch temporarily fixes the failing cases by updating the expected output to match the a

<    1   2   3   4   5   >