[clang] [Fuchsia] Remove linker flags from stage2 pass through (PR #99722)

2024-07-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/2203 Here is the relevant piece of the build log for

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-20 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,67 @@ +//===--- UseCppStyleCommentsCheck.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: A

[clang] 0d26f65 - [clang][Interp] Emit diagnostics if final ltor conversion fails

2024-07-20 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-20T10:01:25+02:00 New Revision: 0d26f65414afe496b00ee803cc24722a9bf3f41d URL: https://github.com/llvm/llvm-project/commit/0d26f65414afe496b00ee803cc24722a9bf3f41d DIFF: https://github.com/llvm/llvm-project/commit/0d26f65414afe496b00ee803cc24722a9bf3f41d.diff LO

[clang] [llvm] [WIP][RISCV] Support __builtin_cpu_init and __builtin_cpu_supports (PR #99700)

2024-07-20 Thread Piyou Chen via cfe-commits
@@ -1020,3 +1020,64 @@ std::string RISCVISAInfo::getTargetFeatureForExtension(StringRef Ext) { return isExperimentalExtension(Name) ? "experimental-" + Name.str() : Name.str(); } + +struct RISCVExtBit { + const StringRef ext; + uint64

[clang] 155f6b4 - [clang][Interp] Fix reporting invalid new/delete expressions

2024-07-20 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-20T10:41:12+02:00 New Revision: 155f6b49d90357d4062aa97f035f42617565ee26 URL: https://github.com/llvm/llvm-project/commit/155f6b49d90357d4062aa97f035f42617565ee26 DIFF: https://github.com/llvm/llvm-project/commit/155f6b49d90357d4062aa97f035f42617565ee26.diff LO

[clang] [Clang][AST] {CXXDefaultArgExpr, CXXDefaultInitExpr}::hasRewrittenInit return true iif the init expression was really rebuild (PR #99748)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/99748 None >From a79b9bbfcb666d7e841eda65a771970a811631a4 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 20 Jul 2024 17:47:39 +0800 Subject: [PATCH] [Clang][AST] {CXXDefaultArgExpr, CXXDefaultInitExpr}::hasRewri

[clang] [Clang][AST] {CXXDefaultArgExpr, CXXDefaultInitExpr}::hasRewrittenInit return true iif the init expression was really rebuild (PR #99748)

2024-07-20 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 9d86722eeecbb1dd6a53c10f7c44fdc317de6809 a79b9bbfcb666d7e841eda65a771970a811631a4 --e

[clang] [clang-format] Fix a bug in annotating `*` in `#define`s (PR #99433)

2024-07-20 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 approved this pull request. https://github.com/llvm/llvm-project/pull/99433 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix(clang/**.py): fix comparison to None (PR #94014)

2024-07-20 Thread Eisuke Kawashima via cfe-commits
https://github.com/e-kwsm updated https://github.com/llvm/llvm-project/pull/94014 >From cbc322d63ab460a1e13aa84b41c41c100fad13f9 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Sat, 11 May 2024 23:57:11 +0900 Subject: [PATCH] fix(clang/**.py): fix comparison to None from PEP8 (https://pe

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-20 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. Good check idea! A couple of comments: - This is not really a "modernize"check. Both styles are equally valid and it's a matter of taste. Modernize is typically for checks that bump from one standard to a newer one. - In

[libclc] libclc: increase fp16 support (PR #98149)

2024-07-20 Thread Michał Górny via cfe-commits
mgorny wrote: This change seems to have caused test regression. This is Gentoo Linux amd64, tried LLVM 72d8c2737bb557af9d0c735b9fa30b1b03485627 and 18.1.8. To reproduce, I've done: ``` cmake -G Ninja "${llvm_project}"/libclc -DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-;r600--;amdg

[clang] 54de554 - [Clang] Fix C library wrappers for offloading (#99716)

2024-07-20 Thread via cfe-commits
Author: Joseph Huber Date: 2024-07-20T07:19:04-05:00 New Revision: 54de554ab8654c7a1f39199c1a491bc80edbba53 URL: https://github.com/llvm/llvm-project/commit/54de554ab8654c7a1f39199c1a491bc80edbba53 DIFF: https://github.com/llvm/llvm-project/commit/54de554ab8654c7a1f39199c1a491bc80edbba53.diff

[clang] [Clang] Fix C library wrappers for offloading (PR #99716)

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

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99757)

2024-07-20 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/99757 Reverts https://github.com/llvm/llvm-project/pull/99731 Remove accidentally added temporary file. Also fix uninitialized read of line number. >From 2c43d8b557192df6999437485cdbdc2e030f4fe5 Mon Sep 17 00:00:00 2001

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99757)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Utkarsh Saxena (usx95) Changes Reverts https://github.com/llvm/llvm-project/pull/99731 Remove accidentally added temporary file. Also fix uninitialized read of line number. --- Patch is 27.02 KiB, trunca

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/90574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

2024-07-20 Thread via cfe-commits
yronglin wrote: I landed this PR and I'd be happy to follow up if you have any concerns. https://github.com/llvm/llvm-project/pull/90574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-07-20 Thread Piyou Chen via cfe-commits
@@ -2854,10 +2854,121 @@ void CodeGenFunction::EmitMultiVersionResolver( case llvm::Triple::aarch64: EmitAArch64MultiVersionResolver(Resolver, Options); return; + case llvm::Triple::riscv32: + case llvm::Triple::riscv64: +EmitRISCVMultiVersionResolver(Resolver,

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

2024-07-20 Thread Piyou Chen via cfe-commits
@@ -2854,10 +2854,121 @@ void CodeGenFunction::EmitMultiVersionResolver( case llvm::Triple::aarch64: EmitAArch64MultiVersionResolver(Resolver, Options); return; + case llvm::Triple::riscv32: + case llvm::Triple::riscv64: +EmitRISCVMultiVersionResolver(Resolver,

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

2024-07-20 Thread Piyou Chen via cfe-commits
https://github.com/BeMg edited https://github.com/llvm/llvm-project/pull/85786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 56a9f7c - [clang][Interp] Pass ASTContext to toAPValue()

2024-07-20 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-20T15:29:32+02:00 New Revision: 56a9f7ce611ba21f51043d91c965b59e116013f2 URL: https://github.com/llvm/llvm-project/commit/56a9f7ce611ba21f51043d91c965b59e116013f2 DIFF: https://github.com/llvm/llvm-project/commit/56a9f7ce611ba21f51043d91c965b59e116013f2.diff LO

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

2024-07-20 Thread Piyou Chen via cfe-commits
@@ -2854,10 +2854,121 @@ void CodeGenFunction::EmitMultiVersionResolver( case llvm::Triple::aarch64: EmitAArch64MultiVersionResolver(Resolver, Options); return; + case llvm::Triple::riscv32: + case llvm::Triple::riscv64: +EmitRISCVMultiVersionResolver(Resolver,

[clang] [ASTContext] Add a break to nested switch in `encodeTypeForFunctionPointerAuth` (PR #99763)

2024-07-20 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/99763 This prevent the warning from compiler. >From faf331e112ddd7ab6633f5fced55cceaef7065e0 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sat, 20 Jul 2024 07:27:53 -0700 Subject: [PATCH] [ASTContext] Add a break t

[clang] [ASTContext] Add a break to nested switch in `encodeTypeForFunctionPointerAuth` (PR #99763)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes This prevent the warning from compiler. --- Full diff: https://github.com/llvm/llvm-project/pull/99763.diff 1 Files Affected: - (modified) clang/lib/AST/ASTContext.cpp (+1) ``diff diff --git a/cl

[clang] [compiler-rt] [llvm] Remove 3dnow from X86TargetParser. (PR #99352)

2024-07-20 Thread James Y Knight via cfe-commits
https://github.com/jyknight updated https://github.com/llvm/llvm-project/pull/99352 >From 70160e033ac94de92fc2cd6289548094cd893498 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Wed, 17 Jul 2024 11:40:38 -0400 Subject: [PATCH 1/5] Remove 3dnow from X86TargetParser. This should've been par

[clang] [compiler-rt] [llvm] Remove 3DNow! from X86TargetParser. (PR #99352)

2024-07-20 Thread James Y Knight via cfe-commits
https://github.com/jyknight edited https://github.com/llvm/llvm-project/pull/99352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] Remove 3DNow! from X86TargetParser. (PR #99352)

2024-07-20 Thread James Y Knight via cfe-commits
https://github.com/jyknight edited https://github.com/llvm/llvm-project/pull/99352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] Remove 3DNow! from X86TargetParser. (PR #99352)

2024-07-20 Thread James Y Knight via cfe-commits
https://github.com/jyknight edited https://github.com/llvm/llvm-project/pull/99352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3c6ea7b - Remove 3DNow! from X86TargetParser. (#99352)

2024-07-20 Thread via cfe-commits
Author: James Y Knight Date: 2024-07-20T11:28:06-04:00 New Revision: 3c6ea7b7168fdb4d4396bcf67ea0d69495a558b8 URL: https://github.com/llvm/llvm-project/commit/3c6ea7b7168fdb4d4396bcf67ea0d69495a558b8 DIFF: https://github.com/llvm/llvm-project/commit/3c6ea7b7168fdb4d4396bcf67ea0d69495a558b8.diff

[clang] [compiler-rt] [llvm] Remove 3DNow! from X86TargetParser. (PR #99352)

2024-07-20 Thread James Y Knight via cfe-commits
https://github.com/jyknight closed https://github.com/llvm/llvm-project/pull/99352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2024-07-20 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw ready_for_review https://github.com/llvm/llvm-project/pull/98746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yingwei Zheng (dtcxzyw) Changes This patch adds `!dereferenceable/!nonnull/!align` for load from reference to improve codegen. --- Patch is 2.75 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-proj

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yingwei Zheng (dtcxzyw) Changes This patch adds `!dereferenceable/!nonnull/!align` for load from reference to improve codegen. --- Patch is 2.75 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2024-07-20 Thread Yingwei Zheng via cfe-commits
@@ -1,8 +1,8 @@ // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s -O2 | FileCheck %s -// Make sure the call to b() doesn't get optimized out. +// Make sure the call to b() is eliminated. extern struct x {char& x,y;}y; int b(); int a() { if (!&y.x) b();

[clang] 5303ca1 - [clang][Interp] Start computing APValue offsets

2024-07-20 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-20T17:29:31+02:00 New Revision: 5303ca1496fc5f604f37c071d37821597788e83e URL: https://github.com/llvm/llvm-project/commit/5303ca1496fc5f604f37c071d37821597788e83e DIFF: https://github.com/llvm/llvm-project/commit/5303ca1496fc5f604f37c071d37821597788e83e.diff LO

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-20 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/99656 >From 8c5f85492091df2432701f15f4ec4b6acfe19944 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Sun, 5 May 2024 12:36:53 -0700 Subject: [PATCH 1/2] nonblocking/nonallocating attributes: 2nd pass caller/callee a

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

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

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-20 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: In your documentation, you say that this change allows for the use of a `static_cast` to use the parameter as an l-value reference. But your pr title and description sound like any reference category is allowed. I think only the l-value reference part is

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-20 Thread Julian Schmidt via cfe-commits
@@ -129,15 +129,19 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder *Finder) { unless(anyOf(hasAncestor(typeLoc()), hasAncestor(expr(hasUnevaluatedContext()); + auto StaticCast = cxxStaticCastExpr( + hasSourceExpression(declRefEx

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-20 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 f6e01b9ece1e73f6eda6e1dbff3aa72e917f4007 95b7a00467423e1a0e320a2fe45811739ce4d61e --e

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-20 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/99656 >From 8c5f85492091df2432701f15f4ec4b6acfe19944 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Sun, 5 May 2024 12:36:53 -0700 Subject: [PATCH 1/3] nonblocking/nonallocating attributes: 2nd pass caller/callee a

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-20 Thread Julian Schmidt via cfe-commits
@@ -172,6 +172,11 @@ New checks Detects variables and functions that can be marked as static or moved into an anonymous namespace to enforce internal linkage. +- New :doc:`modernize-use-cpp-style-comments 5chmidti wrote: Please sort this release note corr

[clang] [llvm] [llvm][clang] Move RewriterBuffer to ADT. (PR #99770)

2024-07-20 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar created https://github.com/llvm/llvm-project/pull/99770 These classes are not specific to clang and useful for other rewriter tools (flagged in previous review). >From 451a4c61066c4a433bc100ebc511dc6447f83ab0 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sat

[clang] [llvm] [llvm][clang] Move RewriterBuffer to ADT. (PR #99770)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jacques Pienaar (jpienaar) Changes These classes are not specific to clang and useful for other rewriter tools (flagged in previous review). --- Patch is 91.29 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llv

[clang-tools-extra] [clang-tidy] `bugprone-exception-escape` didn't detech catching of an exception with pointer type by `void *` exception handler (PR #99773)

2024-07-20 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot created https://github.com/llvm/llvm-project/pull/99773 As in title, code which check eligibility of exceptions with pointer types to be handled by exception handler of type `void *` disallowed this case. It was check: ```c++ if (isStandardPointerConvertible(Exce

[clang-tools-extra] [clang-tidy] `bugprone-exception-escape` didn't detech catching of an exception with pointer type by `void *` exception handler (PR #99773)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Hana Dusíková (hanickadot) Changes As in title, code which check eligibility of exceptions with pointer types to be handled by exception handler of type `void *` disallowed this case. It was check: ```c++ if (isStandardPointe

[clang-tools-extra] [clang-tidy] `bugprone-exception-escape` didn't detech catching of an exception with pointer type by `void *` exception handler (PR #99773)

2024-07-20 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot edited https://github.com/llvm/llvm-project/pull/99773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] `bugprone-exception-escape` didn't detech catching of an exception with pointer type by `void *` exception handler (PR #99773)

2024-07-20 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot edited https://github.com/llvm/llvm-project/pull/99773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] `bugprone-exception-escape` didn't detech catching of an exception with pointer type by `void *` exception handler (PR #99773)

2024-07-20 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot edited https://github.com/llvm/llvm-project/pull/99773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

RE: cfe-commits Digest, Vol 205, Issue 1750

2024-07-20 Thread via cfe-commits
STOP -Original Message- From: Sent: Sat, 20 Jul 2024 08:29:50 -0700 To: 7578703...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_205=2C_Issue_1750?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

[clang] ce1a874 - [clang-format] Fix a bug in annotating `*` in `#define`s (#99433)

2024-07-20 Thread via cfe-commits
Author: Owen Pan Date: 2024-07-20T12:22:50-07:00 New Revision: ce1a87437cc143889665c41046107e84cdf6246e URL: https://github.com/llvm/llvm-project/commit/ce1a87437cc143889665c41046107e84cdf6246e DIFF: https://github.com/llvm/llvm-project/commit/ce1a87437cc143889665c41046107e84cdf6246e.diff LOG:

[clang] [clang-format] Fix a bug in annotating `*` in `#define`s (PR #99433)

2024-07-20 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/99433 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] OpenMP 5.1 "assume" directive parsing support (PR #92731)

2024-07-20 Thread Julian Brown via cfe-commits
https://github.com/jtb20 updated https://github.com/llvm/llvm-project/pull/92731 >From f6addc40ef18c3ca28ee79303bace08d30dc9817 Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Wed, 1 May 2024 06:35:59 -0500 Subject: [PATCH] [OpenMP] OpenMP 5.1 "assume" directive parsing support This patch sup

[clang] Add _MM_FROUND_TIES_TO_EVEN to avx512fintrin.h (PR #99691)

2024-07-20 Thread via cfe-commits
hpkfft wrote: I understand that the details of floating point arithmetic are somewhat of a specialized area of computer science. I suggest that this obligates a greater duty to show care and diligence, and so I thank you for not dismissing my concerns as too trivial to be worth discussing. R

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
https://github.com/memory-thrasher updated https://github.com/llvm/llvm-project/pull/97792 >From b3de931c063ed895b3fd040a6ef53f8422fc7741 Mon Sep 17 00:00:00 2001 From: Sidney Kelley Date: Thu, 4 Jul 2024 23:03:16 -0700 Subject: [PATCH] Adds support to clang"s windows mangler to handle template

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
@@ -1938,12 +1946,23 @@ void MicrosoftCXXNameMangler::mangleTemplateArgValue(QualType T, mangleNumber(V.getLValueOffset().getQuantity()); } else if (!V.hasLValuePath()) { // FIXME: This can only happen as an extension. Invent a mangling. -break; +

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-20 Thread Doug Wyatt via cfe-commits
@@ -891,6 +898,12 @@ class Sema final : public SemaBase { SourceLocation NewLoc, SourceLocation OldLoc); + /// Potentially add a FunctionDecl or BlockDecl to DeclsWithEffectsToVerify. + void maybeA

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-20 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos edited https://github.com/llvm/llvm-project/pull/99656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [OpenMP][libc] Remove special handling for OpenMP printf (PR #98940)

2024-07-20 Thread Jan Patrick Lehr via cfe-commits
jplehr wrote: I was mostly curious if we have some coverage that would ideally break if the implementation breaks. https://github.com/llvm/llvm-project/pull/98940 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [Clang][AArch64][ARM]: Fix Inefficient loads/stores of _BitInt(N) (PR #93495)

2024-07-20 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi closed https://github.com/llvm/llvm-project/pull/93495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-20 Thread Max Coplan via cfe-commits
vegerot wrote: > I would put up a branch on http://llvm-compile-time-tracker.com (instructions > in the `About` page) and see how this impacts compile times. We've always > left diagnostics out of -Wextra that require a CFG, so getting performance > measurements is important. Thanks! The `Ab

[clang] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-20 Thread Max Coplan via cfe-commits
https://github.com/vegerot updated https://github.com/llvm/llvm-project/pull/97926 >From 9640f00fac2be5984b6a0ee2f7f917a58f7e53d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20=F0=9F=91=A8=F0=9F=8F=BD=E2=80=8D=F0=9F=92=BB=20Copl?= =?UTF-8?q?an?= Date: Sat, 6 Jul 2024 17:22:55 -0700 Subject: [

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
https://github.com/memory-thrasher updated https://github.com/llvm/llvm-project/pull/97792 >From f0b53c557bcadc8b0d323144fc19f4b0f6767d94 Mon Sep 17 00:00:00 2001 From: Sidney Kelley Date: Thu, 4 Jul 2024 23:03:16 -0700 Subject: [PATCH] Adds support to clang"s windows mangler to handle template

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
https://github.com/memory-thrasher updated https://github.com/llvm/llvm-project/pull/97792 >From 81095a3fd1b5ce76a17922ad40a47f6a4a4308ab Mon Sep 17 00:00:00 2001 From: Sidney Kelley Date: Thu, 4 Jul 2024 23:03:16 -0700 Subject: [PATCH] Adds support to clang"s windows mangler to handle template

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
https://github.com/memory-thrasher updated https://github.com/llvm/llvm-project/pull/97792 >From 5e5b80efa1e1903884db1f4ee8d92f79d139e7f9 Mon Sep 17 00:00:00 2001 From: Sidney Kelley Date: Thu, 4 Jul 2024 23:03:16 -0700 Subject: [PATCH] Adds support to clang"s windows mangler to handle template

[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

2024-07-20 Thread via cfe-commits
memory-thrasher wrote: I finally got the tests to behave. https://github.com/llvm/llvm-project/pull/97792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Clean up fp-contract handling in clang driver (PR #99723)

2024-07-20 Thread Fangrui Song via cfe-commits
@@ -10,18 +10,18 @@ // RUN: %clang -### -fno-fast-math -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s -// RUN: %clang -### -Werror -ffast-math -ffp-contract=on -c %s 2>&1 \ +// RUN: %clang -### -ffast-math -ffp-contract=on -c %s 2>&1 \ MaskR

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. Looks good aside from missing release notes, especially entries to potentially breaking changes. Given that you've been making a significant amount of changes to Python bindings that are spread over multiple PRs, it's worth considering if 1

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
@@ -66,46 +66,77 @@ import collections.abc import os +import sys from enum import Enum +from typing import ( +Any, +Callable, +Generic, +Optional, +Type as TType, +TypeVar, +TYPE_CHECKING, +Union as TUnion, +) +from typing_extensions import P

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/98745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
@@ -115,9 +146,7 @@ def b(x): # object. This is a problem, because it means that from_parameter will see an # integer and pass the wrong value on platforms where int != void*. Work around # this by marshalling object arguments as void**. -c_object_p = POINTER(c_void_p) - -callb

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
@@ -200,13 +236,16 @@ class _CXString(Structure): _fields_ = [("spelling", c_char_p), ("free", c_int)] -def __del__(self): +def __del__(self) -> None: conf.lib.clang_disposeString(self) @staticmethod -def from_result(res, fn=None, args=None): +

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

2024-07-20 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/99791 Fixes #99758. >From f38256c028e1600bc6b957f851ffcc0dedab589c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sat, 20 Jul 2024 16:43:39 -0700 Subject: [PATCH] [clang-format] Fix a bug in annotating StartOfName Fixe

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-07-20 Thread Vlad Serebrennikov via cfe-commits
@@ -169,25 +198,32 @@ def __init__(self, enumeration, message): ### Structures and Utility Classes ### +TInstance = TypeVar("TInstance") +TResult = TypeVar("TResult") + -class CachedProperty: +class CachedProperty(Generic[TInstance, TResult]): """Decorator that lazy-lo

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

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #99758. --- Full diff: https://github.com/llvm/llvm-project/pull/99791.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+3-1) - (modified) clang/unittests/Format/TokenAnnot

[clang] [ExprConstant] Handle shift overflow the same way as other kinds of overflow (PR #99579)

2024-07-20 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Thank you for the additional tests, so I am not sure if the coverage is sufficient I see changed under the following diagnostic: note_constexpr_negative_shift note_constexpr_large_shift note_constexpr_lshift_of_negative note_constexpr_lshift_discards but I

[clang] Add _MM_FROUND_TIES_TO_EVEN to avx512fintrin.h (PR #99691)

2024-07-20 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Thanks @hpkfft for the thorough explanation. I'm fine with either `_MM_FROUND_TIES_TO_EVEN` or `_MM_FROUND_TO_NEAREST_TIES_EVEN`. Let's see GCC community preference. https://github.com/llvm/llvm-project/pull/99691 ___ cfe-commits ma

[clang] Add missing python binding for clang_getUnqualifiedType and clang_getNonReferenceType (PR #99793)

2024-07-20 Thread via cfe-commits
https://github.com/brendene created https://github.com/llvm/llvm-project/pull/99793 These are present in `clang/include/clang-c/Index.h` but not exported in the python bindings This fixes https://github.com/llvm/llvm-project/issues/63235 >From 3c1d8fb295df55d60bc2d908fbb61642fcf392ca Mon Se

[clang] Add missing python binding for clang_getUnqualifiedType and clang_getNonReferenceType (PR #99793)

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

[clang] Add missing python binding for clang_getUnqualifiedType and clang_getNonReferenceType (PR #99793)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (brendene) Changes These are present in `clang/include/clang-c/Index.h` but not exported in the python bindings This fixes https://github.com/llvm/llvm-project/issues/63235 --- Full diff: https://github.com/llvm/llvm-project/pull/

[clang] [clang] Add missing python binding for clang_getUnqualifiedType and clang_getNonReferenceType (PR #99793)

2024-07-20 Thread via cfe-commits
https://github.com/brendene edited https://github.com/llvm/llvm-project/pull/99793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Interp] Diagnose use sizeless vector type as the argument of `__builtin_vectorelements` (PR #99794)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/99794 None >From 6d9dbc3248ae8e8e374d6d7e656935b1bc82cdee Mon Sep 17 00:00:00 2001 From: yronglin Date: Sun, 21 Jul 2024 10:54:41 +0800 Subject: [PATCH] [Clang][Interp] Diagnose use sizeless vector type as the argum

[clang] [Clang][Interp] Diagnose use sizeless vector type as the argument of `__builtin_vectorelements` (PR #99794)

2024-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/99794.diff 4 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+2-4) - (modified) clang/lib/AST/Interp/Interp.h (+8) - (modified) clang/li

[clang] [Clang][Interp] Diagnose use sizeless vector type as the argument of `__builtin_vectorelements` (PR #99794)

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

[clang] [Clang][AST] {CXXDefaultArgExpr, CXXDefaultInitExpr}::hasRewrittenInit return true iif the init expression was really rebuild (PR #99748)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/99748 >From c565183f352e3bb43bc375887a65f85dcdffb516 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 20 Jul 2024 17:47:39 +0800 Subject: [PATCH] [Clang][AST] {CXXDefaultArgExpr, CXXDefaultInitExpr}::hasRewrittenIn

[clang] [Clang][Interp] Diagnose use sizeless vector type as the argument of `__builtin_vectorelements` (PR #99794)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/99794 >From 163c9201ddf944e9e7eeef54a620bcc89fbe9b3d Mon Sep 17 00:00:00 2001 From: yronglin Date: Sun, 21 Jul 2024 10:54:41 +0800 Subject: [PATCH] [Clang][Interp] Diagnose use sizeless vector type as the argument of

[clang] [Clang][Interp] Diagnose use sizeless vector type as the argument of `__builtin_vectorelements` (PR #99794)

2024-07-20 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/99794 >From 163c9201ddf944e9e7eeef54a620bcc89fbe9b3d Mon Sep 17 00:00:00 2001 From: yronglin Date: Sun, 21 Jul 2024 10:54:41 +0800 Subject: [PATCH 1/2] [Clang][Interp] Diagnose use sizeless vector type as the argumen

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
___ 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 new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
___ 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 new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
___ 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 new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
___ 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 new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
___ 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 new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: 5chmidti wrote: I'm not sure that we need to test `.m` and `.mm` files https://github.com/llvm/llvm-project/pull/89925 __

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-07-20 Thread Julian Schmidt via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: @@ -0,0 +1,182 @@ +//===--- TaggedUnionMemberCountCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM E

  1   2   >