[clang] [llvm] [WIP][RISC-V] prototyping intrinsic support for Zvbc32e and Zvkgs (PR #128243)

2025-04-05 Thread Nicolas Brunie via cfe-commits
https://github.com/nibrunieAtSi5 edited https://github.com/llvm/llvm-project/pull/128243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP][RISC-V] prototyping intrinsic support for Zvbc32e and Zvkgs (PR #128243)

2025-04-05 Thread Nicolas Brunie via cfe-commits
https://github.com/nibrunieAtSi5 updated https://github.com/llvm/llvm-project/pull/128243 >From d2c64fd7605eb1e2e6756f3c01960bfa8ee55da9 Mon Sep 17 00:00:00 2001 From: Nicolas Brunie Date: Sat, 25 Jan 2025 09:39:47 -0800 Subject: [PATCH 1/2] [RISC-V] prototyping support for Zvbc32e and Zvkgs *

[clang] [llvm] [WIP][RISC-V] prototyping intrinsic support for Zvbc32e and Zvkgs (PR #128243)

2025-04-05 Thread Nicolas Brunie via cfe-commits
@@ -1075,7 +1075,9 @@ constexpr static RISCVExtBit RISCVBitPositions[] = { {"zimop", 1, 1}, {"zca", 1, 2}, {"zcb", 1, 3},{"zcd", 1, 4}, {"zcf", 1, 5},{"zcmop", 1, 6}, -{"zawrs", 1, 7}}; +{"zawrs", 1, 7}, {"zvbc32e", 1, 8}, +{"zv

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-04-05 Thread David Truby via cfe-commits
=?utf-8?q?Iñaki?= Amatria Barral Message-ID: In-Reply-To: @@ -817,8 +817,13 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA, // 'flang -E' always produces output that is suitable for use as fixed form // Fortran. However it is only valid free form sourc

[clang-tools-extra] [clang-doc][NFC] Remove unnecessary directory cleanup (PR #132101)

2025-04-05 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/132101 >From b00e1c89af66387040727993b1f092c84909eaa2 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 19 Mar 2025 20:58:15 + Subject: [PATCH] [clang-doc][NFC] Remove unnecessary directory cleanup The tests al

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Matheus Izvekov via cfe-commits
@@ -6837,64 +6846,55 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, assert(!ParamType.hasQualifiers() && "non-type template parameter type cannot be qualified"); + // If either the parameter has a dependent type or the argument is + //

[clang] [llvm] [PGO][Offload] Disable PGO on NVPTX (PR #133522)

2025-04-05 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/133522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove duplicate API (PR #132776)

2025-04-05 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 1f967887018c63bddf5bf2860e0e6a3aa1e85840...ad58171d90be5e93c33c54f87f8c35096d13e680 clang

[clang] [libclang/python] Add some bindings to the `Cursor` interface (PR #132377)

2025-04-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/132377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Hlsl dst function (PR #133828)

2025-04-05 Thread via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify + +float4 test_too_many_arg(float4 p0) +{ +dst(p0, p0, p0); + // expected-error@-1 {{no matching function

[clang] [llvm] Fix Singals compatibility with Cygwin API (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
https://github.com/mati865 created https://github.com/llvm/llvm-project/pull/134494 With these changes, LLVM and Clang become buildable for Cygwin. GCC config (using MSYS2 GCC): `CFLAGS="-D_GNU_SOURCE=1" CXXFLAGS="-D_GNU_SOURCE=1" CPPFLAGS="-D_GNU_SOURCE=1" cmake -GNinja -DCMAKE_BUILD_TYPE=Rel

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
https://github.com/mati865 updated https://github.com/llvm/llvm-project/pull/134494 From e3efa736cf6c95d536c58e5dbf5bc3916aeef58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Sat, 5 Apr 2025 13:18:35 +0200 Subject: [PATCH 1/4] [LLVM][Cygwin] Fix Singals compatibility w

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
https://github.com/mati865 edited https://github.com/llvm/llvm-project/pull/134494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
https://github.com/mati865 edited https://github.com/llvm/llvm-project/pull/134494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clangd][WIP] Add doxygen parsing using standalone doxygen parser (PR #128591)

2025-04-05 Thread via cfe-commits
tcottin wrote: ping https://github.com/llvm/llvm-project/pull/128591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Track final substitution for Subst* AST nodes (PR #132748)

2025-04-05 Thread via cfe-commits
@@ -1302,6 +1302,8 @@ void TextNodeDumper::dumpBareTemplateName(TemplateName TN) { OS << " index " << STS->getIndex(); if (std::optional PackIndex = STS->getPackIndex()) OS << " pack_index " << *PackIndex; +if (STS->getFinal()) + OS << " final";

[clang] [Offload] Handle `BoundArchitecture` for non-GPU targets (PR #132037)

2025-04-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/8679 Here is the rel

[libclc] [libclc] Update license headers (PR #132070)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Fraser Cormack (frasercrmck) Changes This commit bulk-updates the libclc license headers to the current Apache-2.0 WITH LLVM-exception license in situations where they were previously attributed to AMD - and occasionally under an

[clang-tools-extra] [clang-tidy][NFC][doc] improve "options" sections of `bugprone-` and `modernize-` checks (PR #133525)

2025-04-05 Thread Baranov Victor via cfe-commits
@@ -163,7 +163,11 @@ Options Semicolon-separated list of containers without their template parameters and some ``emplace``-like method of the container. Example: ``vector::emplace_back``. Those methods will be checked for improper use and -the check will report

[clang] [clang] ASTContext: flesh out implementation of getCommonNNS (PR #131964)

2025-04-05 Thread Matheus Izvekov via cfe-commits
@@ -13462,13 +13462,114 @@ static ElaboratedTypeKeyword getCommonTypeKeyword(const T *X, const T *Y) { : ElaboratedTypeKeyword::None; } +static NestedNameSpecifier *getCommonNNS(ASTContext &Ctx, +

[clang-tools-extra] [clang-doc][NFC] fix description typo (PR #132310)

2025-04-05 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue approved this pull request. https://github.com/llvm/llvm-project/pull/132310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

2025-04-05 Thread via cfe-commits
choikwa wrote: gentle ping https://github.com/llvm/llvm-project/pull/129347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Relicense gen_convert.py (PR #132213)

2025-04-05 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/132213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][misc-const-correctness] fix fp when using const array type. (PR #133018)

2025-04-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/133018 >From c2defc601e2d8e42130600802ff330a0feb8b52a Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 25 Mar 2025 23:31:38 + Subject: [PATCH 1/4] [clang-tidy][misc-const-correctness] fix fp when using c

[clang] [llvm] [clang][CodeGen] Generate follow-up metadata for loops in correct format (PR #131985)

2025-04-05 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj edited https://github.com/llvm/llvm-project/pull/131985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Use MarkUsedTemplateParameters in building alias CTAD guides (PR #132369)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes It turns out that TemplateParamsReferencedInTemplateArgumentList() and MarkUsedTemplateParameters() have the similar goal, so let's drop the hand-written ASTVisitor. --- Full diff: https://github.com/llvm/l

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-04-05 Thread Jonas Paulsson via cfe-commits
@@ -3,6 +3,18 @@ ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s +; Test f16. +declare half @llvm.fabs.f16(half %f) +define half @f0(half %f) { +; CHECK-LABEL: f0: +; CHECK: brasl %r14, __

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-04-05 Thread Balázs Kéri via cfe-commits
balazske wrote: The checker had only a few results from the usual C projects where we test it, but more of these are difficult to understand. [This](https://codechecker-demo.eastus.cloudapp.azure.com/Default/report-detail?run=vim_v8.2.1920_fixedaddr_on_test&newcheck=vim_v8.2.1920_fixedaddr_off_

[clang] [CIR] Add binary operators (PR #132420)

2025-04-05 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/132420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] refactor out file helpers (PR #134298)

2025-04-05 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/134298 >From fa35468f673ace035036a1c15d2d6ab756c2581e Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 3 Apr 2025 15:59:34 -0400 Subject: [PATCH 1/3] factor out file helpers --- clang-tools-extra/clang-doc/CMa

[clang] [Clang] [NFC] Introduce helpers for defining compatibilty warnings (PR #132129)

2025-04-05 Thread via cfe-commits
Sirraide wrote: > One question I have is whether we can also add a helper function for emitting > these diagnostics. I was thinking about that too. My first idea was that if we can rely on the order of records in tablegen influencing the order of diagnostic IDs, then one idea is to have some

[clang] [llvm] [NVPTX] Auto-Upgrade llvm.nvvm.atomic.load.{inc,dec}.32 (PR #134111)

2025-04-05 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 HEAD~1 HEAD --extensions cpp -- clang/lib/CodeGen/TargetBuiltins/NVPTX.cpp llvm/lib/I

[clang-tools-extra] [clang-tidy] Fix `thread_local` false positives in `misc-use-internal-linkage` check (PR #132573)

2025-04-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/132573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the assertion condition after b8d1f3d6 (PR #132669)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/132669 Thanks to the example provided by @MagentaTreehouse, I realized the assertion I added didn't cover all valid cases like, when inheriting from a class template specialization, the source of a synthesized templat

[clang] [CIR] Upstream initial for-loop support (PR #132266)

2025-04-05 Thread Andy Kaylor via cfe-commits
@@ -165,6 +165,25 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) { return LValue(); } +mlir::Value CIRGenFunction::evaluateExprAsBool(const Expr *e) { andykaylor wrote: I'm not sure `Bool` is ever used to represent an `i8`. Typically the

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

2025-04-05 Thread Krzysztof Parzyszek via cfe-commits
@@ -2759,6 +2759,19 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective( OpenMPClauseKind CKind = Tok.isAnnotation() ? OMPC_unknown : getOpenMPClauseKind(PP.getSpelling(Tok)); + // C

[clang] [libclang/python] Change all global variables to snake case (PR #132378)

2025-04-05 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/132378 None >From 926d2f7175fa7f04eae94291742ec7c89ea18516 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Fri, 21 Mar 2025 21:03:24 +0900 Subject: [PATCH] [libclang/python] Change all global variables to sna

[clang] [clang] Implement CWG2803 and CWG2958 (PR #132779)

2025-04-05 Thread via cfe-commits
@@ -110,6 +110,8 @@ Resolutions to C++ Defect Reports two releases. The improvements to template template parameter matching implemented in the previous release, as described in P3310 and P3579, made this flag unnecessary. +- Implemented `CWG2803 Overload resolution for

[clang] [RFC] Initial implementation of P2719 (PR #113510)

2025-04-05 Thread Matheus Izvekov via cfe-commits
@@ -1098,12 +1098,39 @@ static TypeSourceInfo *getTypeSourceInfoForStdAlignValT(Sema &S, return S.Context.getTrivialTypeSourceInfo(StdAlignValDecl); } +// When searching for custom allocators on the PromiseType we want to +// warn that we will ignore type aware allocators.

[clang] Optimize Module Dependency Handling for Efficient Memory Usage (PR #132294)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayush Pareek (ayushpareek2003) Changes -Optimized addModuleFiles functions for both CompilerInvocation and CowCompilerInvocation to reduce redundant function calls and improve efficiency -Introduced memory preallocation using reserve() wh

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-04-05 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: -ffreestanding currently has the following effects: - Disables builtins recognition (-fno-builtins) - Sets `__STDC_HOSTED__` to 0. - Disables unwind tables (-fno-asynchronous-unwind-tables -fno-unwind-tables) (refer to df50259f9856ae98b5a1b34c4c955074aff3c566) Maybe we shou

[clang] [Clang] Add warning message for C++17 alias template CTAD (PR #133806)

2025-04-05 Thread via cfe-commits
https://github.com/GeorgeKA updated https://github.com/llvm/llvm-project/pull/133806 >From dd978982b2ab41d3d2a55abb448e653a80158ecd Mon Sep 17 00:00:00 2001 From: George Asante Date: Mon, 31 Mar 2025 17:41:20 -0400 Subject: [PATCH 1/4] Add warning message for C++17 alias template CTAD --- cla

[clang] [llvm] Revert "[HLSL][RootSignature] Implement parsing of a DescriptorTable with empty clauses" (PR #133790)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes Reverts llvm/llvm-project#133302 Reverting to inspect build failures that were introduced from use of the `clang::Preprocessor`, and the warning about an unused declaration. See linked issue for failures.

[clang] Relative Path Handling for Cross-Platform Compatibility (PR #133526)

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

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-04-05 Thread Nikolas Klauser via cfe-commits
@@ -534,11 +534,6 @@ C23 implementation status Clang 16 - - String functions for freestanding implementations - https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2524.htm";>N2524 - No - philnik777 wrote: Hmm, yeah. I gues

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-04-05 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: > This is about whether we can (and should) implement a fp->u32 conversion via > fp->s64->u32. Thanks for explaining - I updated the comment just a little bit so it is - at least to me - a bit easier to follow. > I see that the LowerOperationWrapper still emits i128 operation

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-04-05 Thread Jonas Paulsson via cfe-commits
@@ -0,0 +1,65 @@ +; Test copysign intrinsics involving half. +; +; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s + +declare half @llvm.copysign.f16(half, half) +declare float @llvm.copysign.f32(float, float) +declare double @llvm.copysign.f64(double, double) + +; Test f16

[clang] [Clang] Permit `-Xarch_` to be used with `--offload-arch` (PR #131884)

2025-04-05 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` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/18117 Here is the releva

[clang] [llvm] [RISCV] Add Svrsw60t59b extension (PR #132321)

2025-04-05 Thread Craig Topper via cfe-commits
@@ -1098,6 +1098,7 @@ R"(All available -march extensions for RISC-V svnapot 1.0 svpbmt 1.0 svvptc 1.0 +svrsw60t59b 1.0 topperc wrote: Shouldn't this be above svvptc alphabetically? Did you test

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

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

[clang] [clang][scan-build] Treat --use-cc and --use-c++ as shell commands (PR #131932)

2025-04-05 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: I'd prefer option 2, because why else would we have a default compiler if that wasn't used in some workflows. A warning could never hurt. I'm also flexible on the subject. https://github.com/llvm/llvm-project/pull/131932 _

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [mlir] Fix typos: paramter, parametr, parametere (PR #134092)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-backend-webassembly Author: Jay Foad (jayfoad) Changes --- Patch is 24.76 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/134092.diff 30 Files Affected: - (modified) bolt

[clang] [PATCH] [clang][frontend] Fix serialization for CXXConstructorDecl (refs llvm#132794) (PR #133077)

2025-04-05 Thread Paul Schwabauer via cfe-commits
https://github.com/koplas edited https://github.com/llvm/llvm-project/pull/133077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix union copy/move operator active check (PR #132238)

2025-04-05 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/132238 Don't call CheckActive for copy/move operators. They will activate the union member. >From 5729d5f04578ea5628f22bfb3cc71826bdacb9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 20 M

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-04-05 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/132626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-04-05 Thread Younan Zhang via cfe-commits
@@ -1467,10 +1477,16 @@ namespace { } } -static TemplateArgument +bool HeuristicallyComputeSizeOfPackExpr() const { + return !TemplateArgs.isRewrite(); +} + +TemplateArgument zyn0217 wrote: It is intended because we need to acce

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

2025-04-05 Thread via cfe-commits
@@ -91,6 +91,137 @@ if.end: ; preds = %if.else, %if.then %3 = load i32, ptr %resp, align 4 ret i32 %3 } + +; CHECK: define i32 @flatten_switch(i32 %X) +; CHECK-NOT: hlsl.controlflow.hint +; CHECK: switch i32 %0, label %sw.epil

[clang] [C11] Implement WG14 N1285 (temporary lifetimes) (PR #133472)

2025-04-05 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 HEAD~1 HEAD --extensions c,h,cpp -- clang/test/C/C11/n1285_1.c clang/lib/CodeGen/CGDe

[clang] [llvm] [mlir] [MLIR][OpenMP] Add codegen for teams reductions (PR #133310)

2025-04-05 Thread Sergio Afonso via cfe-commits
@@ -1987,7 +1984,8 @@ class OpenMPIRBuilder { InsertPointTy AllocaIP, ArrayRef ReductionInfos, ArrayRef IsByRef, -bool

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

2025-04-05 Thread via cfe-commits
@@ -296,6 +296,11 @@ StmtResult Parser::ParseStatementOrDeclarationAfterAttributes( goto Retry; } + case tok::kw_alignas: { +ParseAlignmentSpecifier(CXX11Attrs); DenisGZM wrote: No, we don't. Аor statements alignas is still illegal: ``` error: 'al

[clang] [llvm] [ARM][Clang] Make `+nosimd` functional for AArch32 Targets (PR #130623)

2025-04-05 Thread David Green via cfe-commits
https://github.com/davemgreen commented: Thanks - this looks good. https://github.com/llvm/llvm-project/pull/130623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] [Upstream local initialization for ArrayType (PR #132974)

2025-04-05 Thread Henrich Lauko via cfe-commits
@@ -449,4 +449,50 @@ LValue CIRGenFunction::emitLValue(const Expr *e) { } } +void CIRGenFunction::emitNullInitialization(mlir::Location loc, Address destPtr, +QualType ty) { + // Ignore empty classes in C++. + if (getLangOpts().

[clang] [Clang][Sema] Fix -Whigher-precision-for-complex-division (PR #131477)

2025-04-05 Thread Mészáros Gergely via cfe-commits
@@ -10555,6 +10555,43 @@ static void checkArithmeticNull(Sema &S, ExprResult &LHS, ExprResult &RHS, << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); } +static void DetectPrecisionLossInComplexDivision(Sema &S, QualType DivisorTy, +

[clang] [SystemZ][z/OS] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2025-04-05 Thread Hubert Tong via cfe-commits
@@ -4456,6 +4456,12 @@ void Parser::ParseDeclarationSpecifiers( isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); break; +case tok::kw__Export: + // If we find kw__Export, it is being applied to a var or function + // This will be handled

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

2025-04-05 Thread via cfe-commits
@@ -3035,11 +3035,14 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration( } ParsedAttributes DeclSpecAttrs(AttrFactory); - MaybeParseMicrosoftAttributes(DeclSpecAttrs); - // Hold late-parsed attributes so we can attach a Decl to them later. LateParsedA

[clang] [clang] Fix Mame Mangling Crashes (PR #134486)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: This needs tests as well as release notes. Also please run clang-format on the changes. Given that @mizvekov is working on fixing unevaluated lambda contexts, I wonder if these issues could be resolved the other way around, especially since there seems to

[clang] [X86][AMX] Add missing __inline__ for AMXCOMPLEX intrinsics, NFCI (PR #134484)

2025-04-05 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/134484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cd54cb0 - [X86][AMX] Add missing __inline__ for AMXCOMPLEX intrinsics, NFCI (#134484)

2025-04-05 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-04-05T19:23:56+08:00 New Revision: cd54cb062bba9c90a8f3723bf66caa7effbcf259 URL: https://github.com/llvm/llvm-project/commit/cd54cb062bba9c90a8f3723bf66caa7effbcf259 DIFF: https://github.com/llvm/llvm-project/commit/cd54cb062bba9c90a8f3723bf66caa7effbcf259.diff L

[clang] [CIR] Implement lowering of int-to-bool casts (PR #132996)

2025-04-05 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/132996 Lowering of int-to-bool casts had been left as NYI because the incubator implemented it by lowering to cir.cmp, which hasn't been upstreamed yet, but there is no reason this cast can't be lowered directly to

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-05 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/130421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Check `std::initializer_list` more strictly (PR #133822)

2025-04-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/133822 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Add intrinsics for cvt .f6x2 and .ue8m0x2 variants (PR #134345)

2025-04-05 Thread Durgadoss R via cfe-commits
https://github.com/durga4github edited https://github.com/llvm/llvm-project/pull/134345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/134461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

2025-04-05 Thread Austin Schuh via cfe-commits
https://github.com/AustinSchuh edited https://github.com/llvm/llvm-project/pull/132883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][doc]: Merge the contents of identical entries. (PR #134089)

2025-04-05 Thread via cfe-commits
https://github.com/YLChenZ updated https://github.com/llvm/llvm-project/pull/134089 >From 319c55aef5c458ae4ac6c7f3f186d338f6fe2e37 Mon Sep 17 00:00:00 2001 From: YLChenZ Date: Wed, 2 Apr 2025 22:03:53 +0800 Subject: [PATCH 1/5] [llvm][doc]: Merge the contents of identical entries. --- clang/u

[clang] [flang] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host constructs (PR #127633)

2025-04-05 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy edited https://github.com/llvm/llvm-project/pull/127633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: 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: ``ba

[libclc] [NFC][libclc] Merge atomic extension built-ins with identical name into a single file (PR #134489)

2025-04-05 Thread Wenju He via cfe-commits
wenju-he wrote: @frasercrmck could you please review, thanks. https://github.com/llvm/llvm-project/pull/134489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [fatlto] Use the ThinLTO default pipeline for FatLTO (PR #134434)

2025-04-05 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM, but PR title needs adjustment. https://github.com/llvm/llvm-project/pull/134434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] a641910 - [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (#133870)

2025-04-05 Thread via cfe-commits
Author: Mats Jun Larsen Date: 2025-04-05T09:01:36Z New Revision: a64191053136078761a72fe800feedb8bcc70d31 URL: https://github.com/llvm/llvm-project/commit/a64191053136078761a72fe800feedb8bcc70d31 DIFF: https://github.com/llvm/llvm-project/commit/a64191053136078761a72fe800feedb8bcc70d31.diff LO

[clang] [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (PR #133870)

2025-04-05 Thread Mats Jun Larsen via cfe-commits
https://github.com/junlarsen closed https://github.com/llvm/llvm-project/pull/133870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
@@ -6837,64 +6846,55 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, assert(!ParamType.hasQualifiers() && "non-type template parameter type cannot be qualified"); + // If either the parameter has a dependent type or the argument is + //

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
@@ -6837,64 +6846,55 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, assert(!ParamType.hasQualifiers() && "non-type template parameter type cannot be qualified"); + // If either the parameter has a dependent type or the argument is + //

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
@@ -6250,9 +6171,10 @@ FunctionDecl *Sema::getMoreConstrainedFunction(FunctionDecl *FD1, /// TemplateDecl or {Class,Var}TemplatePartialSpecializationDecl. /// \param T1 The injected-class-name of P1 (faked for a variable template). /// \param T2 The injected-class-name of P2 (

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. LGTM in general, but please wait for a few days before you commit. https://github.com/llvm/llvm-project/pull/134461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [clang] fix partial ordering of NTTP packs (PR #134461)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/134461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CmpOp (PR #133159)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This patch adds support for comparison operators with ClangIR, both integral and floating point. --- Patch is 22.42 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/

[clang] d7e7e0a - [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D] (#132405)

2025-04-05 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-03-22T00:56:23+08:00 New Revision: d7e7e0af485a5266819cb90dc72e09d67898510f URL: https://github.com/llvm/llvm-project/commit/d7e7e0af485a5266819cb90dc72e09d67898510f DIFF: https://github.com/llvm/llvm-project/commit/d7e7e0af485a5266819cb90dc72e09d67898510f.diff L

[clang] [CIR] Upstream support for promoted types with unary plus/minus (PR #133829)

2025-04-05 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/133829 >From 92d711c92b89e08d47d7f617a222d982040a4f19 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Mon, 31 Mar 2025 17:02:08 -0700 Subject: [PATCH] [CIR] Upstream support for promoted types with unary plus/minu

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-04-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/13857 Here is th

[clang] [clang] Decay types of function and constant template parameter packs (PR #132189)

2025-04-05 Thread via cfe-commits
https://github.com/offsetof created https://github.com/llvm/llvm-project/pull/132189 * Handle pack expansion types in `ASTContext::getAdjustedParameterType`, adjusting their pattern if necessary. * Perform the usual constant template parameter type adjustments in `Sema::RebuildTemplateParamsIn

[clang] [CMAKE][AMDGPU] fix build failure caused by PR #133619 (PR #133776)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Farzon Lotfi (farzonl) Changes While clangCodeGenTargetBuiltins and clangCodeGenTargets are static libraries clangCodeGen is not and so this is creating a circular reference in the linux amdgpu-offload CIs on ubuntu and RHEL. rem

[clang] 9f3d8e8 - [CIR] Upstream support for while and do..while loops (#133157)

2025-04-05 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-04-01T13:03:24-07:00 New Revision: 9f3d8e8fb8d389176e12c06de59cce3fd1ab8db2 URL: https://github.com/llvm/llvm-project/commit/9f3d8e8fb8d389176e12c06de59cce3fd1ab8db2 DIFF: https://github.com/llvm/llvm-project/commit/9f3d8e8fb8d389176e12c06de59cce3fd1ab8db2.diff L

[clang] [WIP][Clang] Allow floating point fixed vectors with atomic builtins (PR #129495)

2025-04-05 Thread Vikram Hegde via cfe-commits
https://github.com/vikramRH ready_for_review https://github.com/llvm/llvm-project/pull/129495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-05 Thread James Wainwright via cfe-commits
jwnrt wrote: CC @benshi001 To be 100% honest I haven't tested this on AVR silicon yet. My motivation for the change is to allow for non-zero data address spaces in Rust which parses these LLVM address spaces, but would then use both 64-bit and 16-bit pointers for AVR. Apologies if this is bad

[clang] [X86][AVX10.2] Use 's_' for saturate-convert intrinsics (PR #131592)

2025-04-05 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/131592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

2025-04-05 Thread Owen Pan via cfe-commits
@@ -871,13 +871,81 @@ struct FormatStyle { /// void f() { bar(); } /// \endcode SFS_All, +/// Configure merge behavior using AllowShortFunctionsOnASingleLineOptions +SFS_Custom, }; /// Dependent on the value, ``int f() { return 0; }`` can be put on

[clang] [RFC] Initial implementation of P2719 (PR #113510)

2025-04-05 Thread Oliver Hunt via cfe-commits
@@ -312,6 +312,7 @@ LANGOPT(OpenACC , 1, 0, "OpenACC Enabled") LANGOPT(MSVCEnableStdcMacro , 1, 0, "Define __STDC__ with '-fms-compatibility'") LANGOPT(SizedDeallocation , 1, 0, "sized deallocation") +LANGOPT(TypeAwareAllocators , 1, 1, "type aware C++ allocation op

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-04-05 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,1059 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 +; RUN: opt --passes=loop-vectorize --mtriple=riscv64 -mattr="+zvfh,+v" -S < %s | FileCheck %s --check-prefix=RV64 +; RUN: opt --passes=loop-vectorize --mtriple=aa

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-04-05 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Extending this functionality with transformers is optional and can be done > later in another PR, if someone is willing. Yes and no. If the goal is just to write checks, then clang-tidy is a good home for the functionality. But I had the impression that for some people th

<    1   2   3   4   5   6   7   8   >