[clang] [lld] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-13 Thread James Henderson via cfe-commits
jh7370 wrote: Just chiming in that I happened to spot the pre-merge check failure looks possibly related. https://github.com/llvm/llvm-project/pull/107494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] Reland "[clang] Add nuw attribute to GEPs (#105496)" (PR #107257)

2024-09-13 Thread Nikita Popov via cfe-commits
nikic wrote: Should be fixed by https://github.com/llvm/llvm-project/commit/940f89255e4a3982d94dad57837e8e658092af78. https://github.com/llvm/llvm-project/pull/107257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-13 Thread Matt Arsenault via cfe-commits
@@ -251,6 +251,24 @@ SPIRV::MemorySemantics::MemorySemantics getMemSemantics(AtomicOrdering Ord) { llvm_unreachable(nullptr); } +SPIRV::Scope::Scope getMemScope(const LLVMContext &Ctx, SyncScope::ID ID) { + SmallVector SSNs; + Ctx.getSyncScopeNames(SSNs); + + StringRef M

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-13 Thread Malay Sanghi via cfe-commits
@@ -0,0 +1,52 @@ +// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=i386-unknown-unknown -target-feature +avx10.2-512 -emit-llvm -Wall -Werror -verify MalaySanghi wrote: Hi, Thanks for bringing this to my notice. I'll send a patch next

[clang] [clang-format] Reimplement InsertNewlineAtEOF (PR #108513)

2024-09-13 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/108513 Fixes #108333. >From c85d8cdd44ad577bbc2a29e45058b0c972c6fa9e Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 13 Sep 2024 01:21:29 -0700 Subject: [PATCH] [clang-format] Reimplement InsertNewlineAtEOF Fixes #

[clang] [clang-format] Reimplement InsertNewlineAtEOF (PR #108513)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #108333. --- Full diff: https://github.com/llvm/llvm-project/pull/108513.diff 3 Files Affected: - (modified) clang/lib/Format/FormatTokenLexer.cpp (+7) - (modified) clang/lib/Format/TokenAnnotator

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-13 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi edited https://github.com/llvm/llvm-project/pull/102592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [perf-training] Fix dependencies when using -DCLANG_PGO_TRAINING_DATA_SOURCE_DIR (PR #108488)

2024-09-13 Thread Konrad Kleine via cfe-commits
kwk wrote: I'm trying this patch locally now. https://github.com/llvm/llvm-project/pull/108488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5d1d2f0 - [clang][ExprConst] Allow comparisons with string literals (#106733)

2024-09-13 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-13T10:30:02+02:00 New Revision: 5d1d2f08c4a92580e7f6b3b6b77b2b6f6184e126 URL: https://github.com/llvm/llvm-project/commit/5d1d2f08c4a92580e7f6b3b6b77b2b6f6184e126 DIFF: https://github.com/llvm/llvm-project/commit/5d1d2f08c4a92580e7f6b3b6b77b2b6f6184e126.diff L

[clang] [clang][ExprConst] Allow comparisons with string literals (PR #106733)

2024-09-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/106733 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix the behavior of __COUNT__ macros when PCH is enabled (PR #105591)

2024-09-13 Thread via cfe-commits
@@ -1243,12 +1247,19 @@ bool ASTUnit::Parse(std::shared_ptr PCHContainerOps, } std::unique_ptr Act( - new TopLevelDeclTrackerAction(*this)); + new TopLevelDeclTrackerAction(*this, true)); cor3ntin wrote: Moreover, can you explain the "reuse pr

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

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

[clang] [Clang][ARM] Make CRC and DSP intrinsics always available. (PR #107417)

2024-09-13 Thread Daniel Kiss via cfe-commits
DanielKristofKiss wrote: > I think this is OK but do you know if the dsp side works with cortex-m? > Target attributes are less likely to be used there, but it's worth testing if > the command line args are still all happy. This seems works fine: ```c #include int dsp() { return __smlabb(

[clang] [llvm] [RISCV] Add Syntacore SCR7 processor definition (PR #108406)

2024-09-13 Thread Anton Sidorenko via cfe-commits
@@ -502,3 +502,28 @@ // RUN: %clang --target=riscv64 -### -c %s 2>&1 -mtune=syntacore-scr5-rv64 | FileCheck -check-prefix=MTUNE-SYNTACORE-SCR5-RV64 %s // MTUNE-SYNTACORE-SCR5-RV64: "-tune-cpu" "syntacore-scr5-rv64" + +// RUN: %clang --target=riscv64 -### -c %s 2>&1 -mcpu=synt

[clang] [llvm] [RISCV] Add Syntacore SCR7 processor definition (PR #108406)

2024-09-13 Thread Anton Sidorenko via cfe-commits
https://github.com/asi-sc updated https://github.com/llvm/llvm-project/pull/108406 >From 0c2925d18e8e4312a16d081c1c97d3298b85e8d4 Mon Sep 17 00:00:00 2001 From: Anton Sidorenko Date: Mon, 2 Sep 2024 13:25:39 +0300 Subject: [PATCH 1/2] [RISCV] Add Syntacore SCR7 processor definition Syntacore S

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-13 Thread Alexandros Lamprineas via cfe-commits
@@ -33,7 +33,6 @@ enum CPUFeatures { FEAT_FP, FEAT_SIMD, FEAT_CRC, - FEAT_SHA1, labrinea wrote: It was raised on another pr, so perhaps it is. https://github.com/llvm/llvm-project/pull/108383 ___ cfe-commits

[clang] [C++20] [Modules] Warn for importing implementation partition unit in interface units (PR #108493)

2024-09-13 Thread via cfe-commits
@@ -439,6 +439,9 @@ def warn_deprecated_literal_operator_id: Warning< "is deprecated">, InGroup, DefaultIgnore; def warn_reserved_module_name : Warning< "%0 is a reserved name for a module">, InGroup; +def warn_import_implementation_partition_unit_in_interface_unit : Warnin

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: @tru This patch at the very least needs to make it for 19.x but I was hoping we'd get some of the tuning improvements in as well - should we wait for those PRs or just get this committed and cherry picked straight away? https://github.com/llvm/llvm-project/pull/107964 __

[clang] [C++20] [Modules] Warn for importing implementation partition unit in interface units (PR #108493)

2024-09-13 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/108493 >From b109ea29ee6d1c290766e141ce75317fbf450767 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 13 Sep 2024 13:18:43 +0800 Subject: [PATCH 1/2] [C++20] [Modules] Warn for importing implementation partiti

[clang] [C++20] [Modules] Warn for importing implementation partition unit in interface units (PR #108493)

2024-09-13 Thread Chuanqi Xu via cfe-commits
@@ -439,6 +439,9 @@ def warn_deprecated_literal_operator_id: Warning< "is deprecated">, InGroup, DefaultIgnore; def warn_reserved_module_name : Warning< "%0 is a reserved name for a module">, InGroup; +def warn_import_implementation_partition_unit_in_interface_unit : Warnin

[clang] a0f8890 - [clang][C23] Support N3029 Improved Normal Enumerations (#103917)

2024-09-13 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2024-09-13T11:11:34+02:00 New Revision: a0f88901a4e6a6618c3ec02108103d0415e28834 URL: https://github.com/llvm/llvm-project/commit/a0f88901a4e6a6618c3ec02108103d0415e28834 DIFF: https://github.com/llvm/llvm-project/commit/a0f88901a4e6a6618c3ec02108103d0415e288

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-09-13 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/103917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Syntacore SCR7 processor definition (PR #108406)

2024-09-13 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. LG https://github.com/llvm/llvm-project/pull/108406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1c298c9 - [InstCombine] Preserve nuw flags when merging geps

2024-09-13 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2024-09-13T11:15:22+02:00 New Revision: 1c298c927498983dee29037ed1d3e71b72ca0082 URL: https://github.com/llvm/llvm-project/commit/1c298c927498983dee29037ed1d3e71b72ca0082 DIFF: https://github.com/llvm/llvm-project/commit/1c298c927498983dee29037ed1d3e71b72ca0082.diff

[clang] [RecursiveASTVisitor] Do not inline TraverseStmt (NFC) (PR #107601)

2024-09-13 Thread Nikita Popov via cfe-commits
nikic wrote: ping https://github.com/llvm/llvm-project/pull/107601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clangd] Collect comments from function definitions into the index (PR #67802)

2024-09-13 Thread Christian Kandeler via cfe-commits
https://github.com/ckandeler updated https://github.com/llvm/llvm-project/pull/67802 >From f441c0bd52add3d5b63bc0f19a3d38cb12477359 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 29 Sep 2023 15:01:58 +0200 Subject: [PATCH] [clangd] Collect comments from function definitions into t

[clang] [clang-tools-extra] [clangd] Collect comments from function definitions into the index (PR #67802)

2024-09-13 Thread Christian Kandeler via cfe-commits
ckandeler wrote: > Meanwhile, I thought of a fix for #108145 and submitted it as #108475. > If that's accepted, you should be able to drop the `ASTContext.cpp` changes > from this patch. Nice, will do. https://github.com/llvm/llvm-project/pull/67802 __

[clang] [clang][bytecode] Fix two-pointer-style std::initializer_lists (PR #107565)

2024-09-13 Thread Timm Baeder via cfe-commits
tbaederr wrote: Apparently I've already pushed this. https://github.com/llvm/llvm-project/pull/107565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fbf0a80 - [clang][bytecode] Implement HLSLVectorTruncation casts (#108499)

2024-09-13 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-13T11:32:12+02:00 New Revision: fbf0a8015389bccab80bba00be49955079913152 URL: https://github.com/llvm/llvm-project/commit/fbf0a8015389bccab80bba00be49955079913152 DIFF: https://github.com/llvm/llvm-project/commit/fbf0a8015389bccab80bba00be49955079913152.diff L

[clang] [clang][bytecode] Implement HLSLVectorTruncation casts (PR #108499)

2024-09-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/108499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e7f782e - Reapply "[clang] Extend diagnose_if to accept more detailed warning information (#70976)" (#108453)

2024-09-13 Thread via cfe-commits
Author: Nikolas Klauser Date: 2024-09-13T11:34:20+02:00 New Revision: e7f782e7481cea23ef452a75607d3d61f5bd0d22 URL: https://github.com/llvm/llvm-project/commit/e7f782e7481cea23ef452a75607d3d61f5bd0d22 DIFF: https://github.com/llvm/llvm-project/commit/e7f782e7481cea23ef452a75607d3d61f5bd0d22.dif

[clang] [clang-tools-extra] [flang] Reapply "[clang] Extend diagnose_if to accept more detailed warning information (#70976)" (PR #108453)

2024-09-13 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/108453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix two-pointer-style std::initializer_lists (PR #107565)

2024-09-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/107565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix assertion in `tryDiagnoseOverloadedCast` (PR #108021)

2024-09-13 Thread Alejandro Álvarez Ayllón via cfe-commits
@@ -446,7 +446,12 @@ static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT, : InitializationKind::CreateCast(/*type range?*/ range); InitializationSequence sequence(S, entity, initKind, src); - assert(sequence.Failed() && "initialization succeeded on second try?");

[clang] [clang][Sema] Fix assertion in `tryDiagnoseOverloadedCast` (PR #108021)

2024-09-13 Thread Alejandro Álvarez Ayllón via cfe-commits
https://github.com/alejandro-alvarez-sonarsource edited https://github.com/llvm/llvm-project/pull/108021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-13 Thread Alexandros Lamprineas via cfe-commits
@@ -73,8 +73,6 @@ enum CPUFeatures { FEAT_SSBS, FEAT_SSBS2, FEAT_BTI, - FEAT_LS64, - FEAT_LS64_V, labrinea wrote: Thanks for flagging this up. I am puzzled though since I was under the impression that FMV is still not production ready. When did the en

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: @ganeshgit Ignore what I said earlier about waiting for the tuning patches :) Please can we get this committed to trunk, we'll let it brew for a few days and then cherry pick for 19.x - if you can create PRs for the tuning changes as soon as possible we can review them for 19.x

[clang] [clang-format] Fix a bug in annotating StartOfName (PR #99791)

2024-09-13 Thread Alexander Lohnau via cfe-commits
alex1701c wrote: Can we expect this to be backported and released with clang-format-18? https://github.com/llvm/llvm-project/pull/99791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce -defer-thinlto-prelink-coro-split that skips Coro passes in ThinLTO pre-link pipeline (PR #107153)

2024-09-13 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: My 2cts: I think it would be best for clang-users, if HALO / coroutine optimizations work out-of-the-box in as many cases as possible. Unfortunately, it seems we have an "either-or" decision here. Either, the "thin-lto + HALO" work out-of-the-box or the llc-code-generation

[clang] 9cd9377 - [RISCV][FMV] Support target_clones (#85786)

2024-09-13 Thread via cfe-commits
Author: Piyou Chen Date: 2024-09-13T18:04:53+08:00 New Revision: 9cd93774098c861c260090a690f428b7ae031c65 URL: https://github.com/llvm/llvm-project/commit/9cd93774098c861c260090a690f428b7ae031c65 DIFF: https://github.com/llvm/llvm-project/commit/9cd93774098c861c260090a690f428b7ae031c65.diff LO

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

2024-09-13 Thread Piyou Chen via cfe-commits
https://github.com/BeMg closed 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] [llvm] Introduce -defer-thinlto-prelink-coro-split that skips Coro passes in ThinLTO pre-link pipeline (PR #107153)

2024-09-13 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: > Unfortunately, it seems we have an "either-or" decision here Although... Is this even an either-or decision? Could we add coro-split to the llc unconditionally, also for non-thin-lto pipelines? Afaict, coro-split is a no-op pass if coroutines were already split previousl

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Nikita Popov via cfe-commits
nikic wrote: Zen 5 support in GCC was upstreamed more than half a year ago -- why is the LLVM support being upstreamed only now, after missing the 19.x window? What steps are being taken to ensure this does not happen again? The change to X86TargetParser.h looks ABI breaking to me. https://gi

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-13 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/99040 >From 54b5d6833a52271dfd1ca3912d5d9e886b1970c2 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 19 Mar 2024 02:02:35 -0700 Subject: [PATCH] [RISCV][FMV] Support target_version --- clang/lib/AST/ASTContext.cpp

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-13 Thread Piyou Chen via cfe-commits
BeMg wrote: Rebase to main https://github.com/llvm/llvm-project/pull/99040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-13 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/99040 >From 54b5d6833a52271dfd1ca3912d5d9e886b1970c2 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 19 Mar 2024 02:02:35 -0700 Subject: [PATCH 1/2] [RISCV][FMV] Support target_version --- clang/lib/AST/ASTContext.c

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-13 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/99040 >From 54b5d6833a52271dfd1ca3912d5d9e886b1970c2 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 19 Mar 2024 02:02:35 -0700 Subject: [PATCH 1/3] [RISCV][FMV] Support target_version --- clang/lib/AST/ASTContext.c

[clang] [clang] Fix various typos and whitespace in HelpText. (PR #108527)

2024-09-13 Thread Ryan Mansfield via cfe-commits
https://github.com/rjmansfield created https://github.com/llvm/llvm-project/pull/108527 None >From 8bea5472c6be19664b4c044f510b757b88ec441f Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Fri, 13 Sep 2024 06:31:50 -0400 Subject: [PATCH] [clang] Fix various typos and whitespace in HelpText.

[clang] [clang] Fix various typos and whitespace in HelpText. (PR #108527)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryan Mansfield (rjmansfield) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/108527.diff 1 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+10-10) ``diff diff --git a/clang/include/clang/

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-13 Thread Vyacheslav Levytskyy via cfe-commits
@@ -58,7 +58,35 @@ class SPIRVTargetCodeGenInfo : public CommonSPIRTargetCodeGenInfo { SPIRVTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) : CommonSPIRTargetCodeGenInfo(std::make_unique(CGT)) {} void setCUDAKernelCallingConvention(const FunctionType *&FT) const overri

[clang] [llvm] Prefer std::getenv to ::getenv (PR #108529)

2024-09-13 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev created https://github.com/llvm/llvm-project/pull/108529 Posix call to ::getenv is not guarenteed to be thread safe while C++11 made std::getenv thread safe. This resolves bugs when using llvm in multithreaded environment similar to cms-sw/cmssw#44659 >From 4ae2

[clang] [llvm] Prefer std::getenv to ::getenv (PR #108529)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang-driver Author: Vassil Vassilev (vgvassilev) Changes Posix call to ::getenv is not guarenteed to be thread safe while C++11 made std::getenv thread safe. This resolves bugs when using llvm in multithreaded environ

[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

2024-09-13 Thread Vyacheslav Levytskyy via cfe-commits
VyacheslavLevytskyy wrote: With the full respect to @AlexVlx work I created https://github.com/llvm/llvm-project/pull/108528 just as an utility to discuss and agree about memory scoped issues. https://github.com/llvm/llvm-project/pull/106429 ___ cfe-

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread via cfe-commits
ganeshgit wrote: > @ganeshgit Ignore what I said earlier about waiting for the tuning patches :) > Please can we get this committed to trunk, we'll let it brew for a few days > and then cherry pick for 19.x - if you can create PRs for the tuning changes > as soon as possible we can review them

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread via cfe-commits
ganeshgit wrote: > Zen 5 support in GCC was upstreamed more than half a year ago -- why is the > LLVM support being upstreamed only now, after missing the 19.x window? What > steps are being taken to ensure this does not happen again? > > The change to X86TargetParser.h looks ABI breaking to m

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto created https://github.com/llvm/llvm-project/pull/108532 Utility functions have been moved out to Utils. Minor opportunity to drop the header where not needed. >From 42fef89fcc75d7f1f869c70d5357fcf3a0d410e1 Mon Sep 17 00:00:00 2001 From: Antonio Frighetto D

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Antonio Frighetto (antoniofrighetto) Changes Utility functions have been moved out to Utils. Minor opportunity to drop the header where not needed. --- Full diff: https://github.com/llvm/llvm-project/pull/108532.diff 26 Files Affected:

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-clang-codegen Author: Antonio Frighetto (antoniofrighetto) Changes Utility functions have been moved out to Utils. Minor opportunity to drop the header where not needed. --- Full diff: https://github.com/llvm/llvm-p

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Antonio Frighetto (antoniofrighetto) Changes Utility functions have been moved out to Utils. Minor opportunity to drop the header where not needed. --- Full diff: https://github.com/llvm/llvm-project/pull/108532.diff 26

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-09-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-win` running on `as-worker-93` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/1139 Here is the releva

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 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 c0e308ba3d8ac252b8118d94a17b1351ca92b813 42fef89fcc75d7f1f869c70d5357fcf3a0d410e1 --e

[clang] [llvm] [Instrumentation] Move out to Utils (NFC) (PR #108532)

2024-09-13 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto updated https://github.com/llvm/llvm-project/pull/108532 >From 4518980e2698b76825d9650373df7414f61062d9 Mon Sep 17 00:00:00 2001 From: Antonio Frighetto Date: Fri, 13 Sep 2024 11:43:30 +0200 Subject: [PATCH] [Instrumentation] Move out to Utils (NFC) Utility

[clang] [X86][test] Avoid writing to a potentially write-protected dir (PR #108525)

2024-09-13 Thread Mikhail Goncharov via cfe-commits
metaflow wrote: there is also `avx10_2satcvtds-builtins-errors.c` that calls emit https://github.com/llvm/llvm-project/pull/108525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][test] Avoid writing to a potentially write-protected dir (PR #108525)

2024-09-13 Thread Mikhail Goncharov via cfe-commits
metaflow wrote: thank you for the fix @MalaySanghi ! https://github.com/llvm/llvm-project/pull/108525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-13 Thread via cfe-commits
https://github.com/mahesh-attarde created https://github.com/llvm/llvm-project/pull/108537 Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965 Chapter 14 INTEL® AVX10 ZERO-EXTENDING PARTIAL VECTOR COPY INSTRUCTIONS >From d8e76ea27679df40d0c796a5e8e5bc31433b6bff Mon Sep 17 00:00:00 2001 From

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mahesh-Attarde (mahesh-attarde) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965 Chapter 14 INTEL® AVX10 ZERO-EXTENDING PARTIAL VECTOR COPY INSTRUCTIONS --- Full diff: https://github.com/llvm/llvm-project/pull/108537.diff

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Mahesh-Attarde (mahesh-attarde) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965 Chapter 14 INTEL® AVX10 ZERO-EXTENDING PARTIAL VECTOR COPY INSTRUCTIONS --- Full diff: https://github.com/llvm/llvm-project/pull/108537.diff 15

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-13 Thread via cfe-commits
mahesh-attarde wrote: @phoebewang @FreddyLeaf @KanRobert Can you review please? https://github.com/llvm/llvm-project/pull/108537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix various typos and whitespace in HelpText. (PR #108527)

2024-09-13 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/108527 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-scan-deps] Infer the tool locations from PATH (PR #108539)

2024-09-13 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/108539 This allows the clang driver to know which tool is meant to be executed, which allows the clang driver to load the right clang config files, and allows clang to find colocated sysroots. This makes sure that d

[clang] [clang-scan-deps] Infer the tool locations from PATH (PR #108539)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Martin Storsjö (mstorsjo) Changes This allows the clang driver to know which tool is meant to be executed, which allows the clang driver to load the right clang config files, and allows clang to find colocated sysroots. This makes sure t

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Tobias Hieta via cfe-commits
tru wrote: > The change to X86TargetParser.h looks ABI breaking to me. This seems unfortunate to me. But I don't think it would be good to insert the enum at the end of the list and changing the sorting order. How big of a problem would it be with a ABI break now? I know you have requested th

[clang] [Clang][SVE] Change LLVM representation of ACLE tuple types to be struct based. (PR #108008)

2024-09-13 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/108008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Change CF intrinsics lowering to reconverge on predecessors. (PR #92809)

2024-09-13 Thread via cfe-commits
alex-t wrote: > @alex-t Just curious about the status of this PR. Both this PR and the > register-allocation PR by CD will have significant impact to the generated > code. If we decide this is the right direction, then I feel it would be > better to get it in earlier, so we can access its impa

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: It would be messy, but could we not place the CK_ZNVER5 enum entry at the end of the enum list just for 19.x and then fix the sorting in trunk? https://github.com/llvm/llvm-project/pull/107964 ___ cfe-commits mailing list cfe-commits@li

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > It would be messy, but could we not place the CK_ZNVER5 enum entry at the end > of the enum list just for 19.x and then fix the sorting in trunk? Seems better than an ABI break this late in the cycle, but I don't have *super* strong feelings. https://github.com/llvm/llvm

[clang] [clang][TableGen] Change SyntaxEmitter to use const RecordKeeper (PR #108478)

2024-09-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/108478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change SACheckersEmitter to use const RecordKeeper (PR #108477)

2024-09-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/108477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change TypeNodesEmitter to use const RecordKeeper (PR #108476)

2024-09-13 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/108476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Tobias Hieta via cfe-commits
tru wrote: > It would be messy, but could we not place the CK_ZNVER5 enum entry at the end > of the enum list just for 19.x and then fix the sorting in trunk? I would be fine with that. WDYT @nikic ? https://github.com/llvm/llvm-project/pull/107964 _

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/102040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov commented: See my comment about `VerifyOnly` and duplicate diagnostics. The rest are small NITs. https://github.com/llvm/llvm-project/pull/102040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
@@ -119,6 +119,14 @@ FIELD(HasInitMethod, 1, NO_MERGE) /// within anonymous unions or structs. FIELD(HasInClassInitializer, 1, NO_MERGE) +/// Custom attribute that is True if any field is marked as explicit in a type ilya-biryukov wrote: Suggestion: could we

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
@@ -2148,6 +2158,19 @@ void CXXRecordDecl::completeDefinition(CXXFinalOverriderMap *FinalOverriders) { for (conversion_iterator I = conversion_begin(), E = conversion_end(); I != E; ++I) I.setAccess((*I)->getAccess()); + + ASTContext &Context = getASTContext(); +

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
@@ -743,6 +743,12 @@ void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, ILE->updateInit(SemaRef.Context, Init, Filler); return; } + +if (Field->hasAttr()) { + SemaRef.Diag(ILE->getExprLoc(), diag::warn_field_requires_expli

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
@@ -1472,3 +1472,49 @@ template struct Outer { }; }; Outer::Inner outerinner; + +void aggregate() { + struct S { +[[clang::requires_explicit_initialization]] int x; +int y; +int z = 12; +[[clang::requires_explicit_initialization]] int q = 100; +static voi

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
@@ -743,6 +743,12 @@ void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, ILE->updateInit(SemaRef.Context, Init, Filler); return; } + +if (Field->hasAttr()) { + SemaRef.Diag(ILE->getExprLoc(), diag::warn_field_requires_expli

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-13 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: @AaronBallman @cor3ntin I believe we are getting close to finalizing this PR. Would you be okay with this feature landing and myself approving this when it's ready? There was some discussion here and in the RFC, but I don't think there was explicit approval (or objection)

[clang] [clang][TableGen] Change MVE Emitter to use const RecordKeeper (PR #108500)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108500 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a41bb71 - [X86][test] Avoid writing to a potentially write-protected dir

2024-09-13 Thread Mikhail Goncharov via cfe-commits
Author: Mikhail Goncharov Date: 2024-09-13T14:24:09+02:00 New Revision: a41bb71f2216cef08ab04f1d730ae1701c145f3c URL: https://github.com/llvm/llvm-project/commit/a41bb71f2216cef08ab04f1d730ae1701c145f3c DIFF: https://github.com/llvm/llvm-project/commit/a41bb71f2216cef08ab04f1d730ae1701c145f3c.d

[clang] [clang][TableGen] Change NeonEmitter to use const RecordKeeper (PR #108501)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change MVE Emitter to use const RecordKeeper (PR #108500)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108500 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change RISCVVEmitter to use const RecordKeeper (PR #108502)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][test] Avoid writing to a potentially write-protected dir (PR #108525)

2024-09-13 Thread Mikhail Goncharov via cfe-commits
metaflow wrote: I have submitted it as a41bb71f2216cef08ab04f1d730ae1701c145f3c (with 3 files). Sorry for the race, but I want it working :) https://github.com/llvm/llvm-project/pull/108525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [clang][TableGen] Change SVE Emitter to use const RecordKeeper (PR #108503)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread via cfe-commits
ganeshgit wrote: > It would be messy, but could we not place the CK_ZNVER5 enum entry at the end > of the enum list just for 19.x and then fix the sorting in trunk? > > It would be messy, but could we not place the CK_ZNVER5 enum entry at the > > end of the enum list just for 19.x and then fix

[clang] [clang][TableGen] Change MVE Emitter to use const RecordKeeper (PR #108500)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul updated https://github.com/llvm/llvm-project/pull/108500 >From e07fa2170e4a9699e89f54442a730d1c14702fa5 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 12 Sep 2024 19:50:11 -0700 Subject: [PATCH] [clang][TableGen] Change MVE Emitter to use const RecordKeeper -

[clang] [clang][TableGen] Change NeonEmitter to use const RecordKeeper (PR #108501)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/108501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change NeonEmitter to use const RecordKeeper (PR #108501)

2024-09-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes Change NeonEmitter to use const RecordKeeper. This is a part of effort to have better const correctness in TableGen backends: https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefiniti

[clang] [clang][TableGen] Change RISCVVEmitter to use const RecordKeeper (PR #108502)

2024-09-13 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/108502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >