[clang] 92fe391 - [clang][Interp] Reject non-pointer typed dummies

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:32:42+02:00 New Revision: 92fe3911c3e0f5e76cf60c8b3203002e6e6aa047 URL: https://github.com/llvm/llvm-project/commit/92fe3911c3e0f5e76cf60c8b3203002e6e6aa047 DIFF: https://github.com/llvm/llvm-project/commit/92fe3911c3e0f5e76cf60c8b3203002e6e6aa047.diff LO

[clang] 77d2283 - [clang][Interp] Diagnose shift overflows

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:28:02+02:00 New Revision: 77d2283e5824fb5bf375df65559a88a68159594b URL: https://github.com/llvm/llvm-project/commit/77d2283e5824fb5bf375df65559a88a68159594b DIFF: https://github.com/llvm/llvm-project/commit/77d2283e5824fb5bf375df65559a88a68159594b.diff LO

[clang] ed304b6 - [clang][Interp] Diagnose left shifts of negative values

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:28:02+02:00 New Revision: ed304b6790ba0391211bffe66856b00d0a949670 URL: https://github.com/llvm/llvm-project/commit/ed304b6790ba0391211bffe66856b00d0a949670 DIFF: https://github.com/llvm/llvm-project/commit/ed304b6790ba0391211bffe66856b00d0a949670.diff LO

[clang] de02994 - [clang][Interp] Handle negative shift amounts correctly

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:28:02+02:00 New Revision: de029943cc5ad0028f16e6ecaffa03e32ffd1a6f URL: https://github.com/llvm/llvm-project/commit/de029943cc5ad0028f16e6ecaffa03e32ffd1a6f DIFF: https://github.com/llvm/llvm-project/commit/de029943cc5ad0028f16e6ecaffa03e32ffd1a6f.diff LO

[clang] 7645823 - [clang][Interp] Don't require StmtExpr result to be an expression

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:28:02+02:00 New Revision: 7645823564a34db84f0da53e53e38eb0ceb429ec URL: https://github.com/llvm/llvm-project/commit/7645823564a34db84f0da53e53e38eb0ceb429ec DIFF: https://github.com/llvm/llvm-project/commit/7645823564a34db84f0da53e53e38eb0ceb429ec.diff LO

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-win-x-aarch64` running on `as-builder-2` while building `clang,llvm` at step 9 "test-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/193/builds/940 Here is the relevant piece

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-07-13 Thread via cfe-commits
temyurchenko wrote: @AaronBallman could you please review? I've fixed at least the LLDB tests. There was an actual bug in function parameters construction that was revealed by the invariant check. However, I can't run the whole LLDB suite. Even among the reported failing tests, some are «un

[clang] 6b380a8 - [clang][Interp] Fix integral overflow reporting

2024-07-13 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-14T07:28:01+02:00 New Revision: 6b380a810ea57fdb36ef911756bd2e1cbf2fbac0 URL: https://github.com/llvm/llvm-project/commit/6b380a810ea57fdb36ef911756bd2e1cbf2fbac0 DIFF: https://github.com/llvm/llvm-project/commit/6b380a810ea57fdb36ef911756bd2e1cbf2fbac0.diff LO

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-07-13 Thread via cfe-commits
https://github.com/temyurchenko updated https://github.com/llvm/llvm-project/pull/98795 >From 410c7ba9fb7667dabdfbc48fdbda427401ca8df0 Mon Sep 17 00:00:00 2001 From: Artem Yurchenko <44875844+temyurche...@users.noreply.github.com> Date: Thu, 30 May 2024 16:18:47 -0400 Subject: [PATCH 1/4] [clang

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-arm64-windows-msvc` running on `linaro-armv8-windows-msvc-04` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/161/builds/575 Here is the re

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/966 Here is th

[clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)

2024-07-13 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97118 >From 9b2e06f794ce810e9a7e68be64c46c2a31d695d9 Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 21:09:33 + Subject: [PATCH 1/2] [APFloat] Add support for f8E4M3 IEEE 754 type ---

[clang] [llvm] [APFloat] Add support for f8E4M3 IEEE 754 type (PR #97179)

2024-07-13 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97179 >From 9b2e06f794ce810e9a7e68be64c46c2a31d695d9 Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 21:09:33 + Subject: [PATCH] [APFloat] Add support for f8E4M3 IEEE 754 type --- cla

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (temyurchenko) Changes Relanding of #93913. Now, it also fixes incorrect declaration context in function parameters creation. --- Full diff: https://github.com/llvm/llvm-project/pull/98795.diff 7 Files Affected: - (modified) clang/

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-07-13 Thread via cfe-commits
https://github.com/temyurchenko created https://github.com/llvm/llvm-project/pull/98795 Relanding of #93913. Now, it also fixes incorrect declaration context in function parameters creation. >From 410c7ba9fb7667dabdfbc48fdbda427401ca8df0 Mon Sep 17 00:00:00 2001 From: Artem Yurchenko <44875844

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/1668 Here is the releva

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/1354 Here is the relevant

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/1345 Here is the relevant pie

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/1798 Here is

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang,llvm` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/1521 Here is the relevant

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

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

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang,llvm` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/1794 Here is t

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 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,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/1764 Here is the relevant piece of the build log

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/1447 Here is the relevant piece

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/1814 Here is the relevant piece of the build log fo

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang,llvm` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/1923 Here is the rel

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/22

[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

2024-07-13 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/83131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Limit alignment for emitted vectors (PR #98629)

2024-07-13 Thread Phoebe Wang via cfe-commits
@@ -133,6 +133,7 @@ struct TransferrableTargetInfo { unsigned short SuitableAlign; unsigned short NewAlign; unsigned MaxVectorAlign; phoebewang wrote: There's no special limitaion on x86. We can change ArgFlagsTy if the size is not the concern. https:/

[clang] [llvm] Clang: convert `__m64` intrinsics to unconditionally use SSE2 instead of MMX. (PR #96540)

2024-07-13 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/96540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove support for 3DNow!, both intrinsics and builtins. (PR #96246)

2024-07-13 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/96246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Quick drive by comment https://github.com/llvm/llvm-project/pull/98788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/98788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-13 Thread Shafik Yaghmour via cfe-commits
@@ -2157,17 +2157,19 @@ CXXDeductionGuideDecl *CXXDeductionGuideDecl::Create( ASTContext &C, DeclContext *DC, SourceLocation StartLoc, ExplicitSpecifier ES, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, SourceLocation EndLocation, CXXConstr

[clang] [compiler-rt] [llvm] [mlir] [NFC] Fix some typos (PR #98791)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: None (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/98791.diff 12 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+1-1) - (modified) clang/lib/Sema/SemaType.cpp (+1-1) - (m

[clang] [compiler-rt] [llvm] [mlir] [NFC] Fix some typos (PR #98791)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: None (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/98791.diff 12 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+1-1) - (modified) clang/lib/Sema/SemaType.cpp (+1-1) - (modifie

[clang] [compiler-rt] [llvm] [mlir] [NFC] Fix some typos (PR #98791)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/98791.diff 12 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+1-1) - (modified) clang/lib/Sema/SemaType.cpp (+1-1) - (modified) clang/t

[clang] [compiler-rt] [llvm] [mlir] [NFC] Fix some typos (PR #98791)

2024-07-13 Thread via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/98791 None >From 6601530144fe6cec173958277be39fc1b8ba Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 14 Jul 2024 03:02:13 + Subject: [PATCH] fix some typos --- clang/lib/Driver/ToolChains/Clang.cpp

[clang] [llvm] [RISCV] Add -m[no-]scalar-strict-align and -m[no-]vector-strict-align. (PR #95024)

2024-07-13 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/95024 >From cda94f996a75b9cb4f7a53dce5845926b084af0e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 10 Jun 2024 12:05:26 -0700 Subject: [PATCH 1/2] [RISCV] Add -m[no-]scalar-strict-align and -m[no-]vector-stri

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: None (antangelo) Changes There are two known issues with this initial implementation: 1. Deduction guides are not generated for explicit guides of the base defined after the initial usage of the derived class. This is a caused by a

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-13 Thread via cfe-commits
https://github.com/antangelo created https://github.com/llvm/llvm-project/pull/98788 There are two known issues with this initial implementation: 1. Deduction guides are not generated for explicit guides of the base defined after the initial usage of the derived class. This is a caused by a sim

[clang] Fixed two typos: "__builin_" --> "__builtin_" (PR #98782)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (ZERICO2005) Changes Fixed two typos: 1. `__builin_va_list` --> `__builtin_va_list` 2. `__builin_suspend` --> `__builtin_suspend` --- Full diff: https://github.com/llvm/llvm-project/pull/98782.diff 1 Files Affected: - (modified) cl

[clang] Fixed two typos: "__builin_" --> "__builtin_" (PR #98782)

2024-07-13 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] Fixed two typos: "__builin_" --> "__builtin_" (PR #98782)

2024-07-13 Thread via cfe-commits
https://github.com/ZERICO2005 created https://github.com/llvm/llvm-project/pull/98782 Fixed two typos: 1. `__builin_va_list` --> `__builtin_va_list` 2. `__builin_suspend` --> `__builtin_suspend` >From af20f0553bba306a05ab1f83fe425036fdd75cde Mon Sep 17 00:00:00 2001 From: ZERICO2005 <71151164+z

[clang] [clang] [Diagnostic] Clarify -Winfinite-recursion message (PR #98763)

2024-07-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/98763 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Start documenting DXIL Resource handling (PR #90553)

2024-07-13 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,794 @@ +== +DXIL Resource Handling +== + +.. contents:: + :local: + +.. toctree:: + :hidden: + +Introduction + + +Resources in DXIL are represented via ``TargetExtType`` in LLVM IR and +eventually lowered by the Di

[clang] [llvm] [DirectX] Start documenting DXIL Resource handling (PR #90553)

2024-07-13 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,794 @@ +== +DXIL Resource Handling +== + +.. contents:: + :local: + +.. toctree:: + :hidden: + +Introduction + + +Resources in DXIL are represented via ``TargetExtType`` in LLVM IR and +eventually lowered by the Di

[clang] [llvm] [DirectX] Start documenting DXIL Resource handling (PR #90553)

2024-07-13 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/90553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix cast failures by adjusting the resolution of record declaration contexts to handle semantic and lexical distinctions (PR #96228)

2024-07-13 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/96228 >From 9e2730da07df0ee5102912490a687ba40bf06def Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 24 Jun 2024 18:55:51 +0300 Subject: [PATCH] [Clang] fix cast failures by adjusting the resolution of record

[clang] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)

2024-07-13 Thread via cfe-commits
whitequark wrote: I've further confirmed that clang.wasm can build complex software by building [Yosys](https://github.com/yosysHQ/yosys/) for Wasm using clang.wasm. It works fine and is able to translate a simple design; this makes it clear that a mature codebase with a mixture of C and C++ c

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-13 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/98736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-13 Thread Fangrui Song via cfe-commits
@@ -10,6 +10,7 @@ // RUN: %clang -Ofast -fno-strict-aliasing -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-STRICT-ALIASING %s // RUN: %clang -Ofast -fno-vectorize -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-VECTORIZE %s +// CHECK-OFAST: warning: argument '-

[clang] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)

2024-07-13 Thread via cfe-commits
whitequark wrote: Now that there are [instructions](https://discourse.llvm.org/t/rfc-building-llvm-for-webassembly/79073/36?u=whitequark) for trying the Wasm-hosted build, and I've verified that it works on relatively simple examples, I think this PR can progress forward. I can see the buildb

[clang] [HLSL] Add test for export function redeclaration (PR #97370)

2024-07-13 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/97370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f4254f3 - [HLSL] Add test for export function redeclaration (#97370)

2024-07-13 Thread via cfe-commits
Author: Helena Kotas Date: 2024-07-13T11:39:51-08:00 New Revision: f4254f3f517c60deeb2ba309c3bb5dfb644bed89 URL: https://github.com/llvm/llvm-project/commit/f4254f3f517c60deeb2ba309c3bb5dfb644bed89 DIFF: https://github.com/llvm/llvm-project/commit/f4254f3f517c60deeb2ba309c3bb5dfb644bed89.diff

[clang] [clang] [Diagnostic] Clarify -Winfinite-recursion message (PR #98763)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Narayan (vortex73) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/98763.diff 2 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+1-1) - (modified) clang/test/SemaCXX/warn-infinite-recurs

[clang] [clang] [Diagnostic] Clarify -Winfinite-recursion message (PR #98763)

2024-07-13 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] [clang] [Diagnostic] Clarify -Winfinite-recursion message (PR #98763)

2024-07-13 Thread via cfe-commits
https://github.com/vortex73 created https://github.com/llvm/llvm-project/pull/98763 None >From 8ecf1b30678503f96d41112feb3ac87944c13158 Mon Sep 17 00:00:00 2001 From: Vortex Date: Sun, 14 Jul 2024 00:22:43 +0530 Subject: [PATCH] [clang] [Diagnostic] Clarify -Winfinite-recursion message --- .

[clang] [Clang] fix cast failures by adjusting the resolution of record declaration contexts to handle semantic and lexical distinctions (PR #96228)

2024-07-13 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/96228 >From 9e2730da07df0ee5102912490a687ba40bf06def Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 24 Jun 2024 18:55:51 +0300 Subject: [PATCH] [Clang] fix cast failures by adjusting the resolution of record

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/98756 From f308fee20b44b1a7f83ca0038acf7b43fdd46fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sat, 13 Jul 2024 20:59:22 +0200 Subject: [PATCH] [clang] constexpr atomic builtins (__

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread via cfe-commits
Hana =?utf-8?q?Dusíková?= Message-ID: In-Reply-To: github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 3b7a7f4cc43f90e79292700959c55a

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread via cfe-commits
akshaykumars614 wrote: I am new here https://github.com/llvm/llvm-project/pull/98757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread via cfe-commits
akshaykumars614 wrote: can you tell me where to add test case and release notes entry https://github.com/llvm/llvm-project/pull/98757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/98756 From 76fe494219d085247e537b3633c321ffe2917226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sat, 13 Jul 2024 20:10:26 +0200 Subject: [PATCH 1/2] [clang] constexpr atomic builtins

[clang] [clang][driver] Improve Clang-CL support for C++20 standard modules (PR #98761)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sharadh Rajaraman (sharadhr) Changes This PR is the first step in improving the situation for `clang-cl` detailed in [this LLVM Discourse thread](https://discourse.llvm.org/t/clang-cl-exe-support-for-c-modules/72257/28). There has been s

[clang] [clang][driver] Improve Clang-CL support for C++20 standard modules (PR #98761)

2024-07-13 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] [clang][driver] Improve Clang-CL support for C++20 standard modules (PR #98761)

2024-07-13 Thread Sharadh Rajaraman via cfe-commits
https://github.com/sharadhr created https://github.com/llvm/llvm-project/pull/98761 This PR is the first step in improving the situation for `clang-cl` detailed in [this LLVM Discourse thread](https://discourse.llvm.org/t/clang-cl-exe-support-for-c-modules/72257/28). There has been some work

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/98756 From 76fe494219d085247e537b3633c321ffe2917226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sat, 13 Jul 2024 20:10:26 +0200 Subject: [PATCH] [clang] constexpr atomic builtins (__

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: > I am not sure if I need to write a test case for clang-tidy Yes, and release notes entry, https://github.com/llvm/llvm-project/pull/98757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-13 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/98758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes In the previous patch https://github.com/llvm/llvm-project/pull/95660, we used a strategy of eagerly instantiating local constexpr lambdas. However, that caused a regression in recursive local lambda calls.

[clang] [Clang] Reconsider the timing of instantiation of local constexpr lambdas (PR #98758)

2024-07-13 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/98758 In the previous patch https://github.com/llvm/llvm-project/pull/95660, we used a strategy of eagerly instantiating local constexpr lambdas. However, that caused a regression in recursive local lambda calls. Thi

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread via cfe-commits
akshaykumars614 wrote: I am not sure if I need to write a test case for clang-tidy https://github.com/llvm/llvm-project/pull/98757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang-tidy Author: None (akshaykumars614) Changes added a check to remove '->' if exists --- Full diff: https://github.com/llvm/llvm-project/pull/98757.diff 1 Files Affected: - (modified) clang-tools-extra/clan

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

2024-07-13 Thread via cfe-commits
https://github.com/akshaykumars614 created https://github.com/llvm/llvm-project/pull/98757 added a check to remove '->' if exists >From 283ec53fe19f0008c3c04210ea5c9b20c3d9781c Mon Sep 17 00:00:00 2001 From: akshaykumars614 Date: Sat, 13 Jul 2024 14:14:53 -0400 Subject: [PATCH] clang-tidy: rea

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hana Dusíková (hanickadot) Changes This implements clang support for P3309 constexpr std::atomic & std::atomic_ref (currently in LWG) by allowing constant evaluation of clang's __c11_atomic_OP and GCC's __atomic_OP builtins. --- Patch i

[clang] [clang] constexpr atomic builtins (__c11_atomic_OP and __atomic_OP) (PR #98756)

2024-07-13 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot created https://github.com/llvm/llvm-project/pull/98756 This implements clang support for P3309 constexpr std::atomic & std::atomic_ref (currently in LWG) by allowing constant evaluation of clang's __c11_atomic_OP and GCC's __atomic_OP builtins. From e42b4a8877fe

[clang] [libcxx] [clang] [libc++] P3309 constexpr atomic and atomic ref [WIP] (PR #98738)

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

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

2024-07-13 Thread via cfe-commits
memory-thrasher wrote: ya it's something with my local build env. same test is now failing when built from the commit before mine. Looks like they passed on the build server though so this should be ready. I fixed the things you mentioned @bolshakov-a . Let me know if you have a different phra

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-07-13 Thread Thomas Wucher via cfe-commits
thomaswucher wrote: Thank you for your approval, @DeinAlptraum! @AaronBallman and @Endilll, is there anything else I need to do to get this merged? Would one of you be so kind to approve the remaining GitHub workflows? Thanks for all your support and quick responses! https://github.com/llvm/l

[clang] [HLSL] Rework implicit conversion sequences (PR #96011)

2024-07-13 Thread Chris B via cfe-commits
https://github.com/llvm-beanz closed https://github.com/llvm/llvm-project/pull/96011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d91ff3f - [HLSL] Rework implicit conversion sequences (#96011)

2024-07-13 Thread via cfe-commits
Author: Chris B Date: 2024-07-13T12:23:22-05:00 New Revision: d91ff3f2409a721b61b68c6a8438ea6c59323df8 URL: https://github.com/llvm/llvm-project/commit/d91ff3f2409a721b61b68c6a8438ea6c59323df8 DIFF: https://github.com/llvm/llvm-project/commit/d91ff3f2409a721b61b68c6a8438ea6c59323df8.diff LOG:

[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

2024-07-13 Thread Chris B via cfe-commits
llvm-beanz wrote: @kimgr you should be able to have CMake query the path of libclang and go from there. Something like: ```cmake get_target_property(SHARED_LIB_DIR libclang RUNTIME_OUTPUT_DIRECTORY) ``` That should give you the binary location of libclang, which should work for resolving the

[clang] [llvm] [Clang][Coroutines] Introducing the `[[clang::coro_inplace_task]]` attribute (PR #94693)

2024-07-13 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/94693 >From 4e4bcdc19268543a8348736dede46d8f8cad0066 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Tue, 4 Jun 2024 23:22:00 -0700 Subject: [PATCH 1/3] [Clang] Introduce [[clang::coro_inplace_task]] --- clan

[clang] [llvm] [Clang][Coroutines] Introducing the `[[clang::coro_inplace_task]]` attribute (PR #94693)

2024-07-13 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/94693 >From 4e4bcdc19268543a8348736dede46d8f8cad0066 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Tue, 4 Jun 2024 23:22:00 -0700 Subject: [PATCH 1/3] [Clang] Introduce [[clang::coro_inplace_task]] --- clan

[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

2024-07-13 Thread Brian Cain via cfe-commits
@@ -0,0 +1,62 @@ +//===-- xray_init.cpp ---*- 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: Apa

[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

2024-07-13 Thread Brian Cain via cfe-commits
@@ -0,0 +1,62 @@ +//===-- xray_init.cpp ---*- 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: Apa

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

2024-07-13 Thread via cfe-commits
memory-thrasher wrote: an unrelated test (Modules/prune.m) is now failing on my end. I'm doing a clean build because I suspect there's something stale in a cache somewhere. https://github.com/llvm/llvm-project/pull/97792 ___ cfe-commits mailing list c

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

2024-07-13 Thread via cfe-commits
https://github.com/memory-thrasher updated https://github.com/llvm/llvm-project/pull/97792 >From d47a70e4715a3f6f4740570877799d3bfbb8a713 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] [clang] Prevent dangling StringRefs (PR #98699)

2024-07-13 Thread Youngsuk Kim via cfe-commits
https://github.com/JOE1994 updated https://github.com/llvm/llvm-project/pull/98699 >From 07648c7efab15786c36dbcd265015d945b627725 Mon Sep 17 00:00:00 2001 From: Youngsuk Kim Date: Fri, 12 Jul 2024 17:40:59 -0500 Subject: [PATCH 1/2] [clang] Prevent dangling StringRefs Fix locations where dangl

[clang] [llvm] [mlir] Remove the `x86_mmx` IR type. (PR #98505)

2024-07-13 Thread Phoebe Wang via cfe-commits
@@ -1,9 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s -; Basic smoke test for x86_mmx type. - -; CHECK: define x86_mmx @sh16 phoebewang wrote: What will it be after this patch? https://github.com/llvm/llvm-project/pull/985

[clang] [llvm] [mlir] Remove the `x86_mmx` IR type. (PR #98505)

2024-07-13 Thread Phoebe Wang via cfe-commits
@@ -57594,6 +57599,86 @@ static SDValue combinePDEP(SDNode *N, SelectionDAG &DAG, return SDValue(); } +// Fixup the MMX intrinsics' types: in IR they are expressed with <1 x i64>, phoebewang wrote: Are we able to do it in DAGtoDAG? https://github.com/llvm

[clang] [llvm] [mlir] Remove the `x86_mmx` IR type. (PR #98505)

2024-07-13 Thread Phoebe Wang via cfe-commits
@@ -44,8 +44,8 @@ Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { case FP128TyID : return getFP128Ty(C); case PPC_FP128TyID : return getPPC_FP128Ty(C); case LabelTyID : return getLabelTy(C); - case MetadataTyID : return getMetadataTy(C); - case

[clang] [llvm] [mlir] Remove the `x86_mmx` IR type. (PR #98505)

2024-07-13 Thread Phoebe Wang via cfe-commits
@@ -38,11 +38,11 @@ int test4(volatile int *addr) { return (int)oldval; } -// This should have both inputs be of type x86_mmx. +// This should have both inputs be of type <1 x i64>. phoebewang wrote: Does it conflict with comment in mmx-inlineasm.ll > Veri

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

2024-07-13 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum 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-13 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum 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-13 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: @Endilll I am once again asking for your support This PR collects several of the changes towards #78114 that I assume might need some discussion. I tried to leave PR comments with explanations in each of those places. @boomanaiden154 @linux4life798 review from you would also

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

2024-07-13 Thread via cfe-commits
@@ -160,6 +160,8 @@ static char GetFirstChar(const Preprocessor &PP, const Token &Tok) { bool TokenConcatenation::AvoidConcat(const Token &PrevPrevTok, const Token &PrevTok, const Token &Tok) const { +

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

2024-07-13 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/98745 >From c0216b8a50f7ccc6ee24db69802055c3942a183e Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 13 Jul 2024 14:12:34 +0100 Subject: [PATCH] [libclang/python] Fix some type errors, add type annotation

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

2024-07-13 Thread Jannick Kremer via cfe-commits
@@ -64,48 +64,81 @@ from ctypes import * -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 ty

  1   2   >