[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -51,6 +52,9 @@ namespace clang { namespace clangd { + +extern llvm::cl::opt ExperimentalModulesSupport; ChuanqiXu9 wrote: Done https://github.com/llvm/llvm-project/pull/66462 ___ cfe-commits mailing list cfe-com

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,355 @@ +//===--- PrerequisiteModulesTests.cpp ---*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifi

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,355 @@ +//===--- PrerequisiteModulesTests.cpp ---*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifi

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,355 @@ +//===--- PrerequisiteModulesTests.cpp ---*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifi

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,355 @@ +//===--- PrerequisiteModulesTests.cpp ---*- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifi

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/97681 >From f9d5cc074e4b65a92703bd09e62696a29fed1237 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 4 Jul 2024 01:31:13 -0400 Subject: [PATCH 1/7] [clang-doc] add nested naemspace --- .../test/clang-doc/name

[clang] [llvm] [Inliner] Propagate more attributes to params when inlining (PR #91101)

2024-07-15 Thread via cfe-commits
goldsteinn wrote: ping https://github.com/llvm/llvm-project/pull/91101 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][FMV] Support target_clones (PR #85786)

2024-07-15 Thread Piyou Chen via cfe-commits
BeMg wrote: > > The proposal can be found at the > > [riscv-non-isa/riscv-c-api-doc#48](https://github.com/riscv-non-isa/riscv-c-api-doc/pull/48). > > Please put this in the PR description Updated PR description https://github.com/llvm/llvm-project/pull/85786 _

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk closed https://github.com/llvm/llvm-project/pull/98891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 58c7df9 - [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (#98891)

2024-07-15 Thread via cfe-commits
Author: Yeting Kuo Date: 2024-07-16T14:38:08+08:00 New Revision: 58c7df90f838251c3682abfe91abadaa68ff6a01 URL: https://github.com/llvm/llvm-project/commit/58c7df90f838251c3682abfe91abadaa68ff6a01 DIFF: https://github.com/llvm/llvm-project/commit/58c7df90f838251c3682abfe91abadaa68ff6a01.diff LO

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

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

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

2024-07-15 Thread via cfe-commits
@@ -512,24 +512,31 @@ namespace LambdaInDefaultMemberInitializer { } #if __cplusplus >= 201703L -namespace GH35052 { -template constexpr int func(F f) { - if constexpr (f(1UL)) { -return 1; +namespace local_recursive_lambda { + +template struct recursive_lambda { + t

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

2024-07-15 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. This seems like the best course of action for now... sorry! Thanks for the PR and the work on these issues https://github.com/llvm/llvm-project/pull/98991 ___ cfe-commits mailing list cfe-commits@

[clang] [clang] Limit alignment for emitted vectors (PR #98629)

2024-07-15 Thread Mariya Podchishchaeva via cfe-commits
@@ -133,6 +133,7 @@ struct TransferrableTargetInfo { unsigned short SuitableAlign; unsigned short NewAlign; unsigned MaxVectorAlign; Fznamznon wrote: Because `MaxVectorAlign` is set to a smaller value for some x86 targets - https://github.com/llvm/llvm-

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-15 Thread via cfe-commits
cor3ntin wrote: > Regarding issues associated with > https://github.com/llvm/llvm-project/pull/95660, I realized they are actually > part of a bigger problem in constant evaluation. As discussed in > https://github.com/llvm/llvm-project/issues/59966, it might be beneficial to > implement on-d

[clang] d8f0611 - [clang][Interp] Allow ltor casts for null pointers

2024-07-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-16T08:28:51+02:00 New Revision: d8f0611acc2658ccc54d985044aa115716c6ad34 URL: https://github.com/llvm/llvm-project/commit/d8f0611acc2658ccc54d985044aa115716c6ad34 DIFF: https://github.com/llvm/llvm-project/commit/d8f0611acc2658ccc54d985044aa115716c6ad34.diff LO

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/97679 >From b5e0335199541225a1b0eb5eaf661cd4df55dbd7 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 4 Jul 2024 01:14:11 -0400 Subject: [PATCH 1/6] [clang-doc] add enum test --- clang-tools-extra/test/clang-d

[clang] [test] Precommit tests for PR96025, NFC (PR #98704)

2024-07-15 Thread via cfe-commits
https://github.com/vfdff updated https://github.com/llvm/llvm-project/pull/98704 >From 1b8503202474c15aa46fc4cc9151003a8d3ca336 Mon Sep 17 00:00:00 2001 From: zhongyunde 00443407 Date: Fri, 12 Jul 2024 21:09:46 -0400 Subject: [PATCH 1/2] [test] Precommit tests for PR96025, NFC --- clang/test/C

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2024-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: Bitfield load and store operations should be done using the same offset/size we normally use to access the bitfield; unconditionally using byte load/store operations will impair optimizations/performance. I guess this might not be possible when unio

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2024-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/75371 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2024-07-15 Thread Eli Friedman via cfe-commits
@@ -2538,6 +2541,311 @@ static RValue EmitHipStdParUnsupportedBuiltin(CodeGenFunction *CGF, return RValue::get(CGF->Builder.CreateCall(UBF, Args)); } +namespace { + +struct PaddingClearer { + PaddingClearer(CodeGenFunction &F) + : CGF(F), CharWidth(CGF.getContext().ge

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2024-07-15 Thread Eli Friedman via cfe-commits
@@ -2538,6 +2541,311 @@ static RValue EmitHipStdParUnsupportedBuiltin(CodeGenFunction *CGF, return RValue::get(CGF->Builder.CreateCall(UBF, Args)); } +namespace { + +struct PaddingClearer { + PaddingClearer(CodeGenFunction &F) + : CGF(F), CharWidth(CGF.getContext().ge

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/98891 >From be805db6c259d255b2ad3f0811bd1428bc8628c5 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Mon, 15 Jul 2024 19:51:55 -0700 Subject: [PATCH 1/2] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 Both of them

[clang] ff96ad8 - [clang][Interp][NFC] Add Pointer::isDereferencable()

2024-07-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-16T07:24:08+02:00 New Revision: ff96ad84f52022af295d11749f106480e7292a89 URL: https://github.com/llvm/llvm-project/commit/ff96ad84f52022af295d11749f106480e7292a89 DIFF: https://github.com/llvm/llvm-project/commit/ff96ad84f52022af295d11749f106480e7292a89.diff LO

[clang] [clang][dataflow] reland #96766 with fix (PR #98896)

2024-07-15 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/98896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 655c223 - [clang][dataflow] reland #96766 with fix (#98896)

2024-07-15 Thread via cfe-commits
Author: martinboehme Date: 2024-07-16T07:18:04+02:00 New Revision: 655c2233b6f81cd981d87e461ea202c563e90490 URL: https://github.com/llvm/llvm-project/commit/655c2233b6f81cd981d87e461ea202c563e90490 DIFF: https://github.com/llvm/llvm-project/commit/655c2233b6f81cd981d87e461ea202c563e90490.diff

[clang] [clang][dataflow] reland #96766 with fix (PR #98896)

2024-07-15 Thread via cfe-commits
https://github.com/martinboehme edited https://github.com/llvm/llvm-project/pull/98896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

2024-07-15 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/98991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

2024-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Unfortunately, this has caused a regression in DeduceReturnType(), which causes a problem in that some of the local recursive lambdas are getting incorrectly rejected. This reverts commit 5548ea34341e9d0ae6

[clang] Revert "[Clang] Instantiate local constexpr functions eagerly (#95660)" (PR #98991)

2024-07-15 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/98991 Unfortunately, this has caused a regression in DeduceReturnType(), which causes a problem in that some of the local recursive lambdas are getting incorrectly rejected. This reverts commit 5548ea34341e9d0ae64571

[clang] [TBAA] Emit int TBAA metadata on FP math libcall expf (PR #96025)

2024-07-15 Thread via cfe-commits
@@ -0,0 +1,43 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// The test may fail as time out on windows +// REQUIRES: system-linux + +// RUN: %clang -S -O3 -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefixes=CHECK,

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-15 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Finally, I decide to revert #95660 and close this PR for now. Regarding issues associated with #95660, I realized they are actually part of a bigger problem in constant evaluation. As discussed in #59966, it might be beneficial to implement on-demand template instantiation for c

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-15 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/98758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [test] Check whether timeout exists in the Windows operating system (PR #98990)

2024-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Allen (vfdff) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/98990.diff 1 Files Affected: - (added) clang/test/CodeGen/math-libcalls-tbaa.cpp (+33) ``diff diff --git a/clang/test/CodeGen/math-libcalls-tbaa.

[clang] [test] Check whether timeout exists in the Windows operating system (PR #98990)

2024-07-15 Thread via cfe-commits
https://github.com/vfdff created https://github.com/llvm/llvm-project/pull/98990 None >From 3d22c4c31d360a45de83593e25a9352c16845414 Mon Sep 17 00:00:00 2001 From: Zhongyunde Date: Tue, 16 Jul 2024 13:02:38 +0800 Subject: [PATCH] [test] Check whether timeout exists in the Windows operating sys

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-07-15 Thread Brian Cain via cfe-commits
@@ -0,0 +1,25 @@ + +set(CMAKE_EXE_LINKER_FLAGS "-lclang_rt.builtins-hexagon -nostdlib" CACHE STRING "") +set(CMAKE_SHARED_LINKER_FLAGS "-lclang_rt.builtins-hexagon -nostdlib" CACHE STRING "") androm3da wrote: The first failure encountered when I remove these is

[clang] [lldb] [clang][lldb] Don't assert structure layout correctness for layouts provided by LLDB (PR #93809)

2024-07-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/93809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][lldb] Don't assert structure layout correctness for layouts provided by LLDB (PR #93809)

2024-07-15 Thread Michael Buch via cfe-commits
Michael137 wrote: Closing in favour of https://github.com/llvm/llvm-project/pull/96422 https://github.com/llvm/llvm-project/pull/93809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-15 Thread Owen Pan via cfe-commits
owenca wrote: It seems that this patch implements the new option without regard to the relative precedence of the binary operators: ``` $ cat bar.cc f1 = f2 * f3 + f4 / f5 - f6; $ clang-format -style='{BinPa

[clang] [clang][CGRecordLayout] Remove dependency on isZeroSize (PR #96422)

2024-07-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/96422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4497ec2 - [clang][CGRecordLayout] Remove dependency on isZeroSize (#96422)

2024-07-15 Thread via cfe-commits
Author: Michael Buch Date: 2024-07-16T04:59:51+01:00 New Revision: 4497ec293a6e745be817dc88027169bd5e4f7246 URL: https://github.com/llvm/llvm-project/commit/4497ec293a6e745be817dc88027169bd5e4f7246 DIFF: https://github.com/llvm/llvm-project/commit/4497ec293a6e745be817dc88027169bd5e4f7246.diff

[clang] [clang] Limit alignment for emitted vectors (PR #98629)

2024-07-15 Thread Phoebe Wang via cfe-commits
@@ -133,6 +133,7 @@ struct TransferrableTargetInfo { unsigned short SuitableAlign; unsigned short NewAlign; unsigned MaxVectorAlign; phoebewang wrote: Right, sorry for the misleading. We still need to turn it to sret when vector size > 2^14. Then why yo

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
yetingk wrote: > > Since both of them should be experimental now, the pr is only change the > > version of them now. Hence, I didn't change `llvm/docs/ReleaseNotes.rst`. > > Still need to note the version number change Updated and rebase to fix conflicts. https://github.com/llvm/llvm-project

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/98891 >From be805db6c259d255b2ad3f0811bd1428bc8628c5 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Mon, 15 Jul 2024 19:51:55 -0700 Subject: [PATCH 1/2] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 Both of them

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/98891 >From 98002027bc0a1d4b9bb3d11f7a9bbb5717a81b49 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Mon, 15 Jul 2024 19:51:55 -0700 Subject: [PATCH 1/2] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 Both of them

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,340 @@ +//===- ModulesBuilder.cpp *- C++-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,347 @@ +//===- ModulesBuilder.cpp *- C++-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,340 @@ +//===- ModulesBuilder.cpp *- C++-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -146,6 +146,8 @@ class Checker { ClangdLSPServer::Options Opts; // from buildCommand tooling::CompileCommand Cmd; + std::unique_ptr BaseCDB; + std::unique_ptr CDB; ChuanqiXu9 wrote: Done https://github.com/llvm/llvm-project/pull/66462 _

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,110 @@ +//===- ModulesBuilder.h --*- C++-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang] Fix Microsoft ABI inheritance model when member pointer is used in a base specifier (PR #91990)

2024-07-15 Thread Max Winkler via cfe-commits
MaxEW707 wrote: @Endilll Wondering if this PR gets the green check from you. I would like to get this merged before the clang-19 branch is created and just want to get the green light from a more senior member of the community before merging. Thanks :). https://github.com/llvm/llvm-project/pu

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64be-linux-test-suite` running on `ppc64be-clang-test-suite` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/176/buil

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
yetingk wrote: Since both of them should be experimental now, the latest commit I didn't remove the experimental for them. Hence, I didn't change `llvm/docs/ReleaseNotes.rst`. https://github.com/llvm/llvm-project/pull/98891 ___ cfe-commits mailing li

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk edited https://github.com/llvm/llvm-project/pull/98891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk edited https://github.com/llvm/llvm-project/pull/98891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISC-V] Remove experimental for Zicfiss/Zicfilp. (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/98891 >From 98002027bc0a1d4b9bb3d11f7a9bbb5717a81b49 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Mon, 15 Jul 2024 19:51:55 -0700 Subject: [PATCH] [RISCV] Bump the version of Zicfilp/Zicfiss to 1.0 Both of them are

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > @Arthapz @guijiyang thanks for reporting. But could you try to give > > feedbacks to that repo instead of this page. I feel this page it too long > > now. (My browser needs seconds to load it). And this page is indeed not a > > good place to track that. > > @guijiyang it

[clang] d82c75e - [X86][Driver] Try to fix the test msse2avx.c on non-X86 target

2024-07-15 Thread Shengchen Kan via cfe-commits
Author: Shengchen Kan Date: 2024-07-16T10:59:12+08:00 New Revision: d82c75ebc0483971b768dd5ff077789262ffd9c0 URL: https://github.com/llvm/llvm-project/commit/d82c75ebc0483971b768dd5ff077789262ffd9c0 DIFF: https://github.com/llvm/llvm-project/commit/d82c75ebc0483971b768dd5ff077789262ffd9c0.diff

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread via cfe-commits
guijiyang wrote: > @Arthapz @guijiyang thanks for reporting. But could you try to give feedbacks > to that repo instead of this page. I feel this page it too long now. (My > browser needs seconds to load it). And this page is indeed not a good place > to track that. > > @guijiyang it looks li

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 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-04` while building `clang,llvm` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/869 Here is the relevant piece of the b

[clang] f30c09e - [clang][Interp][NFC] Use a templated conversion operator

2024-07-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-16T04:49:05+02:00 New Revision: f30c09e2d3107e117faf8311c6d8642fa95680af URL: https://github.com/llvm/llvm-project/commit/f30c09e2d3107e117faf8311c6d8642fa95680af DIFF: https://github.com/llvm/llvm-project/commit/f30c09e2d3107e117faf8311c6d8642fa95680af.diff LO

[clang] [clang][driver] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)

2024-07-15 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 47f8b85b3d81ed3578cb3b8f80d69ce307e0c883 8daa27a9d45b85a55f180e5f84ae9b7fa8c11572 --e

[clang] [llvm] [RISCV][FMV] Support target_clones (PR #85786)

2024-07-15 Thread Piyou Chen via cfe-commits
https://github.com/BeMg edited https://github.com/llvm/llvm-project/pull/85786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)

2024-07-15 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Thanks. Can you add a test for this under (clang/test/Driver) and add new subsection for it in StandardCPlusPlusModules.rst ? https://github.com/llvm/llvm-project/pull/98761 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 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,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/1438 Here is the relevant

[clang] [Doc] Update documentation for no-transitive-change (PR #96453)

2024-07-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I am going to land this in later of the week if no objections come. As 19.x is going to be branched. https://github.com/llvm/llvm-project/pull/96453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [llvm] [RISC-V] Remove experimental for Zicfiss/Zicfilp. (PR #98891)

2024-07-15 Thread Yeting Kuo via cfe-commits
yetingk wrote: > AFAIK LLD doesn't support Zicfilp yet, which I feel is a prerequisite to > marking it as non-experimental I think we also not support Zicfiss to compiler-rt/libunwind, I think both of them are still experimental now. https://github.com/llvm/llvm-project/pull/98891 ___

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 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,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/1430 Here is the relevant pie

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-15 Thread Owen Pan via cfe-commits
owenca wrote: This patch doesn't seem to work with the last two examples in #79487: ``` $ cat foo.cc template concept my_concept = std::is_object_v && std::is_const_v && std::default_initializable; std::uint32_t a = byte_buffer[0] | byte_buffer[1] << 8 | byte_buffer[

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-07-15 Thread Chuanqi Xu via cfe-commits
@@ -905,6 +912,7 @@ void Preprocessor::Lex(Token &Result) { // This token is injected to represent the translation of '#include "a.h"' // into "import a.h;". Mimic the notional ';'. case tok::annot_module_include: +case tok::annot_repl_input_end: ---

[clang] [clang-format] Fix a bug in SpaceBeforeParensOptions (PR #98849)

2024-07-15 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/98849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5bb3492 - [clang-format] Fix a bug in SpaceBeforeParensOptions (#98849)

2024-07-15 Thread via cfe-commits
Author: Owen Pan Date: 2024-07-15T19:17:36-07:00 New Revision: 5bb3492892f0e087249d6e7aa9c077b9aa0922eb URL: https://github.com/llvm/llvm-project/commit/5bb3492892f0e087249d6e7aa9c077b9aa0922eb DIFF: https://github.com/llvm/llvm-project/commit/5bb3492892f0e087249d6e7aa9c077b9aa0922eb.diff LOG:

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-15 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. LGTM. Thanks for adding this support. https://github.com/llvm/llvm-project/pull/97524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [llvm] [RISCV] Add support for getHostCPUFeatures using hwprobe (PR #94352)

2024-07-15 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw closed https://github.com/llvm/llvm-project/pull/94352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 578cf72 - [RISCV] Add support for getHostCPUFeatures using hwprobe (#94352)

2024-07-15 Thread via cfe-commits
Author: Yingwei Zheng Date: 2024-07-16T10:11:39+08:00 New Revision: 578cf724de56e6c6768859bb1b6a597ee5d14ea0 URL: https://github.com/llvm/llvm-project/commit/578cf724de56e6c6768859bb1b6a597ee5d14ea0 DIFF: https://github.com/llvm/llvm-project/commit/578cf724de56e6c6768859bb1b6a597ee5d14ea0.diff

[clang] [C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (PR #75912)

2024-07-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > > (FWIW, check some of the recent modules changes @ChuanqiXu9 has been > > working on to see that reviewer bandwidth here is pretty thin (& my > > experience in LLVM in general, including clang, is that reviewer bandwidth > > is pretty thin - though it is something we sh

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2024-07-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @Arthapz @guijiyang thanks for reporting. But could you try to give feedbacks to that repo instead of this page. I feel this page it too long now. (My browser needs seconds to load it). And this page is indeed not a good place to track that. --- @guijiyang it looks like th

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 Thread via cfe-commits
github-actions[bot] wrote: @JaydeepChauhan14 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

[clang] [llvm] [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (PR #96860)

2024-07-15 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert closed https://github.com/llvm/llvm-project/pull/96860 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bddab51 - [X86][MC,Driver] Support -msse2avx to encode SSE instruction with VEX prefix (#96860)

2024-07-15 Thread via cfe-commits
Author: JaydeepChauhan14 Date: 2024-07-16T09:40:45+08:00 New Revision: bddab518db003f7c5ce9014e9ebd932fb7a85d2f URL: https://github.com/llvm/llvm-project/commit/bddab518db003f7c5ce9014e9ebd932fb7a85d2f DIFF: https://github.com/llvm/llvm-project/commit/bddab518db003f7c5ce9014e9ebd932fb7a85d2f.di

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM, once the LINE checks are in a more stable position w/ their own prefixes, and a couple of nits on whitespace. https://github.com/llvm/llvm-project/pull/97681 ___ cfe-commits mailing list cfe

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,274 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=html --output=%t --executor=standalone %s +// RUN: clang-doc --format=md --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/index_json.js -check-prefix=JSON-INDEX +// RUN: FileCheck %s < %

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,274 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=html --output=%t --executor=standalone %s +// RUN: clang-doc --format=md --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/index_json.js -check-prefix=JSON-INDEX +// RUN: FileCheck %s < %

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/97681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] IR: Store the default subtarget info in named metadata instead of the context. (PR #98673)

2024-07-15 Thread via cfe-commits
@@ -1240,11 +1240,22 @@ void IRLinker::linkNamedMDNodes() { if (IsPerformingImport && NMD.getName() == "llvm.stats") continue; +// Default subtarget info is only intended to be used before LTO and +// shouldn't be present after merging because the default sub

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,128 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=html --doxygen --output=%t --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.html -check-prefix=HTM

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/97679 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,128 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=html --doxygen --output=%t --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.html -check-prefix=HTM

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM, modulo some nits. I do think you may want to have a separate prefix for the lines, but if you change `--check-prefix=` to `--check-prefixes=HTML-ANIMAL,HTML-ANIMAL-LINE`, you should be able to check them w/o having to rewrite everyth

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-15 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/98736 >From 44b4a682f2b3d7e140f7b1bd124e7aabdbf439ad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sat, 13 Jul 2024 13:10:25 +0300 Subject: [PATCH 1/3] [clang] Add deprecation warning for `-Ofast` driver opt

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-15 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,121 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=html --doxygen --output=%t --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.html -check-prefix=HTM

[clang] [llvm] IR: Store the default subtarget info in named metadata instead of the context. (PR #98673)

2024-07-15 Thread Jessica Clarke via cfe-commits
@@ -1240,11 +1240,22 @@ void IRLinker::linkNamedMDNodes() { if (IsPerformingImport && NMD.getName() == "llvm.stats") continue; +// Default subtarget info is only intended to be used before LTO and +// shouldn't be present after merging because the default sub

[clang] [llvm] [Coverage][MC/DC] Show uncoverable and unreachable conditions (PR #94137)

2024-07-15 Thread via cfe-commits
https://github.com/Lambdaris edited https://github.com/llvm/llvm-project/pull/94137 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Coverage][MC/DC] Show uncoverable and unreachable conditions (PR #94137)

2024-07-15 Thread via cfe-commits
https://github.com/Lambdaris updated https://github.com/llvm/llvm-project/pull/94137 >From 23669f721d056d6e4961e2572e438e5c1f91cab1 Mon Sep 17 00:00:00 2001 From: Lambdaris Date: Sun, 2 Jun 2024 10:19:31 +0800 Subject: [PATCH 1/3] [coverage] Mark branches with either counter is zero as folded

[clang] [Clang] Disallow explicit object parameters in more contexts (PR #89078)

2024-07-15 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/89078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 864478c - [Clang] Disallow explicit object parameters in more contexts (#89078)

2024-07-15 Thread via cfe-commits
Author: Sirraide Date: 2024-07-16T01:55:11+02:00 New Revision: 864478cc74f5e258f86014886df16aa8d393bcc6 URL: https://github.com/llvm/llvm-project/commit/864478cc74f5e258f86014886df16aa8d393bcc6 DIFF: https://github.com/llvm/llvm-project/commit/864478cc74f5e258f86014886df16aa8d393bcc6.diff LOG:

[clang] [llvm] Finish deleting the le32/le64 targets (PR #98497)

2024-07-15 Thread Steven Johnson via cfe-commits
steven-johnson wrote: > We're trying wasm now. This looked promising in our GitHub tests, but for reasons that aren't clear (yet), ~everything compiled this way inside google3 resulted in linker errors (missing symbols). https://github.com/llvm/llvm-project/pull/98497

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-15 Thread Fangrui Song via cfe-commits
@@ -10,31 +10,36 @@ // RUN: %clang -Ofast -fno-strict-aliasing -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-STRICT-ALIASING %s // RUN: %clang -Ofast -fno-vectorize -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-VECTORIZE %s +// CHECK-OFAST: argument '-Ofast'

[clang] [clang] Fix self-capturing `__block` variables (PR #89475)

2024-07-15 Thread via cfe-commits
@@ -2764,6 +2794,9 @@ void CodeGenFunction::emitByrefStructureInit(const AutoVarEmission &emission) { auto layoutInfo = CGM.getObjCRuntime().BuildByrefLayout(CGM, type); storeHeaderField(layoutInfo, getPointerSize(), "byref.layout"); } + + if (emission.NeedsInitOnHe

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-15 Thread via cfe-commits
PeterChou1 wrote: > To clarify my earlier comment, FileCheck is just matching text on the input > based on the check lines. So in this cases the LINE directive should just > affect what text will be accepted when doin matching. It won’t try to match > the lines to the position in the file bein

  1   2   3   4   5   >