[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu closed https://github.com/llvm/llvm-project/pull/122307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

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

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

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

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

2025-01-20 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: quick questions https://github.com/llvm/llvm-project/pull/123417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

2025-01-20 Thread Shafik Yaghmour via cfe-commits
@@ -216,11 +244,18 @@ int compareit(float a, float b) { // no-inf-no-nan-warning@+2 {{use of infinity is undefined behavior due to the currently enabled floating-point options}} // no-inf-warning@+1 {{use of infinity is undefined behavior due to the currently enabled floatin

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

2025-01-20 Thread Shafik Yaghmour via cfe-commits
@@ -48,24 +48,49 @@ namespace std __attribute__((__visibility__("default"))) { isnan(double __x); bool isnan(long double __x); -bool + bool isfinite(float __x); bool isfinite(double __x); bool isfinte(long double __x); - bool + bool isunordered(float _

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 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/16114

[clang] [Clang] Fix __{add, remove}_pointer in Objective-C++ (PR #123678)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes This aligns the builtins with how implementations work which don't use the buitins. --- Full diff: https://github.com/llvm/llvm-project/pull/123678.diff 2 Files Affected: - (modified) clang/lib/Sem

[clang] [Clang] Fix __{add, remove}_pointer in Objective-C++ (PR #123678)

2025-01-20 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/123678 This aligns the builtins with how implementations work which don't use the buitins. >From 233d8d797a7a915d4100d7ca4259bb28611c7d90 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 21 Jan 2025 02:1

[libclc] [libclc] Route select through __clc_select (PR #123647)

2025-01-20 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/123647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla-2stage` running on `linaro-g4-01` while building `clang` at step 12 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/199/builds/1090 Here is the relevant piece

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-global-isel` running on `linaro-clang-aarch64-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/125/builds/5078 Here is the

[clang] [clang-format] Handle leading C++11 attribute in QualifierAlignment (PR #123690)

2025-01-20 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/123690 Fixes #123573. >From 966ff2aea1eb0c137bdde04076c59de756204bc2 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 20 Jan 2025 22:02:04 -0800 Subject: [PATCH] [clang-format] Handle leading C++11 attribute in Qual

[clang] f07e516 - [Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (#123687)

2025-01-20 Thread via cfe-commits
Author: Younan Zhang Date: 2025-01-21T14:16:17+08:00 New Revision: f07e5162d0e67ec980e0ea282cf294f377407b10 URL: https://github.com/llvm/llvm-project/commit/f07e5162d0e67ec980e0ea282cf294f377407b10 DIFF: https://github.com/llvm/llvm-project/commit/f07e5162d0e67ec980e0ea282cf294f377407b10.diff

[clang] [Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (PR #123687)

2025-01-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/123687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle leading C++11 attribute in QualifierAlignment (PR #123690)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #123573. --- Full diff: https://github.com/llvm/llvm-project/pull/123690.diff 2 Files Affected: - (modified) clang/lib/Format/QualifierAlignmentFixer.cpp (+2-1) - (modified) clang/unittests/Format

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-20 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: In general, personally I quite like the idea of removing decls from the scope. Though I think when I've tried to do so [in a different context], there were some problems. I'll try to find what I was doing and why it wasn't working. It's not a blocker for your change but it can b

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-20 Thread via cfe-commits
@@ -0,0 +1,36 @@ +;; This test checks whether DWARF tag DW_AT_RUST_short_backtrace is accepted and processed. +; REQUIRES: object-emission +; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump --verbose - | FileCheck %s +; CHECK: DW_AT_RUST_short_backtrace [DW_FORM_data1] +

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-20 Thread via cfe-commits
@@ -125,6 +125,13 @@ class DITypeRefArray { iterator end() const { return N ? iterator(N->op_end()) : iterator(); } }; +/// DWARF-like extension attribute for setting short backtrace debuginfo. +enum class ShortBacktraceAttr { + SkipFrame = 0, + StartShortBacktrace = 1, +

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-20 Thread via cfe-commits
@@ -605,6 +605,10 @@ HANDLE_DW_AT(0x3b28, BORLAND_Delphi_ABI, 0, BORLAND) HANDLE_DW_AT(0x3b29, BORLAND_Delphi_return, 0, BORLAND) HANDLE_DW_AT(0x3b30, BORLAND_Delphi_frameptr, 0, BORLAND) HANDLE_DW_AT(0x3b31, BORLAND_closure, 0, BORLAND) + +// Rust extensions. +HANDLE_DW_AT(0x3

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-20 Thread via cfe-commits
@@ -5658,10 +5658,27 @@ bool LLParser::parseDISubprogram(MDNode *&Result, bool IsDistinct) { OPTIONAL(retainedNodes, MDField, ); \ OPTIONAL(thrownTypes, MDField, ); \ OPTIONAL(annotatio

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/123551 >From cd87f05f19f245e24f5c29b97af0b69266608d7a Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 20 Jan 2025 01:52:24 -0500 Subject: [PATCH 1/2] Upgrade HeuristicResolver to use QualType rather than

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

2025-01-20 Thread Amr Hesham via cfe-commits
@@ -216,11 +244,18 @@ int compareit(float a, float b) { // no-inf-no-nan-warning@+2 {{use of infinity is undefined behavior due to the currently enabled floating-point options}} // no-inf-warning@+1 {{use of infinity is undefined behavior due to the currently enabled floatin

[clang] ce32625 - Reland "[Flang][Driver] Add a flag to control zero initialization" (#123606)

2025-01-20 Thread via cfe-commits
Author: Kiran Chandramohan Date: 2025-01-21T07:57:44Z New Revision: ce32625966a922fe96aababe0ed975ada004901f URL: https://github.com/llvm/llvm-project/commit/ce32625966a922fe96aababe0ed975ada004901f DIFF: https://github.com/llvm/llvm-project/commit/ce32625966a922fe96aababe0ed975ada004901f.diff

[clang] [flang] Reland "[Flang][Driver] Add a flag to control zero initialization" (PR #123606)

2025-01-20 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan closed https://github.com/llvm/llvm-project/pull/123606 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2-MINMAX][NFC] Remove NE[P] from intrinsic and instruction (PR #123272)

2025-01-20 Thread Evgenii Kudriashov via cfe-commits
https://github.com/e-kud approved this pull request. LGTM. Couldn't grep something `minmax`-like that hasn't been covered. https://github.com/llvm/llvm-project/pull/123272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/10570 Here is the relevant piece of

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-20 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > > Yes and no. It's due to the redefinitions, for sure. But that diagnostic is > suppressed in system headers: https://godbolt.org/z/Mb7Kh975f, so I think we > need to understand why there's a `limits.h` being included as though it were > not a system header, because that's a

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 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/10933 Here is the relevant pie

[clang] 4e2efc3 - [OffloadBundler] Compress bundles over 4GB (#122307)

2025-01-20 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-01-20T20:17:30-05:00 New Revision: 4e2efc3bd500836d0fa977d6e257ffee2c92e178 URL: https://github.com/llvm/llvm-project/commit/4e2efc3bd500836d0fa977d6e257ffee2c92e178 DIFF: https://github.com/llvm/llvm-project/commit/4e2efc3bd500836d0fa977d6e257ffee2c92e178.dif

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 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/10570 Here is the relevant piece o

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-20 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/123648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e87b843 - Reland [OffloadBundler] Compress bundles over 4GB (#122307)

2025-01-20 Thread Yaxun Liu via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-01-20T21:17:21-05:00 New Revision: e87b843811e147db8d1edd7fe2dd52bb90be6ebc URL: https://github.com/llvm/llvm-project/commit/e87b843811e147db8d1edd7fe2dd52bb90be6ebc DIFF: https://github.com/llvm/llvm-project/commit/e87b843811e147db8d1edd7fe2dd52bb90be6ebc.dif

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #123696)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123696.diff 1 Files Affected: - (modified) clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp (+2-2) ``diff diff --git a/clang/lib/F

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #123696)

2025-01-20 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/123696 None >From 18c544645309d614fb288869ddc26ad7fe86a514 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 20 Jan 2025 10:33:13 -0800 Subject: [PATCH] [Rewrite] Avoid repeated hash lookups (NFC) --- cla

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-20 Thread A. Jiang via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -std=c++26 -verify %s frederick-vs-ja wrote: I think it would be better to verify that this is OK since C++20. https://github.com/llvm/llvm-project/pull/123667 ___ cfe-commits maili

[clang] [Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (PR #123687)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Now that the RAII object has a dedicate logic for handling nested lambdas, where the inner lambda could reference any captures/variables/parameters from the outer lambda, we can shift the responsibility for

[clang] [Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (PR #123687)

2025-01-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/123687 Now that the RAII object has a dedicate logic for handling nested lambdas, where the inner lambda could reference any captures/variables/parameters from the outer lambda, we can shift the responsibility for man

[libunwind] [libunwind] Unwind through loongarch64/Linux sigreturn frame (PR #123682)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: None (Ami-zhang) Changes Similar to D90898 (Linux AArch64), D124765 (SystemZ), and D148499 (RISCV). In this commit, I enabled two test cases, while zhuqizheng supported with the source code development. Co-Authored-By: zhuqizheng

[clang] [Clang] Fix __{add, remove}_pointer in Objective-C++ (PR #123678)

2025-01-20 Thread via cfe-commits
https://github.com/cor3ntin commented: Can you add a changelog entry? https://github.com/llvm/llvm-project/pull/123678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-20 Thread via cfe-commits
@@ -951,28 +959,124 @@ Sema::ActOnDecompositionDeclarator(Scope *S, Declarator &D, return New; } +// CheckBindingsCount +// - Checks the arity of the structured bindings +// - Creates the resolved pack expr if there is +//one +static bool CheckBindingsCount(Sema &S, D

[clang] [Clang] Delegate part of SetupConstraintScope's job to LambdaScopeForCallOperatorInstantiationRAII (PR #123687)

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

[clang] 72c560d - Revert "[OffloadBundler] Compress bundles over 4GB (#122307)"

2025-01-20 Thread Yaxun Liu via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-01-20T20:58:05-05:00 New Revision: 72c560da4b923b42114490093794e585144879f4 URL: https://github.com/llvm/llvm-project/commit/72c560da4b923b42114490093794e585144879f4 DIFF: https://github.com/llvm/llvm-project/commit/72c560da4b923b42114490093794e585144879f4.dif

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

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

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-20 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: That crash looks pretty annoying, thanks for looking into this issue and debugging it. Can you trigger the crash without `-ast-dump-all`? If there is a way to detect a faulty behaviour without verifying the internal compiler state, it is more reliable and less fragile to do it

[clang] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos.* when -fno-math-errno is set (PR #121763)

2025-01-20 Thread Craig Topper via cfe-commits
topperc wrote: > > @RKSimon do you know if there is a reason CodeGen AA is not enabled for x86? > > I'd otherwise be happy to approve this patch, lowering to the intrinsic > > seems like the right thing to do. > > I don't remember any reason for alias analysis to not be enabled on x86 - > @pho

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 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/11719 Her

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

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

[libunwind] [libunwind] Unwind through loongarch64/Linux sigreturn frame (PR #123682)

2025-01-20 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/123682 Similar to D90898 (Linux AArch64), D124765 (SystemZ), and D148499 (RISCV). In this commit, I enabled two test cases, while zhuqizheng supported with the source code development. Co-Authored-By: zhuqizheng

[clang] [OffloadBundler] Compress bundles over 4GB (PR #122307)

2025-01-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-win-x-aarch64` running on `as-builder-2` while building `clang` at step 10 "test-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/193/builds/5054 Here is the relevant piece of

[libclc] [libclc] Route int bitselect through CLC; add half (PR #123653)

2025-01-20 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/123653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

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

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-20 Thread via cfe-commits
https://github.com/jyn514 created https://github.com/llvm/llvm-project/pull/123683 The Rust standard library has two [styles](https://doc.rust-lang.org/stable/std/panic/enum.BacktraceStyle.html) for printing backtraces at runtime: 1. Full backtraces. These work in the obvious way. 2. Short bac

[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

2025-01-20 Thread kadir çetinkaya via cfe-commits
@@ -38,10 +39,6 @@ class MockDirectoryCompilationDatabase : public MockCompilationDatabase { void addFile(llvm::StringRef Path, llvm::StringRef Contents); - std::unique_ptr getProjectModules(PathRef) const override { -return scanningProjectModules(MockedCDBPtr, TFS);

[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

2025-01-20 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet requested changes to this pull request. https://github.com/llvm/llvm-project/pull/122606 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

2025-01-20 Thread kadir çetinkaya via cfe-commits
@@ -9,12 +9,17 @@ #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_PROJECTMODULES_H +#include "support/Function.h" #include "support/Path.h" #include "support/ThreadsafeFS.h" #include namespace clang { +namespace tooling { +

[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

2025-01-20 Thread kadir çetinkaya via cfe-commits
@@ -32,6 +32,9 @@ namespace { /// interfere with each other. class ModuleDependencyScanner { public: + using CommandProvider = kadircet wrote: Sorry I was just trying to say we don't need to have the same type-alias both in ModuleDependencyScanner and Projec

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-20 Thread Valentyn Yukhymenko via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-20 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA edited https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Alternative implementation of FP8 Neon intrinsics (PR #120476)

2025-01-20 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov ready_for_review https://github.com/llvm/llvm-project/pull/120476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Allow FP8 Neon vector types to be used by __builtin_shufflevector (PR #119031)

2025-01-20 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: I've implemented all the relevant Neon FP8 intrinsics on top of two alternative implementations for Neon FP8 vector types: * builtin vector types: https://github.com/llvm/llvm-project/pull/121804 (top of PR stack, this PR right here is a part of it) * using `neon_vector_t

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-20 Thread Younan Zhang via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

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

2025-01-20 Thread via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/119387 >From 8781ff2355750ae61d140620b1f6862537de07e3 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Tue, 10 Dec 2024 15:01:37 + Subject: [PATCH 1/9] [ASan] Add metadata to renamed instructions so ASan doesn't use t

[libclc] 8b7bfb4 - [libclc] Rename include guards. NFC.

2025-01-20 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2025-01-20T11:26:02Z New Revision: 8b7bfb417a220822ddd8231e58dcd785d8d96aed URL: https://github.com/llvm/llvm-project/commit/8b7bfb417a220822ddd8231e58dcd785d8d96aed DIFF: https://github.com/llvm/llvm-project/commit/8b7bfb417a220822ddd8231e58dcd785d8d96aed.diff LOG

[clang] [AArch64] Implement NEON FP8 vectors as VectorType (PR #123603)

2025-01-20 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov created https://github.com/llvm/llvm-project/pull/123603 Reimplement Neon FP8 vector types using attribute `neon_vector_type` instead of having them as builtin types. This allows to implement FP8 Neon intrinsics without the need to add special cases for these

[clang] [clang][bytecode] Don't memcpy() FixedPoint values (PR #123599)

2025-01-20 Thread Timm Baeder via cfe-commits
@@ -91,6 +91,31 @@ class FixedPoint final { return ComparisonCategoryResult::Greater; } + size_t bytesToSerialize() const { +return sizeof(uint32_t) + (V.getValue().getBitWidth() / CHAR_BIT); tbaederr wrote: Yeah, _if_ I use it, it's just because o

[clang] d70f54f - [clang][bytecode] Fix reporting failed local constexpr initializers (#123588)

2025-01-20 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-20T13:25:50+01:00 New Revision: d70f54f248853f4d5f9e71a51dfda53a47f0b7d3 URL: https://github.com/llvm/llvm-project/commit/d70f54f248853f4d5f9e71a51dfda53a47f0b7d3 DIFF: https://github.com/llvm/llvm-project/commit/d70f54f248853f4d5f9e71a51dfda53a47f0b7d3.diff L

[clang] [clang][bytecode] Fix reporting failed local constexpr initializers (PR #123588)

2025-01-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Implement NEON FP8 vectors as VectorType (PR #123603)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Momchil Velikov (momchil-velikov) Changes Reimplement Neon FP8 vector types using attribute `neon_vector_type` instead of having them as builtin types. This allows to implement FP8 Neon intrinsics without the need to add special

[clang] [clang][bytecode] Don't memcpy() FixedPoint values (PR #123599)

2025-01-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/123599 >From 9a8e5f8f0afd7d5f139862f28e53414a3d9fd7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 20 Jan 2025 13:05:37 +0100 Subject: [PATCH] [clang][bytecode] Don't memcpy() FixedPoint val

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-20 Thread via cfe-commits
@@ -2509,6 +2509,20 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, DC = DC->getLookupParent(); } + // Check whether a similar function-like macro exists and suggest it StarOne01 wrote: I did try it, but in this case the

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

2025-01-20 Thread Sjoerd Meijer via cfe-commits
@@ -4064,31 +4072,59 @@ static Value *upgradeX86IntrinsicCall(StringRef Name, CallBase *CI, Function *F, static Value *upgradeAArch64IntrinsicCall(StringRef Name, CallBase *CI, Function *F, IRBuilder<> &Builder) { - Intrinsic::ID New

[clang] [AArch64] Update SVE untyped intrinsics to have FP8 variants (PR #123585)

2025-01-20 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/123585 >From 7e8fd043297335e28da41d28bf9ac8cc7fc5ab32 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Fri, 17 Jan 2025 17:09:22 + Subject: [PATCH 1/2] [AArch64] Update SVE untyped intrinsics to have FP8 v

[clang] [AArch64] Update SVE untyped intrinsics to have FP8 variants (PR #123585)

2025-01-20 Thread Jonathan Thackray via cfe-commits
@@ -2280,15 +2280,15 @@ let SVETargetGuard = "sve2p1", SMETargetGuard = "sme2" in { let SVETargetGuard = "sve2p1", SMETargetGuard = InvalidMode in { // ZIPQ1, ZIPQ2, UZPQ1, UZPQ2 - def SVZIPQ1 : SInst<"svzipq1[_{d}]", "ddd", "cUcsUsiUilUlbhfd", MergeNone, "aarch64_sve_zip

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

2025-01-20 Thread Sjoerd Meijer via cfe-commits
@@ -9053,22 +9053,19 @@ class SIMDThreeSameVectorBF16MatrixMul let mayRaiseFPException = 1, Uses = [FPCR] in class SIMD_BFCVTN - : BaseSIMDMixedTwoVector<0, 0, 0b10, 0b10110, V128, V128, + : BaseSIMDMixedTwoVector<0, 0, 0b10, 0b10110, V128, V64, sjoerdmeijer

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-20 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Yeah, tests seem to be missing https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-20 Thread Mariya Podchishchaeva via cfe-commits
@@ -2509,6 +2509,20 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, DC = DC->getLookupParent(); } + // Check whether a similar function-like macro exists and suggest it Fznamznon wrote: > I did try it, but in this case t

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-20 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Update SVE untyped intrinsics to have FP8 variants (PR #123585)

2025-01-20 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray created https://github.com/llvm/llvm-project/pull/123585 Update the following intrinsics to have FP8 variants: ``` c svuint8_t svdup_laneq[_u8](svuint8_t zn, uint64_t imm_idx); svuint8_t svextq[_u8](svuint8_t zdn, svuint8_t zm, uint64_t imm); svint8_t svtblq[_s8](svi

[clang] [AArch64] Update SVE untyped intrinsics to have FP8 variants (PR #123585)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jonathan Thackray (jthackray) Changes Update the following intrinsics to have FP8 variants: ``` c svuint8_t svdup_laneq[_u8](svuint8_t zn, uint64_t imm_idx); svuint8_t svextq[_u8](svuint8_t zdn, svuint8_t zm, uint64_t imm); svint8_t svtblq[

[clang] 5a7a324 - [clang][NFC] Migrate bit-fields of OverloadCandidate to LLVM_PREFERRED_TYPE

2025-01-20 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-20T14:19:32+04:00 New Revision: 5a7a3242639a17b049d70ee00798957ea21eb182 URL: https://github.com/llvm/llvm-project/commit/5a7a3242639a17b049d70ee00798957ea21eb182 DIFF: https://github.com/llvm/llvm-project/commit/5a7a3242639a17b049d70ee00798957ea21eb182.

[clang] [Clang] Add [[clang::no_specializations]] (PR #101469)

2025-01-20 Thread Nikolas Klauser via cfe-commits
@@ -1212,6 +1212,14 @@ static void handlePreferredName(Sema &S, Decl *D, const ParsedAttr &AL) { << TT->getDecl(); } +static void handleNoSpecializations(Sema &S, Decl *D, const ParsedAttr &AL) { + StringRef Message; + if (AL.getNumArgs() != 0) +S.checkStringLit

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-20 Thread Younan Zhang via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

[clang] [Clang] Re-write codegen for atomic_test_and_set and atomic_clear (PR #121943)

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

[clang] [clang] Restrict use of scalar types in vector builtins (PR #119423)

2025-01-20 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: ping https://github.com/llvm/llvm-project/pull/119423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Pass -X and forward --no-relax to linker for LoongArch (PR #123587)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: ZhaoQi (zhaoqi5) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123587.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+1-1) ``diff diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp

[clang] [clang][bytecode] Fix reporting failed local constexpr initializers (PR #123588)

2025-01-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123588 We need to emit the 'initializer of X is not a constant expression' note for local constexpr variables as well. >From 8ce1601e272429601c5a1e292c2cd1b9a6afb6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=

[clang] [clang][bytecode] Fix reporting failed local constexpr initializers (PR #123588)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to emit the 'initializer of X is not a constant expression' note for local constexpr variables as well. --- Full diff: https://github.com/llvm/llvm-project/pull/123588.diff 3 Files Affected: - (mo

[clang] [AArch64] Refactor implementation of FP8 types (NFC) (PR #123604)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Momchil Velikov (momchil-velikov) Changes - The FP8 scalar type (`__mfp8`) was described as a vector type - The FP8 vector types were described/assumed to have integer element type (the element type ought to be `__mfp8`) - Add su

[clang] [AArch64] Refactor implementation of FP8 types (NFC) (PR #123604)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Momchil Velikov (momchil-velikov) Changes - The FP8 scalar type (`__mfp8`) was described as a vector type - The FP8 vector types were described/assumed to have integer element type (the element type ought to be `__mfp8`) - Add support for

[clang] [AArch64] Refactor implementation of FP8 types (NFC) (PR #123604)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Momchil Velikov (momchil-velikov) Changes - The FP8 scalar type (`__mfp8`) was described as a vector type - The FP8 vector types were described/assumed to have integer element type (the element type ought to be `__mfp8`) - Add supp

[clang] [clang][bytecode] Don't memcpy() FixedPoint values (PR #123599)

2025-01-20 Thread Timm Baeder via cfe-commits
tbaederr wrote: > Maybe worth adding a release note, especially if you can write a test that > would fail without this patch? I generally don't add change log entries for this stuff since it's an experimental, off-by-default feature. https://github.com/llvm/llvm-project/pull/123599 __

[clang] [AArch64] Refactor implementation of FP8 types (NFC) (PR #123604)

2025-01-20 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov created https://github.com/llvm/llvm-project/pull/123604 - The FP8 scalar type (`__mfp8`) was described as a vector type - The FP8 vector types were described/assumed to have integer element type (the element type ought to be `__mfp8`) - Add support for `m` ty

[clang] [flang] Reland "[Flang][Driver] Add a flag to control zero initialization" (PR #123606)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Kiran Chandramohan (kiranchandramohan) Changes Reverts llvm/llvm-project#123330 --- Full diff: https://github.com/llvm/llvm-project/pull/123606.diff 9 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+5) - (mo

[clang] [flang] Reland "[Flang][Driver] Add a flag to control zero initialization" (PR #123606)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Kiran Chandramohan (kiranchandramohan) Changes Reverts llvm/llvm-project#123330 --- Full diff: https://github.com/llvm/llvm-project/pull/123606.diff 9 Files Affected: - (modified) clang/include/clang/Dr

[clang] [flang] Reland "[Flang][Driver] Add a flag to control zero initialization" (PR #123606)

2025-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Kiran Chandramohan (kiranchandramohan) Changes Reverts llvm/llvm-project#123330 --- Full diff: https://github.com/llvm/llvm-project/pull/123606.diff 9 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+5) -

[clang] [flang] Reland "[Flang][Driver] Add a flag to control zero initialization" (PR #123606)

2025-01-20 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/123606 Reverts llvm/llvm-project#123330 >From ddb9cc530ec0667c3b4207d13bc6ec26f64241d4 Mon Sep 17 00:00:00 2001 From: Kiran Chandramohan Date: Mon, 20 Jan 2025 12:43:24 + Subject: [PATCH] =?UTF-8?q?Rever

[clang] [Driver] Teach Barmetal toolchain about GCC installation(1/3) (PR #121829)

2025-01-20 Thread Garvit Gupta via cfe-commits
@@ -110,20 +111,93 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +// GCC sysroot here means form sysroot from either --gcc-install-dir, or from +// --gcc-toolchain or if the toolchain is installed alongside

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-20 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub updated https://github.com/llvm/llvm-project/pull/123398 >From 2f909002b89628e2bb83391b2287aa00a7ecaaf3 Mon Sep 17 00:00:00 2001 From: Sergey Kozub Date: Fri, 17 Jan 2025 21:00:49 + Subject: [PATCH] Add support for PTX 8.6 and CUDA 12.6 (12.8) --- clang/inc

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-20 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub edited https://github.com/llvm/llvm-project/pull/123398 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >