[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-30 Thread Matheus Izvekov via cfe-commits
@@ -4870,14 +4870,16 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">;

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/124477 >From 1f67a396d917428ff35ca54ecb2d9124c14342de Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 30 Jan 2025 12:24:45 -0800 Subject: [PATCH 1/2] [StaticAnalyzer] Add reproducers for a bug in VisitObjCFo

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-30 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Thanks for the report, this is the reduced reproducer: ```C++ template struct QWindowSystemHelper { template static void handleEvent() { QWindowSystemHelper::handleEvent(); } }; template <> template void QWindowSystemHelper::handleEvent() { static_assert(__is_same(Eve

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-30 Thread Aidan Goldfarb via cfe-commits
@@ -4870,14 +4870,16 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">;

[clang] [Clang] Make OpenMP offloading consistently use the bound architecture (PR #125135)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: OpenMP was weirdly split between using the bound architecture from `--offload-arch=` and the old `-march=` option which only worked for single jobs. This patch removes that special handling. The main

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

2025-01-30 Thread Eli Friedman via cfe-commits
@@ -2225,9 +2221,10 @@ _mm_storer_ps(float *__p, __m128 __a) ///be generated. \n ///_MM_HINT_T2: Move data using the T2 hint. The PREFETCHT2 instruction will ///be generated. -#define _mm_prefetch(a, sel) (__builtin_prefetch((const void *)(a), \ -

[clang] b873479 - [clang-format] Fix mismatched break in BlockIndent (#124998)

2025-01-30 Thread via cfe-commits
Author: Gedare Bloom Date: 2025-01-30T19:38:43-08:00 New Revision: b8734797a3f605c4aaa37fcb5007baa273565460 URL: https://github.com/llvm/llvm-project/commit/b8734797a3f605c4aaa37fcb5007baa273565460 DIFF: https://github.com/llvm/llvm-project/commit/b8734797a3f605c4aaa37fcb5007baa273565460.diff

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/124998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9666 Here is the relevant

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125157)

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125157 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread Nathan Lanza via cfe-commits
lanza wrote: LGTM! Thanks! https://github.com/llvm/llvm-project/pull/125128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2941fa3 - [clang][HeuristicResolver] Only perform qualifier check for instance methods (#125166)

2025-01-30 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-01-31T00:25:53-05:00 New Revision: 2941fa39410f7492aeaf73c90b92c3bfb7115044 URL: https://github.com/llvm/llvm-project/commit/2941fa39410f7492aeaf73c90b92c3bfb7115044 DIFF: https://github.com/llvm/llvm-project/commit/2941fa39410f7492aeaf73c90b92c3bfb7115044.diff

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/125166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add clang atomic control options and attribute (PR #114841)

2025-01-30 Thread Yaxun Liu via cfe-commits
@@ -240,3 +240,49 @@ LLVM_DUMP_METHOD void FPOptionsOverride::dump() { #include "clang/Basic/FPOptions.def" llvm::errs() << "\n"; } + +AtomicOptionsOverride +AtomicOptions::getChangesSlow(const AtomicOptions &Base) const { + AtomicOptions::storage_type OverrideMask = 0; +#de

[clang] Add clang atomic control options and attribute (PR #114841)

2025-01-30 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > Mostly drive-by comments. Don't have strong opinion on either the attributes > themselves nor how the values get parsed. > > One thing that's missing is the documentation for the attributes. Their > format and meaning are far from obvious and should be documented along with

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread Nathan Lanza via cfe-commits
https://github.com/lanza approved this pull request. https://github.com/llvm/llvm-project/pull/125128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Part of me wonders if there's ever a legitimate reason to call `CXXMethodDecl::getMethodQualifiers()` on a static method... https://github.com/llvm/llvm-project/pull/125166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #125035)

2025-01-30 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 edited https://github.com/llvm/llvm-project/pull/125035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/125166 Fixes https://github.com/llvm/llvm-project/issues/125164 >From 5d7ae41e0b67dd3cebe94d2aea67f653acfe5ad1 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 30 Jan 2025 23:45:52 -0500 Subject: [PATCH]

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/125164 --- Full diff: https://github.com/llvm/llvm-project/pull/125166.diff 2 Files Affected: - (modified) clang/lib/Sema/HeuristicResolver.cpp (+2-

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Oops... https://github.com/llvm/llvm-project/pull/125166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread Erich Keane via cfe-commits
erichkeane wrote: > It turns out we weren't handling one case: the value-initialization of a > field inside a struct. > > I'm not sure why this falls under `IK_Direct` rather than `IK_Value` in > Clang, but it seems to work. Looks like (according to item 6 here) https://en.cppreference.com/w

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/124477 >From 635cba186fb9cda4718263caa0d349729279390d Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 30 Jan 2025 12:24:45 -0800 Subject: [PATCH 1/2] [StaticAnalyzer] Add a reproducer for a bug in VisitObjCF

[clang] [Clang] Add GCC's __builtin_stack_address() to Clang. (PR #121332)

2025-01-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/121332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add GCC's __builtin_stack_address() to Clang. (PR #121332)

2025-01-30 Thread John McCall via cfe-commits
rjmccall wrote: I agree with Nikita. I have no problem with supporting this builtin, but it feels like something that should be expressed portably as an IR intrinsic and then get lowered in the backend rather than needing frontend work for every target. https://github.com/llvm/llvm-project/pu

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. Sorry for the delayed review, this fell off my radar this week! :-/ Changes LGTM! The release branch did get cut, so this would need to be backported (https://releases.llvm.org/19.1.0/docs/GitHub.html#backporting-fixes-to-the-release-

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread via cfe-commits
higher-performance wrote: @AaronBallman just a bump (hope the branch isn't cut yet) :) https://github.com/llvm/llvm-project/pull/124329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 72efe15 - Reapply 44c0719e77b37374c89b7fc1320664ebb404323d with fix; NFC (#125100)

2025-01-30 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-01-30T15:24:43-05:00 New Revision: 72efe15c2bf262607420f81ab3b3b52f82698b4b URL: https://github.com/llvm/llvm-project/commit/72efe15c2bf262607420f81ab3b3b52f82698b4b DIFF: https://github.com/llvm/llvm-project/commit/72efe15c2bf262607420f81ab3b3b52f82698b4b.diff

[clang] Reapply 44c0719e77b37374c89b7fc1320664ebb404323d with fix; NFC (PR #125100)

2025-01-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/125100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/124329 >From a85c75382c275d9fee409dc0c768f2aced973cdf Mon Sep 17 00:00:00 2001 From: higher-performance Date: Fri, 24 Jan 2025 14:14:27 -0500 Subject: [PATCH] Fix false negative when value initializing a field ann

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Sorry for the delayed review, this fell off my radar this week! :-/ > > Changes LGTM! The release branch did get cut, so this would need to be > > backported > > (https://releases.llvm.org/19.1.0/docs/GitHub.html#backporting-fixes-to-the-release-branches). > > Ah okay n

[clang] [Clang] disallow attributes on void parameters (PR #124920)

2025-01-30 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/124920 >From bd731e4be65fc9c1746aa6a8f63d206eb54bb2be Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 29 Jan 2025 15:17:06 +0200 Subject: [PATCH 1/4] [Clang] disallow attributes on void parameters --- clang/

[clang] Fix false negative when value initializing a field annotated with [[clang::require_field_initialization]] (PR #124329)

2025-01-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9651 Here is the relevant

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

2025-01-30 Thread Eli Friedman via cfe-commits
@@ -146,8 +146,13 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<256>], Features = "avx" in // current formulation is based on what was easiest to recognize from the // pre-TableGen version. -let Features = "mmx", Attributes = [NoThrow, Const] in { - def _mm_prefet

[clang] [clang][doc] Provide documentation for FixedPointLiteral matcher (PR #125122)

2025-01-30 Thread via cfe-commits
https://github.com/earnol created https://github.com/llvm/llvm-project/pull/125122 Provide a documentation for FixedPointLiteral exaplaining which literals will be matched and which are not. This documentation is compatible with https://github.com/llvm/llvm-project/commit/53e92e48d0c03a2475e85

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

2025-01-30 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/115099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-01-30 Thread via cfe-commits
@@ -0,0 +1,626 @@ +#!/usr/bin/env python3 + +""" generate_unsupported_in_drivermode.py + +usage: python generate_unsupported_in_drivermode.py /Options.td [/llvm-tblgen] + +This script generates a Lit regression test file that validates that options +are only exposed to intended d

[clang] [clang][doc] Provide documentation for FixedPointLiteral matcher (PR #125122)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (earnol) Changes Provide a documentation for FixedPointLiteral exaplaining which literals will be matched and which are not. This documentation is compatible with https://github.com/llvm/llvm-project/commit/53e92e48d0c03a2475e8517dd4

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/124477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] disallow attributes on void parameters (PR #124920)

2025-01-30 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/124920 >From bd731e4be65fc9c1746aa6a8f63d206eb54bb2be Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 29 Jan 2025 15:17:06 +0200 Subject: [PATCH 1/4] [Clang] disallow attributes on void parameters --- clang/

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Balazs Benics via cfe-commits
@@ -124,24 +124,26 @@ void ExprEngine::VisitObjCForCollectionStmt(const ObjCForCollectionStmt *S, bool isContainerNull = state->isNull(collectionV).isConstrainedTrue(); - ExplodedNodeSet dstLocation; - evalLocation(dstLocation, S, elem, Pred, state, elementV, false); +

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/125127 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes During deserialization of CUDA AST we must consider CUDA target attributes to distinguish overloads from redeclarations. --- Full diff: https://github.com/llvm/llvm-project/pull/125127.diff 2 Files Affec

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B created https://github.com/llvm/llvm-project/pull/125127 During deserialization of CUDA AST we must consider CUDA target attributes to distinguish overloads from redeclarations. >From d6ff7dc3dcc5ca677a811888f5e67cc5aaad9d8f Mon Sep 17 00:00:00 2001 From: Artem Belev

[clang-tools-extra] [clang-tidy] Address false positives in misc-redundant-expression checker (PR #122841)

2025-01-30 Thread via cfe-commits
@@ -100,6 +100,9 @@ Changes in existing checks - Improved :doc:`bugprone-unsafe-functions ` check to allow specifying additional C++ member functions to match. +- Improved :doc:`misc-redundant-expression EugeneZelenko wrote: Please separate with newline.

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/125128 This adds a .clang-tidy file to the clang/lib/CIR/FrontendAction directory, moves and updates the incorrectly located include/clang/CIR/FrontendAction .clang-tidy file, and updates two files from a recent co

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds a .clang-tidy file to the clang/lib/CIR/FrontendAction directory, moves and updates the incorrectly located include/clang/CIR/FrontendAction .clang-tidy file, and updates two files from a recent

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 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 b108fbe6ea4247e5a3019a4facf611d5a42d465c d6ff7dc3dcc5ca677a811888f5e67cc5aaad9d8f --e

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] bce2cc1 - [clang] Set __GCC_*STRUCTIVE_SIZE on Aarch64

2025-01-30 Thread David Majnemer via cfe-commits
Author: David Majnemer Date: 2025-01-31T00:11:27Z New Revision: bce2cc15133a1458e4ad053085e58c7423c365b4 URL: https://github.com/llvm/llvm-project/commit/bce2cc15133a1458e4ad053085e58c7423c365b4 DIFF: https://github.com/llvm/llvm-project/commit/bce2cc15133a1458e4ad053085e58c7423c365b4.diff LOG

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 closed https://github.com/llvm/llvm-project/pull/124477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 536606f - [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (#124477)

2025-01-30 Thread via cfe-commits
Author: Ziqing Luo Date: 2025-01-30T16:21:46-08:00 New Revision: 536606f6f617b4a33389819a3a20c5cbb735ed7e URL: https://github.com/llvm/llvm-project/commit/536606f6f617b4a33389819a3a20c5cbb735ed7e DIFF: https://github.com/llvm/llvm-project/commit/536606f6f617b4a33389819a3a20c5cbb735ed7e.diff LO

[clang] ea84474 - [clang-format] Fix annotation of Java/JavaScript keyword extends (#125038)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:03:42-08:00 New Revision: ea84474966f19af4f1f4a1250ec258af1c6e2571 URL: https://github.com/llvm/llvm-project/commit/ea84474966f19af4f1f4a1250ec258af1c6e2571 DIFF: https://github.com/llvm/llvm-project/commit/ea84474966f19af4f1f4a1250ec258af1c6e2571.diff LOG:

[clang] 14178de - [clang-format] Fix a crash on parsing requires clause (#125021)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:03:04-08:00 New Revision: 14178deab0334d9ce095ae7adce408868659faee URL: https://github.com/llvm/llvm-project/commit/14178deab0334d9ce095ae7adce408868659faee DIFF: https://github.com/llvm/llvm-project/commit/14178deab0334d9ce095ae7adce408868659faee.diff LOG:

[clang] [clang-format] Fix a crash on parsing requires clause (PR #125021)

2025-01-30 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/125021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884) (PR #125024)

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/125024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fc43308 - [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884) (#125024)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:37-08:00 New Revision: fc433089e3535de3ae31c1c91194f654996529be URL: https://github.com/llvm/llvm-project/commit/fc433089e3535de3ae31c1c91194f654996529be DIFF: https://github.com/llvm/llvm-project/commit/fc433089e3535de3ae31c1c91194f654996529be.diff L

[clang] 16e61df - [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (#125023)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:23-08:00 New Revision: 16e61df8a135ec6dfe90277ac47a0dd6f461b346 URL: https://github.com/llvm/llvm-project/commit/16e61df8a135ec6dfe90277ac47a0dd6f461b346 DIFF: https://github.com/llvm/llvm-project/commit/16e61df8a135ec6dfe90277ac47a0dd6f461b346.diff L

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125023)

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/125023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ba5b146 - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#125022)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:10-08:00 New Revision: ba5b14655a3fb7adad3f9db0161c8742a035f744 URL: https://github.com/llvm/llvm-project/commit/ba5b14655a3fb7adad3f9db0161c8742a035f744 DIFF: https://github.com/llvm/llvm-project/commit/ba5b14655a3fb7adad3f9db0161c8742a035f744.diff L

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125022)

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/125022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4fb8078 - [clang-format] Fix annotation of class name after requires clause (#125019)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:02:40-08:00 New Revision: 4fb80788872e1c1c789fc9a06edd123414a427e6 URL: https://github.com/llvm/llvm-project/commit/4fb80788872e1c1c789fc9a06edd123414a427e6 DIFF: https://github.com/llvm/llvm-project/commit/4fb80788872e1c1c789fc9a06edd123414a427e6.diff LOG:

[clang] [clang-format] Fix annotation of class name after requires clause (PR #125019)

2025-01-30 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/125019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [llvm] [Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-30 Thread Shafik Yaghmour via cfe-commits
@@ -5828,6 +5822,15 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity, break; } + case Expr::PackIndexingExprClass: { +auto *PE = cast(E); +NotPrimaryExpr(); shafik wrote: I am looking at the test cases and I don't see the

[clang] [libcxxabi] [llvm] [Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-30 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: This makes sense but let's make sure we cover all the added branches in the test suite. https://github.com/llvm/llvm-project/pull/123513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [libcxxabi] [llvm] [Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-30 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/123513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 33c42f8 - [clang] Remove aarch64 logic from 32-bit ARM target info

2025-01-30 Thread David Majnemer via cfe-commits
Author: David Majnemer Date: 2025-01-31T02:14:23Z New Revision: 33c42f8bc5615b4dc46cb45ab41da97be52474ec URL: https://github.com/llvm/llvm-project/commit/33c42f8bc5615b4dc46cb45ab41da97be52474ec DIFF: https://github.com/llvm/llvm-project/commit/33c42f8bc5615b4dc46cb45ab41da97be52474ec.diff LOG

[clang] [compiler-rt] [llvm] [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (PR #119387)

2025-01-30 Thread Vitaly Buka via cfe-commits
@@ -137,6 +137,10 @@ llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, Alloca = new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(), ArraySize, Name, AllocaInsertPt->getIterator()); + if (Alloca->getName

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan updated https://github.com/llvm/llvm-project/pull/125111 >From d836f2f5da850f0d985f34253873c6c461606db0 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Thu, 30 Jan 2025 11:51:41 -0800 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=

[clang] [Clang] Make OpenMP offloading consistently use the bound architecture (PR #125135)

2025-01-30 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/125135 >From 6ce33f816df8012479adb060d4452f2bcabe5855 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 30 Jan 2025 17:18:15 -0600 Subject: [PATCH] [Clang] Make OpenMP offloading consistently use the bound archit

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125157)

2025-01-30 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/125157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-30 Thread Ilia Kuklin via cfe-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/115005 >From 4d797371598960baf7729d05590aa1a8c7077694 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Mon, 4 Nov 2024 14:33:45 +0500 Subject: [PATCH 01/10] [lldb] Analyze enum promotion type during parsing --- clang/

[clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

2025-01-30 Thread Ilia Kuklin via cfe-commits
@@ -2367,11 +2369,38 @@ size_t DWARFASTParserClang::ParseChildEnumerators( } if (name && name[0] && got_value) { - m_ast.AddEnumerationValueToEnumerationType( + auto ECD = m_ast.AddEnumerationValueToEnumerationType( clang_type, decl, name, enum_val

[clang] [clang][CodeComplete] Use HeuristicResolver to resolve CXXDependentScopeMemberExpr (PR #124888)

2025-01-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/124888 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Remove a redundant container lookup (PR #125064)

2025-01-30 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/125064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Add MSVC mangling for the __mfp8 type (PR #124968)

2025-01-30 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/7939ce6295e7fc0214cd307f97dfccc0cabde381 https://github.com/llvm/llvm-project/pull/124968 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] 59da232 - [clang][CodeComplete] Use HeuristicResolver to resolve CXXDependentScopeMemberExpr (#124888)

2025-01-30 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-01-30T10:05:26-05:00 New Revision: 59da23232ae2824de278a7245d9b8183f9e9b27b URL: https://github.com/llvm/llvm-project/commit/59da23232ae2824de278a7245d9b8183f9e9b27b DIFF: https://github.com/llvm/llvm-project/commit/59da23232ae2824de278a7245d9b8183f9e9b27b.diff

[clang] [lldb] [NFC] changes to AArch64 ACLE types definitions (PR #125063)

2025-01-30 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: I've just noticed 2/3 of these are redundant now since the existing neon functions have been removed. I'll remove them. https://github.com/llvm/llvm-project/pull/125063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[libclc] [libclc] Remove use of symlinks (PR #125069)

2025-01-30 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: FYI/CC @rjodinchr @karolherbst https://github.com/llvm/llvm-project/pull/125069 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] remove string literals from AArch64SVEACLETypes.def (PR #125063)

2025-01-30 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm edited https://github.com/llvm/llvm-project/pull/125063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] remove string literals from AArch64SVEACLETypes.def (PR #125063)

2025-01-30 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm edited https://github.com/llvm/llvm-project/pull/125063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-01-30 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 updated https://github.com/llvm/llvm-project/pull/124935 >From 8da3a78692c4c0c4d4a47610d7b705f1a55f6f14 Mon Sep 17 00:00:00 2001 From: Jack Styles Date: Wed, 29 Jan 2025 15:19:46 + Subject: [PATCH 1/3] [ARM] Ensure FPU Selection can select mode correctly Previo

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-01-30 Thread Jack Styles via cfe-commits
@@ -1013,3 +1013,19 @@ // CHECK-MVE1_2: #define __ARM_FEATURE_MVE 1 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp -x c -E -dM %s -o - | FileCheck -check-prefix=CHECK-MVE3 %s // CHECK-MVE3: #define __ARM_FEATURE_MVE 3 + +// Cortex-R52 and Cortex-R52Plus

[clang] [clang] Support member function poiners in Decl::getFunctionType() (PR #125077)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Benjamin Maxwell (MacDue) Changes This seems consistent with the documentation which claims it: ``` /// Looks through the Decl's underlying type to extract a FunctionType /// when possible. Will return null if the type underlying the Decl

[clang] [clang] Support member function poiners in Decl::getFunctionType() (PR #125077)

2025-01-30 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue edited https://github.com/llvm/llvm-project/pull/125077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support member function poiners in Decl::getFunctionType() (PR #125077)

2025-01-30 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/125077 This seems consistent with the documentation which claims it: ``` /// Looks through the Decl's underlying type to extract a FunctionType /// when possible. Will return null if the type underlying the Decl does no

[clang] [clang] Support member function poiners in Decl::getFunctionType() (PR #125077)

2025-01-30 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: Created an issue for the `alloc_align` attribute: https://github.com/llvm/llvm-project/issues/125078 https://github.com/llvm/llvm-project/pull/125077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-01-30 Thread Oliver Stannard via cfe-commits
@@ -1013,3 +1013,41 @@ // CHECK-MVE1_2: #define __ARM_FEATURE_MVE 1 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp -x c -E -dM %s -o - | FileCheck -check-prefix=CHECK-MVE3 %s // CHECK-MVE3: #define __ARM_FEATURE_MVE 3 + +// Cortex-R52 and Cortex-R52Plus

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-01-30 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard approved this pull request. LGTM with one change to the tests, no need for re-review. https://github.com/llvm/llvm-project/pull/124935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-01-30 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard edited https://github.com/llvm/llvm-project/pull/124935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

[clang] [llvm] [AMDGPU][True16][MC][CodeGen] true16 for v_alignbyte_b32 (PR #119750)

2025-01-30 Thread Brox Chen via cfe-commits
@@ -3802,6 +3802,26 @@ def : FPMinCanonMaxPat, fmaximum_oneuse>; } +let True16Predicate = UseFakeTrue16Insts in +def : GCNPat < +(i32 (int_amdgcn_alignbyte (i32 (VOP3OpSelMods i32:$src0, i32:$src0_modifiers)), broxigarchen wrote: I tried this but tablegen com

[clang] [llvm] [NVPTX] Add tcgen05 alloc/dealloc intrinsics (PR #124961)

2025-01-30 Thread Durgadoss R via cfe-commits
https://github.com/durga4github updated https://github.com/llvm/llvm-project/pull/124961 >From 632fc53beebac1d77d33c1f46893f2c868b35313 Mon Sep 17 00:00:00 2001 From: Durgadoss R Date: Wed, 29 Jan 2025 16:31:06 +0530 Subject: [PATCH] [NVPTX] Add tcgen05 alloc/dealloc intrinsics This patch adds

[libclc] [libclc] Remove use of symlinks (PR #125069)

2025-01-30 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/125069 Symlinks are problematic on some systems. They aren't strictly necessary as we already have build infrastructure to 'alias' multiple targets' source directories together, as nvptx/nvptx64 has been doing. T

[clang] [llvm] [NVPTX] Add tcgen05 alloc/dealloc intrinsics (PR #124961)

2025-01-30 Thread Durgadoss R via cfe-commits
https://github.com/durga4github updated https://github.com/llvm/llvm-project/pull/124961 >From bfe728f879b5a20be2269c6d9e52c1feb0cce64b Mon Sep 17 00:00:00 2001 From: Durgadoss R Date: Wed, 29 Jan 2025 16:31:06 +0530 Subject: [PATCH] [NVPTX] Add tcgen05 alloc/dealloc intrinsics This patch adds

[clang] [AArch64] Add MSVC mangling for the __mfp8 type (PR #124968)

2025-01-30 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#125066 https://github.com/llvm/llvm-project/pull/124968 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Remove use of symlinks (PR #125069)

2025-01-30 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/125069 ___ 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 bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-01-30 Thread Baranov Victor via cfe-commits
vbvictor wrote: Ping https://github.com/llvm/llvm-project/pull/121291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >