[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-24 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm requested changes to this pull request. Needs tests https://github.com/llvm/llvm-project/pull/100302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-07-24 Thread via cfe-commits
https://github.com/neildhickey updated https://github.com/llvm/llvm-project/pull/97749 >From 64e7d3e028eb5b2c89d555b040ff21a78e2a51d4 Mon Sep 17 00:00:00 2001 From: Neil Hickey Date: Wed, 3 Jul 2024 07:22:46 -0700 Subject: [PATCH] [AArch64] Add getHostCPUFeatures to query for enabled features

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-24 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/100318 Initialize some fields of OverloadCandidate in its constructor. The goal here is try to fix read of uninitialized variable (which I was not able to reproduce) https://github.com/llvm/llvm-project/pull/93430#i

[clang] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-07-24 Thread via cfe-commits
neildhickey wrote: > Looks ok to me, X86 and ARM already do this. > > > One point we noticed is that it could end up turning "aes+sha2" into > > "crypto" and "crypto" back into "sha2+aes+sha3+sm4", as it uses the old > > meaning of "crypto" > > Then this needs to be fixed before this PR can g

[clang] [clang][analyzer] MmapWriteExecChecker improvements (PR #97078)

2024-07-24 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/97078 From 1f04ce794a3aefc0f5622a9dea0a92a1e2b50be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Tue, 25 Jun 2024 16:27:00 +0200 Subject: [PATCH 1/2] [clang][analyzer] MmapWriteExecChecker

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Initialize some fields of OverloadCandidate in its constructor. The goal here is try to fix read of uninitialized variable (which I was not able to reproduce) https://github.com/llvm/llvm-project/pull/93430#is

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-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 d097f430a172a5d798a39b416b1af84f4ec572e1 9edd7f7c3c7183d4d019ab5b508eef2d34340423 --e

[clang] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

2024-07-24 Thread David Green via cfe-commits
davemgreen wrote: It is that bit of code, yeah. I don't know of a way to reproduce this without logging into different machines with different sets of options and trying it. If we had a way to test/mock that various /proc/cpuinfo files gave us the correct results, that would be helpful in givi

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-24 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/100318 >From b0839b4dfe3e6d46e725c1ffd67e7f4477842732 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 24 Jul 2024 09:50:02 +0200 Subject: [PATCH] [Clang][NFC] Simplify initialization of `OverloadCandidate` o

[clang] [analyzer] Assume the result of 'fopen' can't alias with 'std{in,out,err}' (PR #100085)

2024-07-24 Thread Balázs Kéri via cfe-commits
balazske wrote: Documentation of the checker could be updated with this new behavior. https://github.com/llvm/llvm-project/pull/100085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add wasm-opt warning (PR #100321)

2024-07-24 Thread Quentin Michaud via cfe-commits
https://github.com/mh4ck-Thales created https://github.com/llvm/llvm-project/pull/100321 Add a warning when `wasm-opt` is requested with a flag (#95208) but is not found in the path. I'm using #77148 as reference on how to add a new warning but please tell me if you can help in implementing t

[clang] 3993a47 - [PS4/PS5][Driver][DWARF] Always emit .debug_aranges for SCE tuning (#100160)

2024-07-24 Thread via cfe-commits
Author: Edd Dawson Date: 2024-07-24T09:07:25+01:00 New Revision: 3993a47bb58f7b6da9940d084e62e54a821e81fc URL: https://github.com/llvm/llvm-project/commit/3993a47bb58f7b6da9940d084e62e54a821e81fc DIFF: https://github.com/llvm/llvm-project/commit/3993a47bb58f7b6da9940d084e62e54a821e81fc.diff LO

[clang] [llvm] [PS4/PS5][Driver][DWARF] Always emit .debug_aranges for SCE tuning (PR #100160)

2024-07-24 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd closed https://github.com/llvm/llvm-project/pull/100160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] MmapWriteExecChecker improvements (PR #97078)

2024-07-24 Thread Balázs Kéri via cfe-commits
balazske wrote: I removed the options to specify `PROT_` values. These should not be needed because detection from macro value should work in normal cases (probably this functionality was not available when the options were added). https://github.com/llvm/llvm-project/pull/97078 __

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] add TargetParser for PPC target (PR #97541)

2024-07-24 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 updated https://github.com/llvm/llvm-project/pull/97541 >From abe45fe2c6540534bfbd2f452240cc73b273e905 Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Wed, 3 Jul 2024 04:42:25 -0400 Subject: [PATCH] [PowerPC] add TargetParser for PPC target For now only focus o

[clang] Fix lifetimebound for field access (PR #100197)

2024-07-24 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/100197 >From b76d65484c3195f27e8d01208ccc6e6f8ab55273 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 23 Jul 2024 19:41:44 + Subject: [PATCH 1/4] Fix lifetimebound for field access --- clang/lib/Sema/Check

[clang] Fix lifetimebound for field access (PR #100197)

2024-07-24 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/100197 >From b76d65484c3195f27e8d01208ccc6e6f8ab55273 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 23 Jul 2024 19:41:44 + Subject: [PATCH 1/5] Fix lifetimebound for field access --- clang/lib/Sema/Check

[clang] Fix lifetimebound for field access (PR #100197)

2024-07-24 Thread Utkarsh Saxena via cfe-commits
@@ -47,6 +47,26 @@ namespace usage_ok { q = A(); // expected-warning {{object backing the pointer q will be destroyed at the end of the full-expression}} r = A(1); // expected-warning {{object backing the pointer r will be destroyed at the end of the full-expression}}

[clang] 666e332 - [PAC] Define __builtin_ptrauth_type_discriminator (#100204)

2024-07-24 Thread via cfe-commits
Author: Akira Hatanaka Date: 2024-07-24T02:04:37-07:00 New Revision: 666e3326fedfb6a033494c36c36aa95c4124d642 URL: https://github.com/llvm/llvm-project/commit/666e3326fedfb6a033494c36c36aa95c4124d642 DIFF: https://github.com/llvm/llvm-project/commit/666e3326fedfb6a033494c36c36aa95c4124d642.diff

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl closed https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread Anton Korobeynikov via cfe-commits
asl wrote: /cherry-pick 666e3326fedfb6a033494c36c36aa95c4124d642 https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl demilestoned https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl milestoned https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-24 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/100318 >From c61324eddee1b6290884757e287e18aad63a663e Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 24 Jul 2024 09:50:02 +0200 Subject: [PATCH] [Clang][NFC] Simplify initialization of `OverloadCandidate` o

[clang] [llvm] [PowerPC] add TargetParser for PPC target (PR #97541)

2024-07-24 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 updated https://github.com/llvm/llvm-project/pull/97541 >From 3b7cd8f6fc046ed28f9e329ba0f26156477c0a17 Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Wed, 3 Jul 2024 04:42:25 -0400 Subject: [PATCH] [PowerPC] add TargetParser for PPC target For now only focus o

[clang] [PAC] Define __builtin_ptrauth_type_discriminator (PR #100204)

2024-07-24 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#100332 https://github.com/llvm/llvm-project/pull/100204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-24 Thread via cfe-commits
https://github.com/vfdff updated https://github.com/llvm/llvm-project/pull/100302 >From c750234674531788ee26958954a5f9a6b59ea866 Mon Sep 17 00:00:00 2001 From: zhongyunde 00443407 Date: Tue, 23 Jul 2024 23:10:42 -0400 Subject: [PATCH 1/2] [clang codegen] Emit int TBAA metadata on more FP math

[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-24 Thread via cfe-commits
vfdff wrote: > Needs tests Add a new test **foo_fabs**, and the prior test **foo** is also works, thanks https://github.com/llvm/llvm-project/pull/100302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-24 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/99713 >From a3c7fca28faee679a59afd58c2e814025771ff63 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Fri, 19 Jul 2024 14:26:23 -0700 Subject: [PATCH] [clang-tidy] Add modernize-use-cpp-style-comments che

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

2024-07-24 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/96540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-07-24 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM with a couple of minors https://github.com/llvm/llvm-project/pull/96540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-07-24 Thread Simon Pilgrim via cfe-commits
@@ -159,6 +159,20 @@ AMDGPU Support X86 Support ^^^ +- The MMX vector intrinsic functions from ``*mmintrin.h`` which + operate on `__m64` vectors, such as ``_mm_add_pi8``, have been + reimplemented to use the SSE2 instruction-set and XMM registers + unconditionally.

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

2024-07-24 Thread Simon Pilgrim via cfe-commits
@@ -49,12 +49,10 @@ typedef __bf16 __m128bh __attribute__((__vector_size__(16), __aligned__(16))); #endif /* Define the default attributes for the functions in this file. */ -#define __DEFAULT_FN_ATTRS \ - __attribute__((_

[clang] d36edf8 - [clang][Interp] Bail out on value dependent variable initializers

2024-07-24 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-07-24T12:11:06+02:00 New Revision: d36edf8146cfea9f0407e2fb26283297eb6a6ac4 URL: https://github.com/llvm/llvm-project/commit/d36edf8146cfea9f0407e2fb26283297eb6a6ac4 DIFF: https://github.com/llvm/llvm-project/commit/d36edf8146cfea9f0407e2fb26283297eb6a6ac4.diff LO

[clang] [flang] [Flang][Driver] Introduce -fopenmp-targets offloading option (PR #100152)

2024-07-24 Thread Sergio Afonso via cfe-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/100152 >From cf26a318d3b49eb6217f29405cee9fd2c20f8e8a Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Tue, 23 Jul 2024 16:19:55 +0100 Subject: [PATCH 1/2] [Flang][Driver] Introduce -fopenmp-targets offloading optio

[clang] aa53f0d - [ASTContext] Make the end of the switch case unreachable in `encodeTypeForFunctionPointerAuth` (#99763)

2024-07-24 Thread via cfe-commits
Author: Brandon Wu Date: 2024-07-24T18:38:03+08:00 New Revision: aa53f0d6fd3ec9b4cec9dd14d4c1d1a6c4d7838c URL: https://github.com/llvm/llvm-project/commit/aa53f0d6fd3ec9b4cec9dd14d4c1d1a6c4d7838c DIFF: https://github.com/llvm/llvm-project/commit/aa53f0d6fd3ec9b4cec9dd14d4c1d1a6c4d7838c.diff LO

[clang] [ASTContext] Make the end of the switch case unreachable in `encodeTypeForFunctionPointerAuth` (PR #99763)

2024-07-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/99763 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove FiniteMathOnly and use only NoHonorINFs and NoHonorNANs. (PR #97342)

2024-07-24 Thread Sven van Haastregt via cfe-commits
@@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST -// RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINI

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Vlad Serebrennikov via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 Endilll wrote: We need a date to understand what are we testing against

[clang] [flang] [Flang][Driver] Enable config file options (PR #100343)

2024-07-24 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/100343 Config files provide a facility to invoke the compiler with a predefined set of options. The patch only enables these options in the flang driver. Functionality was always there. >From bb8e77f755ee0c

[clang] [flang] [Flang][Driver] Enable config file options (PR #100343)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Kiran Chandramohan (kiranchandramohan) Changes Config files provide a facility to invoke the compiler with a predefined set of options. The patch only enables these options in the flang driver. Functionality was always there. ---

[clang] [flang] [Flang][Driver] Enable config file options (PR #100343)

2024-07-24 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm approved this pull request. This is great, thanks for contributing it. https://github.com/llvm/llvm-project/pull/100343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Mital Ashok via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 MitalAshok wrote: That makes sense, thanks for explaining. For cwg2561/

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/97200 >From 0dea95701ca4dfca9b7d0bd889003fc35aa3017e Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Sun, 30 Jun 2024 10:39:15 +0100 Subject: [PATCH 01/12] [NFC] [Clang] Some core issues have changed status from t

[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-24 Thread Matt Arsenault via cfe-commits
@@ -692,23 +692,22 @@ static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *FD, RValue Call = CGF.EmitCall(E->getCallee()->getType(), callee, E, ReturnValueSlot()); - // Check the supported intrinsic. + ASTContext &Context = CGF.getContext(); if

[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-24 Thread Matt Arsenault via cfe-commits
@@ -692,23 +692,22 @@ static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *FD, RValue Call = CGF.EmitCall(E->getCallee()->getType(), callee, E, ReturnValueSlot()); - // Check the supported intrinsic. + ASTContext &Context = CGF.getContext(); if

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/100346 This patch adds a function attribute `riscv_vls_cc` for RISCV VLS calling convention which takes 0 or 1 argument, the argument is the `ABI_VLEN` which is the `VLEN` for passing the fixed-vector arguments, it wrap

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-clang-modules Author: Brandon Wu (4vtomat) Changes This patch adds a function attribute `riscv_vls_cc` for RISCV VLS calling convention which takes 0 or 1 argument, the argument is the `ABI_VLEN` which is the `VLEN` for pas

[clang] 893a303 - [clang][analyzer] Support `ownership_{returns,takes}` attributes (#98941)

2024-07-24 Thread via cfe-commits
Author: Pavel Skripkin Date: 2024-07-24T13:15:08+02:00 New Revision: 893a303962608469ec5bd01fe44e82c935152e9c URL: https://github.com/llvm/llvm-project/commit/893a303962608469ec5bd01fe44e82c935152e9c DIFF: https://github.com/llvm/llvm-project/commit/893a303962608469ec5bd01fe44e82c935152e9c.diff

[clang] [clang][analyzer] Support `ownership_{returns,takes}` attributes (PR #98941)

2024-07-24 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/98941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-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 d36edf8146cfea9f0407e2fb26283297eb6a6ac4 dc4d11d0e9665f42b27de4bfb73c9756b007518d --e

[clang] [clang][analyzer] Support `ownership_{returns,takes}` attributes (PR #98941)

2024-07-24 Thread via cfe-commits
github-actions[bot] wrote: @pskrgag Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Matt Arsenault via cfe-commits
@@ -2281,6 +2282,9 @@ bool LLParser::parseOptionalCallingConv(unsigned &CC) { case lltok::kw_riscv_vector_cc: CC = CallingConv::RISCV_VectorCall; break; + case lltok::kw_riscv_vls_cc: +CC = CallingConv::RISCV_VLSCall; arsenm wrote: needs IR asse

[clang] [clang][C23] N3006 Underspecified object declarations (PR #79845)

2024-07-24 Thread Guillot Tony via cfe-commits
https://github.com/to268 updated https://github.com/llvm/llvm-project/pull/79845 >From 5eca1b0b822e839b5834ea87f329819368caf563 Mon Sep 17 00:00:00 2001 From: Guillot Tony Date: Wed, 24 Jul 2024 13:11:48 +0200 Subject: [PATCH] Rebased N3006 feature after LLVM 19 release branch creation --- cla

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat edited https://github.com/llvm/llvm-project/pull/100346 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Vlad Serebrennikov via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 Endilll wrote: Hmm, https://cplusplus.github.io/CWG/issues/2561.html at

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-07-24 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/100347 This patch implements following intrinsics: ``` float16x4_t vscale_f16(float16x4_t vn, int16x4_t vm) float16x8_t vscaleq_f16(float16x8_t vn, int16x8_t vm) float32x2_t vscale_f32(float32x2_t vn, int32x2_t vm)

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-llvm-ir Author: None (Lukacma) Changes This patch implements following intrinsics: ``` float16x4_t vscale_f16(float16x4_t vn, int16x4_t vm) float16x8_t vscaleq_f16(float16x8_t vn, int16x8_t vm) float32x2_t vscale_f

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: None (Lukacma) Changes This patch implements following intrinsics: ``` float16x4_t vscale_f16(float16x4_t vn, int16x4_t vm) float16x8_t vscaleq_f16(float16x8_t vn, int16x8_t vm) float32x2_t vscale_f32(float32x2_t vn, int32x2_

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Lukacma) Changes This patch implements following intrinsics: ``` float16x4_t vscale_f16(float16x4_t vn, int16x4_t vm) float16x8_t vscaleq_f16(float16x8_t vn, int16x8_t vm) float32x2_t vscale_f32(float32x2_t vn, int32x2_t vm) floa

[clang] [Clang] fix assertion failure in invalid delete operator declaration check (PR #99308)

2024-07-24 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/99308 >From 39de759ac60f2f06953ebe32392c25837ba591f1 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 17 Jul 2024 14:21:31 +0300 Subject: [PATCH 1/2] [Clang] fix assertion failure in invalid delete operator de

[clang] [Clang] prevent checking destructor reference with an invalid initializer (PR #97860)

2024-07-24 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/97860 >From cb3c677c9eb10998ed7357cdde2722f3b3c1c847 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 6 Jul 2024 00:24:06 +0300 Subject: [PATCH 1/2] [Clang] prevent checking destructor reference with an invali

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Mital Ashok via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 MitalAshok wrote: It looks like the github pages hasn't been updated fo

[clang] [Clang] Remove some dead code in getNumTeamsExprForTargetDirective (PR #95695)

2024-07-24 Thread Alexey Bataev via cfe-commits
@@ -6037,8 +6037,6 @@ const Expr *CGOpenMPRuntime::getNumTeamsExprForTargetDirective( MinTeamsVal = MaxTeamsVal = 1; return nullptr; } - MinTeamsVal = MaxTeamsVal = 1; - return nullptr; alexey-bataev wrote: Wrong fix, previous

[clang] Remove FiniteMathOnly and use only NoHonorINFs and NoHonorNANs. (PR #97342)

2024-07-24 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/97342 >From aea6519809340024226d587303e26c800c1a3756 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Mon, 1 Jul 2024 12:56:07 -0700 Subject: [PATCH 01/14] [NFC] Add assertion to ensure that FiniteMathOnly to

[clang] Remove FiniteMathOnly and use only NoHonorINFs and NoHonorNANs. (PR #97342)

2024-07-24 Thread Zahira Ammarguellat via cfe-commits
@@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST -// RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINI

[clang] [clang][FMV][AArch64] Improve streaming mode compatibility. (PR #100181)

2024-07-24 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/100181 >From 6799eb869ed1f87eb65dae84b11e3dd3907b2157 Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Tue, 23 Jul 2024 19:24:41 +0100 Subject: [PATCH 1/2] [clang][FMV][AArch64] Improve streaming mode compa

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-24 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag updated https://github.com/llvm/llvm-project/pull/99564 >From 6b7ec7c95df16de5eb0fecf2d69befb5461d98a5 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Thu, 18 Jul 2024 18:48:47 +0300 Subject: [PATCH 1/4] clang/sema: disallow ownership_returns for functions that r

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-24 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: Rebased on top of 2ce865d4905970c07477a9c4e37159664a785c81 https://github.com/llvm/llvm-project/pull/99564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread Nathan James via cfe-commits
https://github.com/njames93 created https://github.com/llvm/llvm-project/pull/100349 Allow users to match all record instantiations by using <> as a wildcard. With ```cpp template struct Foo { void Bar(); }; ``` The following code: ```cpp Foo{}.Bar(); ``` Will match against: ``` callExpr(ca

[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan James (njames93) Changes Allow users to match all record instantiations by using <> as a wildcard. With ```cpp template struct Foo { void Bar(); }; ``` The following code: ```cpp Foo{}.Bar(); ``` Will match agai

[clang] [ASMMatchers] Extend hasName matcher when matching templates (PR #100349)

2024-07-24 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/100349 >From d623ba571fb8091f53637ae5810b68a69cb772b2 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Wed, 24 Jul 2024 12:43:39 +0100 Subject: [PATCH] [ASMMatchers] Extend hasName matcher when matching templates Al

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Vlad Serebrennikov via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 Endilll wrote: I sent Jens an email. Hopefully this will be fixed, or a

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Vlad Serebrennikov via cfe-commits
@@ -139,7 +139,7 @@ struct D3 : B { #endif #if __cplusplus >= 202302L -namespace cwg2561 { // cwg2561: no tentatively ready 2024-03-18 +namespace cwg2561 { // cwg2561: no ready 2024-06-25 Endilll wrote: > I may have been reading some stale info if that is the

[clang] Fixed confusing diagnostics / add release notes (PR #100351)

2024-07-24 Thread Braden Helmer via cfe-commits
https://github.com/bradenhelmer created https://github.com/llvm/llvm-project/pull/100351 New PR for #97878. >From 4e0845195d6593b907bbf65d436ededee9c2aacd Mon Sep 17 00:00:00 2001 From: Braden Helmer Date: Tue, 23 Jul 2024 11:04:06 -0400 Subject: [PATCH] Fixed confusing diagnostics / add relea

[clang] [Clang] Fix confusing diagnositcs related to explicit this parameters (PR #100351)

2024-07-24 Thread Braden Helmer via cfe-commits
https://github.com/bradenhelmer edited https://github.com/llvm/llvm-project/pull/100351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix confusing diagnositcs related to explicit this parameters (PR #100351)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Braden Helmer (bradenhelmer) Changes New PR for #97878. --- Full diff: https://github.com/llvm/llvm-project/pull/100351.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/lib/Sema/SemaOverload.cpp (

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/100346 >From dc4d11d0e9665f42b27de4bfb73c9756b007518d Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 21 Jul 2024 09:49:11 -0700 Subject: [PATCH 1/2] [RISCV][VLS] Support RISCV VLS calling convention This patch a

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Brandon Wu via cfe-commits
@@ -2281,6 +2282,9 @@ bool LLParser::parseOptionalCallingConv(unsigned &CC) { case lltok::kw_riscv_vector_cc: CC = CallingConv::RISCV_VectorCall; break; + case lltok::kw_riscv_vls_cc: +CC = CallingConv::RISCV_VLSCall; 4vtomat wrote: Done! https

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-07-24 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/100346 >From dc4d11d0e9665f42b27de4bfb73c9756b007518d Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 21 Jul 2024 09:49:11 -0700 Subject: [PATCH 1/3] [RISCV][VLS] Support RISCV VLS calling convention This patch a

[clang] [clang][Driver] Add flag for setting SkipFunctionBodies (PR #100135)

2024-07-24 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/100135 From 884a272b83271ae869cbc4b523424f909e77bdba Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 23 Jul 2024 16:46:21 +0200 Subject: [PATCH] [clang][Driver] Add cc1 flag for setting SkipFunctionBodies T

[clang] [clang][Sema] Don't mark VarDecls of bindings in tuple-like decompositions as implicit (PR #100355)

2024-07-24 Thread Michael Buch via cfe-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/100355 This patch is motivated by the debug-info issue in https://github.com/llvm/llvm-project/issues/48909. Clang is currently emitting the `DW_AT_artificial` attribute on debug-info entries for structured binding

[clang] [clang][Sema] Don't mark VarDecls of bindings in tuple-like decompositions as implicit (PR #100355)

2024-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This patch is motivated by the debug-info issue in https://github.com/llvm/llvm-project/issues/48909. Clang is currently emitting the `DW_AT_artificial` attribute on debug-info entries for structured bind

[clang] [clang][Driver] Add flag for setting SkipFunctionBodies (PR #100135)

2024-07-24 Thread kadir çetinkaya via cfe-commits
kadircet wrote: > That said, so long as this is a -cc1-only option, it seems reasonable to m this is a cc1-only option. added test, updated the commit message. https://github.com/llvm/llvm-project/pull/100135 ___ cfe-commits mailing list cfe-commits@l

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-24 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. Looks good to me. I hope that `make_cxx_dr_status` script is also happy. Thank you for seeing this through! https://github.com/llvm/llvm-project/pull/97200 ___ cfe-commits mailing list cfe-commits@

[clang] [clang][CUDA] Assume unknown emission status for skipped function definitions (PR #100124)

2024-07-24 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/100124 From 40e518d66df536253be9d36a1d91c10ecbaf2bff Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 23 Jul 2024 15:43:30 +0200 Subject: [PATCH] [clang][CUDA] Assume unknown emission status for skipped func

[clang] [clang][CUDA] Assume unknown emission status for skipped function definitions (PR #100124)

2024-07-24 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/100124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

2024-07-24 Thread via cfe-commits
Sirraide wrote: > We might be able to, and frankly we should but it's a slightly bigger > refactor that I don't really have time to investigate Makes sense. https://github.com/llvm/llvm-project/pull/100318 ___ cfe-commits mailing list cfe-commits@lis

[clang] [Clang][NFC] Simplify initialization of `OverloadCandidate` objects. (PR #100318)

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

[clang] [Clang] Fix confusing diagnositcs related to explicit this parameters (PR #100351)

2024-07-24 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/100351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][FMV][AArch64] Improve streaming mode compatibility. (PR #100181)

2024-07-24 Thread Alexandros Lamprineas via cfe-commits
@@ -11145,7 +11148,24 @@ bool Sema::areMultiversionVariantFunctionsCompatible( FunctionType::ExtInfo OldTypeInfo = OldType->getExtInfo(); FunctionType::ExtInfo NewTypeInfo = NewType->getExtInfo(); -if (OldTypeInfo.getCC() != NewTypeInfo.getCC()) +const auto *Ol

[clang] [clang][Sema] Don't mark VarDecls of bindings in tuple-like decompositions as implicit (PR #100355)

2024-07-24 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: CC @zygoloid for design opinions. This holding variable is really weird in that it's both not spelled in source (the user doesn't give it a name) but is spelled in source (only exists because of a source construct). I think that makes it hard to know whether it should or s

[clang] 4bb3a1e - [clang] Define `ATOMIC_FLAG_INIT` correctly for C++. (#97534)

2024-07-24 Thread via cfe-commits
Author: Chris Copeland Date: 2024-07-24T08:53:39-04:00 New Revision: 4bb3a1e16f3a854d05bc0b8c5b6f8f78effb1d93 URL: https://github.com/llvm/llvm-project/commit/4bb3a1e16f3a854d05bc0b8c5b6f8f78effb1d93 DIFF: https://github.com/llvm/llvm-project/commit/4bb3a1e16f3a854d05bc0b8c5b6f8f78effb1d93.diff

[clang] [clang] Define `ATOMIC_FLAG_INIT` correctly for C++. (PR #97534)

2024-07-24 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/97534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Define `ATOMIC_FLAG_INIT` correctly for C++. (PR #97534)

2024-07-24 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I think this should be picked for the Clang 19 branch, so I filed https://github.com/llvm/llvm-project/issues/100362 https://github.com/llvm/llvm-project/pull/97534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [NFC] Move RegisterBuiltinMacro function into the Preprocessor class (PR #100142)

2024-07-24 Thread via cfe-commits
https://github.com/Sirraide commented: This does feel like it could be useful, but do you need this (or anticipate that you’ll be needing this) for anything in particular elswhere? https://github.com/llvm/llvm-project/pull/100142 ___ cfe-commits maili

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-24 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises edited https://github.com/llvm/llvm-project/pull/97524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 20957d2 - [AIX] Add -msave-reg-params to save arguments to stack (#97524)

2024-07-24 Thread via cfe-commits
Author: Qiu Chaofan Date: 2024-07-24T20:58:37+08:00 New Revision: 20957d20913be92f9d88ea5ce862d898a386dad2 URL: https://github.com/llvm/llvm-project/commit/20957d20913be92f9d88ea5ce862d898a386dad2 DIFF: https://github.com/llvm/llvm-project/commit/20957d20913be92f9d88ea5ce862d898a386dad2.diff L

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-24 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises closed https://github.com/llvm/llvm-project/pull/97524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >