[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] [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] [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] 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] [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] [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] [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] [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] [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] [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 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] 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] [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-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] 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 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] [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] [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] [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] [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] [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-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-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,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] [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] [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
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] [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] 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][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] [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] [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] [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] [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] [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] [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] [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] [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] [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] 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] 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 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] [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] 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 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] 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] [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] [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] [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
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] [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-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] 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] [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] [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] 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] 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 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] 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] [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] [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] [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-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-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] [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] [clang] Refactor: Move CTAD code from SemaTemplate.cpp to a dedicated file, NFC (PR #98524)

2024-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/912 Here is the relevant piece of the build log for

[clang] [libcxx] [llvm] Reapply "[Clang] Implement resolution for CWG1835 (#92957)" (PR #98547)

2024-07-15 Thread Haojian Wu via cfe-commits
hokein wrote: > @pranavk see #98613. > > edit: sorry, the error recovery that is currently performed will not detect > cases where the template argument list does not contain a a type. i can look > into this monday. Some analysis: given the example `this->StorageT` where `I` is an `int`, the

[clang] 9ac2b89 - [clang][Interp] Diagnose volatile reads

2024-07-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-15T09:37:45+02:00 New Revision: 9ac2b8965264a7f20a3e07c913b25c375a080c0f URL: https://github.com/llvm/llvm-project/commit/9ac2b8965264a7f20a3e07c913b25c375a080c0f DIFF: https://github.com/llvm/llvm-project/commit/9ac2b8965264a7f20a3e07c913b25c375a080c0f.diff LO

[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
@@ -2711,6 +2711,8 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, } if (!UseRelaxRelocations) CmdArgs.push_back("-mrelax-relocations=no"); + if (Args.hasArg(options::OPT_msse2avx)) +CmdArgs.push_back("-msse2avx"); KanRobert wrote

[clang] [clang] Use different memory layout type for _BitInt(N) in LLVM IR (PR #91364)

2024-07-15 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/91364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/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: `MaxVectorAlign` is set for x86 targets. I can use it as a limit as well, but note that this patch also

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

2024-07-15 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: BTW, I think the limitation I'm hitting is introduced by https://reviews.llvm.org/D121898 . https://github.com/llvm/llvm-project/pull/98629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

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

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

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

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

[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

2024-07-15 Thread Sebastian Kreutzer via cfe-commits
sebastiankreutzer wrote: > You might want to get approval from someone else - I'm not even remotely > close to a maintainer here. Will do - thanks for taking the time to review! https://github.com/llvm/llvm-project/pull/90959 ___ cfe-commits mailing

[clang] [AArch64][RISCV] Document option --print-supported-extensions (PR #98698)

2024-07-15 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/98698 >From b5d6146b583f96c7e8cec9abd2d2fec51dd4a611 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Fri, 12 Jul 2024 23:08:28 +0100 Subject: [PATCH] [AArch64][RISCV] Document option --print-supported-extensio

[clang] [llvm] Revert "AMDGPU: Move attributor into optimization pipeline (#83131)" and follow up commit "clang/AMDGPU: Defeat attribute optimization in attribute test" (PR #98851)

2024-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang,llvm` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/1975 Here is the rel

[clang] [libcxx] [llvm] Reapply "[Clang] Implement resolution for CWG1835 (#92957)" (PR #98547)

2024-07-15 Thread Haojian Wu via cfe-commits
hokein wrote: Summaries of changes after this patch: 1) for type template parameters and template template parameters, clang emits a warning, which can be suppressed by `-Wno-missing-dependent-templat-keyword` (after #98613); 2) for non-type template parameters, clang emits a hard `no_member`

[clang] [llvm] Revert "AMDGPU: Move attributor into optimization pipeline (#83131)" and follow up commit "clang/AMDGPU: Defeat attribute optimization in attribute test" (PR #98851)

2024-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang,llvm` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/1842 Here is t

[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/5] [clang-doc] add enum test --- clang-tools-extra/test/clang-d

[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/5] [clang-doc] add enum test --- clang-tools-extra/test/clang-d

[clang] [llvm] Revert "AMDGPU: Move attributor into optimization pipeline (#83131)" and follow up commit "clang/AMDGPU: Defeat attribute optimization in attribute test" (PR #98851)

2024-07-15 Thread via cfe-commits
dyung wrote: @arsenm the previous two bot failure notifications are from your reapplication of your changes, not from my original revert. Not sure why it is mentioning it here. https://github.com/llvm/llvm-project/pull/98851 ___ cfe-commits mailing l

[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/5] [clang-doc] add nested naemspace --- .../test/clang-doc/name

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

2024-07-15 Thread via cfe-commits
PeterChou1 wrote: > I think this mostly looks good, but I am concerned with the line number > matching. It appears that whenever you’ve up’s the file you’ve had to update > all the line numbers. > > Is it feasible to rewrite some of the checks to use the “LINE” directive? > Perhaps it also ma

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

2024-07-15 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises ready_for_review 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/cfe-commits

[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

2024-07-15 Thread Sebastian Kreutzer via cfe-commits
sebastiankreutzer wrote: @petrhosek @MaskRay Could one of you have a look to give final approval? https://github.com/llvm/llvm-project/pull/90959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[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-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/5] [clang-doc] add enum test --- clang-tools-extra/test/clang-d

[clang-tools-extra] Allow unnecessary-value-param to match templated functions including lambdas with auto. (PR #97767)

2024-07-15 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/97767 ___ 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 ftime profiling (PR #97644)

2024-07-15 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/97644 >From cbb9d73b4827206ea7f5da58cc4a765a9297d620 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 4 Jul 2024 03:39:22 -0400 Subject: [PATCH 1/5] [clang-doc] add ftime trace --- clang-tools-extra/clang-doc/

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-15 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/97644 >From cbb9d73b4827206ea7f5da58cc4a765a9297d620 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 4 Jul 2024 03:39:22 -0400 Subject: [PATCH 1/5] [clang-doc] add ftime trace --- clang-tools-extra/clang-doc/

[clang] [Clang][NEON] Add neon target guard to intrinsics (PR #98624)

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

[clang] [Clang][NEON] Add neon target guard to intrinsics (PR #98624)

2024-07-15 Thread via cfe-commits
https://github.com/CarolineConcatto commented: Thank you Marian for the patch. I left some comments. https://github.com/llvm/llvm-project/pull/98624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

<    1   2   3   4   5   >