[clang] [OpenMP][Docs] Update OpenMP supported features table (PR #126292)

2025-02-07 Thread David Pagan via cfe-commits
https://github.com/ddpagan created https://github.com/llvm/llvm-project/pull/126292 Updated status to 'done' for OpenMP 6.0 features: - OpenMP directives in concurrent loop regions - atomics constructs on concurrent loop regions - Lift nesting restriction on concurrent loop Removed duplic

[clang] 501901e - [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (#124866)

2025-02-07 Thread via cfe-commits
Author: Helena Kotas Date: 2025-02-07T11:01:47-08:00 New Revision: 501901e8217a09ce788bedc0eb94cd7d54fa9f6f URL: https://github.com/llvm/llvm-project/commit/501901e8217a09ce788bedc0eb94cd7d54fa9f6f DIFF: https://github.com/llvm/llvm-project/commit/501901e8217a09ce788bedc0eb94cd7d54fa9f6f.diff

[clang] [HLSL] Constant buffer layout struct update (PR #124840)

2025-02-07 Thread Helena Kotas via cfe-commits
@@ -48,94 +48,108 @@ struct TwoFloats { // CHECK: HLSLResourceClassAttr {{.*}} Implicit CBuffer // CHECK: HLSLResourceAttr {{.*}} Implicit CBuffer cbuffer CB { - // CHECK: VarDecl {{.*}} col:9 used a1 'hlsl_constant float' + // CHECK: VarDecl {{.*}} used a1 'hlsl_constant flo

[clang] [LinkerWrapper] Clean up options after proper forwarding (PR #126297)

2025-02-07 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/126297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LinkerWrapper] Clean up options after proper forwarding (PR #126297)

2025-02-07 Thread Nick Sarnie via cfe-commits
@@ -9220,13 +9220,24 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, for (StringRef Arg : LinkerArgs) CmdArgs.push_back(Args.MakeArgString( "--device-linker=" + TC->getTripleString() + "=" + Arg)); + + // Forward the LTO

[clang] [LinkerWrapper] Clean up options after proper forwarding (PR #126297)

2025-02-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/126297 >From a19b3263a99c3def8ec4b756d8cf85233ebf9735 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 7 Feb 2025 13:39:56 -0600 Subject: [PATCH 1/2] [LinkerWrapper] Clean up options after proper forwarding Summ

[clang] [LinkerWrapper] Clean up options after proper forwarding (PR #126297)

2025-02-07 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex approved this pull request. https://github.com/llvm/llvm-project/pull/126297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-02-07 Thread Slava Zakharin via cfe-commits
vzakhari wrote: > I have force pushed this to my branch but github doesn't seem to be picking > it up on this review?? I don't really know how to fix this. A rebase to main head and force push helped in another instance of "Processing updates" https://github.com/llvm/llvm-project/pull/119718

[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

2025-02-07 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120896 >From 295df258043ef5a87ae603eedd308b863bad7b59 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 22 Dec 2024 15:14:30 +0200 Subject: [PATCH 1/7] [Clang] allow restrict qualifier for array types with poin

[clang] [flang] [lld] [Flang] Optionally do not compile the runtime in-tree (PR #122336)

2025-02-07 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur closed https://github.com/llvm/llvm-project/pull/122336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [Flang] Rename libFortranRuntime.a to libflang_rt.a (PR #122341)

2025-02-07 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/122341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

2025-02-07 Thread Florian Mayer via cfe-commits
fmayer wrote: > What else even uses the level? __builtin_object_size codegen? Can you add a > DocBrief to the flag explaining when you'd want to use it? Let me find out details. We have some code that miscompiles with `-fstrict-flex-arrays=1`, so something is exploiting the UB. https://githu

[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

2025-02-07 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Usually our tweak flags looks like -fsanitize-- "bounds" is a group for (array-bounds + local-bounds) "undefined" is also group, but we already have -fsanitize-undefined-, but they kind of affect a few sanitizers so: `-fsanitize-undefined-strict-flex-arrays` or `-fsanitize-a

[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

2025-02-07 Thread Vitaly Buka via cfe-commits
@@ -444,6 +444,19 @@ class LangOptionsBase { IncompleteOnly = 3, }; + enum class ArrayBoundsStrictFlexArraysLevelKind { vitalybuka wrote: To match numerical values, less mental efforts for readers. ``` enum class ArrayBoundsStrictFlexArraysLevelKind

[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

2025-02-07 Thread Vitaly Buka via cfe-commits
@@ -7,6 +7,16 @@ // RUN: %clang_cc1 -emit-llvm -triple x86_64 -fstrict-flex-arrays=2 -fsanitize=array-bounds -x c++ %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-STRICT-2,CXX // RUN: %clang_cc1 -emit-llvm -triple x86_64 -fstrict-flex-arrays=3 -fsanitize=array-bounds

[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

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

[clang] [sanitizer] [clang] Introduce fsanitize-bounds-strict-flex-arrays (PR #126163)

2025-02-07 Thread Vitaly Buka via cfe-commits
@@ -1192,13 +1193,40 @@ llvm::Value *CodeGenFunction::EmitLoadOfCountedByField( return nullptr; } +LangOptions::StrictFlexArraysLevelKind +CodeGenFunction::effectiveArrayBoundsFlexArraysLevel() { + using StrictFlexArraysLevelKind = LangOptions::StrictFlexArraysLevelKind; +

[clang] Revert "[Fuchsia] Support PGO" (PR #126293)

2025-02-07 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 `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/22321 Here is

[clang] [CSKY] Default to unsigned char (PR #115961)

2025-02-07 Thread Zi Xuan Wu via cfe-commits
https://github.com/zixuan-wu approved this pull request. LGTM. But I think commit msg should be refined(this PR is not for upstreaming?) https://github.com/llvm/llvm-project/pull/115961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [CSKY] Default to unsigned char (PR #115961)

2025-02-07 Thread Zi Xuan Wu via cfe-commits
zixuan-wu wrote: LGTM. But I think commit msg should be refined(this PR is not for upstreaming?) https://github.com/llvm/llvm-project/pull/115961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[libclc] [libclc] Allow default path when looking for llvm-spirv (PR #126071)

2025-02-07 Thread Nikita Popov via cfe-commits
nikic wrote: /cherry-pick 26ecddb05d13c101ccd840a6710eb5f8b82de841 https://github.com/llvm/llvm-project/pull/126071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Allow default path when looking for llvm-spirv (PR #126071)

2025-02-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic milestoned https://github.com/llvm/llvm-project/pull/126071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Allow default path when looking for llvm-spirv (PR #126071)

2025-02-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/126071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Allow default path when looking for llvm-spirv (PR #126071)

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

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-07 Thread Aniket Lal via cfe-commits
https://github.com/lalaniket8 updated https://github.com/llvm/llvm-project/pull/125646 >From 3608d77e3633d853682ffbae16c5b227259ed69c Mon Sep 17 00:00:00 2001 From: anikelal Date: Tue, 4 Feb 2025 12:13:20 +0530 Subject: [PATCH 1/3] [Driver][HIP] Do not pass -dependency-file flag for HIP Device

[clang] [WebKit checkers] Treat an implicit value initialization as trivial (PR #126203)

2025-02-07 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/126203 Implicit value initialization is trivial for our purposes. >From 717eca92439705bd9f152631a0602fdb7df9413a Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 7 Feb 2025 00:29:41 -0800 Subject: [PATCH] [WebKit

[clang] [WebKit checkers] Treat an implicit value initialization as trivial (PR #126203)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes Implicit value initialization is trivial for our purposes. --- Full diff: https://github.com/llvm/llvm-project/pull/126203.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/PtrType

[clang] [llvm] [Clang][Driver] Add an option to control loop-interchange (PR #125830)

2025-02-07 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer updated https://github.com/llvm/llvm-project/pull/125830 >From 45aa8d52ef8391fd15d81fb55a39c34f5aec233b Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Thu, 6 Feb 2025 03:00:24 -0800 Subject: [PATCH] [Clang][Driver] Add an option to control loop-interchange T

[clang] [Clang] Distro: Recognize newer Debian/Ubuntu releases and LinuxMint (PR #126183)

2025-02-07 Thread Fangrui Song via cfe-commits
MaskRay wrote: It seems that Debian/Ubuntu special cases are used in very few cases like `--hash-style=` `-z relro` defaults and default lib path `/usr/lib/cuda`. To make it easier to maintain, we should not add every new codename to clang::driver::Distro... @sylvestre I hope that Debian/Ub

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

2025-02-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/125880 >From 2f698e27ae61b91019544cc707c134e0aec9ecd3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 30 Jan 2025 12:08:01 +0100 Subject: [PATCH 1/3] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo

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

2025-02-07 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/125880 >From 2f698e27ae61b91019544cc707c134e0aec9ecd3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 30 Jan 2025 12:08:01 +0100 Subject: [PATCH 1/4] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo

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

2025-02-07 Thread Nikita Popov via cfe-commits
@@ -94,31 +96,53 @@ namespace llvm { /// U->getUser() is always an Instruction. virtual bool shouldExplore(const Use *U); -/// captured - Information about the pointer was captured by the user of -/// use U. Return true to stop the traversal or false to continu

[clang] [Clang] Form PackExpansionTypes of TemplateArguments for rewrite substitution (PR #126206)

2025-02-07 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/126206 When substituting for rewrite purposes, as in rebuilding constraints for a synthesized deduction guide, it assumed that packs were in `PackExpansion*` form, such that the instantiator could extract a pattern. F

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

2025-02-07 Thread Nikita Popov via cfe-commits
@@ -438,18 +448,21 @@ void llvm::PointerMayBeCaptured(const Value *V, CaptureTracker *Tracker, }; while (!Worklist.empty()) { const Use *U = Worklist.pop_back_val(); -switch (DetermineUseCaptureKind(*U, IsDereferenceableOrNull)) { -case UseCaptureKind::NO_CAPTU

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

2025-02-07 Thread Nikita Popov via cfe-commits
@@ -71,7 +71,9 @@ using namespace llvm; #define DEBUG_TYPE "function-attrs" STATISTIC(NumMemoryAttr, "Number of functions with improved memory attribute"); -STATISTIC(NumNoCapture, "Number of arguments marked nocapture"); +STATISTIC(NumCapturesNone, "Number of arguments marked

[clang] [Driver][ROCm][OpenMP] Fix default ockl linking for OpenMP. (PR #126186)

2025-02-07 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 083686daf9feb5b5acadaef22e60b10a8b781f8a 030e486cbd0cff569ea17028ab22dbd42edf8e5a --e

[clang] [Driver][ROCm][OpenMP] Fix default ockl linking for OpenMP. (PR #126186)

2025-02-07 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 updated https://github.com/llvm/llvm-project/pull/126186 >From 030e486cbd0cff569ea17028ab22dbd42edf8e5a Mon Sep 17 00:00:00 2001 From: Amit Pandey Date: Fri, 7 Feb 2025 12:11:23 +0530 Subject: [PATCH] [Driver][ROCm][OpenMP] Fix default ockl linking for OpenMP.

[clang] ac640a2 - [Wunsafe-buffer-usage] Add additional tests to esnure safe accesses to const sized array are not warned (#125483)

2025-02-07 Thread via cfe-commits
Author: Malavika Samak Date: 2025-02-07T13:34:01+05:30 New Revision: ac640a2d626e65cd4c35a4442f40a23da4d8cbfd URL: https://github.com/llvm/llvm-project/commit/ac640a2d626e65cd4c35a4442f40a23da4d8cbfd DIFF: https://github.com/llvm/llvm-project/commit/ac640a2d626e65cd4c35a4442f40a23da4d8cbfd.diff

[clang] [Wunsafe-buffer-usage] Add additional tests to esnure safe accesses to const sized array are not warned (PR #125483)

2025-02-07 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak closed https://github.com/llvm/llvm-project/pull/125483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 26ecddb - [libclc] Allow default path when looking for llvm-spirv (#126071)

2025-02-07 Thread via cfe-commits
Author: Nikita Popov Date: 2025-02-07T09:18:18+01:00 New Revision: 26ecddb05d13c101ccd840a6710eb5f8b82de841 URL: https://github.com/llvm/llvm-project/commit/26ecddb05d13c101ccd840a6710eb5f8b82de841 DIFF: https://github.com/llvm/llvm-project/commit/26ecddb05d13c101ccd840a6710eb5f8b82de841.diff

[clang] [Fuchsia] Support PGO (PR #120323)

2025-02-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/120323 >From 025652fd24c1dd13a3d628bd1a56c26e715badaa Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 6 Mar 2020 17:23:35 -0800 Subject: [PATCH] [Fuchsia] Support PGO Enable 2-stage builds with PGO. --- .../ca

[clang] [Clang] Form PackExpansionTypes of TemplateArguments for rewrite substitution (PR #126206)

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

[clang] [clang][DebugInfo] Set EnumKind based on enum_extensibility attribute (PR #126045)

2025-02-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/126045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-02-07 Thread Nikita Popov via cfe-commits
@@ -94,31 +96,53 @@ namespace llvm { /// U->getUser() is always an Instruction. virtual bool shouldExplore(const Use *U); -/// captured - Information about the pointer was captured by the user of -/// use U. Return true to stop the traversal or false to continu

[clang] [clang][DebugInfo] Set EnumKind based on enum_extensibility attribute (PR #126045)

2025-02-07 Thread Michael Buch via cfe-commits
Michael137 wrote: The one test failure unrelated: ``` FAIL: Clang :: Tooling/clang-linker-wrapper-spirv-elf.cpp (20542 of 21851) TEST 'Clang :: Tooling/clang-linker-wrapper-spirv-elf.cpp' FAILED Exit Code: 1 Command Output (stderr): -- RUN: at line 4: mk

[clang] [Clang] Form PackExpansionTypes of TemplateArguments for rewrite substitution (PR #126206)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes When substituting for rewrite purposes, as in rebuilding constraints for a synthesized deduction guide, it assumed that packs were in `PackExpansion*` form, such that the instantiator could extract a pattern

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

2025-02-07 Thread Nikita Popov via cfe-commits
@@ -1281,17 +1321,15 @@ static void addArgumentAttrs(const SCCNodeSet &SCCNodes, if (ArgumentSCC[0]->Uses.size() == 1 && ArgumentSCC[0]->Uses[0] == ArgumentSCC[0]) { Argument *A = ArgumentSCC[0]->Definition; -A->addAttr(Attribute::getWithCaptureI

[clang] [Fuchsia] Support PGO (PR #120323)

2025-02-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek ready_for_review https://github.com/llvm/llvm-project/pull/120323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Fuchsia] Support PGO (PR #120323)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Petr Hosek (petrhosek) Changes Enable 2-stage builds with PGO. --- Full diff: https://github.com/llvm/llvm-project/pull/120323.diff 2 Files Affected: - (added) clang/cmake/caches/Fuchsia-stage2-instrumented.cmake (+44) - (modified) cla

[clang] [clang] [test] Adjust XFAILs for windows in unique_object_duplication.cpp (PR #126139)

2025-02-07 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/126139 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [analyzer][NFC] Remove "V2" from ArrayBoundCheckerV2.cpp (PR #126094)

2025-02-07 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. > Have you checked if anywhere in the docs or comments we still have "V2" > somewhere? I did a quick scan and I couldn't find stale references. https://github.com/llvm/llvm-project/pull/1

[clang] [Clang] Distro: Recognize newer Debian/Ubuntu releases and LinuxMint (PR #126183)

2025-02-07 Thread via cfe-commits
yumeyao wrote: I agree with the point _we should not add every new codename to clang::driver::Distro..._, and actually only ancient ubuntu releases `Lucid` `Jaunty` and `Karmic` uses `--hash-style=both` which is the special case here, in other/common cases, we just need to know it it debian/ub

[clang] [llvm] [analyzer][NFC] Remove "V2" from ArrayBoundCheckerV2.cpp (PR #126094)

2025-02-07 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/126094 From 7440c102ba71485c2982aa160c961c163a3da5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Thu, 6 Feb 2025 18:26:56 +0100 Subject: [PATCH 1/2] [analyzer][NFC] Remove "V2" from ArrayBoundC

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

2025-02-07 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng approved this pull request. LGTM :) 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] [Clang] Distro: Recognize newer Debian/Ubuntu releases and LinuxMint (PR #126183)

2025-02-07 Thread Brad Smith via cfe-commits
brad0 wrote: cc @MaskRay https://github.com/llvm/llvm-project/pull/126183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [analyzer][NFC] Remove "V2" from ArrayBoundCheckerV2.cpp (PR #126094)

2025-02-07 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > Have you checked if anywhere in the docs or comments we still have "V2" > somewhere? I searched for `CheckerV2` and `BoundV2` and the only findings are: - A annoying testcase called `test_demangle_pass` that contains references to many obsolete code fragments (in strings, as

[clang] e00fc80 - [clang][DebugInfo] Set EnumKind based on enum_extensibility attribute (#126045)

2025-02-07 Thread via cfe-commits
Author: Michael Buch Date: 2025-02-07T09:28:10Z New Revision: e00fc80c194b3742cd387b7cc74a5fd7ab775bf0 URL: https://github.com/llvm/llvm-project/commit/e00fc80c194b3742cd387b7cc74a5fd7ab775bf0 DIFF: https://github.com/llvm/llvm-project/commit/e00fc80c194b3742cd387b7cc74a5fd7ab775bf0.diff LOG:

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-07 Thread Aniket Lal via cfe-commits
https://github.com/lalaniket8 updated https://github.com/llvm/llvm-project/pull/125646 >From 3608d77e3633d853682ffbae16c5b227259ed69c Mon Sep 17 00:00:00 2001 From: anikelal Date: Tue, 4 Feb 2025 12:13:20 +0530 Subject: [PATCH 1/4] [Driver][HIP] Do not pass -dependency-file flag for HIP Device

[clang] [Clang] Remove the PackExpansion restrictions for rewrite substitution (PR #126206)

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

[clang] [Clang] Remove the PackExpansion restrictions for rewrite substitution (PR #126206)

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

[clang] c269182 - [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (#126215)

2025-02-07 Thread via cfe-commits
Author: Michael Buch Date: 2025-02-07T11:10:09Z New Revision: c269182b13abddc459820e57a4d2065f364b23dc URL: https://github.com/llvm/llvm-project/commit/c269182b13abddc459820e57a4d2065f364b23dc DIFF: https://github.com/llvm/llvm-project/commit/c269182b13abddc459820e57a4d2065f364b23dc.diff LOG:

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/126215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. https://github.com/llvm/llvm-project/pull/126215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 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-5` while building `clang,lldb` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/14274 Here

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -186,106 +212,212 @@ class MatchDescendantVisitor : public DynamicRecursiveASTVisitor { return DynamicRecursiveASTVisitor::TraverseStmt(Node); } + void setASTContext(ASTContext &Context) { ActiveASTContext = &Context; } + + void setHandler(const UnsafeBufferUsageHa

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -787,9 +933,9 @@ AST_MATCHER(FunctionDecl, isNormalPrintfFunc) { // Then if the format string is a string literal, this matcher matches when at // least one string argument is unsafe. If the format is not a string literal, // this matcher matches when at least one pointer ty

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov commented: I am still working on going through the commit very thoroughly. It all looks great, just a few minor comments, and I've also left a few notes to not forget where I stopped https://github.com/llvm/llvm-project/pull/125492 __

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -186,106 +212,212 @@ class MatchDescendantVisitor : public DynamicRecursiveASTVisitor { return DynamicRecursiveASTVisitor::TraverseStmt(Node); } + void setASTContext(ASTContext &Context) { ActiveASTContext = &Context; } + + void setHandler(const UnsafeBufferUsageHa

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/125492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -1189,29 +1353,40 @@ class PointerArithmeticGadget : public WarningGadget { const Expr *Ptr; // the pointer expression in `PA` public: - PointerArithmeticGadget(const MatchFinder::MatchResult &Result) + PointerArithmeticGadget(const MatchResult &Result) ---

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -1139,26 +1299,30 @@ class ArraySubscriptGadget : public WarningGadget { const ArraySubscriptExpr *ASE; public: - ArraySubscriptGadget(const MatchFinder::MatchResult &Result) + ArraySubscriptGadget(const MatchResult &Result) : WarningGadget(Kind::ArraySubscript),

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -839,17 +988,22 @@ AST_MATCHER_P(CallExpr, hasUnsafePrintfStringArg, // second is an integer, it is a snprintf: const Expr *UnsafeArg; - if (hasUnsafeFormatOrSArg(&Node, UnsafeArg, 2, Ctx, false)) -return UnsafeStringArgMatcher.matches(*UnsafeArg, F

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -1060,19 +1210,24 @@ class IncrementGadget : public WarningGadget { const UnaryOperator *Op; public: - IncrementGadget(const MatchFinder::MatchResult &Result) + IncrementGadget(const MatchResult &Result) : WarningGadget(Kind::Increment), -Op(Result.Nodes.

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ilya Biryukov via cfe-commits
@@ -294,63 +426,81 @@ isInUnspecifiedPointerContext(internal::Matcher InnerMatcher) { // 4. the operand of a pointer subtraction operation //(i.e., computing the distance between two pointers); or ... - // clang-format off - auto CallArgMatcher = callExpr( + if (au

[clang] [flang] [lld] [Flang] Optionally do not compile the runtime in-tree (PR #122336)

2025-02-07 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/122336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [Flang] Optionally do not compile the runtime in-tree (PR #122336)

2025-02-07 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/122336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [analyzer][NFC] Remove "V2" from ArrayBoundCheckerV2.cpp (PR #126094)

2025-02-07 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/126094 From 7440c102ba71485c2982aa160c961c163a3da5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Thu, 6 Feb 2025 18:26:56 +0100 Subject: [PATCH 1/3] [analyzer][NFC] Remove "V2" from ArrayBoundC

[clang] [flang] [lld] [Flang] Optionally do not compile the runtime in-tree (PR #122336)

2025-02-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: This PR still needs a review https://github.com/llvm/llvm-project/pull/122336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [analyzer] Consolidate array bound checkers (PR #125534)

2025-02-07 Thread Donát Nagy via cfe-commits
NagyDonat wrote: The unittest failure seems to be random nonsense, apparently the Python package `psutil` is not available on that windows machine: > llvm-lit.py: C:\a\lld-x86_64-win\build\utils\lit\tests\lit.cfg:111: warning: > Setting a timeout per test not supported. Requires the Python psut

[clang] [llvm] [Clang][Driver] Add an option to control loop-interchange (PR #125830)

2025-02-07 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: > This is a bit off topic, but do you have any opinion on adding a pragma for > interchange like other loop optimizations do? I think it can sometimes be > useful if we can enable/disable the interchange for each loop, but I think > there are a few things to consider if we

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/126215 This addresses the MSAN failure reported in https://github.com/llvm/llvm-project/pull/125791#issuecomment-2639183154: ``` ==5633==WARNING: MemorySanitizer: use-of-uninitialized-value #0 in clang::ASTNodeI

[clang] [lldb] Reland: [clang] fix P3310 overload resolution flag propagation (PR #125791)

2025-02-07 Thread Michael Buch via cfe-commits
Michael137 wrote: Put up https://github.com/llvm/llvm-project/pull/126215 Should address the failure @hokein observed https://github.com/llvm/llvm-project/pull/125791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 assumption clause, 'no_openmp_constructs' (PR #125933)

2025-02-07 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 `clang,llvm` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/22185 Here is the relev

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-07 Thread Ivana Ivanovska via cfe-commits
ivanaivanovska wrote: > @ivanaivanovska @ilya-biryukov One PR is fine. I will look at it. @ziqingluo-90 Thank you! https://github.com/llvm/llvm-project/pull/125492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/126215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-02-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: I second @shiltian's concern. Host-side and device-side libraries should have different names[^1] if there differences between them. We have host-offloading as well. [^1]: Unless they would be interchangeable, i.e. contains host-side libomp, libomptarget AND device device-si

[clang] 98e118c - [Flang] Don't use FortranDecimal for runtime (#121997)

2025-02-07 Thread via cfe-commits
Author: Michael Kruse Date: 2025-02-07T11:43:31+01:00 New Revision: 98e118ca435d280ff1c3540eb5e9b4140b44a1b4 URL: https://github.com/llvm/llvm-project/commit/98e118ca435d280ff1c3540eb5e9b4140b44a1b4 DIFF: https://github.com/llvm/llvm-project/commit/98e118ca435d280ff1c3540eb5e9b4140b44a1b4.diff

[clang] [flang] [lld] [Flang] Don't use FortranDecimal for runtime (PR #121997)

2025-02-07 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur closed https://github.com/llvm/llvm-project/pull/121997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove the PackExpansion restrictions for rewrite substitution (PR #126206)

2025-02-07 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/126206 >From 2ce86d8842b7b37141d4a415830880b9d1d30260 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 7 Feb 2025 17:15:05 +0800 Subject: [PATCH] [Clang] Remove the PackExpansion restrictions for rewrite substit

[clang] [llvm] [Clang][Driver] Add an option to control loop-interchange (PR #125830)

2025-02-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: The OpenMP pragma conceptually applies interchange in the frontend, with syntactical requirements for the loops it applies to. https://github.com/llvm/llvm-project/pull/125830 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang][bytecode] Remove unnecessary if statement (PR #126223)

2025-02-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/126223 This doesn't seem to do any good and breaks a few libc++ tests. Remove the special case. >From af446487c0a09760bda3a8bb646b19015b736971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri,

[clang] [clang][bytecode] Remove unnecessary if statement (PR #126223)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This doesn't seem to do any good and breaks a few libc++ tests. Remove the special case. --- Full diff: https://github.com/llvm/llvm-project/pull/126223.diff 1 Files Affected: - (modified) clang/lib/AST/B

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lldb @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This addresses the MSAN failure reported in https://github.com/llvm/llvm-project/pull/125791#issuecomment-2639183154: ``` ==5633==WARNING: MemorySanitizer: use-of-uninitialized-val

[clang] [flang] [flang][RISCV][WIP] Add target-abi ModuleFlag. (PR #126188)

2025-02-07 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. I do not know much the target-abi LLVM module flag, but this looks reasonable. https://github.com/llvm/llvm-project/pull/126188 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [llvm] [Clang][Driver] Add an option to control loop-interchange (PR #125830)

2025-02-07 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer closed https://github.com/llvm/llvm-project/pull/125830 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 612df14 - [Clang][Driver] Add an option to control loop-interchange (#125830)

2025-02-07 Thread via cfe-commits
Author: Sjoerd Meijer Date: 2025-02-07T10:31:24Z New Revision: 612df14c0058572c876f59d41ec56c89710cee15 URL: https://github.com/llvm/llvm-project/commit/612df14c0058572c876f59d41ec56c89710cee15 DIFF: https://github.com/llvm/llvm-project/commit/612df14c0058572c876f59d41ec56c89710cee15.diff LOG:

[clang] [Clang] Remove the PackExpansion restrictions for rewrite substitution (PR #126206)

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

[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

2025-02-07 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 83ba3740bf51347307494d013099e392c310e32b 04636bea1b873805af02dea865637d7125cee1e5 --e

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-07 Thread Aniket Lal via cfe-commits
https://github.com/lalaniket8 updated https://github.com/llvm/llvm-project/pull/125646 >From 3608d77e3633d853682ffbae16c5b227259ed69c Mon Sep 17 00:00:00 2001 From: anikelal Date: Tue, 4 Feb 2025 12:13:20 +0530 Subject: [PATCH 1/2] [Driver][HIP] Do not pass -dependency-file flag for HIP Device

[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

2025-02-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Whereas it is UB in terms of the standard to delete an array of objects via pointer whose static type doesn't match its dynamic type, MSVC supports an extension allowing to do it. Aside from array

<    1   2   3   4   5   6   >