[clang] [clang][Tooling] Add special symbol mappings for C, starting with size_t (PR #85784)

2024-03-19 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. https://github.com/llvm/llvm-project/pull/85784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland Print library module manifest path again (PR #84881)

2024-03-19 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > > > > The file we're looking for is `modules.json`; Renaming it > > > > > `libc++.modules.json` like `.so` / `.a` file might be a better idea > > > > > which could avoid name clashes when installed in `/usr/lib`. > > > > > > > > > > > > but i didn't rename it, it was wit

[clang] [clang][dataflow] Refactor processing of terminator element (PR #84499)

2024-03-19 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand updated https://github.com/llvm/llvm-project/pull/84499 >From 02381f2dbdcc569889ae55a2ca5d8698f74626d8 Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Fri, 8 Mar 2024 15:19:14 + Subject: [PATCH 1/2] [clang][dataflow] Refactor processing of terminator element

[clang] 175ad66 - [analyzer] Mention possibility of underflow in array overflow errors (#84201)

2024-03-19 Thread via cfe-commits
Author: NagyDonat Date: 2024-03-19T14:12:27+01:00 New Revision: 175ad6630a869831126dde80f0f9257f9c4c477f URL: https://github.com/llvm/llvm-project/commit/175ad6630a869831126dde80f0f9257f9c4c477f DIFF: https://github.com/llvm/llvm-project/commit/175ad6630a869831126dde80f0f9257f9c4c477f.diff LOG

[clang] [llvm] [analyzer] Mention possibility of underflow in array overflow errors (PR #84201)

2024-03-19 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy ,NagyDonat ,Balazs Benics , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/84201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

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

2024-03-19 Thread Piyou Chen via cfe-commits
https://github.com/BeMg created https://github.com/llvm/llvm-project/pull/85786 This patch enable the function multiversion(FMV) and `target_clones` attribute for RISC-V target. It will emit the IFUNC resolver function to select appropriate function during runtime. >From 239b404203c66ab5336f

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

2024-03-19 Thread Piyou Chen via cfe-commits
BeMg wrote: Inside the resolver function, a function named `__riscv_ifunc_select` is used to ensure that all additional extension requirements are met. It is temporary interface until proposal be ratified. ``` bool __riscv_ifunc_select(char *FeatureStr); ``` https://github.com/llvm/llvm-proj

[clang] c1328db - [clang][dataflow] Refactor processing of terminator element (#84499)

2024-03-19 Thread via cfe-commits
Author: Yitzhak Mandelbaum Date: 2024-03-19T09:41:29-04:00 New Revision: c1328db9d8e41bb96e031eb3dfa884e56b07244b URL: https://github.com/llvm/llvm-project/commit/c1328db9d8e41bb96e031eb3dfa884e56b07244b DIFF: https://github.com/llvm/llvm-project/commit/c1328db9d8e41bb96e031eb3dfa884e56b07244b.

[clang] [clang][dataflow] Refactor processing of terminator element (PR #84499)

2024-03-19 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand closed https://github.com/llvm/llvm-project/pull/84499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [dataflow] CXXForRangeStmt should extend flow condition (PR #80989)

2024-03-19 Thread Yitzhak Mandelbaum via cfe-commits
ymand wrote: Just a note: I've siginfiicantly simplified the code that you're modifying in this PR (https://github.com/llvm/llvm-project/pull/84499), so expect some merge conflicts next time you pull from main. https://github.com/llvm/llvm-project/pull/80989 ___

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

2024-03-19 Thread Piyou Chen via cfe-commits
BeMg wrote: The candidate function priority order is undefined. Currently, it base on declaration order. https://github.com/llvm/llvm-project/pull/85786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

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

2024-03-19 Thread Piyou Chen via cfe-commits
BeMg wrote: The warning occurs because the RISC-V target_clones syntax `__attribute__((target_clones("default", "arch=+zba,+v,+c,+zicond", "arch=+zbb,+c,+v")))` contains a comma inside double quotes. ``` warning: mixing 'target_clones' specifier mechanisms is permitted for GCC compatibility;

[clang] ef395a4 - [AArch64] Add soft-float ABI (#84146)

2024-03-19 Thread via cfe-commits
Author: ostannard Date: 2024-03-19T13:58:51Z New Revision: ef395a492aa931f428e99e1c0a93d4ad2fb0fcfa URL: https://github.com/llvm/llvm-project/commit/ef395a492aa931f428e99e1c0a93d4ad2fb0fcfa DIFF: https://github.com/llvm/llvm-project/commit/ef395a492aa931f428e99e1c0a93d4ad2fb0fcfa.diff LOG: [AA

[clang] [llvm] [AArch64] Add soft-float ABI (PR #84146)

2024-03-19 Thread via cfe-commits
https://github.com/ostannard closed https://github.com/llvm/llvm-project/pull/84146 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-03-19 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 01/13] [Clang][Sema] Print more static_assert exprs This change int

[clang] [llvm] Reapply "[analyzer] Accept C library functions from the `std` namespace" again (PR #85791)

2024-03-19 Thread via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/85791 This reapplies 80ab8234ac309418637488b97e0a62d8377b2ecf again, after fixing a name collision warning in the unit tests (see the revert commit 13ccaf9b9d4400bb128b35ff4ac733e4afc3ad1c for details). >From 3fbc8

[clang] [llvm] Reapply "[analyzer] Accept C library functions from the `std` namespace" again (PR #85791)

2024-03-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (NagyDonat) Changes This reapplies 80ab8234ac309418637488b97e0a62d8377b2ecf again, after fixing a name collision warning in the unit tests (see the revert commit 13ccaf9b9d4400bb128b35ff4ac733e4afc3ad1c for details). --- Full diff:

[clang] [llvm] Reapply "[analyzer] Accept C library functions from the `std` namespace" again (PR #85791)

2024-03-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (NagyDonat) Changes This reapplies 80ab8234ac309418637488b97e0a62d8377b2ecf again, after fixing a name collision warning in the unit tests (see the revert commit 13ccaf9b9d4400bb128b35ff4ac733e4afc3ad1c for details)

[clang] [llvm] Reapply "[analyzer] Accept C library functions from the `std` namespace" again (PR #85791)

2024-03-19 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 175ad6630a869831126dde80f0f9257f9c4c477f 3fbc8da42726aa63ad0aef7ba12141125197279b --

[clang] [llvm] [AArch64] Remove Automatic Enablement of FEAT_F32MM (PR #85203)

2024-03-19 Thread via cfe-commits
https://github.com/ostannard approved this pull request. I was the one who originally decided that f32mm should be automatically enabled like this, and in hindsight I agree that that was the wrong decision. GCC never implemented this, so this is making us more compatible, not less. https://git

[clang] Reland Print library module manifest path again (PR #84881)

2024-03-19 Thread Mark de Wever via cfe-commits
mordante wrote: Build system don't use this yet (since it wasn't available). I know CMake is working on implementing modules using libc++. Looking at the stage of the release I feel less comfortable to propose new features. So I think the feature should not be back ported. I'm happy to pick t

[clang] [llvm] Reapply "[analyzer] Accept C library functions from the `std` namespace" again (PR #85791)

2024-03-19 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/85791 >From 3fbc8da42726aa63ad0aef7ba12141125197279b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 19 Mar 2024 14:14:19 +0100 Subject: [PAT

[clang] [llvm] [Clang][OpenMP] Port clang codegen code for openmp porject (PR #85795)

2024-03-19 Thread via cfe-commits
https://github.com/TSWorld1314 created https://github.com/llvm/llvm-project/pull/85795 None >From c44d8c1c7986fad6370273aca55e2db99d47387a Mon Sep 17 00:00:00 2001 From: "Harrison,Hao" Date: Tue, 19 Mar 2024 13:18:07 + Subject: [PATCH] [Clang][OpenMP] Port clang codegen code for GPU First

[clang] [llvm] [Clang][OpenMP] Port clang codegen code for openmp porject (PR #85795)

2024-03-19 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] [llvm] [Clang][OpenMP] Port clang codegen code for openmp porject (PR #85795)

2024-03-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-flang-openmp Author: Harrison (TSWorld1314) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/85795.diff 5 Files Affected: - (modified) clang/include/clang/Basic/LangOptions.def (+1) - (modified) cl

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Chris B via cfe-commits
https://github.com/llvm-beanz commented: One comment, otherwise looks good. https://github.com/llvm/llvm-project/pull/85662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Chris B via cfe-commits
https://github.com/llvm-beanz edited https://github.com/llvm/llvm-project/pull/85662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Chris B via cfe-commits
@@ -5484,6 +5484,19 @@ bool CheckFloatOrHalfRepresentations(Sema *S, CallExpr *TheCall) { checkFloatorHalf); } +bool CheckNoDoubleVectors(Sema *S, CallExpr *TheCall) { + auto checkDoubleVector = [](clang::QualType PassedType) -> bool { +

[clang] [llvm] [Clang][OpenMP] Port clang codegen code for openmp porject (PR #85795)

2024-03-19 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 208a9850e6a4b64ad6311361735d27a9c6cbd8ec 1b54da5f9dece1bf307acc12042b044011237d9c --

[clang] [libcxx] [libc++] Implement LWG3528 (`make_from_tuple` can perform (the equivalent of) a C-style cast) (PR #85263)

2024-03-19 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/85263 >From fc8c1a24f09c8860269fbdcfb0b285ffd19f427c Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 15 Mar 2024 00:48:08 +0800 Subject: [PATCH 1/6] [libc++] Implement LWG3528 (`make_from_tuple` can perform (the e

[clang] [libcxx] [libc++] Implement LWG3528 (`make_from_tuple` can perform (the equivalent of) a C-style cast) (PR #85263)

2024-03-19 Thread via cfe-commits
yronglin wrote: Does this is a bug of GCC? https://godbolt.org/z/h5af6f5x9 https://github.com/llvm/llvm-project/pull/85263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Refactor ConstantArrayType size storage (PR #85716)

2024-03-19 Thread Chris B via cfe-commits
@@ -3182,34 +3182,98 @@ class ArrayType : public Type, public llvm::FoldingSetNode { /// For example, the canonical type for 'int A[4 + 4*100]' is a /// ConstantArrayType where the element type is 'int' and the size is 404. class ConstantArrayType final -: public ArrayType

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -3191,6 +3191,22 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd approved this pull request. https://github.com/llvm/llvm-project/pull/82084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/82084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libc++] Implement LWG3528 (`make_from_tuple` can perform (the equivalent of) a C-style cast) (PR #85263)

2024-03-19 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/85263 >From fc8c1a24f09c8860269fbdcfb0b285ffd19f427c Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 15 Mar 2024 00:48:08 +0800 Subject: [PATCH 1/8] [libc++] Implement LWG3528 (`make_from_tuple` can perform (the e

[clang] [llvm] [GOFF][z/OS] Change PrivateGlobalPrefix and PrivateLabelPrefix to be L# (PR #85730)

2024-03-19 Thread Neumann Hon via cfe-commits
https://github.com/Everybody0523 updated https://github.com/llvm/llvm-project/pull/85730 >From 37ab123e23e140ee6534804ea22b62f2cc47aa20 Mon Sep 17 00:00:00 2001 From: Neumann Hon Date: Mon, 18 Mar 2024 23:16:26 -0400 Subject: [PATCH 1/4] Change prefix from @/@@ to L# --- llvm/lib/MC/MCAsmInfo

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-03-19 Thread via cfe-commits
yronglin wrote: FYI, Does this PR have some overlapping functions with `__builtin_dump_struct` in structure printing? https://github.com/llvm/llvm-project/blob/db4170a4f3a701a62f5c1ef2e6a30f490f107f7d/clang/lib/Sema/SemaChecking.cpp#L453-L695 https://github.com/llvm/llvm-project/pull/74852 ___

[clang] [WIP] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
https://github.com/hiraditya updated https://github.com/llvm/llvm-project/pull/85704 >From a48820a1db41d7f33b5b0f96d22842642bf3b78d Mon Sep 17 00:00:00 2001 From: AdityaK Date: Mon, 18 Mar 2024 14:09:13 -0700 Subject: [PATCH] clang driver: enable fast unaligned access for Android on RISCV64 A

[clang] [WIP] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
https://github.com/hiraditya ready_for_review https://github.com/llvm/llvm-project/pull/85704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: AdityaK (hiraditya) Changes Android CTS test already requires fast unaligned access https://android-review.googlesource.com/c/platform/cts/+/2675633 Pending testcase --- Full diff: https://github.com/l

[clang] [WIP] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
https://github.com/hiraditya edited https://github.com/llvm/llvm-project/pull/85704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
https://github.com/hiraditya edited https://github.com/llvm/llvm-project/pull/85704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)

2024-03-19 Thread via cfe-commits
https://github.com/enh-google approved this pull request. thanks! https://github.com/llvm/llvm-project/pull/85704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6503b01 - [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (#84014)

2024-03-19 Thread via cfe-commits
Author: Zahira Ammarguellat Date: 2024-03-19T07:55:49-07:00 New Revision: 6503b015d4a8971dcb69a63de7d8d203e4be79b6 URL: https://github.com/llvm/llvm-project/commit/6503b015d4a8971dcb69a63de7d8d203e4be79b6 DIFF: https://github.com/llvm/llvm-project/commit/6503b015d4a8971dcb69a63de7d8d203e4be79b6

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #84014)

2024-03-19 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam closed https://github.com/llvm/llvm-project/pull/84014 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/85662 >From e7738ae379375ed40558b2e93cc67a5a726aadbc Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Fri, 15 Mar 2024 18:19:52 -0400 Subject: [PATCH 1/2] [DXIL] implement dot intrinsic lowering for integers this imp

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -638,15 +638,15 @@ ObjCPropertyDecl *Sema::CreatePropertyDecl(Scope *S, PDecl->setInvalidDecl(); } - ProcessDeclAttributes(S, PDecl, FD.D); - // Regardless of setter/getter attribute, we save the default getter/setter // selector names in anticipation of declar

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,4 @@ +Name: SomeBrokenLib +Functions: + - Name: do_something_with_pointers +Nu llabilityOfRet: O compnerd wrote: Is it possible to comment that the space here is intentional? Particularly with this diff, it was difficult to verify until you get t

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -52,49 +52,54 @@ static void applyNullability(Sema &S, Decl *D, NullabilityKind Nullability, if (!Metadata.IsActive) return; - auto IsModified = [&](Decl *D, QualType QT, -NullabilityKind Nullability) -> bool { + auto GetModified = + [&

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,187 @@ +// RUN: rm -rf %t && mkdir -p %t + +// Build and check the unversioned module file. +// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Unversioned -fdisable-module-hash -fapinotes-modules -fsyntax-only -I %S/Inp

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +extern int FrameworkWithActualPrivateModule; compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +garbage here because this file shouldn't get read compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,44 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fapinotes-modules -Wno-private-module -fsyntax-only -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -verify + +// Test with Swift versio

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +extern int PrivateLib; compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +garbage here because this file shouldn't get read compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,37 @@ +Name: HeaderLib +SwiftInferImportAsMember: true +Functions: + - Name: custom_realloc +NullabilityOfRet: N +Nullability: [ N, S ] + - Name: unavailable_function +Availability: none +AvailabilityMsg: "I beg you not to use this" + - Name: do_somet

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,187 @@ +// RUN: rm -rf %t && mkdir -p %t + +// Build and check the unversioned module file. +// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Unversioned -fdisable-module-hash -fapinotes-modules -fsyntax-only -I %S/Inp

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,55 @@ +#ifndef SOMEKIT_H +#define SOMEKIT_H + +#define ROOT_CLASS __attribute__((objc_root_class)) + +ROOT_CLASS +@interface A +-(A*)transform:(A*)input; +-(A*)transform:(A*)input integer:(int)integer; + +@property (nonatomic, readonly, retain) A* someA; +@property (non

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +extern int FrameworkWithWrongCase; compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1 @@ +extern int TopLevelPrivateKit_Public; compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,2 @@ +#include +extern int FrameworkWithActualPrivateModule_Private; compnerd wrote: Missing newline https://github.com/llvm/llvm-project/pull/84773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [APINotes] Upstream the remaining API Notes fixes and tests (PR #84773)

2024-03-19 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,6 @@ +// RUN: rm -rf %t +// RUN: not %clang_cc1 -fsyntax-only -fapinotes %s -I %S/Inputs/BrokenHeaders2 2>&1 | FileCheck %s compnerd wrote: Extra space after `-fapinotes` https://github.com/llvm/llvm-project/pull/84773 __

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/85662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-19 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode milestoned https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-19 Thread Dan Gohman via cfe-commits
sunfishcode wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/d66121d74a458e098511b9de920d815440acaa1b https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-19 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#85802 https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [clang] Enable sized deallocation by default in C++14 onwards (PR #83774)

2024-03-19 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > > There is a Windows failure that I can't reproduce: > > > > https://buildkite.com/llvm-project/github-pull-requests/builds/46331 > > > > Can someone help me to figure out what is wrong? > > > > > > > > > I'm not certain what's going on yet, but it smells a bit like th

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-03-19 Thread Evan Wilde via cfe-commits
@@ -3191,6 +3191,22 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, bool IsIndexHeaderMap = false; bool IsSysrootSpecified = Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot); + + // Expand a leading `=` to the sysroot if one w

[clang] [clang] Set correct FPOptions if attribute 'optnone' presents (PR #85605)

2024-03-19 Thread Serge Pavlov via cfe-commits
spavloff wrote: > optnone is a very strange attribute; it's a directive to the compiler with no > clear semantics. `fast-math` also does not have clear semantics. It is however used to express user's expectations that some assumptions are valid. `optnone` could also be treated from similar vi

[clang] [clang] Set correct FPOptions if attribute 'optnone' presents (PR #85605)

2024-03-19 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff ready_for_review https://github.com/llvm/llvm-project/pull/85605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add support for sysroot-relative system header search paths (PR #82084)

2024-03-19 Thread Evan Wilde via cfe-commits
https://github.com/etcwilde updated https://github.com/llvm/llvm-project/pull/82084 >From 0d01d10b4f162694a0de205fc2cf9ffd1adf54e0 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Fri, 16 Feb 2024 16:39:10 -0800 Subject: [PATCH] Support sysroot-relative header search paths Clang supported heade

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-03-19 Thread via cfe-commits
sethp wrote: @yronglin Thanks for introducing me to `__builtin_dump_struct`, that looks useful! I'm not sure I see much in the way of overlap with this PR, though: would you say more about what you mean? Is there maybe some commonality that you're concerned might drift apart? https://github.

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Nick Desaulniers via cfe-commits
https://github.com/nickdesaulniers edited https://github.com/llvm/llvm-project/pull/82819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Nick Desaulniers via cfe-commits
https://github.com/nickdesaulniers commented: This still has "foo"="true" style function attributes, which are problematic. Is the plan to change that? https://github.com/llvm/llvm-project/pull/82819 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Nick Desaulniers via cfe-commits
@@ -116,37 +116,22 @@ class AArch64TargetCodeGenInfo : public TargetCodeGenInfo { if (!FD) return; -const auto *TA = FD->getAttr(); -if (TA == nullptr) - return; - -ParsedTargetAttr Attr = -CGM.getTarget().parseTargetAttr(TA->getFeaturesStr(

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Nick Desaulniers via cfe-commits
@@ -43,4 +49,4 @@ // BTE-NOT: !"sign-return-address-with-bkey" // B-KEY: !{i32 8, !"sign-return-address-with-bkey", i32 1} -void foo() {} +void foo() {} nickdesaulniers wrote: retain newline at EOF https://github.com/llvm/llvm-project/pull/82819 __

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Nick Desaulniers via cfe-commits
@@ -1398,6 +1400,42 @@ class TargetInfo : public TransferrableTargetInfo, } llvm_unreachable("Unexpected SignReturnAddressKeyKind"); } + + public: +BranchProtectionInfo() = default; nickdesaulniers wrote: Do we still need the default const

[clang] 9a96fb4 - Reapply "[NFC][RemoveDIs] Switch ConstantExpr::getAsInstruction to not insert (#84737)"

2024-03-19 Thread Stephen Tozer via cfe-commits
Author: Stephen Tozer Date: 2024-03-19T15:49:10Z New Revision: 9a96fb4445f4e9d9a7899189758ee6afbeb6510b URL: https://github.com/llvm/llvm-project/commit/9a96fb4445f4e9d9a7899189758ee6afbeb6510b DIFF: https://github.com/llvm/llvm-project/commit/9a96fb4445f4e9d9a7899189758ee6afbeb6510b.diff LOG:

[clang] nolock/noalloc attributes (PR #84983)

2024-03-19 Thread Doug Wyatt via cfe-commits
@@ -3922,6 +3922,42 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, return true; } + const auto OldFX = Old->getFunctionEffects(); + const auto NewFX = New->getFunctionEffects(); + if (OldFX != NewFX) { +const auto Diffs = FunctionE

[clang] nolock/noalloc attributes (PR #84983)

2024-03-19 Thread Doug Wyatt via cfe-commits
@@ -2380,6 +2382,1239 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler { }; } // namespace +// = + +// Temporary debugging option +#define FX_ANALYZER_VERIFY_DECL_LIST 1 + +namesp

[clang] nolock/noalloc attributes (PR #84983)

2024-03-19 Thread via cfe-commits
@@ -3922,6 +3922,42 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, return true; } + const auto OldFX = Old->getFunctionEffects(); + const auto NewFX = New->getFunctionEffects(); + if (OldFX != NewFX) { +const auto Diffs = FunctionE

[clang] [clang][CodeGen] Omit pre-opt link when post-opt is link requested (PR #85672)

2024-03-19 Thread Joseph Huber via cfe-commits
jhuber6 wrote: This means that there won't be any optimizations on these definitions, correct? Likely not ideal to have no inlining even if it saves compilation time. This "post-op" linking is only required because we emit calls to functions that don't exist in the module. The way we solved t

[clang] 081a66f - [DXIL] implement dot intrinsic lowering for integers (#85662)

2024-03-19 Thread via cfe-commits
Author: Farzon Lotfi Date: 2024-03-19T12:03:43-04:00 New Revision: 081a66ffacfe85a37ff775addafcf3371e967328 URL: https://github.com/llvm/llvm-project/commit/081a66ffacfe85a37ff775addafcf3371e967328 DIFF: https://github.com/llvm/llvm-project/commit/081a66ffacfe85a37ff775addafcf3371e967328.diff

[clang] [llvm] [DXIL] implement dot intrinsic lowering for integers (PR #85662)

2024-03-19 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl closed https://github.com/llvm/llvm-project/pull/85662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] implemented a suggestion to avoid magic numbers (PR #85724)

2024-03-19 Thread via cfe-commits
https://github.com/matrixication closed https://github.com/llvm/llvm-project/pull/85724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Daniel Kiss via cfe-commits
@@ -1398,6 +1400,42 @@ class TargetInfo : public TransferrableTargetInfo, } llvm_unreachable("Unexpected SignReturnAddressKeyKind"); } + + public: +BranchProtectionInfo() = default; DanielKristofKiss wrote: We need the default constructor:

[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

2024-03-19 Thread Daniel Kiss via cfe-commits
DanielKristofKiss wrote: > This still has "foo"="true" style function attributes, which are problematic. > Is the plan to change that? Can be changed to just "foo" just makes the function/module attribute importer more complicated to handle the old IR. https://github.com/llvm/llvm-project/pul

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -3717,6 +3717,16 @@ def err_sme_definition_using_za_in_non_sme_target : Error< "function using ZA state requires 'sme'">; def err_sme_definition_using_zt0_in_non_sme2_target : Error< "function using ZT0 state requires 'sme2'">; +def warn_sme_streaming_pass_return_vl_to_

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); -

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); +bool IsC

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); +bool IsC

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Sander de Smalen via cfe-commits
@@ -3723,8 +3723,8 @@ def warn_sme_streaming_pass_return_vl_to_non_streaming : Warning< " different">, InGroup, DefaultIgnore; def warn_sme_locally_streaming_has_vl_args_returns : Warning< - "passing/returning a VL-dependent argument from a function" - " arm_locally_stre

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Sander de Smalen via cfe-commits
@@ -7516,28 +7516,23 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } -auto *CallerFD = dyn_cast(CurContext); -bool IsCalleeStreaming = -(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); -bool Is

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); +bool IsC

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); dtemirbulatov wrote: Done. https://github.com/llvm/llvm-project/pull/79842 __

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); +bool IsC

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = +(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); +bool IsC

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -7516,28 +7516,23 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } -auto *CallerFD = dyn_cast(CurContext); -bool IsCalleeStreaming = -(ExtInfo.AArch64SMEAttributes & FunctionType::SME_PStateSMEnabledMask); -bool Is

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-03-19 Thread Dinar Temirbulatov via cfe-commits
@@ -3723,8 +3723,8 @@ def warn_sme_streaming_pass_return_vl_to_non_streaming : Warning< " different">, InGroup, DefaultIgnore; def warn_sme_locally_streaming_has_vl_args_returns : Warning< - "passing/returning a VL-dependent argument from a function" - " arm_locally_stre

<    1   2   3   4   5   >