[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 SourceLo

[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] 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] [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 https://lists.llvm.org/cgi-bin/mai

[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
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
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] [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] 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] [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 &S, Decl *D, const ParsedAttr &AL) { 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

[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 P2718R

[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: A

[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] [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.*&patternType=keyword&sm=0, > > > so that's a good thing. > > > > I do wonder

[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] [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] 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] [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 +exter

[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 +exter

[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 &S, Decl *D, const ParsedAttr &AL) { 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

[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: https://github.com/llvm/llvm-project/commit/4d5e834c5b7f0d90a6d543e182df602f6bc8.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] 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] [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] [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
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 ch

[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] 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] 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] 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] 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] 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] 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] 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] 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] 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: https://github.com/llvm/llvm-project/commit/f119a4ffb885ed588c46de1d51f4185572142ca2.diff

[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 LOG:

[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] 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: https://github.com/llvm/llvm-project/commit/b4adb42151bbfa80be4cf6d076cbe5edf680693e.di

[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 L

[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 L

[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 LO

[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 LOG:

<    1   2   3