[clang-tools-extra] [clang] [llvm] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/74588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-18 Thread Matt Arsenault via cfe-commits
@@ -765,6 +766,138 @@ llvm::createMemLibcall(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI, return LegalizerHelper::Legalized; } +static RTLIB::Libcall getOutlineAtomicLibcall(MachineInstr &MI) { + unsigned Opc = MI.getOpcode(); + auto &AtomicMI = cast(MI); + au

[clang-tools-extra] [clang] [llvm] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Are pointer type xchg / cmpxchg already tested? https://github.com/llvm/llvm-project/pull/74588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ca10343 - [clang][dataflow] Fix an issue with `Environment::getResultObjectLocation()`. (#75483)

2023-12-18 Thread via cfe-commits
Author: martinboehme Date: 2023-12-18T09:10:03+01:00 New Revision: ca1034341cfec226c09ff0e473c6ecbcc2a1194c URL: https://github.com/llvm/llvm-project/commit/ca1034341cfec226c09ff0e473c6ecbcc2a1194c DIFF: https://github.com/llvm/llvm-project/commit/ca1034341cfec226c09ff0e473c6ecbcc2a1194c.diff

[clang] [clang][dataflow] Fix an issue with `Environment::getResultObjectLocation()`. (PR #75483)

2023-12-18 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/75483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c7cdf3c - [clang] Use 'starts_with' instead of 'startswith' in Gnu.cpp (NFC)

2023-12-18 Thread Jie Fu via cfe-commits
Author: Jie Fu Date: 2023-12-18T16:10:49+08:00 New Revision: c7cdf3cd5d748901e1370f1bfe803685ca658fb6 URL: https://github.com/llvm/llvm-project/commit/c7cdf3cd5d748901e1370f1bfe803685ca658fb6 DIFF: https://github.com/llvm/llvm-project/commit/c7cdf3cd5d748901e1370f1bfe803685ca658fb6.diff LOG: [

[clang-tools-extra] Allow to pass config file to clang-tidy-diff (PR #75457)

2023-12-18 Thread Michael Lettrich via cfe-commits
https://github.com/MichaelLettrich updated https://github.com/llvm/llvm-project/pull/75457 >From 382a8a5355b06f191941099c1eac029dbb9d4bb4 Mon Sep 17 00:00:00 2001 From: Michael Lettrich Date: Thu, 14 Dec 2023 11:31:28 +0100 Subject: [PATCH 1/2] Allow to pass config file to clang-tidy-diff

[clang-tools-extra] Allow to pass config file to clang-tidy-diff (PR #75457)

2023-12-18 Thread Michael Lettrich via cfe-commits
https://github.com/MichaelLettrich updated https://github.com/llvm/llvm-project/pull/75457 >From 64fbf57d93ef3569f89b3f4d770cc849bc4b3604 Mon Sep 17 00:00:00 2001 From: Michael Lettrich Date: Thu, 14 Dec 2023 11:31:28 +0100 Subject: [PATCH] Allow to pass config file to clang-tidy-diff Adds

[clang-tools-extra] Allow to pass config file to clang-tidy-diff (PR #75457)

2023-12-18 Thread Michael Lettrich via cfe-commits
MichaelLettrich wrote: @PiotrZSL thanks for the review I added the to the release notes as requested. @cjappl thanks for mentioning. I copied and adapted your release notes into this branch. https://github.com/llvm/llvm-project/pull/75457 ___ cfe-co

[clang-tools-extra] [lld] [llvm] [clang] [compiler-rt] [flang] [libc] [lldb] [libcxx] Don't emit relax relocs like R_X86_64_REX_GOTPCRELX on X86 target for OPENMP internal vars. (PR #75564)

2023-12-18 Thread via cfe-commits
https://github.com/UmeshKalappa0 updated https://github.com/llvm/llvm-project/pull/75564 >From 4125e4a709c594562fa6c52f045ba7442e3cb523 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Fri, 15 Dec 2023 11:52:52 +0530 Subject: [PATCH 1/2] Problem :For Kernel Modules ,emitting the relocs like

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-18 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thanks for having a look at this! Instead of performing the "expand response files" operation twice for commands coming from a `compile_commands.json` source, what do you think about the following: * Restore the call i

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #75487)

2023-12-18 Thread Sam Tebbs via cfe-commits
SamTebbs33 wrote: @nico I tried to cherry-pick your commit (c60663d128f8e0dccd418bdf16ecc403b96aa74a) into my branch but for some reason it was always empty. It might be best for you to try recommitting it now. https://github.com/llvm/llvm-project/pull/75487 __

[clang-tools-extra] [clangd] Add languages as server capabilities (PR #75633)

2023-12-18 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 commented: Thanks for the patch! I like the idea of having the server announce support for a list of languages, that seems nice and general and extensible. A couple of thoughts: 1. Since the key we're adding to the server capabilities is a non-standard exte

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #75487)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 closed https://github.com/llvm/llvm-project/pull/75487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [LoopVectorize] Enable hoisting of runtime checks by default (PR #71538)

2023-12-18 Thread David Sherwood via cfe-commits
https://github.com/david-arm closed https://github.com/llvm/llvm-project/pull/71538 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/75200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/75200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-18 Thread Sander de Smalen via cfe-commits
@@ -1,12 +1,21 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py -// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -t

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/75779 Fixes https://github.com/llvm/llvm-project/issues/64347 >From 073f3d87bc9e22e3fb80ee9ab297e0bd6e4127f2 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 18 Dec 2023 10:41:45 +0100 Subject: [PATCH] [clang] Fix

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fixes https://github.com/llvm/llvm-project/issues/64347 --- Full diff: https://github.com/llvm/llvm-project/pull/75779.diff 4 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

2023-12-18 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/75569 >From 0f49d91b4a22944216cff8654f9c00f892bb02be Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 15 Dec 2023 08:44:57 +0100 Subject: [PATCH 1/2] [clang] Fix CTAD not respect default template arguments that wer

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

2023-12-18 Thread Haojian Wu via cfe-commits
@@ -685,6 +685,8 @@ Bug Fixes in This Version (`#62157 `_) and (`#64885 `_) and (`#65568 `_) +- Fix an issue where clan

[llvm] [clang] [AMDGPU] Improve selection of ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-18 Thread Sebastian Neubauer via cfe-commits
https://github.com/Flakebi approved this pull request. https://github.com/llvm/llvm-project/pull/71556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-18 Thread via cfe-commits
gendalph wrote: ` enum class test { err1, err2, ok }; int check_err (test v) { switch (v) { case test::err1: return 1; case test::err2: return 2; case test::ok: break; } return 0; } ` https://github.com/llvm/llvm-project/pull/73077 ___

[clang-tools-extra] [clang] [mlir] [llvm] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
https://github.com/chelini commented: Thanks! https://github.com/llvm/llvm-project/pull/75494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [clang-tools-extra] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
https://github.com/chelini edited https://github.com/llvm/llvm-project/pull/75494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-tools-extra] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
@@ -434,8 +429,21 @@ FailureOr linalg::lowerUnPack(RewriterBase &rewriter, RankedTensorType::Builder(packedTensorType).setShape(stripMinedShape); RankedTensorType collapsedType = tensor::CollapseShapeOp::inferCollapsedType( stripMinedTensorType, packingMetadata.r

[clang-tools-extra] [clang] [mlir] [llvm] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
@@ -434,8 +429,21 @@ FailureOr linalg::lowerUnPack(RewriterBase &rewriter, RankedTensorType::Builder(packedTensorType).setShape(stripMinedShape); RankedTensorType collapsedType = tensor::CollapseShapeOp::inferCollapsedType( stripMinedTensorType, packingMetadata.r

[mlir] [clang-tools-extra] [llvm] [clang] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
@@ -381,11 +381,6 @@ FailureOr linalg::lowerUnPack(RewriterBase &rewriter, return rewriter.notifyMatchFailure(unPackOp, "outer dims perm NYI"); RankedTensorType packedTensorType = unPackOp.getSourceType(); chelini wrote: nit: I would move this line aft

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread via cfe-commits
@@ -10804,9 +10804,12 @@ QualType Sema::DeduceTemplateSpecializationFromInitializer( if (getLangOpts().CPlusPlus20 && !HasAnyDeductionGuide) { if (ListInit && ListInit->getNumInits()) { SynthesizeAggrGuide(ListInit); - } else if (PL && PL->getNumExprs())

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin commented: Why remove the support for ParenListExpr entirely? Could you not fallback on looking at the init list expression only when ParenListExpr is null? https://github.com/llvm/llvm-project/pull/75779 ___ cfe-commits ma

[clang] [Concepts] Avoid substituting into constraints for invalid TemplateDecls (PR #75697)

2023-12-18 Thread via cfe-commits
@@ -353,6 +353,10 @@ static ExprResult calculateConstraintSatisfaction( if (Inst.isInvalid()) return ExprError(); + // An empty expression for substitution failure messages. + if (Template && Template->isInvalidDecl()) +retur

[flang] [llvm] [clang-tools-extra] [clang] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-18 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: > > llc has a --frame-pointer option, so there is likely a way to pass this > > option to the llvm codegen as a global option instead of setting it on all > > function at the MLIR level if the only goal is to propagate it to llvm > > backend. > > I just discussed a bi

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/75590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/75590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

2023-12-18 Thread via cfe-commits
@@ -283,6 +283,28 @@ bool ByteCodeExprGen::VisitCastExpr(const CastExpr *CE) { case CK_ToVoid: return discard(SubExpr); + case CK_IntegralRealToComplex: + case CK_FloatingRealToComplex: { +// We're creating a complex value here, so need to cor3nti

[clang] [RISCV] Implement multi-lib reuse rule for RISC-V bare-metal toolchain (PR #73765)

2023-12-18 Thread Jay Foad via cfe-commits
jayfoad wrote: The new test is crashing in my Release+Asserts build: ``` FAIL: Clang :: Driver/riscv-toolchain-gcc-multilib-reuse.c (1081 of 1081) TEST 'Clang :: Driver/riscv-toolchain-gcc-multilib-reuse.c' FAILED Exit Code: 2 Command Output (stderr): -

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/75569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Support __real/__imag on primitives (PR #75485)

2023-12-18 Thread via cfe-commits
@@ -2761,6 +2761,8 @@ bool ByteCodeExprGen::VisitUnaryOperator(const UnaryOperator *E) { return false; return DiscardResult ? this->emitPop(*T, E) : this->emitComp(*T, E); case UO_Real: { // __real x +if (T) + return this->delegate(SubExpr); assert(!T

[clang] [clang][Interp] Support __real/__imag on primitives (PR #75485)

2023-12-18 Thread via cfe-commits
@@ -2776,6 +2778,11 @@ bool ByteCodeExprGen::VisitUnaryOperator(const UnaryOperator *E) { return true; } case UO_Imag: { // __imag x +if (T) { + if (!this->discard(SubExpr)) +return false; + return this->visitZeroInitializer(*T, SubExpr->getType()

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
@@ -69,6 +69,29 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) { .Default(OpenACCDirectiveKindEx::Invalid); } +// Translate single-token string representations to the OpenCC Clause Kind. +OpenACCClauseKind getOpenACCClauseKind(Token Tok) {

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/75052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/75052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
@@ -262,12 +291,52 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ParseOpenACCClause(Parser &P) { cor3ntin wrote: Thanks https://github.com/llvm/llvm-project/pull/75052 __

[clang] [RISCV] Implement multi-lib reuse rule for RISC-V bare-metal toolchain (PR #73765)

2023-12-18 Thread antoine moynault via cfe-commits
antmox wrote: Hello, looks like it broke some bots too: clang-aarch64-quick https://lab.llvm.org/buildbot/#/builders/188/builds/39436 clang-armv8-quick https://lab.llvm.org/buildbot/#/builders/245/builds/18162 https://github.com/llvm/llvm-project/pull/73765 __

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #75487)

2023-12-18 Thread Nikita Popov via cfe-commits
nikic wrote: When building clang with clang, the regression on SemaChecking.cpp is now "only" 60% in terms of instructions retired (plus 0.4% during thin link, which is another ~50% in terms of SemaChecking). https://github.com/llvm/llvm-project/pull/75487 _

[clang-tools-extra] Allow to pass config file to clang-tidy-diff (PR #75457)

2023-12-18 Thread Piotr Zegar via cfe-commits
@@ -128,6 +128,11 @@ Improvements to clang-tidy as a value for `-export-fixes` to export individual yaml files for each compilation unit. +- Improved :program:`clang-tidy-diff.py` script. It now accepts a `-config-file` option PiotrZSL wrote: There is al

[clang] 1faa1cd - [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (#75107)

2023-12-18 Thread via cfe-commits
Author: Momchil Velikov Date: 2023-12-18T11:03:39Z New Revision: 1faa1cd02d569c1e58303ab4bd9d082aecda2a52 URL: https://github.com/llvm/llvm-project/commit/1faa1cd02d569c1e58303ab4bd9d082aecda2a52 DIFF: https://github.com/llvm/llvm-project/commit/1faa1cd02d569c1e58303ab4bd9d082aecda2a52.diff LO

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/75107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/71927 >From 93a02d9af1d7e4f1e23c252d72b20d292927a79f Mon Sep 17 00:00:00 2001 From: Samuel Tebbs Date: Thu, 9 Nov 2023 17:39:26 + Subject: [PATCH 1/5] [AArch64][SME2] Enable bfm builtings for sme2 This patch en

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
@@ -1992,3 +1986,12 @@ let TargetGuard = "sme2" in { def SVADD_SINGLE_X2 : SInst<"svadd[_single_{d}_x2]", "22d", "cUcsUsiUilUl", MergeNone, "aarch64_sve_add_single_x2", [IsStreaming], []>; def SVADD_SINGLE_X4 : SInst<"svadd[_single_{d}_x4]", "44d", "cUcsUsiUilUl", MergeNon

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
SamTebbs33 wrote: Rebased to fix a merge conflict and made the builtins temporarily `IsStreamingCompatible`. https://github.com/llvm/llvm-project/pull/71927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [clang] Fix --entry command line option (PR #69114)

2023-12-18 Thread Tuur Martens via cfe-commits
JohnyTheCarrot wrote: Heya @MaskRay If and when you get the chance, would you mind giving it another look? I applied your requested changes. :) Thanks! https://github.com/llvm/llvm-project/pull/69114 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-18 Thread via cfe-commits
https://github.com/lipracer updated https://github.com/llvm/llvm-project/pull/75279 >From 71ae35b1538201790e5fc7a25d1d7aba7df7913d Mon Sep 17 00:00:00 2001 From: lipracer Date: Wed, 13 Dec 2023 11:37:12 +0800 Subject: [PATCH] [NFC][clang] add a clang tool for mlir refactor --- clang-tools-ext

[openmp] [lldb] [mlir] [clang] [flang] [libcxx] [libc] [compiler-rt] [llvm] [clang-tools-extra] [libc++][span] P2821R5: span.at() (PR #74994)

2023-12-18 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,136 @@ +//===--===// +// +// 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: Apa

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-18 Thread dong jianqiang via cfe-commits
dongjianqiang2 wrote: > ``` > enum class test > { > err1, > err2, > ok > }; > > int check_err (test v) > { > switch (v) > { > case test::err1: > return 1; > case test::err2: > return 2; > case test::ok: > break; > } > return 0; > } > ``

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread Haojian Wu via cfe-commits
hokein wrote: > Why remove the support for ParenListExpr entirely? Could you not fallback on > looking at the init list expression only when ParenListExpr is null? We could keep `ParenListExpr`, but I'm not sure the benefit (IMO, removing it seems like an API improvement, and make code simple

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

2023-12-18 Thread Haojian Wu via cfe-commits
hokein wrote: Thanks for the review. https://github.com/llvm/llvm-project/pull/75569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 42239d2 - [clang] Fix CTAD not respect default template arguments that were added after the definition. (#75569)

2023-12-18 Thread via cfe-commits
Author: Haojian Wu Date: 2023-12-18T12:37:29+01:00 New Revision: 42239d2e96c5683a2973c39ea7ea20b616218b66 URL: https://github.com/llvm/llvm-project/commit/42239d2e96c5683a2973c39ea7ea20b616218b66 DIFF: https://github.com/llvm/llvm-project/commit/42239d2e96c5683a2973c39ea7ea20b616218b66.diff LO

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

2023-12-18 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/75569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-18 Thread Thomas Preud'homme via cfe-commits
RoboTux wrote: > Not an expert on atomics, but why would we have a libcall for -O0 but not for > O1 in the tests? I looked at it for the u?(min|max) and it seemed to boil down to the atomic expand pass being run at -O1 and above. https://github.com/llvm/llvm-project/pull/74588 ___

[clang] df3ddd7 - CGBuiltin - fix gcc Wunused-variable warning. NFC.

2023-12-18 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2023-12-18T11:51:24Z New Revision: df3ddd78f640ebec74151028d919904c6cf9ecdd URL: https://github.com/llvm/llvm-project/commit/df3ddd78f640ebec74151028d919904c6cf9ecdd DIFF: https://github.com/llvm/llvm-project/commit/df3ddd78f640ebec74151028d919904c6cf9ecdd.diff LOG:

[clang] [llvm] [clang-tools-extra] Add out-of-line-atomics support to GlobalISel (PR #74588)

2023-12-18 Thread Thomas Preud'homme via cfe-commits
RoboTux wrote: > > Not an expert on atomics, but why would we have a libcall for -O0 but not > > for O1 in the tests? > > I looked at it for the u?(min|max) and it seemed to boil down to the atomic > expand pass being run at -O1 and above. No sorry, it's not that it's only run at O1 and above

[clang] dea16eb - [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (#75217)

2023-12-18 Thread via cfe-commits
Author: Paul Walker Date: 2023-12-18T11:58:42Z New Revision: dea16ebd2613a4a218c53045270fc4fcc9b427ad URL: https://github.com/llvm/llvm-project/commit/dea16ebd2613a4a218c53045270fc4fcc9b427ad DIFF: https://github.com/llvm/llvm-project/commit/dea16ebd2613a4a218c53045270fc4fcc9b427ad.diff LOG: [

[llvm] [mlir] [clang] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-18 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/75217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Add builtins for FDOT, BFDOT, SUDOT, USDOT, SDOT, UDOT. (PR #75737)

2023-12-18 Thread via cfe-commits
CarolineConcatto wrote: Hey Dinar, I will leave the same comments Kerry left in the other one Can you add check for the immediate in acle_sme2_imm.cpp https://github.com/llvm/llvm-project/pull/75737 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[libcxx] [flang] [llvm] [mlir] [clang] [AsmWriter] Ensure getMnemonic doesn't return invalid pointers (PR #75783)

2023-12-18 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas updated https://github.com/llvm/llvm-project/pull/75783 >From 62f4b5daeca0be5b463c5c42271a4b997f084523 Mon Sep 17 00:00:00 2001 From: Lucas Prates Date: Mon, 18 Dec 2023 10:49:25 + Subject: [PATCH] [AsmWriter] Ensure getMnemonic doesn't return invalid pointers

[libcxx] [flang] [llvm] [mlir] [clang] [AsmWriter] Ensure getMnemonic doesn't return invalid pointers (PR #75783)

2023-12-18 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas updated https://github.com/llvm/llvm-project/pull/75783 >From 62f4b5daeca0be5b463c5c42271a4b997f084523 Mon Sep 17 00:00:00 2001 From: Lucas Prates Date: Mon, 18 Dec 2023 10:49:25 + Subject: [PATCH 1/2] [AsmWriter] Ensure getMnemonic doesn't return invalid point

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-18 Thread via cfe-commits
https://github.com/lipracer ready_for_review https://github.com/llvm/llvm-project/pull/75279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread antoine moynault via cfe-commits
https://github.com/antmox created https://github.com/llvm/llvm-project/pull/75789 …toolchain (#73765)" This reverts commit 111a2290650743b27f70f9b24618411e54493b59, as it broke several bots https://lab.llvm.org/buildbot/#/builders/245/builds/18162 https://lab.llvm.org/buildbot/#/builders/1

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: antoine moynault (antmox) Changes …toolchain (#73765)" This reverts commit 111a2290650743b27f70f9b24618411e54493b59, as it broke several bots https://lab.llvm.org/buildbot/#/builders/245/builds/18162 https://lab.llvm.org/buildb

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread antoine moynault via cfe-commits
antmox wrote: I would like to revert this as several arm/aarch64 bots are broken by this patch. Do I have to first revert c7cdf3c or is it OK like this ? https://github.com/llvm/llvm-project/pull/75789 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/75789 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread antoine moynault via cfe-commits
https://github.com/antmox closed https://github.com/llvm/llvm-project/pull/75789 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9727919 - Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (#75789)

2023-12-18 Thread via cfe-commits
Author: antoine moynault Date: 2023-12-18T13:52:21+01:00 New Revision: 9727919a2e35d2114d52f33a7751696ae1595581 URL: https://github.com/llvm/llvm-project/commit/9727919a2e35d2114d52f33a7751696ae1595581 DIFF: https://github.com/llvm/llvm-project/commit/9727919a2e35d2114d52f33a7751696ae1595581.di

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-18 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/75753 >From 957951483dab19b0982a5dbe7d5370bd9061d931 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Sun, 17 Dec 2023 14:11:11 -0800 Subject: [PATCH 1/2] [clangd] Expand response files before CDB interpolation

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-18 Thread Dmitry Polukhin via cfe-commits
dmpolukhin wrote: @HighCommander4 PTAL https://github.com/llvm/llvm-project/pull/75753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-18 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin edited https://github.com/llvm/llvm-project/pull/75753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Add missing SME functions to header file. (PR #75791)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm created https://github.com/llvm/llvm-project/pull/75791 This includes: * __arm_in_streaming_mode() * __arm_has_sme() * __arm_za_disable() * __svundef_za() >From 8b30f772982d7d608541526b1fa42de2b5eb7e1e Mon Sep 17 00:00:00 2001 From: Sander de Smalen Date: Mon,

[clang] [Clang][AArch64] Add missing SME functions to header file. (PR #75791)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sander de Smalen (sdesmalen-arm) Changes This includes: * __arm_in_streaming_mode() * __arm_has_sme() * __arm_za_disable() * __svundef_za() --- Full diff: https://github.com/llvm/llvm-project/pull/75791.diff 4 Files Affected: - (modifie

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-18 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/75753 >From 957951483dab19b0982a5dbe7d5370bd9061d931 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Sun, 17 Dec 2023 14:11:11 -0800 Subject: [PATCH 1/3] [clangd] Expand response files before CDB interpolation

[clang] [OpenMP][Clang] Force use of `num_teams` and `thread_limit` for bare kernel (PR #68373)

2023-12-18 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/68373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev edited https://github.com/llvm/llvm-project/pull/75052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread Alexey Bataev via cfe-commits
@@ -69,6 +69,19 @@ enum class OpenACCAtomicKind { Capture, Invalid, }; + +// Represents the kind of an OpenACC clause. alexey-bataev wrote: Use '///' kind of comment here https://github.com/llvm/llvm-project/pull/75052

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/75052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread Alexey Bataev via cfe-commits
@@ -69,6 +69,19 @@ enum class OpenACCAtomicKind { Capture, Invalid, }; + +// Represents the kind of an OpenACC clause. +enum class OpenACCClauseKind { + Finalize, alexey-bataev wrote: Add the comments with the description of each clause kind? https://git

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: LG with nits https://github.com/llvm/llvm-project/pull/75052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [clang] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-18 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/75642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

2023-12-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/75590 >From 09d552b3e700ee8281a55fd63a5c4bc75a94251c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 15 Dec 2023 13:11:16 +0100 Subject: [PATCH] [clang][Interp] Implement integral->complex cast

[clang] [Cygwin] Reduced number of inline elements of CallArgList. (PR #74977)

2023-12-18 Thread 徐持恒 Xu Chiheng via cfe-commits
https://github.com/xu-chiheng reopened https://github.com/llvm/llvm-project/pull/74977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MinGW] Fix the regression caused by commit 592e935e115ffb451eb9b782376711dab6558fe0, that, in MinGW, Clang can't be built by system Clang 15.0.4. (PR #74982)

2023-12-18 Thread 徐持恒 Xu Chiheng via cfe-commits
https://github.com/xu-chiheng reopened https://github.com/llvm/llvm-project/pull/74982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [llvm] [clang] Fix false positive -Wmissing-field-initializer for anonymous unions (PR #70829)

2023-12-18 Thread via cfe-commits
mikaelholmen wrote: Hi again @Fznamznon the following also started causing warnings after this patch (also with the fix) ``` struct S3 { long int l; struct { int a, b; } d1[2]; }; struct S3 s32 = { .d1[0].a = 1 }; ``` We get ``` foo.c:6:30: warning: missing field 'b' initializer [-Wmissin

[clang] [Clang][SME2] Add multi-vector zip & unzip builtins (PR #74841)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/74841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] RecursiveASTVisitor: traverse the require clause for partial template specializations. (PR #75795)

2023-12-18 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/75795 This fixes tooling (clangd, include-cleaner) bugs where we miss functionalities on concept AST nodes. >From 9012381987bd702a58683fc5c6c7452c32755a08 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 18 Dec 20

[clang] [AST] RecursiveASTVisitor: traverse the require clause for partial template specializations. (PR #75795)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This fixes tooling (clangd, include-cleaner) bugs where we miss functionalities on concept AST nodes. --- Full diff: https://github.com/llvm/llvm-project/pull/75795.diff 2 Files Affected: - (modified) clang/

[clang] [llvm] [AMDGPU] Improve selection of ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Description should be adjusted, this isn't really changing the selection anymore https://github.com/llvm/llvm-project/pull/71556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [llvm] [AMDGPU] Improve selection of ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-18 Thread Matt Arsenault via cfe-commits
@@ -961,6 +961,19 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const { return IC.replaceInstUsesWith(II, Constant::getNullValue(II.getType())); } } +if (ST->isWave32() && II.getType()->getIntegerBitWidth() == 64) { + // %

[clang] [ARM] arm_acle.h add Corprocessor Instrinsics (PR #75440)

2023-12-18 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/75440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] arm_acle.h add Corprocessor Instrinsics (PR #75440)

2023-12-18 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/75440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] arm_acle.h add Corprocessor Instrinsics (PR #75440)

2023-12-18 Thread Saleem Abdulrasool via cfe-commits
@@ -752,10 +752,57 @@ __arm_st64bv0(void *__addr, data512_t __value) { #define __arm_mte_ptrdiff(__ptra, __ptrb) __builtin_arm_subp(__ptra, __ptrb) /* Memory Operations Intrinsics */ -#define __arm_mops_memset_tag(__tagged_address, __value, __size)\ +#define __arm_mops_mem

  1   2   3   4   5   >