[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-08-26 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-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dmasloff) Changes I would like to suggest a new clang-format option for llvm-project - WrapNamespaceBodyWithNewlines. I think it can be added to upstream since it is used by many popular public repositories, for example, [ytsaurus]

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
Sirraide wrote: Ah, actually, this is still missing a release note (in `clang/docs/ReleaseNotes.rst`, in the ‘Improvements to Clang's diagnostics’ section) https://github.com/llvm/llvm-project/pull/106033 ___ cfe-commits mailing list cfe-commits@list

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 Thread Greg Roth via cfe-commits
https://github.com/pow2clk created https://github.com/llvm/llvm-project/pull/106146 Functions are not removed even when made internal by DXILFinalizeLinkage The removal code is called from alwaysinliner and globalopt, which are invoked too early to remove functions made internal by this pass.

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/106146 >From 6cf9e802a47860279fc793cb07ac3f4850826cb3 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Sun, 25 Aug 2024 12:00:03 -0600 Subject: [PATCH] Tentative fix for not removing newly internal functions Functions a

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 Thread Greg Roth via cfe-commits
pow2clk wrote: I'd like to add a test that verifies this removal of used functions that get alwaysinlined, but that requires the inlining fix for #89282 https://github.com/llvm/llvm-project/pull/106146 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-08-26 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna created https://github.com/llvm/llvm-project/pull/106147 `-fbounds-safety` doesn't allow taking address of a variable referred to by `__counted_by`, in order to prevent code from using the pointer to update the variable without necessary checks to keep the invariant

[clang] [BoundsSafety][NFC] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-08-26 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna edited https://github.com/llvm/llvm-project/pull/106147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [BoundsSafety][NFC] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yeoul Na (rapidsna) Changes `-fbounds-safety` doesn't allow taking address of a variable referred to by `__counted_by`, in order to prevent code from using the pointer to update the variable without necessary checks to keep the invariant

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 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 85561dd59485350a4f09ea5cb049b38f69b1e470 6cf9e802a47860279fc793cb07ac3f4850826cb3 --e

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 Thread Greg Roth via cfe-commits
@@ -18,19 +18,20 @@ using namespace llvm; static bool finalizeLinkage(Module &M) { - SmallPtrSet EntriesAndExports; + SmallPtrSet Funcs; // Find all entry points and export functions for (Function &EF : M.functions()) { -if (!EF.hasFnAttribute("hlsl.shader") && !

[clang] [llvm] Tentative fix for not removing newly internal functions (PR #106146)

2024-08-26 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/106146 >From e0d9fa7a87ee18b23cda29381afadeb0b8d23ce8 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Sun, 25 Aug 2024 12:00:03 -0600 Subject: [PATCH] Tentative fix for not removing newly internal functions Functions a

[clang] [-Wunsafe-buffer-usage] Warning Libc functions (PR #101583)

2024-08-26 Thread via cfe-commits
@@ -12383,6 +12383,13 @@ def warn_unsafe_buffer_operation : Warning< "%select{unsafe pointer operation|unsafe pointer arithmetic|" "unsafe buffer access|function introduces unsafe buffer manipulation|unsafe invocation of span::data}0">, InGroup, DefaultIgnore; +def warn_

[clang] [-Wunsafe-buffer-usage] Warning Libc functions (PR #101583)

2024-08-26 Thread via cfe-commits
@@ -2256,6 +2256,17 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler { Range = UO->getSubExpr()->getSourceRange(); MsgParam = 1; } +} else if (const auto *CtorExpr = dyn_cast(Operation)) { + if (CtorExpr->getConstructor()->get

[clang] [-Wunsafe-buffer-usage] Warning Libc functions (PR #101583)

2024-08-26 Thread via cfe-commits
@@ -12383,6 +12383,13 @@ def warn_unsafe_buffer_operation : Warning< "%select{unsafe pointer operation|unsafe pointer arithmetic|" "unsafe buffer access|function introduces unsafe buffer manipulation|unsafe invocation of span::data}0">, InGroup, DefaultIgnore; +def warn_

[clang] [compiler-rt] [libcxx] [lld] [lldb] [llvm] [mlir] [polly] python: use raw strings for regex (PR #105990)

2024-08-26 Thread Med Ismail Bennani via cfe-commits
medismailben wrote: Nice! Please make sure to run the python formatter (`darker`) before landing this. https://github.com/llvm/llvm-project/pull/105990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/104653 >From 85e4dc08d5316df26247a181386ec819083ce992 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Fri, 16 Aug 2024 17:32:29 -0700 Subject: [PATCH] [docs] Document the missing availability platforms and

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Ian Anderson via cfe-commits
@@ -1637,31 +1637,42 @@ specifies availability for the current target platform, the availability attributes are ignored. Supported platforms are: ``ios`` +``ios_app_extension`` ian-twilightcoder wrote: Cyndy made that point that `-target` and -mtargetos` are

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder edited https://github.com/llvm/llvm-project/pull/104653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. https://github.com/llvm/llvm-project/pull/104653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Cyndy Ishida via cfe-commits
@@ -1592,6 +1592,12 @@ succeeds but Clang emits a warning specifying that the function is deprecated. Finally, if Clang is instructed to compile code for macOS 10.7, the call fails because ``f()`` is no longer available. +Clang is instructed to compile code for a particular O

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Cyndy Ishida via cfe-commits
@@ -1592,6 +1592,12 @@ succeeds but Clang emits a warning specifying that the function is deprecated. Finally, if Clang is instructed to compile code for macOS 10.7, the call fails because ``f()`` is no longer available. +Clang is instructed to compile code for a particular O

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Cyndy Ishida via cfe-commits
@@ -1637,31 +1637,42 @@ specifies availability for the current target platform, the availability attributes are ignored. Supported platforms are: ``ios`` +``ios_app_extension`` cyndyishida wrote: I do think it's still useful to define what those platforms' v

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Helena Kotas via cfe-commits
hekota wrote: Thanks @ian-twilightcoder! Would you also like to add a note that the environment parameter is currently supported only for the ShaderModel platform? https://github.com/llvm/llvm-project/pull/104653 ___ cfe-commits mailing list cfe-commi

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/104653 >From b009556b34503b85be2d9312f918f84d987a999f Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Fri, 16 Aug 2024 17:32:29 -0700 Subject: [PATCH] [docs] Document the missing availability platforms and

[clang] 79154a9 - [docs] Document the missing availability platforms and environments (#104653)

2024-08-26 Thread via cfe-commits
Author: Ian Anderson Date: 2024-08-26T17:06:15-07:00 New Revision: 79154a967461be37f900dc47687560056bf5c068 URL: https://github.com/llvm/llvm-project/commit/79154a967461be37f900dc47687560056bf5c068 DIFF: https://github.com/llvm/llvm-project/commit/79154a967461be37f900dc47687560056bf5c068.diff

[clang] [docs] Document the missing availability platforms and environments (PR #104653)

2024-08-26 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder closed https://github.com/llvm/llvm-project/pull/104653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2024-08-26 Thread Bill Wendling via cfe-commits
bwendling wrote: @rapidsna, what's the status of this PR? If it's bit-rotted, I can try to take over. https://github.com/llvm/llvm-project/pull/70480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2024-08-26 Thread Bill Wendling via cfe-commits
bwendling wrote: Also, I think there was a PR that added delayed parsing of attributes? Is that correct, or a false memory? :-) https://github.com/llvm/llvm-project/pull/70480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-26 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I don't think the test failures look related to the changes can you push and empty change to see if rerunning the tests comes up clean? https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list c

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2024-08-26 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna closed https://github.com/llvm/llvm-project/pull/70480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2024-08-26 Thread Yeoul Na via cfe-commits
rapidsna wrote: @bwendling We've already landed the flag in https://github.com/llvm/llvm-project/pull/92623. I will close this one. https://github.com/llvm/llvm-project/pull/70480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

2024-08-26 Thread Yeoul Na via cfe-commits
rapidsna wrote: > Also, I think there was a PR that added delayed parsing of attributes? Is > that correct, or a false memory? :-) @bwendling That too has already been merged in https://github.com/llvm/llvm-project/pull/88596 https://github.com/llvm/llvm-project/pull/70480 ___

[clang] [llvm] [Support] Validate number of arguments passed to formatv() (PR #105745)

2024-08-26 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul updated https://github.com/llvm/llvm-project/pull/105745 >From 7b8c1794d4f2510502349d1151c8266c8b234ac0 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 22 Aug 2024 08:47:02 -0700 Subject: [PATCH 1/2] [Support] Detect invalid formatv() calls - Detect formatv() c

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
https://github.com/s-watanabe314 updated https://github.com/llvm/llvm-project/pull/106033 >From 74424f222488d6a73d5d903bca470886414f37d9 Mon Sep 17 00:00:00 2001 From: Shunsuke Watanabe Date: Fri, 23 Aug 2024 17:37:57 +0900 Subject: [PATCH] poor diagnostic due to overloading in extern "C" block

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/106033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Define soft float macros for PPC. (PR #106012)

2024-08-26 Thread Chen Zheng via cfe-commits
@@ -439,14 +443,12 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, // FIXME: The following are not yet generated here by Clang, but are //generated by GCC: // - // _SOFT_FLOAT_ // __RECIP_PRECISION__ // __APPLE_ALTIVEC__ // __RE

RE: cfe-commits Digest, Vol 206, Issue 2065

2024-08-26 Thread via cfe-commits
7726 -Original Message- From: Sent: Mon, 26 Aug 2024 17:58:28 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2065?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2064

2024-08-26 Thread via cfe-commits
7726 -Original Message- From: Sent: Mon, 26 Aug 2024 17:55:57 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2064?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2063

2024-08-26 Thread via cfe-commits
7726 -Original Message- From: Sent: Mon, 26 Aug 2024 16:58:17 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2063?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

[clang] [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (PR #89934)

2024-08-26 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/89934 >From 9eb7a15b385bff343969382c911d744ae954b7f0 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 24 Apr 2024 20:54:58 +0800 Subject: [PATCH 1/4] [Clang][Sema] Revisit the lambda within a type alias template

[clang] b412ec5 - [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (#89934)

2024-08-26 Thread via cfe-commits
Author: Younan Zhang Date: 2024-08-27T09:25:53+08:00 New Revision: b412ec5d3924c7570c2c96106f95a92403a4e09b URL: https://github.com/llvm/llvm-project/commit/b412ec5d3924c7570c2c96106f95a92403a4e09b DIFF: https://github.com/llvm/llvm-project/commit/b412ec5d3924c7570c2c96106f95a92403a4e09b.diff

[clang] [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (PR #89934)

2024-08-26 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/89934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (PR #89934)

2024-08-26 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 milestoned https://github.com/llvm/llvm-project/pull/89934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (PR #89934)

2024-08-26 Thread Younan Zhang via cfe-commits
zyn0217 wrote: /cherry-pick b412ec5d3 https://github.com/llvm/llvm-project/pull/89934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Define soft float macros for PPC. (PR #106012)

2024-08-26 Thread Alex Rønne Petersen via cfe-commits
@@ -439,14 +443,12 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, // FIXME: The following are not yet generated here by Clang, but are //generated by GCC: // - // _SOFT_FLOAT_ // __RECIP_PRECISION__ // __APPLE_ALTIVEC__ // __RE

RE: cfe-commits Digest, Vol 206, Issue 2066

2024-08-26 Thread via cfe-commits
7726 -Original Message- From: Sent: Mon, 26 Aug 2024 18:25:39 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2066?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

[clang] [clang][Driver] Define soft float macros for PPC. (PR #106012)

2024-08-26 Thread Alex Rønne Petersen via cfe-commits
@@ -439,14 +443,12 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, // FIXME: The following are not yet generated here by Clang, but are //generated by GCC: // - // _SOFT_FLOAT_ // __RECIP_PRECISION__ // __APPLE_ALTIVEC__ // __RE

[clang] [Clang][Sema] Revisit the fix for the lambda within a type alias template decl (PR #89934)

2024-08-26 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#106166 https://github.com/llvm/llvm-project/pull/89934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Define soft float macros for PPC. (PR #106012)

2024-08-26 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp updated https://github.com/llvm/llvm-project/pull/106012 From b9e81030a102f52b7d0b4e8a924a112a536601c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 25 Aug 2024 22:47:37 +0200 Subject: [PATCH] [clang][Driver] Define soft float macro

[clang] `__noop` not marked as constexpr #102064 (PR #105983)

2024-08-26 Thread Younan Zhang via cfe-commits
zyn0217 wrote: An off-topic concern: The issue was initially assigned to @AdiSin123 three weeks ago. Did you talk to @AdiSin123 to ensure that @AdiSin123 gives up the fix? It would be polite to ask first in the issue before you start working on this. https://github.com/llvm/llvm-project/pull/1

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
https://github.com/s-watanabe314 updated https://github.com/llvm/llvm-project/pull/106033 >From 9baf5ad604782827af0a8a42aa1fd5bf2894a84e Mon Sep 17 00:00:00 2001 From: Shunsuke Watanabe Date: Fri, 23 Aug 2024 17:37:57 +0900 Subject: [PATCH 1/2] poor diagnostic due to overloading in extern "C" b

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
s-watanabe314 wrote: Thank you for comments. I added release note. https://github.com/llvm/llvm-project/pull/106033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

RE: cfe-commits Digest, Vol 206, Issue 2067

2024-08-26 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 18:26:46 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2067?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2068

2024-08-26 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 19:28:06 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2068?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
@@ -261,6 +261,8 @@ Improvements to Clang's diagnostics compilation speed with modules. This warning is disabled by default and it needs to be explicitly enabled or by ``-Weverything``. +- Improved diagnostics when trying to overload a function in extern "C". (#GH80235)

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/106033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-BF16 new instructions. (PR #101603)

2024-08-26 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf ready_for_review https://github.com/llvm/llvm-project/pull/101603 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-BF16 new instructions. (PR #101603)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Freddy Ye (FreddyLeaf) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965 --- Patch is 1.24 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/101603.diff 30 Files Affected: - (modified

RE: cfe-commits Digest, Vol 206, Issue 2069

2024-08-26 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 19:33:16 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2069?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread via cfe-commits
https://github.com/s-watanabe314 updated https://github.com/llvm/llvm-project/pull/106033 >From 9baf5ad604782827af0a8a42aa1fd5bf2894a84e Mon Sep 17 00:00:00 2001 From: Shunsuke Watanabe Date: Fri, 23 Aug 2024 17:37:57 +0900 Subject: [PATCH 1/3] poor diagnostic due to overloading in extern "C" b

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
@@ -5346,7 +5346,6 @@ static EvalStmtResult EvaluateStmt(StmtResult &Result, EvalInfo &Info, const Expr *RetExpr = cast(S)->getRetValue(); FullExpressionRAII Scope(Info); if (RetExpr && RetExpr->isValueDependent()) { - EvaluateDependentExpr(RetExpr, Info); ---

[clang] [HLSL] Implement output parameter (PR #101083)

2024-08-26 Thread Chris B via cfe-commits
@@ -1121,3 +1121,99 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { } return false; } + +bool SemaHLSL::CheckCompatibleParameterABI(FunctionDecl *New, + FunctionDecl *Old) { + if (New->getNumPar

[clang] [clang][Driver] Define soft float macros for PPC. (PR #106012)

2024-08-26 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp updated https://github.com/llvm/llvm-project/pull/106012 From acd4bd9406969926ed7b87c764f02ad072847aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 25 Aug 2024 22:47:37 +0200 Subject: [PATCH] [clang][Driver] Define soft float macro

[clang] [clang][Sema] Fix diagnostic for function overloading in extern "C" (PR #106033)

2024-08-26 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: This make sense to me, @dwblaikie wdyt? https://github.com/llvm/llvm-project/pull/106033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [clang][compiler-rt][test] Removed dirname command substitutions from tests (PR #105754)

2024-08-26 Thread Connie Zhu via cfe-commits
https://github.com/connieyzhu closed https://github.com/llvm/llvm-project/pull/105754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 952b133 - [clang][compiler-rt][test] Removed dirname command substitutions from tests (#105754)

2024-08-26 Thread via cfe-commits
Author: Connie Zhu Date: 2024-08-26T20:33:13-07:00 New Revision: 952b13362d4af238b22444cc27844c0ac8c09047 URL: https://github.com/llvm/llvm-project/commit/952b13362d4af238b22444cc27844c0ac8c09047 DIFF: https://github.com/llvm/llvm-project/commit/952b13362d4af238b22444cc27844c0ac8c09047.diff LO

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
@@ -5554,38 +5869,50 @@ FunctionTemplateDecl *Sema::getMoreSpecializedTemplate( // "that is a member function with no expicit object argument". // Otherwise the ordering rules for methods with expicit objet arguments // against anything else make no sense. -Shou

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
@@ -5554,38 +5869,50 @@ FunctionTemplateDecl *Sema::getMoreSpecializedTemplate( // "that is a member function with no expicit object argument". // Otherwise the ordering rules for methods with expicit objet arguments // against anything else make no sense. -Shou

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/100692 >From f8fd471a954f5e304f3118df3236cf7ff4ef1020 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Jul 2024 03:59:41 -0300 Subject: [PATCH 1/2] [clang] check deduction consistency when partial ordering

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
@@ -1307,6 +1304,62 @@ DeduceTemplateArguments(Sema &S, TemplateParameterList *TemplateParams, return TemplateDeductionResult::Success; } +/// Deduce the template arguments by comparing the list of parameter +/// types to the list of argument types, as in the parameter-type

[clang] [clang-format] Insert a space between new/delete and a C-style cast (PR #106175)

2024-08-26 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/106175 It doesn't make sense to remove the space between new/delete and a C-style cast when SpaceBeforeParensOptions.AfterPlacementOperator is set to false. Fixes #105628. >From 8266cfb1d52dd55c710c16d9c57ca974bd94bb9

[clang] [clang-format] Insert a space between new/delete and a C-style cast (PR #106175)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes It doesn't make sense to remove the space between new/delete and a C-style cast when SpaceBeforeParensOptions.AfterPlacementOperator is set to false. Fixes #105628. --- Full diff: https://github.com/llvm/

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-08-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/100692 >From f8fd471a954f5e304f3118df3236cf7ff4ef1020 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Jul 2024 03:59:41 -0300 Subject: [PATCH 1/3] [clang] check deduction consistency when partial ordering

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/106181 Introducing `HLSLAttributedResourceType` - a new type that is similar to `AttributedType` but with additional data specific to HLSL resources. `AttributeType` currently only stores an attribute kind and no addit

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/106181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-08-26 Thread Malay Sanghi via cfe-commits
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256, "V8iV8iV8iV8i", "nV:256:", "avxvnniin TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:", "avxvnniint16|avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:", "a

[clang] [clang][HLSL] Update DXIL/SPIRV hybird CodeGen tests to use temp var (PR #105930)

2024-08-26 Thread Justin Bogner via cfe-commits
@@ -16,262 +16,220 @@ #ifdef __HLSL_ENABLE_16_BIT // DXIL_NATIVE_HALF: define noundef i1 @ // SPIR_NATIVE_HALF: define spir_func noundef i1 @ -// DXIL_NATIVE_HALF: %hlsl.all = call i1 @llvm.dx.all.i16 -// SPIR_NATIVE_HALF: %hlsl.all = call i1 @llvm.spv.all.i16 +// DXIL_NATIVE_H

[clang] [clang][HLSL] Update DXIL/SPIRV hybird CodeGen tests to use temp var (PR #105930)

2024-08-26 Thread Justin Bogner via cfe-commits
@@ -1,12 +1,12 @@ -// RUN: %clang_cc1 -triple spirv-vulkan-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=CHECK-SPIRV +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s

[clang] [Headers][X86] Add a couple of tests for MMX/SSE intrinsics (PR #105852)

2024-08-26 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/105852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/106181 >From 11a6b3aac44889d39911a6704a9a963f29e92388 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 26 Aug 2024 12:13:09 -0700 Subject: [PATCH 1/3] Add HLSLAttributedResourceType - WIP --- clang/include/clang

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/106181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Helena Kotas (hekota) Changes Introducing `HLSLAttributedResourceType` - a new type that is similar to `AttributedType` but with additional data specific to HLSL resources. `AttributeType` currently only stores an attribute kind a

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Introducing `HLSLAttributedResourceType` - a new type that is similar to `AttributedType` but with additional data sp

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/106181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/106181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 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 0ef8e71874e128560fdc77b6234d1bef3e18d3bd 87a7e6ffe84e63e1522320ae4afe9aa35cd2c502 --e

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-26 Thread Rajveer Singh Bharadwaj via cfe-commits
https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/96301 >From 8796f60f0255ab8810d6019b4c470d64a44a6ce2 Mon Sep 17 00:00:00 2001 From: Rajveer Date: Fri, 21 Jun 2024 18:26:36 +0530 Subject: [PATCH] [clang] Allow class with anonymous union member to be const-default

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/106181 >From 11a6b3aac44889d39911a6704a9a963f29e92388 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 26 Aug 2024 12:13:09 -0700 Subject: [PATCH 1/4] Add HLSLAttributedResourceType - WIP --- clang/include/clang

[clang] [clang] Add nuw attribute to GEPs (PR #105496)

2024-08-26 Thread Hari Limaye via cfe-commits
hazzlim wrote: I plan to land this patch later today, unless there are any objections / further comments. Thanks for reviewing @nikic @efriedma-quic https://github.com/llvm/llvm-project/pull/105496 ___ cfe-commits mailing list cfe-commits@lists.llvm

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

2024-08-26 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/85786 >From 395ce72afbf9e4b12fcbfaf9cdbda8921c9ff72a Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 23 Jul 2024 19:59:06 -0700 Subject: [PATCH 01/14] [RISCV][FMV] Support target_clones --- .../clang/Basic/Diagnosti

[clang] [Clang] prevent assertion failure when converting vectors to int/float with invalid expressions (PR #105727)

2024-08-26 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/105727 >From d8bed3f4db8056a6afa9bd7eae5d4a8361f83086 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Thu, 22 Aug 2024 23:25:31 +0300 Subject: [PATCH] [Clang] prevent assertion failure when converting vectors to i

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -5312,6 +5314,147 @@ bool Compiler::VisitComplexUnaryOperator(const UnaryOperator *E) { return true; } +template +bool Compiler::VisitVectorUnaryOperator(const UnaryOperator *E) { + const Expr *SubExpr = E->getSubExpr(); + assert(SubExpr->getType()->isVectorType()); +

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -5312,6 +5314,147 @@ bool Compiler::VisitComplexUnaryOperator(const UnaryOperator *E) { return true; } +template +bool Compiler::VisitVectorUnaryOperator(const UnaryOperator *E) { + const Expr *SubExpr = E->getSubExpr(); + assert(SubExpr->getType()->isVectorType()); +

[clang] [Clang][Concepts] Fix the constraint equivalence checking involving parameter packs (PR #102131)

2024-08-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/1729 Here is the releva

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -5312,6 +5314,149 @@ bool Compiler::VisitComplexUnaryOperator(const UnaryOperator *E) { return true; } +template +bool Compiler::VisitVectorUnaryOp(const UnaryOperator *E) { + const Expr *SubExpr = E->getSubExpr(); + assert(SubExpr->getType()->isVectorType()); + + if

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,88 @@ +// RUN: %clang_cc1 %s -triple x86_64-linux-gnu -fexperimental-new-constant-interpreter -Wno-uninitialized -std=c++14 -fsyntax-only -verify tbaederr wrote: Why no RUN line for the current interpreter? https://github.com/llvm/llvm-project/pull/

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -139,6 +139,7 @@ class Compiler : public ConstStmtVisitor, bool>, bool VisitGNUNullExpr(const GNUNullExpr *E); bool VisitCXXThisExpr(const CXXThisExpr *E); bool VisitUnaryOperator(const UnaryOperator *E); + bool VisitVectorUnaryOp(const UnaryOperator *E); ---

[clang] [Clang][Interp] Implement constexpr vector unary operators +, -, ~, ! (PR #105996)

2024-08-26 Thread Timm Baeder via cfe-commits
@@ -5312,6 +5314,149 @@ bool Compiler::VisitComplexUnaryOperator(const UnaryOperator *E) { return true; } +template +bool Compiler::VisitVectorUnaryOp(const UnaryOperator *E) { + const Expr *SubExpr = E->getSubExpr(); + assert(SubExpr->getType()->isVectorType()); + + if

<    1   2   3   4   5   >