[clang] [libc] [Clang] Add handlers for 'match_any' and 'match_all' to `gpuintrin.h` (PR #127504)

2025-02-18 Thread Joseph Huber via cfe-commits
jhuber6 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/9a584b07d7c29cec65bb446782c4af72e6d8 https://github.com/llvm/llvm-project/pull/127504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-18 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 milestoned https://github.com/llvm/llvm-project/pull/127703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-18 Thread via cfe-commits
https://github.com/foxtran updated https://github.com/llvm/llvm-project/pull/127546 >From d09db5fc8ca7f58813f917c3726d09f0e4cfdd81 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 17 Feb 2025 22:39:31 +0100 Subject: [PATCH 01/10] Merge {Maybe,Always}FallThrough_ReturnsNonVoid into

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-18 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/127703 >From ba202eaabaa49d17a53e0be7f8b08efb7d469a2c Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 18 Feb 2025 15:08:05 -0600 Subject: [PATCH] [Clang] Fix cross-lane scan when given divergent lanes Summary:

[clang] [analyzer] Do list initialization for CXXNewExpr with initializer list arg (PR #127702)

2025-02-18 Thread Michael Flanders via cfe-commits
https://github.com/Flandini created https://github.com/llvm/llvm-project/pull/127702 Fixes #116444. Closed #127700 because I accidentally updated it in github UI. ### Current vs expected behavior Previously, the result of a `CXXNewExpr` was not always list initialized when using an initializ

[clang] [libc] [Clang] Add handlers for 'match_any' and 'match_all' to `gpuintrin.h` (PR #127504)

2025-02-18 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#127704 https://github.com/llvm/llvm-project/pull/127504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-18 Thread via cfe-commits
https://github.com/foxtran updated https://github.com/llvm/llvm-project/pull/127546 >From d09db5fc8ca7f58813f917c3726d09f0e4cfdd81 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 17 Feb 2025 22:39:31 +0100 Subject: [PATCH 01/10] Merge {Maybe,Always}FallThrough_ReturnsNonVoid into

[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

2025-02-18 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: `-std=gnu99` etc. sets LangOpts.GNUMode... but we don't want to base the ABI on that; it's not an ABI flag. The ABI should only be based on the triple, and flags specifically intended to modify the ABI. I think we should just use the GNU-compatible ABI by default. Unless

[clang] [clang] Lower modf builtin using `llvm.modf` intrinsic (PR #126750)

2025-02-18 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. https://github.com/llvm/llvm-project/pull/126750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][X86] Only define __CET__ macro for X86 targets (PR #127616)

2025-02-18 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk created https://github.com/llvm/llvm-project/pull/127616 The `-fcf-protection` flag is now also used to enable CFI features for the RISC-V target, so it's not suitable to define `__CET__` solely based on the flag anymore. This patch moves the definition of the `__C

[clang] [clang][X86] Only define __CET__ macro for X86 targets (PR #127616)

2025-02-18 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: See https://github.com/llvm/llvm-project/pull/109784 and https://github.com/llvm/llvm-project/pull/112477 for the adoption of `-fcf-protection` for RISC-V targets https://github.com/llvm/llvm-project/pull/127616 ___ cfe-commits maili

[clang] [clang][X86] Only define __CET__ macro for X86 targets (PR #127616)

2025-02-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Ming-Yi Lai (mylai-mtk) Changes The `-fcf-protection` flag is now also used to enable CFI features for the RISC-V target, so it's not suitable to define `__CET__` solely based on the flag anymore. This patch moves the definition

[clang-tools-extra] [clangd] Store full decl/def range with symbol locations (PR #118102)

2025-02-18 Thread kadir çetinkaya via cfe-commits
kadircet wrote: > We could cut the memory usage overhead of the patch in half by only having it > in one of them. (@kadircet would that change your analysis of the tradeoffs > at all?) I think that'd still be too much considering the functionality we'll get in the end. Others might not share

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-18 Thread Haojian Wu via cfe-commits
https://github.com/hokein milestoned https://github.com/llvm/llvm-project/pull/127460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-18 Thread Haojian Wu via cfe-commits
hokein wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/9c49b188b8e1434eb774ee8422124ad3e8870dce https://github.com/llvm/llvm-project/pull/127460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-18 Thread Mariya Podchishchaeva via cfe-commits
@@ -11246,6 +11246,12 @@ static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS, if (S.getLangOpts().OpenCL) return; + if (LHS.get()->IgnoreParenImpCasts()->getType()->isBooleanType()) { +S.Diag(Loc, diag::warn_shift_bool) +<< (Opc ==

[clang] [llvm] [AArch64] Add optional extensions enabled on Grace (PR #127620)

2025-02-18 Thread David Green via cfe-commits
@@ -944,6 +944,15 @@ def ProcessorFeatures { list Falkor = [HasV8_0aOps, FeatureCRC, FeatureSHA2, FeatureAES, FeatureFPARMv8, FeatureNEON, FeaturePerfMon, FeatureRDM]; + list Grace= [HasV9_0aO

[clang] [Clang][WIP] Trivial relocation (PR #127636)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/127636 >From 9d2fd12df5ad75bd4bc0e5c46821b820fb55cdbb Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 18 Feb 2025 14:37:32 +0100 Subject: [PATCH] [Clang][WIP] Trivial relocation --- .../clang/AST/CXXRecordD

[clang] [SystemZ][z/OS] Mark text files as text in ClangScanDeps (PR #127514)

2025-02-18 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/12944 Here is the relevant piece of the

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-02-18 Thread Mariya Podchishchaeva via cfe-commits
@@ -4965,9 +4966,9 @@ class EmbedExpr final : public Expr { assert(EExpr && CurOffset != ULLONG_MAX && "trying to dereference an invalid iterator"); IntegerLiteral *N = EExpr->FakeChildNode; - StringRef DataRef = EExpr->Data->BinaryData->getBytes()

[clang] [SystemZ][z/OS] Mark text files as text in ClangScanDeps (PR #127514)

2025-02-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/8183 Here is the relevant piece of the build log fo

[clang] 3b6cc94 - [SystemZ][z/OS] Mark text files as text in ClangScanDeps (#127514)

2025-02-18 Thread via cfe-commits
Author: Abhina Sree Date: 2025-02-18T09:09:10-05:00 New Revision: 3b6cc94e7410b818658693885d4f5857c2fdbc6b URL: https://github.com/llvm/llvm-project/commit/3b6cc94e7410b818658693885d4f5857c2fdbc6b DIFF: https://github.com/llvm/llvm-project/commit/3b6cc94e7410b818658693885d4f5857c2fdbc6b.diff L

[clang] [SystemZ][z/OS] Mark text files as text in ClangScanDeps (PR #127514)

2025-02-18 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree closed https://github.com/llvm/llvm-project/pull/127514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-18 Thread Jean-Didier PAILLEUX via cfe-commits
@@ -6747,8 +6747,12 @@ defm backtrace : BooleanFFlag<"backtrace">, Group; defm bounds_check : BooleanFFlag<"bounds-check">, Group; defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group; defm cray_pointer : BooleanFFlag<"cray-pointer">, Group; -defm d_l

[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

2025-02-18 Thread Chris B via cfe-commits
@@ -12411,16 +12411,13 @@ def err_builtin_is_within_lifetime_invalid_arg : Error< "%select{non-|function }0pointer argument to '__builtin_is_within_lifetime' " "is not allowed">; -def err_builtin_invalid_arg_type: Error < - "%ordinal0 argument must be " - "%select{a vec

[libclc] [libclc] Use CLC conversion builtins in CLC functions (PR #127628)

2025-02-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/127628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-02-18 Thread via cfe-commits
@@ -4965,9 +4966,9 @@ class EmbedExpr final : public Expr { assert(EExpr && CurOffset != ULLONG_MAX && "trying to dereference an invalid iterator"); IntegerLiteral *N = EExpr->FakeChildNode; - StringRef DataRef = EExpr->Data->BinaryData->getBytes()

[clang] [Clang][WIP] Trivial relocation (PR #127636)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/127636 >From 8f000e3fd9c93d0c7a7a9ce8b12999c70c4d4b1a Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 18 Feb 2025 14:37:32 +0100 Subject: [PATCH] [Clang][WIP] Trivial relocation --- .../clang/AST/CXXRecordD

[clang] [Clang][WIP] Trivial relocation (PR #127636)

2025-02-18 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 1c6cecdbdd2470292ce0b508922d807e3100f85c a8f3214fd5ffa11c9c8b020a8add59b4a4a93224 --e

[flang] [libc] [libclc] [llvm] [AMDGPU] Replace gfx940 and gfx941 with gfx942 in offload and libclc (PR #125826)

2025-02-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/125826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Don't give up on an unsuccessful function instantiation (PR #126723)

2025-02-18 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Ping https://github.com/llvm/llvm-project/pull/126723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127595)

2025-02-18 Thread Kareem Ergawy via cfe-commits
ergawy wrote: > It is slightly unfortunate to rediscover the loops so early in the flow when > we had it in source. Totally agree, it should be more trivial than this. And it actually was slight worse, see: https://github.com/llvm/llvm-project/pull/114020. > Have you considered changing the r

[libclc] [libclc] Suppress data-layout warnings during linking (PR #127532)

2025-02-18 Thread Fraser Cormack via cfe-commits
@@ -1,8 +1,4 @@ -#if __clang_major__ >= 7 -target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5" -#else -target datalayout = "e-p:32:32-p1:64

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-18 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: > If the -fd-lines-as-code option is given they are treated as if the first > column contained a blank. > If the -fd-lines-as-comments option is given, they are treated as comment > lines. Do the tests added in this patch check this behaviour? https://github.com/llvm/

[libclc] [libclc] Disable external-calls testing for clspv targets (PR #127529)

2025-02-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `libclc` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/23133 Here i

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-18 Thread Kiran Chandramohan via cfe-commits
@@ -6747,8 +6747,12 @@ defm backtrace : BooleanFFlag<"backtrace">, Group; defm bounds_check : BooleanFFlag<"bounds-check">, Group; defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group; defm cray_pointer : BooleanFFlag<"cray-pointer">, Group; -defm d_l

[libclc] [libclc] Disable external-calls testing for clspv targets (PR #127529)

2025-02-18 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: Just one failure: ``` Timed Out Tests (1): MLIR :: Examples/standalone/test.toy Total Discovered Tests: 131804 Skipped : 48 (0.04%) Unsupported : 2855 (2.17%) Passed : 128580 (97.55%) Expectedly Failed:320 (0.24

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-18 Thread Oleksandr T. via cfe-commits
@@ -11246,6 +11246,12 @@ static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS, if (S.getLangOpts().OpenCL) return; + if (LHS.get()->IgnoreParenImpCasts()->getType()->isBooleanType()) { +S.Diag(Loc, diag::warn_shift_bool) +<< (Opc ==

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-02-18 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/126143 >From ce6029a3de4e330de88da468f20cb96372b99d43 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 6 Feb 2025 15:54:19 -0600 Subject: [PATCH] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use stat

[clang] [Clang][WIP] Trivial relocation (PR #127636)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/127636 None >From a8f3214fd5ffa11c9c8b020a8add59b4a4a93224 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 18 Feb 2025 14:37:32 +0100 Subject: [PATCH] [Clang][WIP] Trivial relocation --- .../clang/AST/CXXR

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-18 Thread Jean-Didier PAILLEUX via cfe-commits
JDPailleux wrote: > > If the -fd-lines-as-code option is given they are treated as if the first > > column contained a blank. > > If the -fd-lines-as-comments option is given, they are treated as comment > > lines. > > Do the tests added in this patch check this behaviour? Yes, if the source

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

2025-02-18 Thread via cfe-commits
https://github.com/zhouronghua updated https://github.com/llvm/llvm-project/pull/119513 >From 897cb52dcd18f9ada4bd39e17f3c411654b5f178 Mon Sep 17 00:00:00 2001 From: "ronghua.zhou" Date: Fri, 14 Feb 2025 01:04:51 + Subject: [PATCH] [Feature]: support for the BC library file into the compile

[clang] [analyzer] Limit Store by region-store-binding-limit (PR #127602)

2025-02-18 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. Makes sense giving up on large arrays. https://github.com/llvm/llvm-project/pull/127602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [Clang] Fix __{add, remove}_pointer in Objective-C++ (PR #123678)

2025-02-18 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: @tstellar Yes, it's #125185. https://github.com/llvm/llvm-project/pull/123678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix false positive regression for lifetime analysis warning. (PR #127460)

2025-02-18 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#127618 https://github.com/llvm/llvm-project/pull/127460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-18 Thread Oleksandr T. via cfe-commits
@@ -11246,6 +11246,12 @@ static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS, if (S.getLangOpts().OpenCL) return; + if (LHS.get()->IgnoreParenImpCasts()->getType()->isBooleanType()) { +S.Diag(Loc, diag::warn_shift_bool) +<< (Opc ==

[clang] [clang][bytecode] Move bases and virtual bases in moveRecord (PR #127627)

2025-02-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/127627 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 31abb20 - [clang][bytecode] Move bases and virtual bases in moveRecord (#127627)

2025-02-18 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-18T15:36:46+01:00 New Revision: 31abb20162a7d035841c9506b1cd18d3ae8df10c URL: https://github.com/llvm/llvm-project/commit/31abb20162a7d035841c9506b1cd18d3ae8df10c DIFF: https://github.com/llvm/llvm-project/commit/31abb20162a7d035841c9506b1cd18d3ae8df10c.diff L

[libclc] [libclc] Suppress data-layout warnings during linking (PR #127532)

2025-02-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/127532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Suppress data-layout warnings during linking (PR #127532)

2025-02-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/127532 >From 2004d2a93073273cd7e09fbf6da6de7972412e98 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Mon, 17 Feb 2025 18:04:08 + Subject: [PATCH] [libclc] Suppress data-layout warnings during linking libc

[clang] [analyzer] Add hack in ArrayBound to cover up missing casts (PR #127117)

2025-02-18 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > An interesting thing could be to track in the analyzer the number of > suppressed underflows (i.e.: the number of times we resorted to hacking with > this solution). That way, we could have more information about how far we > deviate from the precise modelling. This could pr

[clang] [Feature]: merge host and kernel dependencies for heterogeneous compilation (PR #119513)

2025-02-18 Thread via cfe-commits
https://github.com/zhouronghua updated https://github.com/llvm/llvm-project/pull/119513 >From cf8419ad480c0b8fefd7eb7e45bd0ce4d33167fe Mon Sep 17 00:00:00 2001 From: "ronghua.zhou" Date: Fri, 14 Feb 2025 01:04:51 + Subject: [PATCH] [Feature]: support for the BC library file into the compile

[clang] [clang][bytecode] Allow up/down casts of nullptr (PR #127615)

2025-02-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/127615 If the target type is a pointer type. >From c8593a44e4589cc5267070fbb7d9b758390ef792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 18 Feb 2025 11:49:02 +0100 Subject: [PATCH] [clang][

[clang] [analyzer] Add hack in ArrayBound to cover up missing casts (PR #127117)

2025-02-18 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/127117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1c8add1 - [analyzer] Add hack in ArrayBound to cover up missing casts (#127117)

2025-02-18 Thread via cfe-commits
Author: Donát Nagy Date: 2025-02-18T11:19:43+01:00 New Revision: 1c8add1ec70d8d730572029ac11a70f4dfac8ed5 URL: https://github.com/llvm/llvm-project/commit/1c8add1ec70d8d730572029ac11a70f4dfac8ed5 DIFF: https://github.com/llvm/llvm-project/commit/1c8add1ec70d8d730572029ac11a70f4dfac8ed5.diff LO

[libclc] [libclc] Suppress data-layout warnings during linking (PR #127532)

2025-02-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/127532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Suppress data-layout warnings during linking (PR #127532)

2025-02-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/127532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add optional extensions enabled on Grace (PR #127620)

2025-02-18 Thread Elvina Yakubova via cfe-commits
https://github.com/ElvinaYakubova created https://github.com/llvm/llvm-project/pull/127620 Enable optional ISA extensions on Grace when mcpu=grace is used >From 9be1c6f17270507343e564afb21ffa49d84f2c58 Mon Sep 17 00:00:00 2001 From: Elvina Yakubova Date: Thu, 13 Feb 2025 05:45:21 -0800 Subject

[clang] [llvm] [AArch64] Add optional extensions enabled on Grace (PR #127620)

2025-02-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-aarch64 Author: Elvina Yakubova (ElvinaYakubova) Changes Enable optional ISA extensions on Grace when mcpu=grace is used --- Full diff: https://github.com/llvm/llvm-project/pull/127620.diff 5 Files Affected: - (modi

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-18 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer created https://github.com/llvm/llvm-project/pull/127621 We had an internal discussion about -ffp-contract, how it compared to GCC which defaults to fast, and standard compliance. Looking at our docs, I think most information is there, but also thought it could

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-18 Thread Ulrich Weigand via cfe-commits
@@ -6470,6 +6540,84 @@ static SDValue lowerAddrSpaceCast(SDValue Op, SelectionDAG &DAG) { return Op; } +SDValue SystemZTargetLowering::lowerFP_EXTEND(SDValue Op, + SelectionDAG &DAG) const { + SDValue In = Op.getOperand(Op->isSt

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-18 Thread Ulrich Weigand via cfe-commits
@@ -179,20 +179,31 @@ bool SystemZABIInfo::isVectorArgumentType(QualType Ty) const { getContext().getTypeSize(Ty) <= 128); } -bool SystemZABIInfo::isFPArgumentType(QualType Ty) const { +// The Size argument will in case of af an overaligned single element struct +//

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

2025-02-18 Thread David Truby via cfe-commits
https://github.com/DavidTruby edited https://github.com/llvm/llvm-project/pull/119718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-18 Thread Ulrich Weigand via cfe-commits
@@ -6769,11 +6898,20 @@ SystemZTargetLowering::LowerOperationWrapper(SDNode *N, break; } case ISD::BITCAST: { +SDLoc DL(N); SDValue Src = N->getOperand(0); -if (N->getValueType(0) == MVT::i128 && Src.getValueType() == MVT::f128 && -!useSoftFloat())

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

2025-02-18 Thread David Truby 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] [clang] Introduce "binary" StringLiteral for #embed data (PR #127629)

2025-02-18 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 93d3e20bb226507c6eb777cfb15ea13f2cd129e8 700ec6f78c0a24729801bea381bafbcafb06826b --e

[clang] [SystemZ][z/OS] Mark text files as text in ClangScanDeps (PR #127514)

2025-02-18 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/127514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Move bases and virtual bases in moveRecord (PR #127627)

2025-02-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/127627 >From af63ce3381c42e751896d2e544218da88f98c83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 18 Feb 2025 14:02:58 +0100 Subject: [PATCH] [clang][bytecode] Move bases and virtual bases

[clang] 5fbb6d9 - [clang][bytecode] Allow up/down casts of nullptr (#127615)

2025-02-18 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-18T14:43:35+01:00 New Revision: 5fbb6d919d528d54538df3330e76f220ff52ab30 URL: https://github.com/llvm/llvm-project/commit/5fbb6d919d528d54538df3330e76f220ff52ab30 DIFF: https://github.com/llvm/llvm-project/commit/5fbb6d919d528d54538df3330e76f220ff52ab30.diff L

[clang] [clang][bytecode] Allow up/down casts of nullptr (PR #127615)

2025-02-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/127615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-18 Thread Jean-Didier PAILLEUX via cfe-commits
https://github.com/JDPailleux updated https://github.com/llvm/llvm-project/pull/127605 >From 2adb56dc7e3bb71a854b438a99266ab9711340ef Mon Sep 17 00:00:00 2001 From: Jean-Didier Pailleux Date: Tue, 18 Feb 2025 10:12:32 +0100 Subject: [PATCH] [flang][Driver] Add support of -fd-lines-as-comments a

[clang] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos.* when -fno-math-errno is set (PR #121763)

2025-02-18 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/121763 >From 42b096396f36adc6f1ad34de263a80dd7e4e0960 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 6 Jan 2025 11:49:48 + Subject: [PATCH 1/3] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos

[libclc] [libclc] Use CLC conversion builtins in CLC functions (PR #127628)

2025-02-18 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/127628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] df12bad - [libclc] Use CLC conversion builtins in CLC functions (#127628)

2025-02-18 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-02-18T14:52:41Z New Revision: df12bad075b77953fc3af6fc3db3b7dd25a81977 URL: https://github.com/llvm/llvm-project/commit/df12bad075b77953fc3af6fc3db3b7dd25a81977 DIFF: https://github.com/llvm/llvm-project/commit/df12bad075b77953fc3af6fc3db3b7dd25a81977.diff LOG

[clang] [clang-repl] Disable EmulatedTLS on Windows for interpreter executor (PR #127468)

2025-02-18 Thread Aaron Jomy via cfe-commits
https://github.com/aaronj0 edited https://github.com/llvm/llvm-project/pull/127468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos.* when -fno-math-errno is set (PR #121763)

2025-02-18 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue edited https://github.com/llvm/llvm-project/pull/121763 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos.* when -fno-math-errno is set (PR #121763)

2025-02-18 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: I've pushed a change to restrict this to AArch64 (other targets could enable it too) given no reply above, or progress on https://github.com/llvm/llvm-project/pull/123787. https://github.com/llvm/llvm-project/pull/121763 ___ cfe-commits

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-02-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,84 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s readability-use-numeric-limits %t +#include + +void constants() { + // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: The constant -128 is being utilized. Consider using std::numeric_limits::min() instead [readabil

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-02-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/127430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 378c6fb - [libclc][NFC] Rename macro; undef at end of file

2025-02-18 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2025-02-18T14:56:25Z New Revision: 378c6fbe330e6de2feac8a8e3bc0c93ec6aca80d URL: https://github.com/llvm/llvm-project/commit/378c6fbe330e6de2feac8a8e3bc0c93ec6aca80d DIFF: https://github.com/llvm/llvm-project/commit/378c6fbe330e6de2feac8a8e3bc0c93ec6aca80d.diff LOG

[clang] [NFC] [clang] make isFlexibleArrayMemberLike Ctx const (PR #126656)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/126656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos.* when -fno-math-errno is set (PR #121763)

2025-02-18 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/121763 >From 42b096396f36adc6f1ad34de263a80dd7e4e0960 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 6 Jan 2025 11:49:48 + Subject: [PATCH 1/4] [clang] Lower non-builtin sincos[f|l] calls to llvm.sincos

[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

2025-02-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 requested changes to this pull request. The idea of check is good. But I think the matcher need to refactor a lot. 1. Please place value check in ast matcher part, match all integer will cost lots of cpu and ram to store temporary results. 2. Maybe consider to writ

[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

2025-02-18 Thread Fraser Cormack via cfe-commits
@@ -12411,16 +12411,13 @@ def err_builtin_is_within_lifetime_invalid_arg : Error< "%select{non-|function }0pointer argument to '__builtin_is_within_lifetime' " "is not allowed">; -def err_builtin_invalid_arg_type: Error < - "%ordinal0 argument must be " - "%select{a vec

[clang] [Clang] Don't give up on an unsuccessful function instantiation (PR #126723)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin commented: This is missing a changelog entry. I wonder if `AtEndOfTU` should be a bool in Sema instead (that would replace all existing uses of `AtEndOfTU` - it would simplify this patch and a few other functions. I don't think we need to do it in this patch though.

[clang] [llvm] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (PR #125880)

2025-02-18 Thread Hans Wennborg via cfe-commits
zmodem wrote: We're hitting test failures on Windows as well after the re-land (7e3735d1a1b85cea48feb45cb7c2b5d8eaa216ae). It seems to only reproduce on Windows with ThinLTO, and causes some libclang and clangd lit tests to crash. (Our bug: https://crbug.com/397252105). https://github.com/llv

[clang] f7c71f1 - [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (#125394)

2025-02-18 Thread via cfe-commits
Author: Jason Rice Date: 2025-02-18T09:42:24+01:00 New Revision: f7c71f162269a10a635c4125142ae8b0a194f3aa URL: https://github.com/llvm/llvm-project/commit/f7c71f162269a10a635c4125142ae8b0a194f3aa DIFF: https://github.com/llvm/llvm-project/commit/f7c71f162269a10a635c4125142ae8b0a194f3aa.diff LO

[clang] [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (PR #125394)

2025-02-18 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/125394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 252c83b - [clang][Sema] Fix type of an statement expression ending with an atomic type (#119711)

2025-02-18 Thread via cfe-commits
Author: Alejandro Álvarez Ayllón Date: 2025-02-18T09:52:31+01:00 New Revision: 252c83bc9ef9fc885e9e6517f1b4423188bb919f URL: https://github.com/llvm/llvm-project/commit/252c83bc9ef9fc885e9e6517f1b4423188bb919f DIFF: https://github.com/llvm/llvm-project/commit/252c83bc9ef9fc885e9e6517f1b4423188b

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127595)

2025-02-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy created https://github.com/llvm/llvm-project/pull/127595 Upstreams the next part of do concurrent to OpenMP mapping pass (from AMD's ROCm implementation). See https://github.com/llvm/llvm-project/pull/126026 for more context. This PR add loop nest detection logic. Thi

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127478)

2025-02-18 Thread Kareem Ergawy via cfe-commits
ergawy wrote: Abandoned in favor of https://github.com/llvm/llvm-project/pull/127595. https://github.com/llvm/llvm-project/pull/127478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127595)

2025-02-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kareem Ergawy (ergawy) Changes Upstreams the next part of do concurrent to OpenMP mapping pass (from AMD's ROCm implementation). See https://github.com/llvm/llvm-project/pull/126026 for more context. This PR add loop nest detection

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127595)

2025-02-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kareem Ergawy (ergawy) Changes Upstreams the next part of do concurrent to OpenMP mapping pass (from AMD's ROCm implementation). See https://github.com/llvm/llvm-project/pull/126026 for more context. This PR add loop nest detection logic.

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127478)

2025-02-18 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy closed https://github.com/llvm/llvm-project/pull/127478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][OpenMP] Upstream first part of `do concurrent` mapping (PR #126026)

2025-02-18 Thread Michael Klemm via cfe-commits
@@ -0,0 +1,380 @@ + + +# `DO CONCURENT` mapping to OpenMP + +```{contents} +--- +local: +--- +``` + +This document seeks to describe the effort to parallelize `do concurrent` loops +by mapping them to OpenMP worksharing constructs. The goals of this document +are: +* Describing ho

[clang] [experimental] DanglingCFG analysis prototype (PR #124133)

2025-02-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/124133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix type of an statement expression ending with an atomic type (PR #119711)

2025-02-18 Thread via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: https://github.com/cor3ntin closed https://gi

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/121291 >From 42e03bb9cc9bd815476b0a3f06ac5f58826e3708 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 31 Jan 2025 19:29:05 +0300 Subject: [PATCH 1/5] [clang-tidy] add new check bugprone-reset-ambiguous-call

[clang] [Clang][AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (2/3) (PR #125688)

2025-02-18 Thread Csanád Hajdú via cfe-commits
https://github.com/Il-Capitano updated https://github.com/llvm/llvm-project/pull/125688 From a25845dcb484514c83022a21ee924e31a39882f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csan=C3=A1d=20Hajd=C3=BA?= Date: Tue, 4 Feb 2025 14:51:55 +0100 Subject: [PATCH 1/2] [Clang][AArch64] Add support for SH

[clang] [Clang][AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (2/3) (PR #125688)

2025-02-18 Thread Csanád Hajdú via cfe-commits
@@ -0,0 +1,6 @@ +// RUN: %clang --sysroot=%S/Inputs -c -fdriver-only -Werror --target=aarch64-unknown-linux-gnu \ Il-Capitano wrote: There must have been a good reason I removed the `!ForMultilib` check, but I can't remember now... You're right, the check is n

<    1   2   3   4   5   6   >