[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117741 >From df8901506b5e0d39baddf57ca1d2e19994bcf9e9 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Thu, 18 Apr 2024 01:18:49 -0400 Subject: [PATCH] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp

[clang] 62584f3 - AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (#117741)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:12:18-05:00 New Revision: 62584f32eb786e4c455092e653a58182e8ffe4dc URL: https://github.com/llvm/llvm-project/commit/62584f32eb786e4c455092e653a58182e8ffe4dc DIFF: https://github.com/llvm/llvm-project/commit/62584f32eb786e4c455092e653a58182e8ffe4dc.diff

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117743 >From 0b30f026361ada4df5eaf783ba01041fc317e809 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Fri, 19 Apr 2024 11:21:32 -0400 Subject: [PATCH] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4527894 - Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (#117742)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:16:08-05:00 New Revision: 4527894143a2749d826769e78ab4e0f50782b188 URL: https://github.com/llvm/llvm-project/commit/4527894143a2749d826769e78ab4e0f50782b188 DIFF: https://github.com/llvm/llvm-project/commit/4527894143a2749d826769e78ab4e0f50782b188.diff

[clang] Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (PR #117548)

2024-11-26 Thread Samira Bazuzi via cfe-commits
https://github.com/bazuzi edited https://github.com/llvm/llvm-project/pull/117548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matt Arsenault (arsenm) Changes Co-authored-by: Shilei Tian --- Patch is 55.68 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/117820.diff 11 Files Affected: - (modifi

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Co-authored-by: Shilei Tian --- Patch is 55.68 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/117820.diff 11 Files Affected: -

[clang] [clang][RISCV] __riscv_v_intrinsic macro doesn't need zve32x (PR #117356)

2024-11-26 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/8430 Here is the relevant piec

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: Let's continue the discussion in post commit review if any. https://github.com/llvm/llvm-project/pull/115416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4a7dbed - [RISCV] Support `svukte` extension (#115657)

2024-11-26 Thread via cfe-commits
Author: Brandon Wu Date: 2024-11-27T10:54:57+08:00 New Revision: 4a7dbede6badd27ce2ad07984134d5d25a2bbada URL: https://github.com/llvm/llvm-project/commit/4a7dbede6badd27ce2ad07984134d5d25a2bbada DIFF: https://github.com/llvm/llvm-project/commit/4a7dbede6badd27ce2ad07984134d5d25a2bbada.diff LO

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-26 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/115657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/115416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] __riscv_v_intrinsic macro doesn't need zve32x (PR #117356)

2024-11-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/7622 Here is the relevant piece of the build log

[clang] [libcxx] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: It looks the CI will compile libc++ with "old" clang19 and the just built clang. So it might not be able to recognize the new flag. Tried to use `-fexperimental-modules-reduced-bmi` for libc++. We can replace it with `-fmodules-reduced-bmi` someday after we don't compile it w

[clang] 74449ab - [Serialization] Downgrade inconsistent flags from erros to warnings (#115416)

2024-11-26 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-11-27T10:53:03+08:00 New Revision: 74449ab86b8bc8d7388ede0cc7fc3a679da0c567 URL: https://github.com/llvm/llvm-project/commit/74449ab86b8bc8d7388ede0cc7fc3a679da0c567 DIFF: https://github.com/llvm/llvm-project/commit/74449ab86b8bc8d7388ede0cc7fc3a679da0c567.diff LO

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/115416 >From 168d155cf6662b5db8cd4f84a51633581d8a545e Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 8 Nov 2024 10:56:44 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warni

[clang] [libcxx] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/114382 >From 8a90969b9b669fa2925cea2b60622c19406243d1 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Thu, 31 Oct 2024 17:27:00 +0800 Subject: [PATCH 1/2] [C++20] [Modules] Convert '-fexperimental-modules-reduced-b

[clang] [SYCL] change SYCL version according to standard (PR #114790)

2024-11-26 Thread via cfe-commits
https://github.com/dklochkov-emb edited https://github.com/llvm/llvm-project/pull/114790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Implement CWG2369 "Ordering between constraints and substitution" (PR #102857)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: Lets wait for @sdkrystian's pr https://github.com/llvm/llvm-project/pull/102857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread Timm Baeder via cfe-commits
tbaederr wrote: I knew there was something oddly familiar about this: https://reviews.llvm.org/D150191?id=521215 :man_facepalming: https://github.com/llvm/llvm-project/pull/117671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [lldb] [llvm] Extending LLDB to work on AIX (PR #102601)

2024-11-26 Thread Dhruv Srivastava via cfe-commits
DhruvSrivastavaX wrote: > BTW, the main loop changes are something that you should be able to upstream > quite easily. It sounds like the main problem is that you don't have a ppoll > syscall, but the last round of changes means that ppoll is not actually > necessary for its operation (the onl

[clang] clang: Relax LangOpts checks when lexing quoted numbers during preprocessing (PR #95798)

2024-11-26 Thread via cfe-commits
@@ -2068,7 +2068,8 @@ bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { } // If we have a digit separator, continue. - if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C23)) { + if (C == '\'' && + (LangOpts.CPlusPlus14 || LangOpts.C23 || Parsing

[clang] [Clang] use begin member expr location for call expr with deducing this (PR #117345)

2024-11-26 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/117345 >From c3480ca4f4f5b14185880c055613648ceb9f15be Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Fri, 22 Nov 2024 18:29:52 +0200 Subject: [PATCH 1/3] [Clang] use begin member expression location for CallExpr

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
@@ -413,6 +413,9 @@ def err_function_scope_depth_exceeded : Error< "function scope depth exceeded maximum of %0">, DefaultFatal; def err_missing_comma_before_ellipsis : Error< "C requires a comma prior to the ellipsis in a variadic function type">; +def warn_deprecated_miss

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
@@ -8119,6 +8119,14 @@ void Parser::ParseParameterDeclarationClause( } if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { + if (getLangOpts().CPlusPlus26) { +// C++26 [dcl.dcl.fct]p3: +// A parameter-declaration-clause of the form +// p

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-11-26 Thread Lu Weining via cfe-commits
SixWeining wrote: Just pick one memory ordering is enough as this test is not sensitive to memory ordering. https://github.com/llvm/llvm-project/pull/114189 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117671 >From 1d77f36a1f7fa974d50ff7a5a98b93bbb01ba26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 26 Nov 2024 08:44:57 +0100 Subject: [PAT

[clang-tools-extra] 9acd8e3 - [clangd] Drop requirement for named template parameters (#117565)

2024-11-26 Thread via cfe-commits
Author: Christian Kandeler Date: 2024-11-26T10:11:07+01:00 New Revision: 9acd8e381091765a932d54bc22359cdafa9e75c6 URL: https://github.com/llvm/llvm-project/commit/9acd8e381091765a932d54bc22359cdafa9e75c6 DIFF: https://github.com/llvm/llvm-project/commit/9acd8e381091765a932d54bc22359cdafa9e75c6.

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-26 Thread David Spickett via cfe-commits
DavidSpickett wrote: Thanks, I'll leave it open then, this PR is a welcome improvement regardless. https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -487,14 +487,17 @@ static bool checkRangeForMacroArgExpansion(CharSourceRange Range, /// macro argument expansion as Loc. static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc,

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: cor3ntin wrote: Can you add a description? Maybe a changelog https://github.com/llvm/llvm-project/pull/117671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [Clang] use begin member expr location for call expr with deducing this (PR #117345)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/117345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-26 Thread Alexandros Lamprineas via cfe-commits
@@ -2938,36 +2914,17 @@ void CodeGenFunction::EmitRISCVMultiVersionResolver( bool HasDefault = false; unsigned DefaultIndex = 0; - SmallVector CurrOptions( - Options); - - llvm::stable_sort( - CurrOptions, [](const CodeGenFunction::MultiVersionResolverOption &L

[clang] [Clang] Consider preferred_type in bitfield warnings (#116760) (PR #116785)

2024-11-26 Thread via cfe-commits
@@ -10509,14 +10516,18 @@ static bool AnalyzeBitFieldAssignment(Sema &S, FieldDecl *Bitfield, Expr *Init, ED->getNumPositiveBits() == FieldWidth) { DiagID = diag::warn_signed_bitfield_enum_conversion; } - + unsigned PreferredTypeDiagIndex =

[clang] [llvm] [RISCV][SLEEF]: Support SLEEF vector library for RISC-V target. (PR #114014)

2024-11-26 Thread Anton Sidorenko via cfe-commits
https://github.com/asi-sc closed https://github.com/llvm/llvm-project/pull/114014 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-26 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea edited https://github.com/llvm/llvm-project/pull/116257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: 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 6f16a8bf17ac9a171b5435ee53c3d2bef65

[clang] [Clang] skip consumed analysis for consteval conditions in control-flow terminators (PR #117403)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Can you add a release note / commit description? Otherwise, LGTM https://github.com/llvm/llvm-project/pull/117403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [SYCL] change SYCL version accrodnig to standard (PR #114790)

2024-11-26 Thread via cfe-commits
https://github.com/dklochkov-emb updated https://github.com/llvm/llvm-project/pull/114790 >From e854cae9413dea97320a67db0dfa6f79f7b243ca Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Mon, 4 Nov 2024 04:58:30 -0800 Subject: [PATCH] [SYCL] change SYCL version according to standard [SYCL

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-11-26 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 2ed8c5de585491182486f392a5a570cc5c4474df 680bf845742bb79e1cf33826ac8eed5ea3ed51b4 --e

[clang] [Clang][Parser] Make 'T...[N]' within a function parameter a valid pack expansion prior to C++2c (PR #116332)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: > Are we finding that we have uses of this? Unlikely - Not supported by GCC / MSVC - Really weird way to spell T* - My research did not find any uses All of which factored into WG21 introducing this breaking change https://github.com/llvm/llvm-project/pull/116332 __

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

2024-11-26 Thread Vladislav Belov via cfe-commits
https://github.com/vbe-sc updated https://github.com/llvm/llvm-project/pull/114978 >From 6564e20ae7fc69849b6787afa12f68b712f4df12 Mon Sep 17 00:00:00 2001 From: vb-sc Date: Tue, 5 Nov 2024 15:46:57 +0300 Subject: [PATCH] [clang] Fix name lookup for dependent bases --- clang/docs/ReleaseNotes.

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

2024-11-26 Thread Vladislav Belov via cfe-commits
@@ -268,6 +268,9 @@ Resolutions to C++ Defect Reports by default. (`CWG2521: User-defined literals and reserved identifiers `_). +- Clang now make correct name lookup when dependent base class is the current instantiation

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-26 Thread Piyou Chen via cfe-commits
@@ -2938,36 +2914,17 @@ void CodeGenFunction::EmitRISCVMultiVersionResolver( bool HasDefault = false; unsigned DefaultIndex = 0; - SmallVector CurrOptions( - Options); - - llvm::stable_sort( - CurrOptions, [](const CodeGenFunction::MultiVersionResolverOption &L

[clang] [Clang] prevent errors for deduction guides using deduced type aliases (PR #117450)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: Can you add more details to the description? Thanks! https://github.com/llvm/llvm-project/pull/117450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Treat escaped newlines as whitespace in Lexer::getRawToken. (PR #117548)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: line splicing does not introduce spaces (https://compiler-explorer.com/z/ohaq6Wzv7). > If an escaped newline should not be considered whitespace, then instead of > this change, getRawToken should be modified to return true when whitespace > follows the escaped newline present

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-26 Thread via cfe-commits
https://github.com/tangaac updated https://github.com/llvm/llvm-project/pull/116764 >From a01c311e639770fb5815c3ddfe93a215332d5181 Mon Sep 17 00:00:00 2001 From: tangaac Date: Tue, 19 Nov 2024 15:04:29 +0800 Subject: [PATCH 1/5] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] in

[clang] [Clang-REPL] Fix crash during `__run_exit_handlers` with dynamic libraries. (PR #117475)

2024-11-26 Thread via cfe-commits
SahilPatidar wrote: Would it be okay if I push the test for the Linux modification and check the results here? I don’t have access to a Linux x86 setup for testing. https://github.com/llvm/llvm-project/pull/117475 ___ cfe-commits mailing list cfe-comm

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

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM (modulo small wording nit in the release note) https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

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

2024-11-26 Thread via cfe-commits
@@ -268,6 +268,9 @@ Resolutions to C++ Defect Reports by default. (`CWG2521: User-defined literals and reserved identifiers `_). +- Clang now make correct name lookup when dependent base class is the current instantiation

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

2024-11-26 Thread Vladislav Belov via cfe-commits
@@ -268,6 +268,9 @@ Resolutions to C++ Defect Reports by default. (`CWG2521: User-defined literals and reserved identifiers `_). +- Clang now make correct name lookup when dependent base class is the current instantiation

[clang] [Clang] use begin member expr location for call expr with deducing this (PR #117345)

2024-11-26 Thread Oleksandr T. via cfe-commits
@@ -717,6 +717,8 @@ Bug Fixes to C++ Support - Clang now uses valid deduced type locations when diagnosing functions with trailing return type missing placeholder return type. (#GH78694) - Fixed a bug where bounds of partially expanded pack indexing expressions were checked

[clang-tools-extra] [clangd] Drop requirement for named template parameters (PR #117565)

2024-11-26 Thread Christian Kandeler via cfe-commits
https://github.com/ckandeler closed https://github.com/llvm/llvm-project/pull/117565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Alice Ryhl via cfe-commits
Darksonn wrote: > AFAIK the use case for KCFI is very narrow: the x86-64 Linux kernel. At the very least, it's also used in the arm64 Linux Kernel. https://github.com/llvm/llvm-project/pull/117121 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Alice Ryhl via cfe-commits
Darksonn wrote: Sami, I'm guessing you're mainly talking about rustc and clang needing to use llvm versions that agree on the kCFI implementation in use? Or are there additional things we need to do to make Rust support it / some fundamental reason this approach can't work in Rust? Either way

[clang] [clang] Diagnose dangling references for parenthesized aggregate initialization. (PR #117690)

2024-11-26 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/117690 Fixes #101957 >From c92065b91a6d1898c1d61ba95c1108501a259944 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 26 Nov 2024 10:31:12 +0100 Subject: [PATCH] [clang] Diagnose dangling references for parethesize

[clang] [clang] Diagnose dangling references for parenthesized aggregate initialization. (PR #117690)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fixes #101957 --- Full diff: https://github.com/llvm/llvm-project/pull/117690.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/lib/Sema/CheckExprLifetime.cpp (+32) -

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: tbaederr wrote: It's the same problem again. For this code: ```c++ #define F(x) x + 1 #define G(x) F(x) + 2 #define ADD(x,y) G(x) + y #define LEVEL4(x) ADD(p,x) #define LEVEL3(x) LEVEL4(x) #define LEVEL2(x) LEVEL3(x) #define LEVEL1(x) LEVEL2(x)

[clang] Enable AST mutation in the constant evaluator (PR #115168)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: @zygoloid I think we ended up concluding that - The tooling situation will not change (When Sema is not available mutation can't happen and we provide a default no-op implementation of the mutation function) - It's easy to check in `SemaProxyImpl` (or wherever it's called from

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Alice Ryhl via cfe-commits
Darksonn wrote: FYI cc: @bjorn3 @RalfJung @rcvalle https://github.com/llvm/llvm-project/pull/117121 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2024-11-26 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -487,14 +487,17 @@ static bool checkRangeForMacroArgExpansion(CharSourceRange Range, /// macro argument expansion as Loc. static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc,

[clang] Reland [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-11-26 Thread via cfe-commits
@@ -4692,6 +4692,17 @@ bool Sema::InstantiateDefaultArgument(SourceLocation CallLoc, FunctionDecl *FD, ParmVarDecl *Param) { assert(Param->hasUninstantiatedDefaultArg()); + // FIXME: We don't track member specialization info for non-de

[clang] Reland [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-11-26 Thread via cfe-commits
@@ -4692,6 +4692,17 @@ bool Sema::InstantiateDefaultArgument(SourceLocation CallLoc, FunctionDecl *FD, ParmVarDecl *Param) { assert(Param->hasUninstantiatedDefaultArg()); + // FIXME: We don't track member specialization info for non-de

[clang] Reland [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-11-26 Thread via cfe-commits
@@ -717,6 +717,8 @@ Bug Fixes to C++ Support - Clang now uses valid deduced type locations when diagnosing functions with trailing return type missing placeholder return type. (#GH78694) - Fixed a bug where bounds of partially expanded pack indexing expressions were checked

[clang] [Clang] Only ignore special methods for unused private fields in BuildFieldReferenceExpr (PR #116965)

2024-11-26 Thread Mészáros Gergely via cfe-commits
@@ -20,6 +20,20 @@ class SpaceShipDefaultCompare { int operator<=>(const SpaceShipDefaultCompare &) const = default; }; +class EqDefaultCompareOutOfClass { + int used; // no warning Maetveis wrote: Okay, sorry I wasn't sure what you were referring to, but

[clang] [llvm] [AArch64][SVE] Change the immediate argument in svextq (PR #115340)

2024-11-26 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/115340 >From bac0e8b46c284b17f04a68d95b87e8b8bf28f438 Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Thu, 7 Nov 2024 11:44:27 + Subject: [PATCH] [AArch64][SVE] Fix the immediate argument in svextq The mea

[clang] [Clang] Only ignore special methods for unused private fields in BuildFieldReferenceExpr (PR #116965)

2024-11-26 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis edited https://github.com/llvm/llvm-project/pull/116965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Only ignore special methods for unused private fields in BuildFieldReferenceExpr (PR #116965)

2024-11-26 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/116965 From 90febd4a613fc2e76548da6912b32d50bc88a0ac Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Wed, 20 Nov 2024 12:55:59 + Subject: [PATCH 1/3] [Clang] Only ignore special methods for unused private f

[clang] Traverse attributes in `AttributedStmt`. (PR #117692)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: ykiko (16bit-ykiko) Changes Fix https://github.com/llvm/llvm-project/issues/117687. --- Full diff: https://github.com/llvm/llvm-project/pull/117692.diff 1 Files Affected: - (modified) clang/include/clang/AST/RecursiveASTVisitor.h (+4-1)

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

2024-11-26 Thread kadir çetinkaya via cfe-commits
@@ -63,6 +63,9 @@ enum class RefKind : uint8_t { // ^ this references Foo, but does not explicitly spell out its name // }; Spelled = 1 << 3, + // A reference which is a call. Used as a filter for which references + // to store in data structures used for computing ou

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

2024-11-26 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/117673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-11-26 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet requested changes to this pull request. sorry for losing track on the original patch, and thanks a lot for driving this to completion! > @kadircet perhaps you might be able to pick up this review? > > Or, in the absence of a full review, your opinion on the direction

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/117108 >From 32e04b6538486006c98c6b805b1057110c3a2c1a Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Wed, 20 Nov 2024 17:30:43 +0800 Subject: [PATCH 1/3] [Flang] LoongArch64 support for BIND(C) derived types. This pat

[clang] [clang] constexpr built-in elementwise popcount function. (PR #117473)

2024-11-26 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/117473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-26 Thread Phoebe Wang via cfe-commits
@@ -4303,21 +4288,15 @@ void CodeGenModule::emitMultiVersionFunctions() { continue; llvm::Function *Func = createFunction(CurFD, I); - StringRef Architecture; Feats.clear(); - if (getTarget().getTriple().is

[clang] Traverse attributes in `AttributedStmt`. (PR #117692)

2024-11-26 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/117692 >From e7779c27eaf28f454090a4a42517ad0eac978680 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 26 Nov 2024 17:51:00 +0800 Subject: [PATCH] Add stmts. --- clang/include/clang/AST/RecursiveASTVisitor.h | 5 +

[clang] [clang] Diagnose dangling references for parenthesized aggregate initialization. (PR #117690)

2024-11-26 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. LGTM, could you add a summary of the change to the commit message? I know the context is available in the linked issue, but I'd like the gist of it to be preserved in the commit history directly. https://github.com/llvm/llvm-project/pul

[clang-tools-extra] [clang-tidy] Adjust size-empty doc because C++11 size() is constant-time (PR #117629)

2024-11-26 Thread Niels Dekker via cfe-commits
N-Dekker wrote: Thanks for your encouragement, @HerrCai0907. I just [force-pushed](https://github.com/llvm/llvm-project/compare/87688f9ec5e74f9b3c74df05a69a4f822966b5f1..ab3009e825af5e323e749dfdbd2300ef68677f14), as you suggested. To further clarify my motivation, I believe that C++ users actu

[clang] [Clang] [Sema] Reject non-power-of-2 `_BitInt` matrix element types (PR #117487)

2024-11-26 Thread Florian Hahn via cfe-commits
fhahn wrote: For reference, as per https://clang.llvm.org/docs/MatrixTypes.html#matrix-type, the only allowed element types for matrixes are * an integer type (as in C23 6.2.5p22), but excluding enumerated types and bool * the standard floating types float or double * a half-precision floating

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Tom Eccles via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

[clang] [AMDGPU] Enable overriding of OpenCL's default address space (PR #117588)

2024-11-26 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda closed https://github.com/llvm/llvm-project/pull/117588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow delayed function instantiation at TU end if initial instantiation fails (PR #117167)

2024-11-26 Thread via cfe-commits
StefanPaulet wrote: The trace that I found was: - return type for `dispatch` must be deduced - `dispatch` is instantiated - `callable()` is instantiated as part of `LocalEagerInstantiationScope` (calling `PerformPendingInstantiations`) - `InstantiateFunctionDefinition` for `callable()` is called

[clang] [clang] Allow delayed function instantiation at TU end if initial instantiation fails (PR #117167)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: The behavior I would expect is `callable` is instantiated. It has a trailing return type so only the declaration of `foo` is instantiated, and that also has a return type so we do not need the definition. `foo` is marked referenced / odr-used. That should be enough to force a

[clang] Traverse attributes in `AttributedStmt`. (PR #117692)

2024-11-26 Thread via cfe-commits
https://github.com/16bit-ykiko created https://github.com/llvm/llvm-project/pull/117692 Fix https://github.com/llvm/llvm-project/issues/117687. >From e7779c27eaf28f454090a4a42517ad0eac978680 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 26 Nov 2024 17:51:00 +0800 Subject: [PATCH] Add stmts.

[clang] [Clang] prevent errors for deduction guides using deduced type aliases (PR #117450)

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

[clang] [Clang] prevent errors for deduction guides using deduced type aliases (PR #117450)

2024-11-26 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: @cor3ntin I've updated description https://github.com/llvm/llvm-project/pull/117450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Only ignore special methods for unused private fields in BuildFieldReferenceExpr (PR #116965)

2024-11-26 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/116965 From 90febd4a613fc2e76548da6912b32d50bc88a0ac Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Wed, 20 Nov 2024 12:55:59 + Subject: [PATCH 1/3] [Clang] Only ignore special methods for unused private f

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
ylzsx wrote: Hi, @tblah, Could you take a look and provide your feedback? Thanks in advance! It supports both the passing and returning of BIND(C) type parameters for LoongArch. https://github.com/llvm/llvm-project/pull/117108 ___ cfe-commits mailin

[clang] [AMDGPU] Enable overriding of OpenCL's default address space (PR #117588)

2024-11-26 Thread Jakub Chlanda via cfe-commits
jchlanda wrote: > In principle I am against this, it adds a relatively brittle hook, and > bypasses the pre-existing mechanisms (use CL2 or enable the generic-as > extension) for obtaining this behaviour, in a way that does not ensure that > the pre-existing mechanisms are available (e.g. it a

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-26 Thread Alexandros Lamprineas via cfe-commits
@@ -4303,21 +4288,15 @@ void CodeGenModule::emitMultiVersionFunctions() { continue; llvm::Function *Func = createFunction(CurFD, I); - StringRef Architecture; Feats.clear(); - if (getTarget().getTriple().is

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Sami Tolvanen via cfe-commits
samitolvanen wrote: > Sami, I'm guessing you're mainly talking about rustc and clang needing to use > llvm versions that agree on the kCFI implementation in use? Correct. Both compilers must use the same hashing scheme for cross-language indirect calls to work, so unconditionally changing how

[clang] [llvm] [AArch64] Implement intrinsics for F1CVTL/F2CVTL and BF1CVTL/BF2CVTL (PR #116959)

2024-11-26 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: We would also need TargetGuard tests, e.g. `/clang/test/Sema/aarch64-sme2-intrinsics`. https://github.com/llvm/llvm-project/pull/116959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Tom Eccles via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Tom Eccles via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Tom Eccles via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

<    1   2   3   4   5   6   >