[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-11-29 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > If you don't have a `compile_commands.json` file in your workspace's root > directory, the new behaviour that clangd looks for such a file there even for > files outside the workspace directory is basically a no-op. Clangd will > continue using the sub-project `compile_

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-29 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,113 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr bool test_constexpr_valid() { + c

[clang] [X86][Clang] Support constexpr evaluation of cvtpd2ps intrinsics (PR #169980)

2025-11-29 Thread Hamza Hassanain via cfe-commits
HamzaHassanain wrote: Hello. Am I supposed to merge my branch with the main branch (my last 3 commits) or this is not right , and I should redo the PR ? https://github.com/llvm/llvm-project/pull/169980 ___ cfe-commits mailing list [email protected]

[clang] [Clang][X86] Add tests for AVX512 integer comparison intrinsics to be used in constexpr (PR #169452)

2025-11-29 Thread via cfe-commits
https://github.com/shri-acha updated https://github.com/llvm/llvm-project/pull/169452 >From dccf63b4def97b6836384343a724813ce0459cfd Mon Sep 17 00:00:00 2001 From: shri-acha Date: Tue, 25 Nov 2025 10:15:24 +0545 Subject: [PATCH 1/6] add: tests for _mm_cmp*_epi8 --- clang/test/CodeGen/X86/avx5

[clang] [Clang][X86] Add tests for AVX512 integer comparison intrinsics to be used in constexpr (PR #169452)

2025-11-29 Thread via cfe-commits
@@ -646,20 +646,682 @@ __mmask16 test_mm_cmp_epi8_mask(__m128i __a, __m128i __b) { return (__mmask16)_mm_cmp_epi8_mask(__a, __b, 0); } +// cmpeq tests TEST_CONSTEXPR(_mm_cmpeq_epi8_mask( -((__m128i)(__v16qi){5, 3, 7, 2, 9, 3, 7, 1, 5, 4, 8, 2, 9, 6, 7, 5}), -((__m1

[clang] [CUDA] Add device-side kernel launch support (PR #165519)

2025-11-29 Thread via cfe-commits
https://github.com/darkbuck updated https://github.com/llvm/llvm-project/pull/165519 >From 977ba3499496d807f6653ff534df924864d7f47f Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Sat, 18 Oct 2025 19:46:39 -0400 Subject: [PATCH] [CUDA] Add device-side kernel launch support - CUDA's dynamic p

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-11-29 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey updated https://github.com/llvm/llvm-project/pull/165109 >From 5ffce0b318e011a691518a3f92254d9a2d83b28f Mon Sep 17 00:00:00 2001 From: KungFuDonkey Date: Sat, 25 Oct 2025 17:58:42 +0200 Subject: [PATCH 1/9] Added WaveActiveProduct --- clang/include/clang/Basic/

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-win` running on `as-worker-93` while building `clang,compiler-rt,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/169178 >From 8e108fb1f59fd91c412b075598fe06825a9d6f07 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Tue, 25 Nov 2025 22:22:35 +0100 Subject: [PATCH 1/6] Upstream CIR Codegen for shuffle X86 builtins -

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-29 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/169869 >From 0c11c786fc2a5356743a704a3d656205700d248b Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 27 Nov 2025 19:18:31 -0800 Subject: [PATCH 1/3] [Clang] Make __builtin_assume_dereferenceable co

[clang-tools-extra] clangd: Extend index references with constructor calls through forwarding (PR #169742)

2025-11-29 Thread via cfe-commits
https://github.com/timon-ul updated https://github.com/llvm/llvm-project/pull/169742 >From 44ebad6933fccab5bcfc866ee56dd5381da5f452 Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Mon, 10 Nov 2025 10:40:14 +0100 Subject: [PATCH 1/9] clangd: make forwarding heuristic available for more locati

[clang] [X86][Clang] Support constexpr evaluation of cvtpd2ps intrinsics (PR #169980)

2025-11-29 Thread Hamza Hassanain via cfe-commits
https://github.com/HamzaHassanain updated https://github.com/llvm/llvm-project/pull/169980 >From 29e2794651c50ccf60a28c2e08639913a68cd71c Mon Sep 17 00:00:00 2001 From: Hamza Hassanain Date: Wed, 26 Nov 2025 17:05:45 +0200 Subject: [PATCH 1/6] add tests that should pass: clang/test/SemaCXX/con

[clang] [X86][Clang] Support constexpr evaluation of cvtpd2ps intrinsics (PR #169980)

2025-11-29 Thread Hamza Hassanain via cfe-commits
https://github.com/HamzaHassanain updated https://github.com/llvm/llvm-project/pull/169980 >From 29e2794651c50ccf60a28c2e08639913a68cd71c Mon Sep 17 00:00:00 2001 From: Hamza Hassanain Date: Wed, 26 Nov 2025 17:05:45 +0200 Subject: [PATCH 1/6] add tests that should pass: clang/test/SemaCXX/con

[clang] [CIR] Upstream ThreeWayCmpOp (PR #169963)

2025-11-29 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85544 tests passed * 743 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CIR/CodeGen/three-way-cmp.cpp ``` Exit Code: 2 Command Output (stdout): -- # RUN: at line 1 /home/

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: I think you're ok. A good quick check is to see if the buildbot went green again in the following build. Some of the bots can be intermittent. https://github.com/llvm/llvm-project/pull/169957 ___ cfe-commits mailing list cfe-commits@lis

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-11-29 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 166456 tests passed * 2873 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### LLVM LLVM.CodeGen/SPIRV/hlsl-intrinsics/WaveActiveProduct.ll ``` Exit Code: 1 Command Output (stdout): -- #

[clang] [CIR] Upstream ThreeWayCmpOp (PR #169963)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169963 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream three way compare op (PR #169963)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/169963 From 32285f45356c6d4d1986e0ee144b6821e992f4c3 Mon Sep 17 00:00:00 2001 From: hhuebner Date: Fri, 28 Nov 2025 23:41:30 +0100 Subject: [PATCH 1/3] [CIR] Upstream three way compare op --- .../include/clang

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow GFNI intrinsics to be used in constexpr (PR #169619)

2025-11-29 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: attaching the fuzz results for GFNI inttrinsics [report.md](https://github.com/user-attachments/files/23835716/report.md) https://github.com/llvm/llvm-project/pull/169619 ___ cfe-commits mailing list [email protected] https:

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Islam Imad via cfe-commits
Islam-Imad wrote: Hi @RKSimon , I hope you're doing well. I noticed the buildbot reported some failures after my PR was merged. Could you help me understand how these are related to my changes? Thank you for your time! https://github.com/llvm/llvm-project/pull/169957

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

2025-11-29 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey updated https://github.com/llvm/llvm-project/pull/165109 >From 5ffce0b318e011a691518a3f92254d9a2d83b28f Mon Sep 17 00:00:00 2001 From: KungFuDonkey Date: Sat, 25 Oct 2025 17:58:42 +0200 Subject: [PATCH 1/8] Added WaveActiveProduct --- clang/include/clang/Basic/

[clang] [CIR][X86] Implement lowering for AVX512 mask builtins (PR #169774)

2025-11-29 Thread via cfe-commits
github-actions[bot] wrote: @GeneraluseAI Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a b

[clang] [CIR][X86] Implement lowering for AVX512 mask builtins (PR #169774)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner closed https://github.com/llvm/llvm-project/pull/169774 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 435bafd - [CIR][X86] Implement lowering for AVX512 mask builtins (#169774)

2025-11-29 Thread via cfe-commits
Author: AIT Date: 2025-11-29T20:22:25+01:00 New Revision: 435bafd0d534c783f0610afb86ed20d34fa7 URL: https://github.com/llvm/llvm-project/commit/435bafd0d534c783f0610afb86ed20d34fa7 DIFF: https://github.com/llvm/llvm-project/commit/435bafd0d534c783f0610afb86ed20d34fa7.diff LOG: [CIR

[clang] [CIR][X86] Implement lowering for AVX512 mask builtins (PR #169774)

2025-11-29 Thread via cfe-commits
GeneraluseAI wrote: @HendrikHuebner Hi, the CI has passed, can you merge this pr please? https://github.com/llvm/llvm-project/pull/169774 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla` running on `linaro-g3-02` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/13061 Here is the relevant piece of the bui

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-solaris11-sparcv9` running on `solaris11-sparcv9` while building `clang,compiler-rt,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/13/builds/10834 Here is the

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 Thread Duncan Ogilvie via cfe-commits
mrexodia wrote: - Apparently there was a previous patch for this that never got merged: https://reviews.llvm.org/D130863 - Discussion thread that went nowhere: https://discourse.llvm.org/t/clangd-feature-request-automatically-generate-gitignore-in-the-cache-directory/87390 - Cargo is discussing

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread via cfe-commits
github-actions[bot] wrote: @Islam-Imad Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/169957 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 246528c - [clang][bytecode] Unify elementwise integer builtins using callback pattern (#169957)

2025-11-29 Thread via cfe-commits
Author: Islam Imad Date: 2025-11-29T17:38:17Z New Revision: 246528cb3ad67ededee5f076fd1ef501af97f294 URL: https://github.com/llvm/llvm-project/commit/246528cb3ad67ededee5f076fd1ef501af97f294 DIFF: https://github.com/llvm/llvm-project/commit/246528cb3ad67ededee5f076fd1ef501af97f294.diff LOG: [c

[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)

2025-11-29 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/170004 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)

2025-11-29 Thread via cfe-commits
zeyi2 wrote: This modification causes 5 cases to fail: ``` Clang Tools :: clang-tidy/checkers/bugprone/dynamic-static-initializers.hpp Clang Tools :: clang-tidy/checkers/bugprone/suspicious-include.cpp Clang Tools :: clang-tidy/checkers/misc/use-anonymous-

[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)

2025-11-29 Thread via cfe-commits
@@ -43,21 +43,21 @@ void ClangTidyProfiling::printUserFriendlyTable(llvm::raw_ostream &OS, } void ClangTidyProfiling::printAsJSON(llvm::raw_ostream &OS, - llvm::TimerGroup &TG) { + llvm::TimerGroup &TG, +

[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)

2025-11-29 Thread via cfe-commits
https://github.com/zeyi2 converted_to_draft https://github.com/llvm/llvm-project/pull/170004 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)

2025-11-29 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/170004 This patch is currently work in progress. Currently `ClangTidyDiagnosticConsumer` is not fixed. Closes [#156151](https://github.com/llvm/llvm-project/issues/156151) >From 026c03ac0ceb4a94c00f97535cc7f2f64d51ab84

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/169957 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/169957 >From a9630d7ab31a6312b6940e22b0097b0e544e2512 Mon Sep 17 00:00:00 2001 From: Islam-Imad Date: Fri, 28 Nov 2025 22:22:44 +0200 Subject: [PATCH] [clang][bytecode] Unify elementwise integer builtins using callbac

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers! https://github.com/llvm/llvm-project/pull/169957 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] Support constexpr evaluation of cvtpd2ps intrinsics (PR #169980)

2025-11-29 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 origin/main HEAD --extensions h,cpp -- clang/test/SemaCXX/constexpr-x86-intrinsics-pd

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 Thread Duncan Ogilvie via cfe-commits
https://github.com/mrexodia updated https://github.com/llvm/llvm-project/pull/170003 >From 7c74cf4d11949b4de8d575104e57ffad4b9854c2 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 29 Nov 2025 17:07:37 +0100 Subject: [PATCH] Add .gitignore file in .cache/clangd/index --- .../clangd/in

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 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 origin/main HEAD --extensions cpp -- clang-tools-extra/clangd/index/BackgroundIndexSt

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Duncan Ogilvie (mrexodia) Changes This solves a common issue where users have to manually add the `.cache/clangd/index/` folder to their `.gitignore`. I got this idea from [ruff](https://github.com/astral-sh/ruff), which creates `.ruff_

[clang-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 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-tools-extra] Add .gitignore file in .cache/clangd/index (PR #170003)

2025-11-29 Thread Duncan Ogilvie via cfe-commits
https://github.com/mrexodia created https://github.com/llvm/llvm-project/pull/170003 This solves a common issue where users have to manually add the `.cache/clangd/index/` folder to their `.gitignore`. I got this idea from [ruff](https://github.com/astral-sh/ruff), which creates `.ruff_cache/

[clang] [clang][NFC] Declare `CXXBasePaths::isAmbiguous` as `const` (PR #169944)

2025-11-29 Thread David Stone via cfe-commits
https://github.com/davidstone closed https://github.com/llvm/llvm-project/pull/169944 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8462cff - [clang][NFC] Declare `CXXBasePaths::isAmbiguous` as `const` (#169944)

2025-11-29 Thread via cfe-commits
Author: David Stone Date: 2025-11-29T09:48:44-07:00 New Revision: 8462cff40daf40e58d705f5d86d4e91ef6e6294c URL: https://github.com/llvm/llvm-project/commit/8462cff40daf40e58d705f5d86d4e91ef6e6294c DIFF: https://github.com/llvm/llvm-project/commit/8462cff40daf40e58d705f5d86d4e91ef6e6294c.diff L

[clang] [CIR] Only emit FP math intrinsics when precision/errno settings allow it (PR #169424)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/169424 From 3f8d11ad75c907a767f4f2005db0d7afbd4295f0 Mon Sep 17 00:00:00 2001 From: hhuebner Date: Tue, 25 Nov 2025 00:26:58 +0100 Subject: [PATCH 1/6] [CIR] Move FP math intrinsics to separate function and add

[clang] [clang][NFC] Use range-based for loop and algorithms in `SemaDeclCXX.cpp` (PR #169938)

2025-11-29 Thread Yanzuo Liu via cfe-commits
@@ -2547,8 +2547,8 @@ static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl, diag::ext_constexpr_function_never_constant_expr) << isa(Dcl) << Dcl->isConsteval() << Dcl->getNameInfo().getSourceRange(); -for (size_t I

[clang] [clang][NFC] Use range-based for loop and algorithms in `SemaDeclCXX.cpp` (PR #169938)

2025-11-29 Thread Yanzuo Liu via cfe-commits
@@ -17969,13 +17949,9 @@ DeclResult Sema::ActOnTemplatedFriendTag( if (Invalid) return true; - bool isAllExplicitSpecializations = true; - for (unsigned I = TempParamLists.size(); I-- > 0; ) { -if (TempParamLists[I]->size()) { - isAllExplicitSpecializations = fal

[clang] [CIR] Only emit FP math intrinsics when precision/errno settings allow it (PR #169424)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/169424 From 3f8d11ad75c907a767f4f2005db0d7afbd4295f0 Mon Sep 17 00:00:00 2001 From: hhuebner Date: Tue, 25 Nov 2025 00:26:58 +0100 Subject: [PATCH 1/5] [CIR] Move FP math intrinsics to separate function and add

[clang] [CIR] Only emit FP math intrinsics when precision/errno settings allow it (PR #169424)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/169424 From 3f8d11ad75c907a767f4f2005db0d7afbd4295f0 Mon Sep 17 00:00:00 2001 From: hhuebner Date: Tue, 25 Nov 2025 00:26:58 +0100 Subject: [PATCH 1/3] [CIR] Move FP math intrinsics to separate function and add

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-29 Thread Timm Baeder via cfe-commits
@@ -2215,6 +2215,50 @@ static unsigned computePointerOffset(const ASTContext &ASTCtx, return Result; } +/// __builtin_assume_dereferenceable(Ptr, Size) +static bool interp__builtin_assume_dereferenceable(InterpState &S, CodePtr OpPC, +

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-29 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr int arr[10] = {}; + +constexpr bool

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/169957 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lldb] [clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontend (PR #165277)

2025-11-29 Thread via cfe-commits
koachan wrote: Ah, noted. I'll just recreate the entire dir then, thanks! https://github.com/llvm/llvm-project/pull/165277 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lldb] [clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontend (PR #165277)

2025-11-29 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: The issue went away after doing a clean build (https://github.com/llvm/llvm-project/pull/169397#issuecomment-3578567161). Make sure to delete the entire build directory because `cmake --build --target clean` does not remove `/ninja_deps`. I am not sure whether deleting only

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang,compiler-rt,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/19621 Here is th

[clang] [clang-tools-extra] [flang] [lldb] [clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontend (PR #165277)

2025-11-29 Thread via cfe-commits
koachan wrote: > This PR introduced a dependency cycle: > > ``` > ninja: error: dependency cycle: lib/libclangDriver.so.22.0git -> > lib/libclangFrontend.so.22.0git -> lib/libclangDriver.so.22.0git > ``` Hello, have this been fixed? I'm still experiencing it on local build with `-DBUILD_SHARE

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/169178 >From 8e108fb1f59fd91c412b075598fe06825a9d6f07 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Tue, 25 Nov 2025 22:22:35 +0100 Subject: [PATCH 1/6] Upstream CIR Codegen for shuffle X86 builtins -

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/169178 >From 8e108fb1f59fd91c412b075598fe06825a9d6f07 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Tue, 25 Nov 2025 22:22:35 +0100 Subject: [PATCH 1/5] Upstream CIR Codegen for shuffle X86 builtins -

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner approved this pull request. LGMT % nits :) https://github.com/llvm/llvm-project/pull/169178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -73,4 +73,76 @@ __m256i test_mm256_undefined_si256(void) { // OGCG-LABEL: test_mm256_undefined_si256 // OGCG: ret <4 x i64> zeroinitializer return _mm256_undefined_si256(); +} + +__m256d test_mm256_shuffle_pd(__m256d A, __m256d B) { + // CIR-LABEL: test_mm256_shuffle_

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -77,3 +77,51 @@ __m512i test_mm512_undefined_epi32(void) { // OGCG: ret <8 x i64> zeroinitializer return _mm512_undefined_epi32(); } + +__m512d test_mm512_shuffle_pd(__m512d __M, __m512d __V) { + // CIR-LABEL: test_mm512_shuffle_pd + // CIR: %{{.*}} = cir.vec.shuffle(%

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169993 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -2344,25 +2344,29 @@ mlir::Value ScalarExprEmitter::VisitUnaryExprOrTypeTraitExpr( } else { // C99 6.5.3.4p2: If the argument is an expression of type // VLA, it is evaluated. - cgf.getCIRGenModule().errorNYI( - e->getSource

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169993 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner approved this pull request. LGMT % comment :) https://github.com/llvm/llvm-project/pull/169993 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for vec_set x86 builtin (PR #169265)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/169265 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for vec_set x86 builtin (PR #169265)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -206,11 +206,23 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_vec_set_v32qi: case X86::BI__builtin_ia32_vec_set_v16hi: case X86::BI__builtin_ia32_vec_set_v8si: - case X86::BI__builtin_ia32_vec_set_v4di: -cgm.erro

[clang] [CIR] Upstream CIR codegen for vec_set x86 builtin (PR #169265)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner approved this pull request. LGTM aside from the one comment https://github.com/llvm/llvm-project/pull/169265 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -77,3 +77,27 @@ __m512i test_mm512_undefined_epi32(void) { // OGCG: ret <8 x i64> zeroinitializer return _mm512_undefined_epi32(); } + +__mmask16 test_mm512_kunpackb(__mmask16 A, __mmask16 B) { + // CIR-LABEL: test_mm512_kunpackb + // CIR: cir.call @{{.*}}kunpackb{{.*}

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -77,3 +77,27 @@ __m512i test_mm512_undefined_epi32(void) { // OGCG: ret <8 x i64> zeroinitializer return _mm512_undefined_epi32(); } + +__mmask16 test_mm512_kunpackb(__mmask16 A, __mmask16 B) { + // CIR-LABEL: test_mm512_kunpackb + // CIR: cir.call @{{.*}}kunpackb{{.*}

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -211,6 +211,44 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, std::string("unimplemented X86 builtin call: ") + getContext().BuiltinInfo.getName(builtinID)); return {}; + + case X86::BI__builtin_ia32_kunpckdi

[clang] [X86][Clang] Support constexpr evaluation of cvtpd2ps intrinsics (PR #169980)

2025-11-29 Thread Hamza Hassanain via cfe-commits
https://github.com/HamzaHassanain updated https://github.com/llvm/llvm-project/pull/169980 >From 29e2794651c50ccf60a28c2e08639913a68cd71c Mon Sep 17 00:00:00 2001 From: Hamza Hassanain Date: Wed, 26 Nov 2025 17:05:45 +0200 Subject: [PATCH 1/6] add tests that should pass: clang/test/SemaCXX/con

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-29 Thread via cfe-commits
https://github.com/koachan closed https://github.com/llvm/llvm-project/pull/162226 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3e16aef - [SPARC] Properly handle CC for long double on sparc32 (#162226)

2025-11-29 Thread via cfe-commits
Author: Koakuma Date: 2025-11-29T21:30:39+07:00 New Revision: 3e16aef2a650a8c2da4ebd5c58c6a9e261361828 URL: https://github.com/llvm/llvm-project/commit/3e16aef2a650a8c2da4ebd5c58c6a9e261361828 DIFF: https://github.com/llvm/llvm-project/commit/3e16aef2a650a8c2da4ebd5c58c6a9e261361828.diff LOG:

[clang] [CIR] Upstream gather instrinsics (PR #169157)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -480,7 +480,93 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_gathersiv8di: case X86::BI__builtin_ia32_gathersiv16si: case X86::BI__builtin_ia32_gatherdiv8di: - case X86::BI__builtin_ia32_gatherdiv16si: + case X86::B

[clang] [CIR] Upstream gather instrinsics (PR #169157)

2025-11-29 Thread Hendrik Hübner via cfe-commits
@@ -480,7 +480,93 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, case X86::BI__builtin_ia32_gathersiv8di: case X86::BI__builtin_ia32_gathersiv16si: case X86::BI__builtin_ia32_gatherdiv8di: - case X86::BI__builtin_ia32_gatherdiv16si: + case X86::B

[clang] [CIR][X86] Implement lowering for AVX512 mask builtins (PR #169774)

2025-11-29 Thread Hendrik Hübner via cfe-commits
HendrikHuebner wrote: You can ping me once the CI has passed. https://github.com/llvm/llvm-project/pull/169774 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Implement lowering for AVX512 mask builtins (PR #169774)

2025-11-29 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/169774 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Thibault Monnier via cfe-commits
Thibault-Monnier wrote: @andykaylor, @HendrikHuebner I am done. https://github.com/llvm/llvm-project/pull/169178 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream vec shuffle builtins in CIR codegen (PR #169178)

2025-11-29 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/169178 >From 8e108fb1f59fd91c412b075598fe06825a9d6f07 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Tue, 25 Nov 2025 22:22:35 +0100 Subject: [PATCH 1/4] Upstream CIR Codegen for shuffle X86 builtins -

[clang] [clang][NFC] Declare `CXXBasePaths::isAmbiguous` as `const` (PR #169944)

2025-11-29 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/169944 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Added partial support for compiling C++20 modules and header-units without scanning. (PR #147682)

2025-11-29 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 origin/main HEAD --extensions h,cpp,hpp -- clang/include/clang/IPC2978/IPCManagerBS.h

[clang] [llvm] Added partial support for compiling C++20 modules and header-units without scanning. (PR #147682)

2025-11-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD clang/lib/IPC2978/setup.py `` :warning: The reproduction instru

[clang] [clang-format] Add `SpaceInComments` option to control spacing around `/* */` (PR #162105)

2025-11-29 Thread via cfe-commits
Men-cotton wrote: @owenca Thanks for the clarification. To provide a bit of context on how this evolved into a struct: I initially split out inline parameter comments from regular block comments based on [earlier feedback](https://github.com/llvm/llvm-project/pull/162105#discussion_r241457820

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream SizeOf support for VariableArrayType --- Full diff: https://github.com/llvm/llvm-project/pull/169993.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp (+17-13) - (

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream SizeOf support for VariableArrayType --- Full diff: https://github.com/llvm/llvm-project/pull/169993.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp (+17-13) -

[clang] [CIR] Upstream SizeOf for VariableArrayType (PR #169993)

2025-11-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/169993 Upstream SizeOf support for VariableArrayType >From 2bb8f1987773351843abcb1b73d7abe8efc1 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Sat, 29 Nov 2025 13:38:41 +0100 Subject: [PATCH] [CIR] Upstream

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Looks like the goto approach for fixing this to me. Can add tests if we agree with the same ! https://github.com/llvm/llvm-project/pull/169989 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mai

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/169989 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
@@ -120,6 +120,17 @@ std::unique_ptr IncrementalAction::GenModule() { return nullptr; } +void IncrementalAction::discardCurrentCodeGenModule() { + if (CodeGenerator *CG = getCodeGen()) { +if (auto *CurM = CG->GetModule()) { + llvm::LLVMContext &Ctx = CurM->getCont

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 deleted https://github.com/llvm/llvm-project/pull/169989 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
@@ -120,6 +120,17 @@ std::unique_ptr IncrementalAction::GenModule() { return nullptr; } +void IncrementalAction::discardCurrentCodeGenModule() { + if (CodeGenerator *CG = getCodeGen()) { +if (auto *CurM = CG->GetModule()) { + llvm::LLVMContext &Ctx = CurM->getCont

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
@@ -74,6 +74,8 @@ class IncrementalAction : public WrapperFrontendAction { /// Generate an LLVM module for the most recent parsed input. std::unique_ptr GenModule(); + + void discardCurrentCodeGenModule(); anutosh491 wrote: Can add a comment explaining t

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: So this fix discards the current CodeGen module whenever `Diags.hasErrorOccurred()`, **so IR from a failing input is dropped and cannot leak into the next cell**. After the patch in debug mode we can see the following ! ``` anutosh491@vv-nuc:/build/anutosh491/llvm-project/bu

[clang] [clang-repl] Drop CodeGen module when an input has parse errors (PR #169989)

2025-11-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anutosh Bhat (anutosh491) Changes We can see the following while running clang-repl in C mode ``` anutosh491@vv-nuc:/build/anutosh491/llvm-project/build/bin$ ./clang-repl --Xcc=-x --Xcc=c --Xcc=-std=c23 clang-repl> printf("hi\n"); In file

  1   2   >