[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/5] [clang] Additional FP classification functions C language

[PATCH] D157252: [clang][ExprConst] Handle 0 type size in builtin_memcpy etc.

2023-10-15 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. Ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157252/new/ https://reviews.llvm.org/D157252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?=

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?=

[clang] [AMDGPU] Remove Code Object V3 (PR #67118)

2023-10-15 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/67118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread via cfe-commits
@@ -404,7 +404,7 @@ bool CheckPure(InterpState , CodePtr OpPC, const CXXMethodDecl *MD) { static void DiagnoseUninitializedSubobject(InterpState , const SourceInfo , const FieldDecl *SubObjDecl) { assert(SubObjDecl && "Subobject

[clang] [Clang][LoongArch] Support basic fp16, fp128 (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe edited https://github.com/llvm/llvm-project/pull/68851 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/4] [clang] Additional FP classification functions C language

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe updated https://github.com/llvm/llvm-project/pull/68851 >From 2ef1ddfb977da35f31f1f351ac4daf0478fff166 Mon Sep 17 00:00:00 2001 From: xinmu Date: Thu, 12 Oct 2023 13:36:34 +0800 Subject: [PATCH 1/3] LoongArch fp16,fp128 basic support ---

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk edited https://github.com/llvm/llvm-project/pull/68075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove experimental from Vector Crypto extensions (PR #69000)

2023-10-15 Thread Brandon Wu via cfe-commits
4vtomat wrote: > Thanks for the patch, some very quick feedback and I'd highlight the first > bullet as the most important, as this is potentially a blocker for graduating > these extensions from experimental. > > * My big concern with this would be the intrinsics - could you please comment

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 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 6e8013a1301ef31f3592035eae2ee08319edd318 69c7f90dfe21b96f6bc2678b08d9f002b0b0584d --

[clang] 94d0a3c - [clang][Interp][NFC] Add comments to Descriptor ctors

2023-10-15 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-16T06:52:07+02:00 New Revision: 94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e URL: https://github.com/llvm/llvm-project/commit/94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e DIFF: https://github.com/llvm/llvm-project/commit/94d0a3c4a8b43759cb896bbbe8bd38e7e02eb70e.diff

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread Takuya Shimizu via cfe-commits
https://github.com/hazohelet updated https://github.com/llvm/llvm-project/pull/67817 >From acb5d8286335f85732ede8d33ac2529e13a3f61b Mon Sep 17 00:00:00 2001 From: Takuya Shimizu Date: Fri, 29 Sep 2023 23:49:11 +0900 Subject: [PATCH 1/3] [clang][ExprConst] Fix crash on uninitialized array

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-15 Thread Takuya Shimizu via cfe-commits
@@ -2411,10 +2411,15 @@ static bool CheckEvaluationResult(CheckEvaluationResultKind CERK, const FieldDecl *SubobjectDecl, CheckedTemporaries ) { if (!Value.hasValue()) { -assert(SubobjectDecl &&

[clang] [clang] Additional FP classification functions (PR #69041)

2023-10-15 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/69041 >From 1374e323198d7188e688845eb951df4148a1dfd8 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 11 Oct 2023 14:27:26 +0700 Subject: [PATCH 1/3] [clang] Additional FP classification functions C language

[clang] [IRPGO] [Draft] Import vtable definitions in ThinTLO and use more efficient vtable comparison sequence with cost-benefit analysis (PR #69141)

2023-10-15 Thread Mingming Liu via cfe-commits
https://github.com/minglotus-6 edited https://github.com/llvm/llvm-project/pull/69141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Correctly emit destructors for multi-dimensional arrays (PR #69140)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We were not taking those into account correctly when emitting destructors. Fix that and add tests for it. Fixes #69115 --- Full diff: https://github.com/llvm/llvm-project/pull/69140.diff 2 Files

[clang] [clang][Interp] Correctly emit destructors for multi-dimensional arrays (PR #69140)

2023-10-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/69140 We were not taking those into account correctly when emitting destructors. Fix that and add tests for it. Fixes #69115 >From 9a3a88061790193575dbf76c3ddb2c0566fd6543 Mon Sep 17 00:00:00 2001 From:

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl edited https://github.com/llvm/llvm-project/pull/68642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
@@ -41,13 +42,12 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 boo return true; } -template < -class _Tp, -class _Up, -class _BinaryPredicate, -__enable_if_t<__is_trivial_equality_predicate<_BinaryPredicate, _Tp,

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
@@ -41,13 +42,12 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 boo return true; } -template < -class _Tp, -class _Up, -class _BinaryPredicate, -__enable_if_t<__is_trivial_equality_predicate<_BinaryPredicate, _Tp,

[clang-tools-extra] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl updated https://github.com/llvm/llvm-project/pull/68642 >From f0d93cc6a5cd485c654ab38221691db038bacc7d Mon Sep 17 00:00:00 2001 From: AntonRydahl Date: Mon, 9 Oct 2023 15:13:22 -0700 Subject: [PATCH 1/4] Merged __is_trivial_equality_predicate and

[clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-10-15 Thread Anton Rydahl via cfe-commits
https://github.com/AntonRydahl updated https://github.com/llvm/llvm-project/pull/68642 >From f0d93cc6a5cd485c654ab38221691db038bacc7d Mon Sep 17 00:00:00 2001 From: AntonRydahl Date: Mon, 9 Oct 2023 15:13:22 -0700 Subject: [PATCH 1/4] Merged __is_trivial_equality_predicate and

[clang] [LLVM] Add IRNormalizer Pass (PR #68176)

2023-10-15 Thread Justin Fargnoli via cfe-commits
https://github.com/justinfargnoli updated https://github.com/llvm/llvm-project/pull/68176 >From f792a030ac1761a96176332fea906cd2d1826c7b Mon Sep 17 00:00:00 2001 From: justinfargnoli Date: Sat, 12 Aug 2023 10:58:45 -0700 Subject: [PATCH 01/19] Add IRCanonicalizer.cpp ---

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-15 Thread Yeting Kuo via cfe-commits
@@ -106,9 +111,14 @@ static void emitSCSEpilogue(MachineFunction , MachineBasicBlock , CSI, [&](CalleeSavedInfo ) { return CSR.getReg() == RAReg; })) return; + const RISCVInstrInfo *TII = STI.getInstrInfo(); + if (STI.hasFeature(RISCV::FeatureStdExtZicfiss))

[clang] be72dca - [docs] [C++20] [Modules] Mentioning that -fdelayed-template-parsing is not working with modules

2023-10-15 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2023-10-16T10:38:33+08:00 New Revision: be72dca5e3ab3301e6927aca1c0823e382519bb3 URL: https://github.com/llvm/llvm-project/commit/be72dca5e3ab3301e6927aca1c0823e382519bb3 DIFF: https://github.com/llvm/llvm-project/commit/be72dca5e3ab3301e6927aca1c0823e382519bb3.diff

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: Fix a typo in a comment. https://github.com/llvm/llvm-project/pull/69095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69095 >From 1840ed82beb90edcdf8b4eff3de93d595fbc041d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 15 Oct 2023 04:00:56 -0400 Subject: [PATCH] [Driver][DragonFly] Fixes for linker path and command-line option

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: > Another question is whether we want to use `clang -Z` or `clang -Wl,-Z`. For > newer options we probably should recommend `-Wl,` more. Yes, I was thinking if this is used anywhere via the driver that it could be changed to using -Wl.

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf closed https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 819ac45 - [X86] Add USER_MSR instructions. (#68944)

2023-10-15 Thread via cfe-commits
Author: Freddy Ye Date: 2023-10-16T10:12:53+08:00 New Revision: 819ac45d1c1b7a2d784b2606c84de46ce714f278 URL: https://github.com/llvm/llvm-project/commit/819ac45d1c1b7a2d784b2606c84de46ce714f278 DIFF: https://github.com/llvm/llvm-project/commit/819ac45d1c1b7a2d784b2606c84de46ce714f278.diff

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 993e839 - [Driver] Don't pass -Z to ld for ELF platforms (#69120)

2023-10-15 Thread via cfe-commits
Author: Fangrui Song Date: 2023-10-15T19:12:35-07:00 New Revision: 993e839480449de63aefb1a1ae9142eefed5e7a6 URL: https://github.com/llvm/llvm-project/commit/993e839480449de63aefb1a1ae9142eefed5e7a6 DIFF: https://github.com/llvm/llvm-project/commit/993e839480449de63aefb1a1ae9142eefed5e7a6.diff

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
MaskRay wrote: > OpenBSD has a -Z flag for our BFD linker. > > `-Z Produce 'Standard' executables, disables Writable XOR Executable features > in resulting binaries.` > > [openbsd/src@0abdc37](https://github.com/openbsd/src/commit/0abdc3723b5d33dde698ab941325edec2819c128) > >

[clang] LoongArch fp16,fp128 basic support (PR #68851)

2023-10-15 Thread via cfe-commits
https://github.com/Xinmudotmoe updated https://github.com/llvm/llvm-project/pull/68851 >From 2ef1ddfb977da35f31f1f351ac4daf0478fff166 Mon Sep 17 00:00:00 2001 From: xinmu Date: Thu, 12 Oct 2023 13:36:34 +0800 Subject: [PATCH 1/2] LoongArch fp16,fp128 basic support ---

[clang] [clang][dataflow]Use cast_or_null instead of cast to prevent crash (PR #68510)

2023-10-15 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky edited https://github.com/llvm/llvm-project/pull/68510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow]Use cast_or_null instead cast to prevent crash (PR #68510)

2023-10-15 Thread Qizhi Hu via cfe-commits
jcsxky wrote: @ymand Could you take a look at this pr? https://github.com/llvm/llvm-project/pull/68510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture

[clang] [Driver] Hook up Haiku PowerPC support (PR #69134)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69134 >From ed2ff4586a4113e7b967112d700ca8ad56f0afdd Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 11 Oct 2023 19:25:33 -0400 Subject: [PATCH] [Driver] Hook up Haiku PowerPC support ---

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up Haiku PowerPC support (PR #69134)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/69134 None >From 914b3424d93f985c34ddc4180ff6271c8145e4ac Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 11 Oct 2023 19:25:33 -0400 Subject: [PATCH] [Driver] Hook up Haiku PowerPC support ---

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf updated https://github.com/llvm/llvm-project/pull/68944 >From 2377ab2b9865d8f152996fd38f6b543767f8c2ae Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Wed, 11 Oct 2023 14:09:02 +0800 Subject: [PATCH 1/3] Add USER_MSR instructions. For more details about this

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/69062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5ae5af1 - [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (#69062)

2023-10-15 Thread via cfe-commits
Author: Congcong Cai Date: 2023-10-16T09:02:53+08:00 New Revision: 5ae5af1d7c60ac10d91573d251c2d81083cd6ada URL: https://github.com/llvm/llvm-project/commit/5ae5af1d7c60ac10d91573d251c2d81083cd6ada DIFF: https://github.com/llvm/llvm-project/commit/5ae5af1d7c60ac10d91573d251c2d81083cd6ada.diff

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: This patch makes me think whether we actually respect final on methods/classes to avoid unnecessary bifurcation on virtual calls. We probably do not. https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. Added some nits inline, overall, it looks good to me. https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
@@ -609,9 +617,13 @@ storeWhenMoreInformative(ProgramStateRef , SymbolRef Sym, /// symbol and the destination type of the cast are unrelated, report an error. void DynamicTypePropagation::checkPostStmt(const CastExpr *CE,

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
@@ -392,19 +393,26 @@ void DynamicTypePropagation::checkPostCall(const CallEvent , } } -/// TODO: Handle explicit casts. -/// Handle C++ casts. -/// -/// Precondition: the cast is between ObjCObjectPointers. ExplodedNode

[clang] [analyzer] Trust base to derived casts for dynamic types (PR #69057)

2023-10-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun edited https://github.com/llvm/llvm-project/pull/69057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D155850: [HIP][Clang][CodeGen][RFC] Add codegen support for C++ Parallel Algorithm Offload

2023-10-15 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 557712. AlexVlx edited the summary of this revision. AlexVlx added a comment. Rebase. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D155850/new/ https://reviews.llvm.org/D155850 Files: clang/lib/CodeGen/BackendUtil.cpp

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69062 >From bfeaa2eeaa3d20e1919288bcf1027ec196378236 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 15 Oct 2023 00:20:08 +0800 Subject: [PATCH 1/3] [clang-tidy][modernize-loop-convert]check

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/69062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)

2023-10-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69062 >From bfeaa2eeaa3d20e1919288bcf1027ec196378236 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 15 Oct 2023 00:20:08 +0800 Subject: [PATCH 1/3] [clang-tidy][modernize-loop-convert]check

[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/69095 >From a8ff33aecfbcb130e4d47fd099e02f5f40f433ea Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 15 Oct 2023 04:00:56 -0400 Subject: [PATCH] [Driver][DragonFly] Fixes for linker path and command-line option

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
https://github.com/brad0 approved this pull request. https://github.com/llvm/llvm-project/pull/69120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Brad Smith via cfe-commits
brad0 wrote: OpenBSD has a -Z flag for our BFD linker. ```-ZProduce 'Standard' executables, disables Writable XOR Executable features in resulting binaries.``` https://github.com/openbsd/src/commit/0abdc3723b5d33dde698ab941325edec2819c128

[clang] [clang] Add /Zc:__STDC__ flag to clang-cl (PR #68690)

2023-10-15 Thread via cfe-commits
https://github.com/xbjfk updated https://github.com/llvm/llvm-project/pull/68690 >From a89bee09fa7564f336886ff0eb76987b939c0c2c Mon Sep 17 00:00:00 2001 From: Reagan Bohan Date: Sun, 15 Oct 2023 23:26:02 + Subject: [PATCH] [clang] Add /Zc:__STDC__ flag to clang-cl This commit adds the

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/69133 >From 96e644279ccec1970c42cca89c05aac186b872e6 Mon Sep 17 00:00:00 2001 From: Amir Aupov Date: Mon, 16 Oct 2023 01:08:28 +0200 Subject: [PATCH] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options

[PATCH] D143617: [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options

2023-10-15 Thread Amir Ayupov via Phabricator via cfe-commits
Amir abandoned this revision. Amir added a comment. Migrated to https://github.com/llvm/llvm-project/pull/69133 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143617/new/ https://reviews.llvm.org/D143617

[PATCH] D149867: [Clang][M68k] Add Clang support for the new M68k_RTD CC

2023-10-15 Thread Min-Yih Hsu via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGfd4f96290ac9: [Clang][M68k] Add Clang support for the new

[clang] fd4f962 - [Clang][M68k] Add Clang support for the new M68k_RTD CC

2023-10-15 Thread Min-Yih Hsu via cfe-commits
Author: Min-Yih Hsu Date: 2023-10-15T16:13:43-07:00 New Revision: fd4f96290ac99bf8b9284d3b32743cac0bb135ea URL: https://github.com/llvm/llvm-project/commit/fd4f96290ac99bf8b9284d3b32743cac0bb135ea DIFF: https://github.com/llvm/llvm-project/commit/fd4f96290ac99bf8b9284d3b32743cac0bb135ea.diff

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 7f881a2abe2c3eceeae0272fc41ba0a237770450..3987088f1b6f6b895f7563ad70c97074b0d4ded0

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amir Ayupov (aaupov) Changes Split up and refactor CLANG_BOLT_INSTRUMENT into support for perf no-LBR and perf with LBR profiling modes. Differential Revision: https://reviews.llvm.org/D143617 --- Full diff:

[clang] [Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (PR #69133)

2023-10-15 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/69133 Split up and refactor CLANG_BOLT_INSTRUMENT into support for perf no-LBR and perf with LBR profiling modes. Differential Revision: https://reviews.llvm.org/D143617 >From 3987088f1b6f6b895f7563ad70c97074b0d4ded0

[clang] 7f881a2 - [clang-format] Treat AttributeMacro more like __attribute__

2023-10-15 Thread Owen Pan via cfe-commits
Author: Jared Grubb Date: 2023-10-15T15:58:24-07:00 New Revision: 7f881a2abe2c3eceeae0272fc41ba0a237770450 URL: https://github.com/llvm/llvm-project/commit/7f881a2abe2c3eceeae0272fc41ba0a237770450 DIFF: https://github.com/llvm/llvm-project/commit/7f881a2abe2c3eceeae0272fc41ba0a237770450.diff

[clang] 6c7cf74 - Revert "[clang-format] Treat AttributeMacro more like __attribute__"

2023-10-15 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-10-15T15:52:17-07:00 New Revision: 6c7cf74a75572c3cc5d9979f02b67a7357e9c656 URL: https://github.com/llvm/llvm-project/commit/6c7cf74a75572c3cc5d9979f02b67a7357e9c656 DIFF: https://github.com/llvm/llvm-project/commit/6c7cf74a75572c3cc5d9979f02b67a7357e9c656.diff

[PATCH] D145262: [clang-format] Treat AttributeMacros more like __attribute__

2023-10-15 Thread Owen Pan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG6f46bcc609f1: [clang-format] Treat AttributeMacro more like __attribute__ (authored by jaredgrubb, committed by owenpan). Changed prior to commit: https://reviews.llvm.org/D145262?vs=557674=557707#toc

[clang] 6f46bcc - [clang-format] Treat AttributeMacro more like __attribute__

2023-10-15 Thread Owen Pan via cfe-commits
Author: Jared Grubb Date: 2023-10-15T15:44:57-07:00 New Revision: 6f46bcc609f14121e6942763ba9871f98541ea0e URL: https://github.com/llvm/llvm-project/commit/6f46bcc609f14121e6942763ba9871f98541ea0e DIFF: https://github.com/llvm/llvm-project/commit/6f46bcc609f14121e6942763ba9871f98541ea0e.diff

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,5 @@ +// RUN: %clang -### --entry test %s 2>&1 | FileCheck %s MaskRay wrote: In the absence of `--target=`, the default target triple `LLVM_DEFAULT_TARGET_TRIPLE` is used. The selected `ToolChain` may not run AddLinkerInputs to render `-e`. We

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. The new option (alias) can be unnamed. https://github.com/llvm/llvm-project/pull/69114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Fix --entry command line option (PR #69114)

2023-10-15 Thread Sergei Barannikov via cfe-commits
https://github.com/s-barannikov approved this pull request. Thanks, LGTM (Please make sure to edit the description before merging so that `git log` does not contain irrelevant information.) https://github.com/llvm/llvm-project/pull/69114 ___

[clang] [analyzer][NFC] Remove outdated FIXME comment (PR #68211)

2023-10-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: LGTM Thanks. https://github.com/llvm/llvm-project/pull/68211 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix note for member reference (PR #68691)

2023-10-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?G=C3=A1bor?= Spaits,=?utf-8?q?G=C3=A1bor?= Spaits, =?utf-8?q?G=C3=A1bor?= Spaits Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/68691 ___ cfe-commits mailing list

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
@@ -32,42 +32,72 @@ using namespace taint; namespace { class ArrayBoundCheckerV2 : public Checker { - mutable std::unique_ptr BT; - mutable std::unique_ptr TaintBT; + BugType BT{this, "Out-of-bound access"}; + BugType TaintBT{this, "Out-of-bound access",

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
@@ -32,42 +32,72 @@ using namespace taint; namespace { class ArrayBoundCheckerV2 : public Checker { - mutable std::unique_ptr BT; - mutable std::unique_ptr TaintBT; + BugType BT{this, "Out-of-bound access"}; + BugType TaintBT{this, "Out-of-bound access",

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
@@ -32,42 +32,72 @@ using namespace taint; namespace { class ArrayBoundCheckerV2 : public Checker { - mutable std::unique_ptr BT; - mutable std::unique_ptr TaintBT; + BugType BT{this, "Out-of-bound access"}; + BugType TaintBT{this, "Out-of-bound access",

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
@@ -32,42 +32,72 @@ using namespace taint; namespace { class ArrayBoundCheckerV2 : public Checker { - mutable std::unique_ptr BT; - mutable std::unique_ptr TaintBT; + BugType BT{this, "Out-of-bound access"}; + BugType TaintBT{this, "Out-of-bound access",

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/67572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal requested changes to this pull request. https://github.com/llvm/llvm-project/pull/67572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] -Wzero-as-null-pointer-constant: don't warn for __null (PR #69126)

2023-10-15 Thread Arseny Kapoulkine via cfe-commits
zeux wrote: Note: a limitation of this change is that we will still warn on use of `NULL` when it is defined as 0, which could be a problem for clang-cl. This could be lifted by removing the "NULL" macro name check, but unfortunately that is insufficient to detect the use of NULL inside macro

[clang] [Sema] -Wzero-as-null-pointer-constant: don't warn for __null (PR #69126)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Arseny Kapoulkine (zeux) Changes The implementation of -Wzero-as-null-pointer-constant was done before the following fix has been committed to GCC:

[clang] [libclang/python] Add missing concept declaration CursorKind (PR #69125)

2023-10-15 Thread Nick Renieris via cfe-commits
VelocityRa wrote: Pinging @mdfazlay and @AaronBallman for review (sorry if I chose the wrong people!) https://github.com/llvm/llvm-project/pull/69125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Sema] -Wzero-as-null-pointer-constant: don't warn for __null (PR #69126)

2023-10-15 Thread Arseny Kapoulkine via cfe-commits
https://github.com/zeux created https://github.com/llvm/llvm-project/pull/69126 The implementation of -Wzero-as-null-pointer-constant was done before the following fix has been committed to GCC:

[clang] [libclang/python] Add missing concept declaration CursorKind (PR #69125)

2023-10-15 Thread Nick Renieris via cfe-commits
https://github.com/VelocityRa edited https://github.com/llvm/llvm-project/pull/69125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add missing concept declaration CursorKind (PR #69125)

2023-10-15 Thread Nick Renieris via cfe-commits
https://github.com/VelocityRa edited https://github.com/llvm/llvm-project/pull/69125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add missing concept declaration CursorKind (PR #69125)

2023-10-15 Thread Nick Renieris via cfe-commits
https://github.com/VelocityRa edited https://github.com/llvm/llvm-project/pull/69125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add missing concept declaration CursorKind (PR #69125)

2023-10-15 Thread Nick Renieris via cfe-commits
https://github.com/VelocityRa created https://github.com/llvm/llvm-project/pull/69125 Maps to [`CXCursor_ConceptDecl`](https://github.com/llvm/llvm-project/blob/ee8524087c78a673fcf5486ded69ee597a85e0f1/clang/include/clang-c/Index.h#L2716), added in ee8524087c78a673fcf5486ded69ee597a85e0f1.

[clang] [clang] Add clang::debug_info_type attribute for bitfields (PR #69104)

2023-10-15 Thread Paul T Robinson via cfe-commits
pogo59 wrote: > Does this issue not apply to other platforms? There is a deliberate layout/ABI choice that MSVC made ages ago and will never change. It will only pack bitfields into the same word if the neighboring bitfield declarations have the same base type. This is relatively well known.

[PATCH] D137149: Use PassGate from LLVMContext if any otherwise global one

2023-10-15 Thread Valentin Churavy via Phabricator via cfe-commits
vchuravy added a comment. > We'd need a lot more testing before we can claim to support reusing pipelines. Sure, but moving pass pipeline state into the context makes it much harder to do this kind of testing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Fangrui Song (MaskRay) Changes -Z is an Apple ld64 option. ELF linkers don't recognize -Z. Some ToolChains have -Z due to copy-and-paste mistakes. --- Full diff: https://github.com/llvm/llvm-project/pull/69120.diff 9 Files

[clang] [Driver] Don't pass -Z to ld for ELF platforms (PR #69120)

2023-10-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/69120 -Z is an Apple ld64 option. ELF linkers don't recognize -Z. Some ToolChains have -Z due to copy-and-paste mistakes. >From f89971279ec678dedd98efcf37398beb98d3f09e Mon Sep 17 00:00:00 2001 From: Fangrui Song

  1   2   >