[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-24 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Curios, why Asan when there is Sparc ADI? https://github.com/llvm/llvm-project/pull/107403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Adjust concept definition locus (PR #103867)

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

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-24 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/107403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-24 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Also if there is a feature similar to ARM TBI, hwasan is a better option. https://github.com/llvm/llvm-project/pull/107403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

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

[clang-tools-extra] [clang-tidy] exclude CXXParenListInitExpr from RedundantCastingCheck (PR #109741)

2024-09-24 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 updated https://github.com/llvm/llvm-project/pull/109741 >From 13bc00c2ffb4238903b57c0a3c77424ed35279cc Mon Sep 17 00:00:00 2001 From: dl8sd11 Date: Mon, 23 Sep 2024 17:52:25 + Subject: [PATCH 1/4] [clang-tidy] eclude CXXParenListInitExpr Exclude CXXParenListInit

[clang-tools-extra] [clang-tidy] exclude CXXParenListInitExpr from RedundantCastingCheck (PR #109741)

2024-09-24 Thread Tommy Chen via cfe-commits
@@ -183,6 +183,10 @@ Changes in existing checks by adding the option `UseUpperCaseLiteralSuffix` to select the case of the literal suffix in fixes. +- Improved :doc:`readability-redundant-casting + ` check to + exclude `CXXParenListInitExpr` for the source expression mat

[clang] [flang] [Flang][Driver][Offload] Support -Xoffload-linker argument in Flang (PR #109907)

2024-09-24 Thread via cfe-commits
https://github.com/agozillon created https://github.com/llvm/llvm-project/pull/109907 The -Xoffload-linker command allows forwarding of linker commands to the clang-linker-wrapper used for linking offload libraries into the resulting offload binaries amongst other tasks. This is a rather usefu

[clang] [flang] [Flang][Driver][Offload] Support -Xoffload-linker argument in Flang (PR #109907)

2024-09-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang Author: None (agozillon) Changes The -Xoffload-linker command allows forwarding of linker commands to the clang-linker-wrapper used for linking offload libraries into the resulting offload binaries amongst other

[clang] [BPF] make __BPF_FEATURE_MAY_GOTO available for cpuv1 (PR #108071)

2024-09-24 Thread via cfe-commits
https://github.com/4ast approved this pull request. https://github.com/llvm/llvm-project/pull/108071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eabc885 - [BPF] make __BPF_FEATURE_MAY_GOTO available for cpuv1 (#108071)

2024-09-24 Thread via cfe-commits
Author: eddyz87 Date: 2024-09-24T11:46:33+03:00 New Revision: eabc8857e77c94a09624c12cc690753f68b87825 URL: https://github.com/llvm/llvm-project/commit/eabc8857e77c94a09624c12cc690753f68b87825 DIFF: https://github.com/llvm/llvm-project/commit/eabc8857e77c94a09624c12cc690753f68b87825.diff LOG:

[clang] [BPF] make __BPF_FEATURE_MAY_GOTO available for cpuv1 (PR #108071)

2024-09-24 Thread via cfe-commits
https://github.com/eddyz87 closed https://github.com/llvm/llvm-project/pull/108071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Ignore CPointerToObjCPointerCasts (PR #109760)

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

[clang] e4d3426 - [clang][bytecode] Ignore CPointerToObjCPointerCasts (#109760)

2024-09-24 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-24T10:18:33+02:00 New Revision: e4d34261f85050af340ade9a7dcd332f11b4485f URL: https://github.com/llvm/llvm-project/commit/e4d34261f85050af340ade9a7dcd332f11b4485f DIFF: https://github.com/llvm/llvm-project/commit/e4d34261f85050af340ade9a7dcd332f11b4485f.diff L

[clang] [BPF] make __BPF_FEATURE_MAY_GOTO available for cpuv1 (PR #108071)

2024-09-24 Thread via cfe-commits
eddyz87 wrote: @4ast, ping https://github.com/llvm/llvm-project/pull/108071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add cc1 --output-asm-variant= to set output syntax (PR #109360)

2024-09-24 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. Aside for the option ergonomics, this looks reasonable to me. https://github.com/llvm/llvm-project/pull/109360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [llvm] [clang] Add cc1 --output-asm-variant= to set output syntax (PR #109360)

2024-09-24 Thread Martin Storsjö via cfe-commits
@@ -7209,6 +7209,9 @@ def fuse_ctor_homing: Flag<["-"], "fuse-ctor-homing">, def as_secure_log_file : Separate<["-"], "as-secure-log-file">, HelpText<"Emit .secure_log_unique directives to this filename.">, MarshallingInfoString>; +def output_asm_variant : Joined<["--"], "o

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/109167 >From 72b43bd2f392a009187e1cdd90627691a4017707 Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Wed, 18 Sep 2024 09:02:23 -0700 Subject: [PATCH 1/6] [C++20][Modules] Fix crash when function and lambda in

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
@@ -724,6 +724,9 @@ enum ASTRecordTypes { /// Record code for vtables to emit. VTABLES_TO_EMIT = 70, + + /// Record code for the FunctionDecl to lambdas mapping. dmpolukhin wrote: Done https://github.com/llvm/llvm-project/pull/109167 ___

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
@@ -4351,6 +4351,15 @@ void ASTReader::loadDeclUpdateRecords(PendingUpdateRecord &Record) { reader::ASTDeclContextNameLookupTrait(*this, *Update.Mod)); DC->setHasExternalVisibleStorage(true); } + + // Load any pending lambdas for the function. + if (auto *FD

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
@@ -233,6 +233,10 @@ class ASTWriter : public ASTDeserializationListener, /// instead of comparing the result of `getDeclID()` or `GetDeclRef()`. llvm::SmallPtrSet PredefinedDecls; + /// Map that provides the ID of function to the vector of lambdas inside it.

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin edited https://github.com/llvm/llvm-project/pull/109167 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin commented: All comments resolved, also I added TODO that we might want to use ondisk hash table to allow lazy deserialization for the new record. https://github.com/llvm/llvm-project/pull/109167 ___ cfe-commits mailing li

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
@@ -532,6 +532,10 @@ class ASTReader /// namespace as if it is not delayed. DelayedNamespaceOffsetMapTy DelayedNamespaceOffsetMap; + /// Mapping from FunctionDecl IDs to the corresponding lambda IDs. dmpolukhin wrote: Done https://github.com/llvm/llvm-p

[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

2024-09-24 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin edited https://github.com/llvm/llvm-project/pull/109167 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3b8c78a - [RISCV] Enable f16 vget/vset/vcreate/vlmul_ext/vlmul_trunc/vundefined intrinsics with Zvfhmin. (#109889)

2024-09-24 Thread via cfe-commits
Author: Craig Topper Date: 2024-09-24T21:36:14-07:00 New Revision: 3b8c78a610451f250a57122cdac394c6c8a66189 URL: https://github.com/llvm/llvm-project/commit/3b8c78a610451f250a57122cdac394c6c8a66189 DIFF: https://github.com/llvm/llvm-project/commit/3b8c78a610451f250a57122cdac394c6c8a66189.diff

[clang] [RISCV] Enable f16 vget/vset/vcreate/vlmul_ext/vlmul_trunc/vundefined intrinsics with Zvfhmin. (PR #109889)

2024-09-24 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/109889 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix the local parameter of void type inside the `Requires` expression. (PR #109831)

2024-09-24 Thread Younan Zhang via cfe-commits
@@ -9509,6 +9509,19 @@ Sema::ActOnStartRequiresExpr(SourceLocation RequiresKWLoc, PushDeclContext(BodyScope, Body); for (ParmVarDecl *Param : LocalParameters) { +if (Param->getType()->isVoidType()) { + if (LocalParameters.size() > 1) { +Diag(Param->getBeg

[clang] [clang] Use std::optional::value_or (NFC) (PR #109894)

2024-09-24 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/109894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Adjust concept definition locus (PR #103867)

2024-09-24 Thread Younan Zhang via cfe-commits
@@ -8499,23 +8498,63 @@ Decl *Sema::ActOnConceptDefinition( NewDecl->setInvalidDecl(); } + DeclarationNameInfo NameInfo(NewDecl->getDeclName(), NewDecl->getBeginLoc()); + LookupResult Previous(*this, NameInfo, LookupOrdinaryName, +forRedeclarati

[clang] [clang] Fix the local parameter of void type inside the `Requires` expression. (PR #109831)

2024-09-24 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: There should be a release note :) I think I agree with @mizvekov's idea of merging the parameter checks into SemaType; we can probably in part reuse GetTypeForDeclarator. I would appreciate it if we can see some exploration here. Another thing is that we

[clang] [clang] Fix the local parameter of void type inside the `Requires` expression. (PR #109831)

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

[clang-tools-extra] [clang-tidy] exclude CXXParenListInitExpr from RedundantCastingCheck (PR #109741)

2024-09-24 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. Except single comment, looks fine. https://github.com/llvm/llvm-project/pull/109741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-09-24 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 18b9d49ce3370c012fdd04ec87d854d53293f6a6 7bcaa3bb81e54edc440abc2b4d5ac85289c6b522 --e

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/104741 >From fdadb0fdc2288b18d4dfe4f4510d057a7552ee39 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Mon, 19 Aug 2024 15:22:39 +0800 Subject: [PATCH 1/4] [UBSan] Diagnose assumption violation --- clang/lib/CodeGe

[clang] [llvm] [LoongArch] [CodeGen] Add options for Clang to generate LoongArch-specific frecipe & frsqrte instructions (PR #109917)

2024-09-24 Thread via cfe-commits
https://github.com/tangaac updated https://github.com/llvm/llvm-project/pull/109917 >From b720995dad35236f23681b3cc895f7aea9cc3147 Mon Sep 17 00:00:00 2001 From: tangaac Date: Wed, 25 Sep 2024 11:32:37 +0800 Subject: [PATCH] [LoongArch] Add options for Clang to generate LoongArch-specific frec

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 approved this pull request. https://github.com/llvm/llvm-project/pull/107403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][Driver] Enable ASan on Solaris/SPARC (PR #107403)

2024-09-24 Thread Rainer Orth via cfe-commits
rorth wrote: Ping? ASan results on Solaris/sparcv9 are now one failure away from clean with current PR #107223. https://github.com/llvm/llvm-project/pull/107403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] 1cdcec5 - [clang][bytecode] Handle vector comma op (#109827)

2024-09-24 Thread via cfe-commits
Author: yronglin Date: 2024-09-25T14:09:06+08:00 New Revision: 1cdcec5884fb99d921800197e0863329de6b10ee URL: https://github.com/llvm/llvm-project/commit/1cdcec5884fb99d921800197e0863329de6b10ee DIFF: https://github.com/llvm/llvm-project/commit/1cdcec5884fb99d921800197e0863329de6b10ee.diff LOG:

[clang] [clang][bytecode] Handle vector comma op (PR #109827)

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

[clang] [Clang] Adjust concept definition locus (PR #103867)

2024-09-24 Thread Younan Zhang via cfe-commits
@@ -8499,23 +8498,63 @@ Decl *Sema::ActOnConceptDefinition( NewDecl->setInvalidDecl(); } + DeclarationNameInfo NameInfo(NewDecl->getDeclName(), NewDecl->getBeginLoc()); + LookupResult Previous(*this, NameInfo, LookupOrdinaryName, +forRedeclarati

<    1   2   3   4   5