[clang] 324436c - [Clang] Fix bugs the way we handle duplicate vs conflicting values with loop attribute 'code_align' (#87372)

2024-04-02 Thread via cfe-commits
Author: smanna12 Date: 2024-04-02T22:59:48-05:00 New Revision: 324436c29ffd14bcf96c94500d5e43391f2b1e51 URL: https://github.com/llvm/llvm-project/commit/324436c29ffd14bcf96c94500d5e43391f2b1e51 DIFF: https://github.com/llvm/llvm-project/commit/324436c29ffd14bcf96c94500d5e43391f2b1e51.diff

[clang] ed1cfff - [NFC] [C++20] [Modules] [Reduced BMI] Make sure the size of reduced BMI is not large than full BMI

2024-04-02 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-04-03T10:51:42+08:00 New Revision: ed1cfffe9b2b2d3cc9279ff83400ace156b317a2 URL: https://github.com/llvm/llvm-project/commit/ed1cfffe9b2b2d3cc9279ff83400ace156b317a2 DIFF: https://github.com/llvm/llvm-project/commit/ed1cfffe9b2b2d3cc9279ff83400ace156b317a2.diff

[clang] c925c16 - [clang][modules] NFCI: Pragma diagnostic mappings: write/read `FileID` instead of `SourceLocation` (#87427)

2024-04-02 Thread via cfe-commits
Author: Jan Svoboda Date: 2024-04-03T03:36:53+02:00 New Revision: c925c1646dd248d15ae93c6b3cbd04bb86b9775f URL: https://github.com/llvm/llvm-project/commit/c925c1646dd248d15ae93c6b3cbd04bb86b9775f DIFF: https://github.com/llvm/llvm-project/commit/c925c1646dd248d15ae93c6b3cbd04bb86b9775f.diff

[clang] 633bc3b - [CodeGen][NFC] Make an opt<> static

2024-04-02 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2024-04-02T15:47:04-07:00 New Revision: 633bc3bfda71c55bc38d5a3bfdb426bab61ff101 URL: https://github.com/llvm/llvm-project/commit/633bc3bfda71c55bc38d5a3bfdb426bab61ff101 DIFF: https://github.com/llvm/llvm-project/commit/633bc3bfda71c55bc38d5a3bfdb426bab61ff101.diff

[clang] b4adb42 - Use setup_host_tool for clang-ast-dump, fixes 76707

2024-04-02 Thread Jon Chesterfield via cfe-commits
Author: Jon Chesterfield Date: 2024-04-02T23:21:48+01:00 New Revision: b4adb42151bbfa80be4cf6d076cbe5edf680693e URL: https://github.com/llvm/llvm-project/commit/b4adb42151bbfa80be4cf6d076cbe5edf680693e DIFF:

[clang] 68217a5 - [Fuchsia] Add SWIG flags to Fuchsia Clang stage2 build (#87421)

2024-04-02 Thread via cfe-commits
Author: Haowei Date: 2024-04-02T15:11:17-07:00 New Revision: 68217a52fb9fec8a88623f97a90899b8d27eefb3 URL: https://github.com/llvm/llvm-project/commit/68217a52fb9fec8a88623f97a90899b8d27eefb3 DIFF: https://github.com/llvm/llvm-project/commit/68217a52fb9fec8a88623f97a90899b8d27eefb3.diff LOG:

[clang] a7f4576 - [clang-format] Fix a regression in annotating TrailingReturnArrow (#86624)

2024-04-02 Thread via cfe-commits
Author: Owen Pan Date: 2024-04-02T14:48:14-07:00 New Revision: a7f4576ff4e296ff42b16d9d91aadf82b5ea325c URL: https://github.com/llvm/llvm-project/commit/a7f4576ff4e296ff42b16d9d91aadf82b5ea325c DIFF: https://github.com/llvm/llvm-project/commit/a7f4576ff4e296ff42b16d9d91aadf82b5ea325c.diff

[clang] f119a4f - [HLSL] Fix broken spir-v test

2024-04-02 Thread Chris Bieneman via cfe-commits
Author: Chris Bieneman Date: 2024-04-02T15:53:17-05:00 New Revision: f119a4ffb885ed588c46de1d51f4185572142ca2 URL: https://github.com/llvm/llvm-project/commit/f119a4ffb885ed588c46de1d51f4185572142ca2 DIFF:

[clang] 6b2a466 - [C11] Claim conformance to WG14 N1482

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T16:26:29-04:00 New Revision: 6b2a4668b99ef47f567709bcf6f57bc60c35eea9 URL: https://github.com/llvm/llvm-project/commit/6b2a4668b99ef47f567709bcf6f57bc60c35eea9 DIFF: https://github.com/llvm/llvm-project/commit/6b2a4668b99ef47f567709bcf6f57bc60c35eea9.diff

[clang] 13be0d4 - [clang-format] Add BreakFunctionDefinitionParameters option (#84988)

2024-04-02 Thread via cfe-commits
Author: Ameer J Date: 2024-04-02T21:00:51+02:00 New Revision: 13be0d4a34c421607a5c082ec39dad2cbd6d506f URL: https://github.com/llvm/llvm-project/commit/13be0d4a34c421607a5c082ec39dad2cbd6d506f DIFF: https://github.com/llvm/llvm-project/commit/13be0d4a34c421607a5c082ec39dad2cbd6d506f.diff LOG:

[clang] 3d469c0 - [HLSL] Enable -fconvergent-functions by default (#86571)

2024-04-02 Thread via cfe-commits
Author: aniplcc Date: 2024-04-02T13:29:57-05:00 New Revision: 3d469c0e7c3072f0dad0f5e9bd0c74dffaf83cd3 URL: https://github.com/llvm/llvm-project/commit/3d469c0e7c3072f0dad0f5e9bd0c74dffaf83cd3 DIFF: https://github.com/llvm/llvm-project/commit/3d469c0e7c3072f0dad0f5e9bd0c74dffaf83cd3.diff LOG:

[clang] f599116 - [Driver,test] Remove --gcc-toolchain=""

2024-04-02 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-04-02T10:40:19-07:00 New Revision: f5991161529511ca6ebc058da2a0507c2fc5283e URL: https://github.com/llvm/llvm-project/commit/f5991161529511ca6ebc058da2a0507c2fc5283e DIFF: https://github.com/llvm/llvm-project/commit/f5991161529511ca6ebc058da2a0507c2fc5283e.diff

[clang] 3cf9f2c - [C99] Claim conformance to WG14 N782

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T13:36:45-04:00 New Revision: 3cf9f2c3a4b3aaffa9c1dbbe34624bcaabefd390 URL: https://github.com/llvm/llvm-project/commit/3cf9f2c3a4b3aaffa9c1dbbe34624bcaabefd390 DIFF: https://github.com/llvm/llvm-project/commit/3cf9f2c3a4b3aaffa9c1dbbe34624bcaabefd390.diff

[clang] 451cad3 - [clang] Prefer logical && over & for boolean operations (#87276)

2024-04-02 Thread via cfe-commits
Author: aniplcc Date: 2024-04-02T19:21:39+02:00 New Revision: 451cad3a2735f33e8b24cc0b53497d0dc8939f78 URL: https://github.com/llvm/llvm-project/commit/451cad3a2735f33e8b24cc0b53497d0dc8939f78 DIFF: https://github.com/llvm/llvm-project/commit/451cad3a2735f33e8b24cc0b53497d0dc8939f78.diff LOG:

[clang] a5932e1 - Add a link to WG14 N835 to the status page

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T13:14:09-04:00 New Revision: a5932e182ba7dd8f1ae131038bab051aea13e688 URL: https://github.com/llvm/llvm-project/commit/a5932e182ba7dd8f1ae131038bab051aea13e688 DIFF: https://github.com/llvm/llvm-project/commit/a5932e182ba7dd8f1ae131038bab051aea13e688.diff

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values with loop attribute 'code_align' (PR #87372)

2024-04-02 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/87372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f462d9a - [C99] Claim conformance to "remove deprecation of aliased array parameters"

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T13:08:27-04:00 New Revision: f462d9a97dbbeef712ef0de206ec17f5ed7e15c8 URL: https://github.com/llvm/llvm-project/commit/f462d9a97dbbeef712ef0de206ec17f5ed7e15c8 DIFF: https://github.com/llvm/llvm-project/commit/f462d9a97dbbeef712ef0de206ec17f5ed7e15c8.diff

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values with loop attribute 'code_align' (PR #87372)

2024-04-02 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/87372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values with loop attribute 'code_align' (PR #87372)

2024-04-02 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/87372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values wit… (PR #87372)

2024-04-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes https://github.com/llvm/llvm-project/pull/70762 added support for new loop attribute [[clang::code_align()]]. This patch fixes bug for the test case below that misses diagnostic due to discontinue to loop while

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values wit… (PR #87372)

2024-04-02 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/87372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix bug the way we handle duplicate vs conflicting values wit… (PR #87372)

2024-04-02 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/87372 …h loop attribute 'code_align' https://github.com/llvm/llvm-project/pull/70762 added support for new loop attribute [[clang::code_align()]]. This patch fixes bug for the test case below that misses diagnostic

[clang] 74483bd - [C99] Remove entry for LIA compatibility

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T12:57:38-04:00 New Revision: 74483bd6f6bdecdd16efbfcd183b5e29e0234a3a URL: https://github.com/llvm/llvm-project/commit/74483bd6f6bdecdd16efbfcd183b5e29e0234a3a DIFF: https://github.com/llvm/llvm-project/commit/74483bd6f6bdecdd16efbfcd183b5e29e0234a3a.diff

[clang] [ClangFE] Improve handling of casting of atomic memory operations. (PR #86691)

2024-04-02 Thread Jonas Paulsson via cfe-commits
https://github.com/JonPsson1 closed https://github.com/llvm/llvm-project/pull/86691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4d5e834 - [ClangFE] Improve handling of casting of atomic memory operations. (#86691)

2024-04-02 Thread via cfe-commits
Author: Jonas Paulsson Date: 2024-04-02T18:52:57+02:00 New Revision: 4d5e834c5b7f0d90a6d543e182df602f6bc8 URL: https://github.com/llvm/llvm-project/commit/4d5e834c5b7f0d90a6d543e182df602f6bc8 DIFF:

[clang] [Sema] Mark alias/ifunc targets used and consider mangled names (PR #87130)

2024-04-02 Thread Nick Desaulniers via cfe-commits
@@ -1980,6 +1981,23 @@ static void handleWeakRefAttr(Sema , Decl *D, const ParsedAttr ) { D->addAttr(::new (S.Context) WeakRefAttr(S.Context, AL)); } +// Mark alias/ifunc target as used. For C++, we look up the demangled name +// ignoring parameters. This should handle the

[clang] [Sema] Mark alias/ifunc targets used and consider mangled names (PR #87130)

2024-04-02 Thread Nick Desaulniers via cfe-commits
@@ -1,7 +1,35 @@ -// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunneeded-internal-declaration -x c -verify %s +// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunused -x c -verify %s +// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunused -x c++ -verify %s + +#ifdef __cplusplus

[clang] [Sema] Mark alias/ifunc targets used and consider mangled names (PR #87130)

2024-04-02 Thread Nick Desaulniers via cfe-commits
@@ -1,7 +1,35 @@ -// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunneeded-internal-declaration -x c -verify %s +// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunused -x c -verify %s +// RUN: %clang_cc1 -triple x86_64-linux-gnu -Wunused -x c++ -verify %s + +#ifdef __cplusplus

[clang] 668c1ea - [C99] Update paper number tracked for arrays & lvalues; NFC

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T12:36:27-04:00 New Revision: 668c1ea4aa7f3907b92116748af087f2bb006a97 URL: https://github.com/llvm/llvm-project/commit/668c1ea4aa7f3907b92116748af087f2bb006a97 DIFF: https://github.com/llvm/llvm-project/commit/668c1ea4aa7f3907b92116748af087f2bb006a97.diff

[clang] [M68k] Change gcc register name from a7 to sp. (PR #87095)

2024-04-02 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/87095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4f0b5d5 - [M68k] Change gcc register name from a7 to sp. (#87095)

2024-04-02 Thread via cfe-commits
Author: Jim Lin Date: 2024-04-02T11:32:15-05:00 New Revision: 4f0b5d5e8067cadafc4473476eb68aa0addad488 URL: https://github.com/llvm/llvm-project/commit/4f0b5d5e8067cadafc4473476eb68aa0addad488 DIFF: https://github.com/llvm/llvm-project/commit/4f0b5d5e8067cadafc4473476eb68aa0addad488.diff LOG:

[clang] [Headers] Don't declare unreachable() from stddef.h in C++ (PR #86748)

2024-04-02 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: > > > FWIW, I did verify that it's very unlikely the changes in this PR will > > > break existing code: > > > https://sourcegraph.com/search?q=context:global+__need_unreachable+-file:.*clang.*=keyword=0, > > > so that's a good thing. > > > > I do wonder if we could

[clang] [Sema] Mark alias/ifunc targets used and consider mangled names (PR #87130)

2024-04-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/87130 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Implementation of an abstraction for intrinsic selection of HLSL backends (PR #87171)

2024-04-02 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,44 @@ + +//===- CGHLSLUtils.h - Utility functions for HLSL CodeGen ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/86960 >From 297e4f6b4303d1847f2cbddb6d00aaccbaeb2600 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 2 Apr 2024 23:47:33 +0800 Subject: [PATCH] [Clang] Extend lifetime of temporaries in mem-default-init for

[clang] [Sema] Mark alias/ifunc targets used and consider mangled names (PR #87130)

2024-04-02 Thread Fangrui Song via cfe-commits
@@ -1980,6 +1981,23 @@ static void handleWeakRefAttr(Sema , Decl *D, const ParsedAttr ) { D->addAttr(::new (S.Context) WeakRefAttr(S.Context, AL)); } +// Mark alias/ifunc target as used. For C++, we look up the demangled name +// ignoring parameters. This should handle the

[clang] 207f153 - [InstallAPI] Condense std::pair unwrapping in CategoryRecord NFC

2024-04-02 Thread Cyndy Ishida via cfe-commits
Author: Cyndy Ishida Date: 2024-04-02T09:17:06-07:00 New Revision: 207f1531d611b8add27b94e756e0bc7eb864babf URL: https://github.com/llvm/llvm-project/commit/207f1531d611b8add27b94e756e0bc7eb864babf DIFF: https://github.com/llvm/llvm-project/commit/207f1531d611b8add27b94e756e0bc7eb864babf.diff

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/86960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread Tom Eccles via cfe-commits
https://github.com/tblah edited https://github.com/llvm/llvm-project/pull/87360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread Tom Eccles via cfe-commits
tblah wrote: What is this file for? https://github.com/llvm/llvm-project/pull/87360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread Tom Eccles via cfe-commits
tblah wrote: Does this need `#!/bin/true`? https://github.com/llvm/llvm-project/pull/87360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread Tom Eccles via cfe-commits
https://github.com/tblah commented: Overall this looks good. Just minor comments. Thank you for working on this! https://github.com/llvm/llvm-project/pull/87360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] f619868 - [C99] Claim conformance to "additional floating-point characteristics in "

2024-04-02 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-04-02T12:15:10-04:00 New Revision: f6198686b866d0a1efe7ce88f71c4293930c2dfe URL: https://github.com/llvm/llvm-project/commit/f6198686b866d0a1efe7ce88f71c4293930c2dfe DIFF: https://github.com/llvm/llvm-project/commit/f6198686b866d0a1efe7ce88f71c4293930c2dfe.diff

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/86960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Modules] No transitive source location change (PR #86912)

2024-04-02 Thread Simon Tatham via cfe-commits
statham-arm wrote: > Let's see if @statham-arm (who introduced the `SourceLocation::[U]IntTy` > typedefs) wants to weight in here. I'm afraid my knowledge of C++ modules is very close to zero. They were mentioned in a training course I did last year, but not in much detail. On 64-bit

[clang] e12a1f8 - [clang] Fix crash when inheriting from a cv-qualified type (#70594)

2024-04-02 Thread via cfe-commits
Author: Rajveer Singh Bharadwaj Date: 2024-04-02T12:06:56-04:00 New Revision: e12a1f8b325a72191c261b4f11726a9c58f84817 URL: https://github.com/llvm/llvm-project/commit/e12a1f8b325a72191c261b4f11726a9c58f84817 DIFF:

[clang] [clang] Fix crash when inheriting from a cv-qualified type (PR #70594)

2024-04-02 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/70594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reduce the size of Decl and classes derived from it (PR #87361)

2024-04-02 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 5b544b511c7133fcb26a5c563b746a4baefb38d6 b8a626116b0719c1acf75e9e7300df8e2bf82f99 --

[clang] [clang][analyzer] Add "pedantic" mode to StreamChecker. (PR #87322)

2024-04-02 Thread Balazs Benics via cfe-commits
steakhal wrote: > > Unless you plan to add more heuristics, I'd prefer a more concrete option > > name, like AssumeSuccessfulWrites=true. This would better describe it imo. > > I do not like totally the name "Pedantic", it could be > "AssumeOftenUncheckedOperationsMayFail". I am not sure if

[clang] [llvm] [mlir] [OpenMP] Migrate GPU Reductions CodeGen from Clang to OMPIRBuilder (PR #80343)

2024-04-02 Thread Akash Banerjee via cfe-commits
TIFitis wrote: Ping for review. https://github.com/llvm/llvm-project/pull/80343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reduce the size of Decl and classes derived from it (PR #87361)

2024-04-02 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/87361 Class | Old size (in bytes) | New size (in bytes) --|-| Decl | 40

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/86960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Clean up unused binary files for offloading tests (PR #87351)

2024-04-02 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/87351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6626eab - [Clang][NFC] Clean up unused binary files for offloading tests (#87351)

2024-04-02 Thread via cfe-commits
Author: Joseph Huber Date: 2024-04-02T10:54:38-05:00 New Revision: 6626eab07e2e9a1993a1ccdbf82bd88c3dc5b851 URL: https://github.com/llvm/llvm-project/commit/6626eab07e2e9a1993a1ccdbf82bd88c3dc5b851 DIFF: https://github.com/llvm/llvm-project/commit/6626eab07e2e9a1993a1ccdbf82bd88c3dc5b851.diff

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/86960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/86960 >From 8bd2742f6bccc0ec7229950e901e99717ba9acb3 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 2 Apr 2024 23:47:33 +0800 Subject: [PATCH] [Clang] Extend lifetime of temporaries in mem-default-init for

[clang] [Clang] Extend lifetime of temporaries in mem-default-init for P2718R0 (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/86960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Michael Kruse (Meinersbur) Changes The `--gcc-toolchain` and `--gcc-install-dir` option were previously only visible to the Clang driver, but not Flang. These determine which assembler, linker, and libraries to use, e.g. for

[clang] [WIP][Clang] Extend lifetime of the temporary in default member init expression (PR #86960)

2024-04-02 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/86960 >From 2e05cb427d245261c779725f355ec93f4989939b Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 2 Apr 2024 23:47:33 +0800 Subject: [PATCH] [Clang] Extend lifetime of temporaries in mem-default-init for

[clang] [flang] [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (PR #87360)

2024-04-02 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur created https://github.com/llvm/llvm-project/pull/87360 The `--gcc-toolchain` and `--gcc-install-dir` option were previously only visible to the Clang driver, but not Flang. These determine which assembler, linker, and libraries to use, e.g. for cross-compiling,

[clang] [clang][ASTImporter] fix variable inline of CXX17 (PR #87314)

2024-04-02 Thread Balazs Benics via cfe-commits
@@ -5317,6 +5317,34 @@ TEST_P(ASTImporterOptionSpecificTestBase, EXPECT_FALSE(ToX); } +TEST_P(ASTImporterOptionSpecificTestBase, VarTemplateDeclInlineWithCXX17) { + Decl *FromTU = getTuDecl( + R"( + struct S { +template static constexpr bool X = true; +

[clang] [clang][ASTImporter] fix variable inline of CXX17 (PR #87314)

2024-04-02 Thread Balazs Benics via cfe-commits
@@ -5317,6 +5317,34 @@ TEST_P(ASTImporterOptionSpecificTestBase, EXPECT_FALSE(ToX); } +TEST_P(ASTImporterOptionSpecificTestBase, VarTemplateDeclInlineWithCXX17) { + Decl *FromTU = getTuDecl( + R"( + struct S { +template static constexpr bool X = true; +

[clang] [clang][ASTImporter] fix variable inline of CXX17 (PR #87314)

2024-04-02 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/87314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] fix variable inline of CXX17 (PR #87314)

2024-04-02 Thread Balazs Benics via cfe-commits
https://github.com/steakhal requested changes to this pull request. I only had generic nits, as I'm not really in the domain. Consider my review as such. https://github.com/llvm/llvm-project/pull/87314 ___ cfe-commits mailing list

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-04-02 Thread David Blaikie via cfe-commits
dwblaikie wrote: > As for impact, I believe @namhyung did some measurement for building the > Linux kernel, and it does not have a significant impact. That'd surprise me quite a bit - perhaps a self-host build of clang (ideally in Google's build config, that being the one you and I care about

[clang] [clang][ExtractAPI] improve template argument name deduction (PR #77716)

2024-04-02 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/77716 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2b6c038 - [clang][ExtractAPI] improve template argument name deduction (#77716)

2024-04-02 Thread via cfe-commits
Author: Erick Velez Date: 2024-04-02T08:42:13-07:00 New Revision: 2b6c038e1f15a64ade8ddb4e0ad60942c2132228 URL: https://github.com/llvm/llvm-project/commit/2b6c038e1f15a64ade8ddb4e0ad60942c2132228 DIFF: https://github.com/llvm/llvm-project/commit/2b6c038e1f15a64ade8ddb4e0ad60942c2132228.diff

[clang-tools-extra] [clang-tidy] add check to suggest replacement of nested std::min or std::max with initializer lists (PR #85572)

2024-04-02 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. Looks good to me (others are still reviewing), thanks https://github.com/llvm/llvm-project/pull/85572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] [clang-tidy] add check to suggest replacement of nested std::min or std::max with initializer lists (PR #85572)

2024-04-02 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,255 @@ +//===--- MinMaxUseInitializerListCheck.cpp - clang-tidy ---===// +// +// 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:

[clang-tools-extra] [clang-tidy] add check to suggest replacement of nested std::min or std::max with initializer lists (PR #85572)

2024-04-02 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/85572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] add check to suggest replacement of nested std::min or std::max with initializer lists (PR #85572)

2024-04-02 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,278 @@ +//===--- MinMaxUseInitializerListCheck.cpp - clang-tidy ---===// +// +// 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:

[clang-tools-extra] [clang-tidy] add check to suggest replacement of nested std::min or std::max with initializer lists (PR #85572)

2024-04-02 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,255 @@ +//===--- MinMaxUseInitializerListCheck.cpp - clang-tidy ---===// +// +// 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:

[clang] Rework the printing of attributes (PR #87281)

2024-04-02 Thread Giuliano Belinassi via cfe-commits
giulianobelinassi wrote: I am not sure how I feel about dropping the canPrintOnRight/printOnRight logic. We use it as a fallback when the SourceRange of a function is unreliable, otherwise we always copy and paste the code the user wrote. Regardless of that I will check for fallbacks on

[clang] Reenable external categories (PR #87357)

2024-04-02 Thread via cfe-commits
https://github.com/QuietMisdreavus approved this pull request. https://github.com/llvm/llvm-project/pull/87357 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reenable external categories (PR #87357)

2024-04-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes Reenables b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the commit

[clang] Reenable external categories (PR #87357)

2024-04-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Daniel Grumberg (daniel-grumberg) Changes Reenables b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the

[clang] [Clang][NFC] Clean up unused binary files for offloading tests (PR #87351)

2024-04-02 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. https://github.com/llvm/llvm-project/pull/87351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (PR #86682)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/86682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0cd44ff - [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (#86682)

2024-04-02 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-04-02T11:14:24-04:00 New Revision: 0cd44ff15990799759721e8ec5e6402b7916e464 URL: https://github.com/llvm/llvm-project/commit/0cd44ff15990799759721e8ec5e6402b7916e464 DIFF:

[clang] [clang-repl] Add call to 'InitializeAllAsmParsers' (PR #86727)

2024-04-02 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/86727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Clean up unused binary files for offloading tests (PR #87351)

2024-04-02 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: LGTM for HIP https://github.com/llvm/llvm-project/pull/87351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Rework the printing of attributes (PR #87281)

2024-04-02 Thread Vassil Vassilev via cfe-commits
@@ -250,87 +241,43 @@ raw_ostream& DeclPrinter::Indent(unsigned Indentation) { return Out; } -// For CLANG_ATTR_LIST_CanPrintOnLeft macro. -#include "clang/Basic/AttrLeftSideCanPrintList.inc" - -// For CLANG_ATTR_LIST_PrintOnLeft macro. -#include

[clang] [clang] Fix crash when inheriting from a cv-qualified type (PR #70594)

2024-04-02 Thread via cfe-commits
yronglin wrote: https://github.com/llvm/llvm-project/issues/85256 can be closed once this PR merged. https://github.com/llvm/llvm-project/pull/70594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][ExtractAPI] Add ability to create multiple symbol graphs (PR #86676)

2024-04-02 Thread Daniel Grumberg via cfe-commits
daniel-grumberg wrote: Just reverted this due to buildbot failures in `Misc/warning-flags.c` will reenable shortly. https://github.com/llvm/llvm-project/pull/86676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Add test for CWG1606 (PR #87274)

2024-04-02 Thread via cfe-commits
github-actions[bot] wrote: @NekoCdr Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

[clang] cf61e34 - [clang] Add test for CWG1606 (#87274)

2024-04-02 Thread via cfe-commits
Author: Yuri Istomin Date: 2024-04-02T18:40:40+04:00 New Revision: cf61e347ba3c847f061563d05096e7589fd9ec4b URL: https://github.com/llvm/llvm-project/commit/cf61e347ba3c847f061563d05096e7589fd9ec4b DIFF: https://github.com/llvm/llvm-project/commit/cf61e347ba3c847f061563d05096e7589fd9ec4b.diff

[clang] [clang] Add test for CWG1606 (PR #87274)

2024-04-02 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/87274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Rework the printing of attributes (PR #87281)

2024-04-02 Thread Vassil Vassilev via cfe-commits
@@ -129,11 +118,13 @@ namespace { const TemplateParameterList *Params); void printTemplateArguments(llvm::ArrayRef Args, const TemplateParameterList *Params); - -inline void prettyPrintAttributes(Decl *D)

[clang] [llvm] [HLSL][DXIL][SPIRV] Implementation of an abstraction for intrinsic selection of HLSL backends (PR #87171)

2024-04-02 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts edited https://github.com/llvm/llvm-project/pull/87171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Implementation of an abstraction for intrinsic selection of HLSL backends (PR #87171)

2024-04-02 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts edited https://github.com/llvm/llvm-project/pull/87171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (PR #86682)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/86682 >From 125b91778874e9f61e178ea4dd2efaf592ea84bb Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Tue, 26 Mar 2024 11:27:28 -0400 Subject: [PATCH] [Clang][AST][NFC] Move template argument dependence

[clang] [llvm] [HLSL][DXIL][SPIRV] Implementation of an abstraction for intrinsic selection of HLSL backends (PR #87171)

2024-04-02 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,44 @@ + +//===- CGHLSLUtils.h - Utility functions for HLSL CodeGen ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang] [Clang][AST][NFC] MemberExpr stores NestedNameSpecifierLoc and DeclAccessPair separately (PR #86678)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/86678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Implementation of an abstraction for intrinsic selection of HLSL backends (PR #87171)

2024-04-02 Thread Farzon Lotfi via cfe-commits
@@ -100,6 +100,118 @@ double3 abs(double3); _HLSL_BUILTIN_ALIAS(__builtin_elementwise_abs) double4 abs(double4); +//===--===// +// all builtins

[clang] ea9a66e - [Clang][AST][NFC] MemberExpr stores NestedNameSpecifierLoc and DeclAccessPair separately (#86678)

2024-04-02 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-04-02T10:27:18-04:00 New Revision: ea9a66ea8b6fee77e7ee9e47d868d43ecbbcd787 URL: https://github.com/llvm/llvm-project/commit/ea9a66ea8b6fee77e7ee9e47d868d43ecbbcd787 DIFF:

[clang] [Clang][AST][NFC] MemberExpr stores NestedNameSpecifierLoc and DeclAccessPair separately (PR #86678)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: Changes were reviewed in the review of #86682 https://github.com/llvm/llvm-project/pull/86678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (PR #86682)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: Thanks! I'll add a comment on the other PR saying the commit was reviewed here & then I'll merge https://github.com/llvm/llvm-project/pull/86682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (PR #86682)

2024-04-02 Thread Erich Keane via cfe-commits
erichkeane wrote: Ah, i see... yeah, i think there is value to submitting them separately, feel free to do so. https://github.com/llvm/llvm-project/pull/86682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [NFC][clang][test][asan] Make `instantiation-depth-default.cpp` a valid test case under `asan` and `ubsan` configs (PR #75254)

2024-04-02 Thread Mitch Phillips via cfe-commits
hctim wrote: Hey folks, unfortunately this started supriously failing again on AArch64+ASan. So I've disabled it again under sanitizers (by reverting this patch): https://lab.llvm.org/buildbot/#/builders/239/builds/6363 https://github.com/llvm/llvm-project/pull/75254

[clang] [Clang][AST][NFC] Move template argument dependence computations for MemberExpr to computeDependence (PR #86682)

2024-04-02 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: @erichkeane Just merging this PR will result in the commits being squashed into a single commit... is that alright? https://github.com/llvm/llvm-project/pull/86682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

  1   2   3   >