[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

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

[clang] [llvm] [NVPTX] Auto-Upgrade some nvvm.annotations to attributes (PR #119261)

2024-12-13 Thread Alex MacLean via cfe-commits
@@ -1270,77 +1270,21 @@ exit: ; MODULE: attributes #[[ATTR1:[0-9]+]] = { convergent nocallback nounwind } ; MODULE: attributes #[[ATTR2:[0-9]+]] = { convergent nocallback nofree nounwind willreturn } ; MODULE: attributes #[[ATTR3:[0-9]+]] = { nocallback nofree nosync nounwind

[clang] [llvm] [NVPTX] Auto-Upgrade some nvvm.annotations to attributes (PR #119261)

2024-12-13 Thread Joseph Huber via cfe-commits
@@ -1270,77 +1270,21 @@ exit: ; MODULE: attributes #[[ATTR1:[0-9]+]] = { convergent nocallback nounwind } ; MODULE: attributes #[[ATTR2:[0-9]+]] = { convergent nocallback nofree nounwind willreturn } ; MODULE: attributes #[[ATTR3:[0-9]+]] = { nocallback nofree nosync nounwind

[clang] [clang][Driver][Darwin] Optionally use xcselect to find macOS SDK (PR #119670)

2024-12-13 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab edited https://github.com/llvm/llvm-project/pull/119670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Xtensa] Add Xtensa target. (PR #118008)

2024-12-13 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/118008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Xtensa] Add Xtensa target. (PR #118008)

2024-12-13 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM with one very minor comment https://github.com/llvm/llvm-project/pull/118008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [Clang][Xtensa] Add Xtensa target. (PR #118008)

2024-12-13 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,112 @@ +//===--- Xtensa.h - Declare Xtensa target feature support ---*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE

[clang] [llvm] [NVPTX] Auto-Upgrade some nvvm.annotations to attributes (PR #119261)

2024-12-13 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/119261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #119932)

2024-12-13 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 dd8d85dba6e8f74a55fb5053107797e21894a0c6 5c032267f263fb6b7f10d25745d14e63b2f7af59 --e

[clang] [clang] Fix sub-integer __builtin_elementwise_(add|sub)_sat (PR #119423)

2024-12-13 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: If people aren't using the edge cases, they won't notice if we start error'ing out. If they are, it's pretty easy to adapt the code to build with both old and new compilers. A quick GitHub search shows exactly one user of the builtins outside of clang itself, and that co

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-13 Thread via cfe-commits
https://github.com/AdUhTkJm updated https://github.com/llvm/llvm-project/pull/119098 >From 37b8121ea94fa5fd6ec275caf5984f18f25ba081 Mon Sep 17 00:00:00 2001 From: AdUhTkJm <2292398...@qq.com> Date: Sun, 8 Dec 2024 08:07:59 +0800 Subject: [PATCH] [Clang] Fix crash for incompatible types in inline

[clang] d7a8e09 - [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (#119666)

2024-12-13 Thread via cfe-commits
Author: Owen Pan Date: 2024-12-13T00:03:03-08:00 New Revision: d7a8e09893c43ad1169ff34989c3bec721d8b1a9 URL: https://github.com/llvm/llvm-project/commit/d7a8e09893c43ad1169ff34989c3bec721d8b1a9 DIFF: https://github.com/llvm/llvm-project/commit/d7a8e09893c43ad1169ff34989c3bec721d8b1a9.diff LOG:

[clang] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

2024-12-13 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/119666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (PR #116332)

2024-12-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/9751 Here is the relevant piece of the b

[libclc] 06789cc - [libclc] Optimize ceil/fabs/floor/rint/trunc (#119596)

2024-12-13 Thread via cfe-commits
Author: Fraser Cormack Date: 2024-12-13T08:47:13Z New Revision: 06789ccb1695214f787cd471a300522973d33375 URL: https://github.com/llvm/llvm-project/commit/06789ccb1695214f787cd471a300522973d33375 DIFF: https://github.com/llvm/llvm-project/commit/06789ccb1695214f787cd471a300522973d33375.diff LOG

[libclc] [libclc] Optimize ceil/fabs/floor/rint/trunc (PR #119596)

2024-12-13 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/119596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BasicAA] Do not decompose past casts with different index width (PR #119365)

2024-12-13 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/119365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a30e50f - [BasicAA] Do not decompose past casts with different index width (#119365)

2024-12-13 Thread via cfe-commits
Author: Nikita Popov Date: 2024-12-13T12:58:59+01:00 New Revision: a30e50fcb3119cc1f84f0398d229a929f296188d URL: https://github.com/llvm/llvm-project/commit/a30e50fcb3119cc1f84f0398d229a929f296188d DIFF: https://github.com/llvm/llvm-project/commit/a30e50fcb3119cc1f84f0398d229a929f296188d.diff

[clang] [llvm] [BasicAA] Do not decompose past casts with different index width (PR #119365)

2024-12-13 Thread Nikita Popov via cfe-commits
@@ -594,9 +580,9 @@ BasicAAResult::DecomposeGEPExpression(const Value *V, const DataLayout &DL, SearchTimes++; const Instruction *CxtI = dyn_cast(V); - unsigned MaxIndexSize = DL.getMaxIndexSizeInBits(); nikic wrote: Dropped the API in https://github.c

[clang] [llvm] [AArch64] Implement intrinsics for FP8 SME FMLAL/FMLALL (multi) (PR #119546)

2024-12-13 Thread Jonathan Thackray via cfe-commits
@@ -827,11 +827,21 @@ let SMETargetGuard = "sme-lutv2" in { let SMETargetGuard = "sme-f8f32" in { def SVMOPA_FP8_ZA32 : Inst<"svmopa_za32[_mf8]_m_fpm", "viPPdd>", "m", MergeNone, "aarch64_sme_fp8_fmopa_za32", [IsStreaming, IsInOutZA, SetsFPMR, I

[clang] [llvm] [AArch64] Implement intrinsics for FP8 SME FMLAL/FMLALL (multi) (PR #119546)

2024-12-13 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement intrinsics for FP8 SME FMLAL/FMLALL (multi) (PR #119546)

2024-12-13 Thread Jonathan Thackray via cfe-commits
@@ -827,11 +827,21 @@ let SMETargetGuard = "sme-lutv2" in { let SMETargetGuard = "sme-f8f32" in { def SVMOPA_FP8_ZA32 : Inst<"svmopa_za32[_mf8]_m_fpm", "viPPdd>", "m", MergeNone, "aarch64_sme_fp8_fmopa_za32", [IsStreaming, IsInOutZA, SetsFPMR, I

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
https://github.com/Lukacma deleted https://github.com/llvm/llvm-project/pull/119568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Zhijin Zeng (zengdage) Changes 1. Rename LIBMVEC_X86 into LIBMVEC to support libmvec (glibc vector match library) in risc-v. 2. Add RVVM1/2/4/8 in VFISAKind to distingusih the LMUL value, so we can take full advantage of risc-v vector

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-clang-driver Author: Zhijin Zeng (zengdage) Changes 1. Rename LIBMVEC_X86 into LIBMVEC to support libmvec (glibc vector match library) in risc-v. 2. Add RVVM1/2/4/8 in VFISAKind to distingusih the LMUL value, so we c

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
@@ -564,50 +564,50 @@ defm SMLALL_MZZI_BtoS : sme2_mla_ll_array_index_32b<"smlall", 0b00, 0b000, defm SMLALL_VG2_M2ZZI_BtoS : sme2_mla_ll_array_vg2_index_32b<"smlall", 0b00, 0b000, int_aarch64_sme_smla_za32_lane_vg4x2>; defm SMLALL_VG4_M4ZZI_BtoS : sme2_mla_ll_array_vg4_i

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
@@ -2180,10 +2191,11 @@ multiclass sme2_int_mla_long_array_vg2_single op, SDPat multiclass sme2_fp_mla_long_array_vg4_single op, MatrixOperand matrix_ty, RegisterOperand multi_vector_ty, ZPRRegOp vector_ty, -

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
@@ -3888,6 +3888,24 @@ let TargetPrefix = "aarch64" in { llvm_nxv16i1_ty, llvm_nxv16i1_ty, llvm_nxv16i8_ty, llvm_nxv16i8_ty], [ImmArg>, IntrInaccessibleMemOnly, IntrHasSideEffects]>; + + class SME_FP8_ZA_SINGLE_VGx1_Intrinsic +: DefaultAttrsIn

[clang] 1fd3d1d - [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (#118492)

2024-12-13 Thread via cfe-commits
Author: Jonathan Thackray Date: 2024-12-13T09:09:36Z New Revision: 1fd3d1d04e6339fff7ef5b8b172ed4954885dde1 URL: https://github.com/llvm/llvm-project/commit/1fd3d1d04e6339fff7ef5b8b172ed4954885dde1 DIFF: https://github.com/llvm/llvm-project/commit/1fd3d1d04e6339fff7ef5b8b172ed4954885dde1.diff

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-13 Thread Momchil Velikov via cfe-commits
@@ -0,0 +1,114 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mattr=+sve2,+fp8,+fp8fma < %s | FileCheck %s +; RUN: llc -mattr=+sme,+fp8,+ssve-fp8fma --force-streaming < %s | FileCheck %s + +target triple = "aa

[clang-tools-extra] [clang-tidy][doc][NFC] extract common global options in doc (PR #119842)

2024-12-13 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/119842 None >From efe9cd9e78988a531dfbb6387691819ec5c18ac3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 12 Dec 2024 00:30:25 +0800 Subject: [PATCH] [clang-tidy][doc][NFC] extract common global options in

[clang-tools-extra] [clang-tidy][doc][NFC] extract common global options in doc (PR #119842)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Patch is 20.60 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/119842.diff 33 Files Affected: - (added) clang-tools-extra/docs/clang-tidy/G

[clang-tools-extra] 7da4b6b - [clang-tidy][doc][NFC] format doc for misc-unused-parameters (#119839)

2024-12-13 Thread via cfe-commits
Author: Congcong Cai Date: 2024-12-13T17:10:30+08:00 New Revision: 7da4b6b7a5beba9ff2589c8ecdc141316acdad12 URL: https://github.com/llvm/llvm-project/commit/7da4b6b7a5beba9ff2589c8ecdc141316acdad12 DIFF: https://github.com/llvm/llvm-project/commit/7da4b6b7a5beba9ff2589c8ecdc141316acdad12.diff

[clang-tools-extra] [clang-tidy][doc][NFC] format doc for misc-unused-parameters (PR #119839)

2024-12-13 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/119839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-13 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray closed https://github.com/llvm/llvm-project/pull/118492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-13 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118126 >From 5bc5078af32cda3dbcf3ca8dd53b01996ad34ea1 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Mon, 25 Nov 2024 17:21:55 + Subject: [PATCH 1/4] [AArch64] Implements FP8 SVE intrinsics for dot-pr

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-13 Thread Momchil Velikov via cfe-commits
@@ -0,0 +1,114 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mattr=+sve2,+fp8,+fp8fma < %s | FileCheck %s +; RUN: llc -mattr=+sme,+fp8,+ssve-fp8fma --force-streaming < %s | FileCheck %s + +target triple = "aa

[clang] [clang] Generate appropriate assume in presence of libc's memcpy (PR #119704)

2024-12-13 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/119704 >From 9d013f37df124fde0ed637d4b979de5ab01cbc22 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 12 Dec 2024 14:45:31 +0100 Subject: [PATCH 1/2] [clang] Generate appropriate assume in presenc

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-13 Thread Zhijin Zeng via cfe-commits
https://github.com/zengdage created https://github.com/llvm/llvm-project/pull/119844 1. Rename LIBMVEC_X86 into LIBMVEC to support libmvec (glibc vector match library) in risc-v. 2. Add RVVM1/2/4/8 in VFISAKind to distingusih the LMUL value, so we can take full advantage of risc-v vector exte

[clang-tools-extra] [clang-tidy][doc][NFC] format doc for misc-unused-parameters (PR #119839)

2024-12-13 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/119839 None >From ad6d38fd22d65f06d4a807e39da25352d9c42f23 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 13 Dec 2024 16:52:54 +0800 Subject: [PATCH] [clang-tidy][doc][NFC] format doc for misc-unused-param

[clang-tools-extra] [clang-tidy][doc][NFC] format doc for misc-unused-parameters (PR #119839)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119839.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/misc/unused-parameters.rst (+7-7) `

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-13 Thread Zhijin Zeng via cfe-commits
https://github.com/zengdage updated https://github.com/llvm/llvm-project/pull/119844 >From 101d7cb3749f0e3d892a7bf0bf797e40a334882f Mon Sep 17 00:00:00 2001 From: Zhijin Zeng Date: Thu, 12 Dec 2024 11:42:32 +0800 Subject: [PATCH 1/2] [NFC] Add vector call tests if use vector-library in risc-v

[clang] [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (PR #116332)

2024-12-13 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11288 Here is th

[clang] [clang][bytecode] Handle __builtin_memcmp (PR #119544)

2024-12-13 Thread Nikita Popov via cfe-commits
nikic wrote: We're seeing the same issue on s390x. Big endian not handled correctly? https://github.com/llvm/llvm-project/pull/119544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (PR #119719)

2024-12-13 Thread via cfe-commits
https://github.com/VScigolevs edited https://github.com/llvm/llvm-project/pull/119719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix memcmp/bcmp failures on big-endian hosts (PR #119851)

2024-12-13 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/119851 See the discussion in https://github.com/llvm/llvm-project/pull/119678#issuecomment-2539680746 and https://github.com/llvm/llvm-project/pull/119544#issuecomment-2539678561 >From 0cf9d2b6bb83de7db94411a5a325ba4c

[clang] [clang][bytecode] Fix memcmp/bcmp failures on big-endian hosts (PR #119851)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes See the discussion in https://github.com/llvm/llvm-project/pull/119678#issuecomment-2539680746 and https://github.com/llvm/llvm-project/pull/119544#issuecomment-2539678561 --- Full diff: https://github.com/ll

[clang] [clang] Generate appropriate assume in presence of libc's memcpy (PR #119704)

2024-12-13 Thread Nikita Popov via cfe-commits
nikic wrote: Yes, I'd expect this to more likely be a regression than an improvement. What was you original motivation for this? https://github.com/llvm/llvm-project/pull/119704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [flang] [flang] Add -f[no-]vectorize flags (PR #119718)

2024-12-13 Thread Tom Eccles via cfe-commits
@@ -6980,3 +6980,37 @@ void driver::applyOverrideOptions(SmallVectorImpl &Args, ++S; } } + +/// Vectorize at all optimization levels greater than 1 except for -Oz. +/// For -Oz the loop vectorizer is disabled, while the slp vectorizer is +/// enabled. +bool driver::shou

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-13 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118126 >From 5bc5078af32cda3dbcf3ca8dd53b01996ad34ea1 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Mon, 25 Nov 2024 17:21:55 + Subject: [PATCH 1/5] [AArch64] Implements FP8 SVE intrinsics for dot-pr

[clang] [clang][bytecode] Handle __builtin_memcmp (PR #119544)

2024-12-13 Thread Timm Baeder via cfe-commits
tbaederr wrote: Yup, see https://github.com/llvm/llvm-project/pull/119851 https://github.com/llvm/llvm-project/pull/119544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (PR #119719)

2024-12-13 Thread via cfe-commits
VScigolevs wrote: I don't have write access. Please merge on my behalf https://github.com/llvm/llvm-project/pull/119719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix memcmp/bcmp failures on big-endian hosts (PR #119851)

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

[clang] 84b0f01 - [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#119719)

2024-12-13 Thread via cfe-commits
Author: VScigolevs Date: 2024-12-13T12:24:31+01:00 New Revision: 84b0f0145887bbfe49fd4dc85490b14108a72cee URL: https://github.com/llvm/llvm-project/commit/84b0f0145887bbfe49fd4dc85490b14108a72cee DIFF: https://github.com/llvm/llvm-project/commit/84b0f0145887bbfe49fd4dc85490b14108a72cee.diff LO

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (PR #119719)

2024-12-13 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/119719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (PR #119719)

2024-12-13 Thread via cfe-commits
github-actions[bot] wrote: @VScigolevs 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 bui

[clang] 8bf19ec - [clang] Fix use of dangling ptr in CommandLineTest (#119798)

2024-12-13 Thread via cfe-commits
Author: macurtis-amd Date: 2024-12-13T05:27:00-06:00 New Revision: 8bf19ec444593b3076a446a8eeb5042bbf79dc65 URL: https://github.com/llvm/llvm-project/commit/8bf19ec444593b3076a446a8eeb5042bbf79dc65 DIFF: https://github.com/llvm/llvm-project/commit/8bf19ec444593b3076a446a8eeb5042bbf79dc65.diff

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

2024-12-13 Thread via cfe-commits
https://github.com/macurtis-amd closed https://github.com/llvm/llvm-project/pull/119798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 30cbd09 - [clang][bytecode] Fix memcmp/bcmp failures on big-endian hosts (#119851)

2024-12-13 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-13T12:19:27+01:00 New Revision: 30cbd09f4b8f7e94663631f0240d11bb754ea25b URL: https://github.com/llvm/llvm-project/commit/30cbd09f4b8f7e94663631f0240d11bb754ea25b DIFF: https://github.com/llvm/llvm-project/commit/30cbd09f4b8f7e94663631f0240d11bb754ea25b.diff L

[clang] [flang] [llvm] [mlir] [flang][OpenMP] Add frontend support for ompx_bare clause (PR #111106)

2024-12-13 Thread Ivan R. Ivanov via cfe-commits
https://github.com/ivanradanov updated https://github.com/llvm/llvm-project/pull/06 >From 4ac56a8ee42881f8abf60e69eb5ffdeb447fe910 Mon Sep 17 00:00:00 2001 From: Ivan Radanov Ivanov Date: Fri, 4 Oct 2024 16:20:36 +0900 Subject: [PATCH] [flang] Add frontend support for OpenMP extension bare

[clang] 05860f9 - [WebKit checkers] Recognize ensureFoo functions (#119681)

2024-12-13 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-13T01:48:29-08:00 New Revision: 05860f9b384b9b8f8bb01fa8984dbc2833669a27 URL: https://github.com/llvm/llvm-project/commit/05860f9b384b9b8f8bb01fa8984dbc2833669a27 DIFF: https://github.com/llvm/llvm-project/commit/05860f9b384b9b8f8bb01fa8984dbc2833669a27.diff

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-13 Thread Zhijin Zeng via cfe-commits
zengdage wrote: @mga-sc Hi, can you help to review the pr? I add RVVM1/2/4/8 in VFISAKind to support multiple LMUL value, maybe it can take full advantage of rvv register group. Your pr (https://github.com/llvm/llvm-project/pull/114014) looks like just support LMUL=2. https://github.com/llvm/

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/119681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Document the return value of __builtin_COLUMN (PR #118360)

2024-12-13 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/118360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Document the return value of __builtin_COLUMN (PR #118360)

2024-12-13 Thread via cfe-commits
github-actions[bot] wrote: @GeorgeKA 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] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/119846 adoptRef in WebKit constructs Ref/RefPtr so treat it as such in isCtorOfRefCounted. Also removed the support for makeRef and makeRefPtr as they don't exist any more. >From 6b4a6b832f61efc26396f60309744c2e7264156

[clang] [clang] Informative error for lifetimebound in decl-spec (PR #118567)

2024-12-13 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM as long as there is a follow up :) https://github.com/llvm/llvm-project/pull/118567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT single and multi instructions (PR #119845)

2024-12-13 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray created https://github.com/llvm/llvm-project/pull/119845 Add support for the following SME 8 bit floating-point dot-product intrinsics: * svdot_single_za16_mf8_vg1x2_fpm(uint32_t slice, svmfloat8x2_t f8x2, svmfloat8_t f8, fpm_t fpm); * svdot_single_za16_mf8_vg1x4_f

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT single and multi instructions (PR #119845)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jonathan Thackray (jthackray) Changes Add support for the following SME 8 bit floating-point dot-product intrinsics: * svdot_single_za16_mf8_vg1x2_fpm(uint32_t slice, svmfloat8x2_t f8x2, svmfloat8_t f8, fpm_t fpm); * svdot_single_za16_mf8

[clang] [clang] Generate appropriate assume in presence of libc's memcpy (PR #119704)

2024-12-13 Thread via cfe-commits
serge-sans-paille wrote: For the record, I've added the assumption that seems to correctly capture current UB. I'm not 100% sure it's worth generating them now though? https://github.com/llvm/llvm-project/pull/119704 ___ cfe-commits mailing list cfe-c

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes adoptRef in WebKit constructs Ref/RefPtr so treat it as such in isCtorOfRefCounted. Also removed the support for makeRef and makeRefPtr as they don't exist any more. --- Full diff: https://g

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes adoptRef in WebKit constructs Ref/RefPtr so treat it as such in isCtorOfRefCounted. Also removed the support for makeRef and makeRefPtr as they don't exist any more. --- Full diff: https://github.com/llvm/llv

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-13 Thread Ryosuke Niwa via cfe-commits
@@ -365,3 +365,20 @@ namespace call_with_explicit_temporary_obj { RefPtr { provide() }->method(); } } + +namespace call_with_adopt_ref { + class Obj { + public: +void ref() const; +void deref() const; +void method(); + }; + + struct dummy { +RefPtr any

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/119846 >From 6b4a6b832f61efc26396f60309744c2e7264156d Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 13 Dec 2024 01:49:21 -0800 Subject: [PATCH 1/2] [WebKit checkers] Recognize adoptRef as a safe function adoptR

[clang] 473e251 - [clang] Document the return value of __builtin_COLUMN (#118360)

2024-12-13 Thread via cfe-commits
Author: GeorgeKA Date: 2024-12-13T10:50:12+01:00 New Revision: 473e2518e850598feae62916ebef4b4dbc88a0ee URL: https://github.com/llvm/llvm-project/commit/473e2518e850598feae62916ebef4b4dbc88a0ee DIFF: https://github.com/llvm/llvm-project/commit/473e2518e850598feae62916ebef4b4dbc88a0ee.diff LOG:

[clang] [clang] Generate appropriate assume in presence of libc's memcpy (PR #119704)

2024-12-13 Thread via cfe-commits
serge-sans-paille wrote: My original motivation was a colleague pointing me at https://godbolt.org/z/cPdx6v13r which was specific to gcc but an interesting situation and I wanted clang to be on-par with GCC on that behavior. https://github.com/llvm/llvm-project/pull/119704

[clang] [flang] [llvm] [mlir] [flang][OpenMP] Add frontend support for ompx_bare clause (PR #111106)

2024-12-13 Thread Ivan R. Ivanov via cfe-commits
https://github.com/ivanradanov closed https://github.com/llvm/llvm-project/pull/06 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix SemaCXX/msvc-pragma-function-no-builtin-attr.cpp test (PR #119873)

2024-12-13 Thread via cfe-commits
https://github.com/VScigolevs created https://github.com/llvm/llvm-project/pull/119873 Fix test failure from 84b0f0145887bbfe49fd4dc85490b14108a72cee >From 0def02261cc8e5f3f3711832093efa7f56437745 Mon Sep 17 00:00:00 2001 From: Vladimirs Scigolevs Date: Fri, 13 Dec 2024 14:47:04 +0200 Subject:

[clang] Fix SemaCXX/msvc-pragma-function-no-builtin-attr.cpp test (PR #119873)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (VScigolevs) Changes Fix test failure from 84b0f0145887bbfe49fd4dc85490b14108a72cee --- Full diff: https://github.com/llvm/llvm-project/pull/119873.diff 1 Files Affected: - (modified) clang/test/SemaCXX/msvc-pragma-function-no-buil

[clang] Fix SemaCXX/msvc-pragma-function-no-builtin-attr.cpp test (PR #119873)

2024-12-13 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: I suppose this is the reason check-clang fails today. https://github.com/llvm/llvm-project/pull/119873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -2801,8 +2799,35 @@ void ExprEngine::processBranch(const Stmt *Condition, if (StTrue && StFalse) assert(!isa(Condition)); -if (StTrue) - Builder.generateNode(StTrue, true, PredN); +if (StTrue) { + // If we are processing a loop condition where tw

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -3724,6 +3749,10 @@ ExprEngine::getEagerlyAssumeBifurcationTags() { return std::make_pair(&TrueTag, &FalseTag); } +/// The last expression where EagerlyAssume produced two transitions (i.e. it +/// activated and the true and false case were both feasible). ---

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -2801,8 +2799,35 @@ void ExprEngine::processBranch(const Stmt *Condition, if (StTrue && StFalse) assert(!isa(Condition)); -if (StTrue) - Builder.generateNode(StTrue, true, PredN); +if (StTrue) { + // If we are processing a loop condition where tw

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -2801,8 +2799,35 @@ void ExprEngine::processBranch(const Stmt *Condition, if (StTrue && StFalse) assert(!isa(Condition)); -if (StTrue) - Builder.generateNode(StTrue, true, PredN); +if (StTrue) { + // If we are processing a loop condition where tw

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -2801,8 +2799,35 @@ void ExprEngine::processBranch(const Stmt *Condition, if (StTrue && StFalse) assert(!isa(Condition)); -if (StTrue) - Builder.generateNode(StTrue, true, PredN); +if (StTrue) { + // If we are processing a loop condition where tw

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
@@ -2801,8 +2799,35 @@ void ExprEngine::processBranch(const Stmt *Condition, if (StTrue && StFalse) assert(!isa(Condition)); -if (StTrue) - Builder.generateNode(StTrue, true, PredN); +if (StTrue) { + // If we are processing a loop condition where tw

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: Thank you for the ping. I'm really busy lately with stabilizing Z3 refutation. I really liked the extensive evaluation, which helped a lot forming my opinion here. The diffs look all right. I only spotchecked some places the reports. I agree with your eva

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-13 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/119388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
@@ -3888,6 +3888,24 @@ let TargetPrefix = "aarch64" in { llvm_nxv16i1_ty, llvm_nxv16i1_ty, llvm_nxv16i8_ty, llvm_nxv16i8_ty], [ImmArg>, IntrInaccessibleMemOnly, IntrHasSideEffects]>; + + class SME_FP8_ZA_SINGLE_VGx1_Intrinsic +: DefaultAttrsIn

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
@@ -3888,6 +3888,24 @@ let TargetPrefix = "aarch64" in { llvm_nxv16i1_ty, llvm_nxv16i1_ty, llvm_nxv16i8_ty, llvm_nxv16i8_ty], [ImmArg>, IntrInaccessibleMemOnly, IntrHasSideEffects]>; + + class SME_FP8_ZA_SINGLE_VGx1_Intrinsic +: DefaultAttrsIn

[clang] [llvm] [AArch64] Implement intrinsics for FMLAL/FMLALL (single) (PR #119568)

2024-12-13 Thread via cfe-commits
https://github.com/Lukacma approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (PR #119719)

2024-12-13 Thread via cfe-commits
VScigolevs wrote: I'm aware of the test failure, and know how to fix it. Will create a PR soon https://github.com/llvm/llvm-project/pull/119719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] 7c9404c - [flang][OpenMP] Add frontend support for ompx_bare clause (#111106)

2024-12-13 Thread via cfe-commits
Author: Ivan R. Ivanov Date: 2024-12-13T21:44:43+09:00 New Revision: 7c9404c279cfa13e24a043e6357cc85bd12f55f1 URL: https://github.com/llvm/llvm-project/commit/7c9404c279cfa13e24a043e6357cc85bd12f55f1 DIFF: https://github.com/llvm/llvm-project/commit/7c9404c279cfa13e24a043e6357cc85bd12f55f1.diff

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-13 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118126 >From 15478424a10e531d42f197dae5e2083e8d183c23 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Tue, 26 Nov 2024 18:01:03 + Subject: [PATCH 1/3] [AArch64] Implement FP8 SVE intrinsics for fused

[clang] [clang][Driver][Darwin] Optionally use xcselect to find macOS SDK (PR #119670)

2024-12-13 Thread Carlo Cabrera via cfe-commits
carlocab wrote: After excluding the `-darwin*` spelling from using `xcselect`, most of the failures go away, but one remains. I'll investigate it tomorrow. I've left it as `XFAIL` for now, since it seems to be the least bad option (compared to `CLANG_NO_XCSELECT` or `UNSUPPORTED`), given: > >

[clang] [clang][Driver][Darwin] Optionally use xcselect to find macOS SDK (PR #119670)

2024-12-13 Thread Carlo Cabrera via cfe-commits
carlocab wrote: For reference, the failure from dropping `XFAIL` from `darwin-ld-platform-version-macos.c`: Failure Log ``` + /Users/carlocab/github/llvm-project/build-xcselect/bin/FileCheck --check-prefix=NOSDK /Users/carlocab/github/llvm-project/clang/test/Driver/darwin-ld-platform-versio

[clang] [llvm] [AArch64] Add FP8 Neon intrinsics for dot-product (PR #119911)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Momchil Velikov (momchil-velikov) Changes This patch adds the following intrinsics: float16x4_t vdot_f16_mf8_fpm(float16x4_t vd, mfloat8x8_t vn, mfloat8x8_t vm, fpm_t fpm) float16x8_t vdotq_f16_mf8_fpm(float16x8_t vd, m

[clang] [llvm] [AArch64] Add FP8 Neon intrinsics for dot-product (PR #119911)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Momchil Velikov (momchil-velikov) Changes This patch adds the following intrinsics: float16x4_t vdot_f16_mf8_fpm(float16x4_t vd, mfloat8x8_t vn, mfloat8x8_t vm, fpm_t fpm) float16x8_t vdotq_f16_mf8_fpm(float16x8_t vd, mfl

[clang] [llvm] [AArch64] Add FP8 Neon intrinsics for dot-product (PR #119911)

2024-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Momchil Velikov (momchil-velikov) Changes This patch adds the following intrinsics: float16x4_t vdot_f16_mf8_fpm(float16x4_t vd, mfloat8x8_t vn, mfloat8x8_t vm, fpm_t fpm) float16x8_t vdotq_f16_mf8_fpm(float16x8_t vd, mfloat8x1

[clang] [Clang] Interpreter test should not depend on system header (PR #119903)

2024-12-13 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 edited https://github.com/llvm/llvm-project/pull/119903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >