[clang] 8713914 - [clang][bytecode] Handle __builtin_memcmp (#119544)

2024-12-11 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-12T08:59:35+01:00 New Revision: 8713914d76cb9d6b54278dd75fecb68bb93f6ea5 URL: https://github.com/llvm/llvm-project/commit/8713914d76cb9d6b54278dd75fecb68bb93f6ea5 DIFF: https://github.com/llvm/llvm-project/commit/8713914d76cb9d6b54278dd75fecb68bb93f6ea5.diff L

[clang] 9c50182 - [-Wunsafe-buffer-usage] Suppress warning for multi-dimensional constant arrays (#118249)

2024-12-11 Thread via cfe-commits
Author: Malavika Samak Date: 2024-12-12T13:27:39+05:30 New Revision: 9c50182bf4942f88cc9876eb29e70802448cddc8 URL: https://github.com/llvm/llvm-project/commit/9c50182bf4942f88cc9876eb29e70802448cddc8 DIFF: https://github.com/llvm/llvm-project/commit/9c50182bf4942f88cc9876eb29e70802448cddc8.diff

[clang] [clang-cl] [Sema] Support MSVC non-const lvalue to user-defined temporary reference (PR #99833)

2024-12-11 Thread Max Winkler via cfe-commits
@@ -0,0 +1,87 @@ +// RUN: %clang_cc1 -triple x86_64-windows-msvc %s -emit-llvm -fms-extensions -fms-compatibility -fms-reference-binding -Wno-microsoft-reference-binding -o - | FileCheck %s + +struct A {}; +struct B : A {}; + +void fAPickConstRef(A&) {} +void fAPickConstRef(cons

[clang] [clang-cl] [Sema] Support MSVC non-const lvalue to user-defined temporary reference (PR #99833)

2024-12-11 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/99833 >From 0a705b1a8e9673cd5e803ffe392dacfa0f06c40f Mon Sep 17 00:00:00 2001 From: MaxEW707 Date: Fri, 21 Jun 2024 20:37:40 -0700 Subject: [PATCH 01/20] Support MSVC lvalue to temporary reference binding --- clang/

[clang] [-Wunsafe-buffer-usage] Suppress warning for multi-dimensional constant arrays (PR #118249)

2024-12-11 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/118249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-11 Thread via cfe-commits
https://github.com/amane-ame updated https://github.com/llvm/llvm-project/pull/119563 From 659eda3ec76b63418f8b621b004728d9d7bf26ad Mon Sep 17 00:00:00 2001 From: amane-ame Date: Wed, 11 Dec 2024 22:17:51 +0800 Subject: [PATCH 1/4] [clang] Fix crashes when passing VLA to va_arg --- clang/lib/

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

2024-12-11 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/119666 Also clean up dump_format_style.py and dump_format_help.py. >From 6105a4ba95e7458623e2bf7363f0d454c3bd1b9a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 11 Dec 2024 23:14:29 -0800 Subject: [PATCH] [clang-fo

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

2024-12-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/119544 >From 060f96d813f31ccf4f3e68e8bbc826a7c263f680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 11 Dec 2024 12:35:29 +0100 Subject: [PATCH] [clang][bytecode] Handle __builtin_memcmp ---

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

2024-12-11 Thread Owen Pan via cfe-commits
https://github.com/owenca edited 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-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes Also clean up dump_format_style.py and dump_format_help.py. --- Full diff: https://github.com/llvm/llvm-project/pull/119666.diff 3 Files Affected: - (modified) clang/docs/tools/dump_format_help.py (+4-2) - (mo

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

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Also clean up dump_format_style.py and dump_format_help.py. --- Full diff: https://github.com/llvm/llvm-project/pull/119666.diff 3 Files Affected: - (modified) clang/docs/tools/dump_format_help.py (+4-2)

[clang] Fix a bug that CXXConstructExpr wasn't recognized by tryToFindPtrOrigin (PR #119336)

2024-12-11 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/119336 >From a3c97276a15af0324b4436d85fa06e22650dfb57 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Mon, 9 Dec 2024 23:03:46 -0800 Subject: [PATCH 1/2] Fix a bug that CXXConstructExpr wasn't recognized by tryToFindP

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

2024-12-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/119544 >From 3e5ca2bbefddab626003fe10d0b80709f7c96ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 11 Dec 2024 12:35:29 +0100 Subject: [PATCH] [clang][bytecode] Handle __builtin_memcmp ---

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)

2024-12-11 Thread via cfe-commits
yronglin wrote: friendly ping~ https://github.com/llvm/llvm-project/pull/117437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Allow `-fstack-clash-protection` for Fuchsia targets (PR #119633)

2024-12-11 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0614c60 - [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (#119504)

2024-12-11 Thread via cfe-commits
Author: quic_hchandel Date: 2024-12-12T11:12:09+05:30 New Revision: 0614c601b44ca2f214a9868a8b672ea695d5d56a URL: https://github.com/llvm/llvm-project/commit/0614c601b44ca2f214a9868a8b672ea695d5d56a DIFF: https://github.com/llvm/llvm-project/commit/0614c601b44ca2f214a9868a8b672ea695d5d56a.diff

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-11 Thread via cfe-commits
https://github.com/amane-ame updated https://github.com/llvm/llvm-project/pull/119563 From 659eda3ec76b63418f8b621b004728d9d7bf26ad Mon Sep 17 00:00:00 2001 From: amane-ame Date: Wed, 11 Dec 2024 22:17:51 +0800 Subject: [PATCH 1/3] [clang] Fix crashes when passing VLA to va_arg --- clang/lib/

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic closed https://github.com/llvm/llvm-project/pull/119504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread via cfe-commits
@@ -57,6 +57,86 @@ class QCIRVInstRR func5, DAGOperand InTyRs1, string opcodestr> : RVInstR<{0b00, func5}, 0b011, OPC_CUSTOM_0, (outs GPRNoX0:$rd), (ins InTyRs1:$rs1, GPRNoX0:$rs2), opcodestr, "$rd, $rs1, $rs2">; +let hasSideEffects = 0, mayLoad = 0, mayStor

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread via cfe-commits
@@ -57,6 +57,86 @@ class QCIRVInstRR func5, DAGOperand InTyRs1, string opcodestr> : RVInstR<{0b00, func5}, 0b011, OPC_CUSTOM_0, (outs GPRNoX0:$rd), (ins InTyRs1:$rs1, GPRNoX0:$rs2), opcodestr, "$rd, $rs1, $rs2">; +let hasSideEffects = 0, mayLoad = 0, mayStor

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread via cfe-commits
@@ -57,6 +57,86 @@ class QCIRVInstRR func5, DAGOperand InTyRs1, string opcodestr> : RVInstR<{0b00, func5}, 0b011, OPC_CUSTOM_0, (outs GPRNoX0:$rd), (ins InTyRs1:$rs1, GPRNoX0:$rs2), opcodestr, "$rd, $rs1, $rs2">; +let hasSideEffects = 0, mayLoad = 0, mayStor

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread via cfe-commits
@@ -57,6 +57,86 @@ class QCIRVInstRR func5, DAGOperand InTyRs1, string opcodestr> : RVInstR<{0b00, func5}, 0b011, OPC_CUSTOM_0, (outs GPRNoX0:$rd), (ins InTyRs1:$rs1, GPRNoX0:$rs2), opcodestr, "$rd, $rs1, $rs2">; +let hasSideEffects = 0, mayLoad = 0, mayStor

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extension (PR #119504)

2024-12-11 Thread via cfe-commits
https://github.com/hchandel updated https://github.com/llvm/llvm-project/pull/119504 >From 7607846de77f81403f323b42b7008d977c037645 Mon Sep 17 00:00:00 2001 From: Harsh Chandel Date: Mon, 9 Dec 2024 18:37:33 +0530 Subject: [PATCH 1/2] [RISCV] Add Qualcomm uC Xqcics(Conditional Select) extensio

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119654)

2024-12-11 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/119654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 02dd73a - [clang] Migrate away from PointerUnion::{is,get} (NFC) (#119654)

2024-12-11 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-11T21:13:13-08:00 New Revision: 02dd73a5d585af9a950baa38855305fdb17c76af URL: https://github.com/llvm/llvm-project/commit/02dd73a5d585af9a950baa38855305fdb17c76af DIFF: https://github.com/llvm/llvm-project/commit/02dd73a5d585af9a950baa38855305fdb17c76af.diff L

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119654)

2024-12-11 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/119654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119654)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::{is,get} have been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast I'm n

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119654)

2024-12-11 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/119654 Note that PointerUnion::{is,get} have been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast I'm not touching

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-11 Thread via cfe-commits
dyung wrote: > > No real updates here, but our internal builder did catch up to this commit > > and we are seeing the same (and a lot more) failures when this commit is > > merged into our downstream codebase. I was kind of hoping that it would > > pass so that it might indicate that the probl

[clang] [llvm] [LLVM][rtsan] Add module pass to initialize rtsan (PR #118989)

2024-12-11 Thread Vitaly Buka via cfe-commits
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline( FPM.addPass(BoundsCheckingPass()); }); -if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) +if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) { PB.registerScalarOp

[clang] [llvm] [LLVM][rtsan] Add module pass to initialize rtsan (PR #118989)

2024-12-11 Thread Vitaly Buka via cfe-commits
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline( FPM.addPass(BoundsCheckingPass()); }); -if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) +if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) { vitalybuk

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-11 Thread via cfe-commits
hitmoon wrote: clang tag added https://github.com/llvm/llvm-project/pull/119191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

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

[clang] [LoongArch] Add FreeBSD targets (PR #119191)

2024-12-11 Thread via cfe-commits
https://github.com/hitmoon updated https://github.com/llvm/llvm-project/pull/119191 >From e59a6e3ee6d0c3e09e33a7b37e65fe8de21c156e Mon Sep 17 00:00:00 2001 From: xiaoqiang zhao Date: Mon, 9 Dec 2024 14:26:37 +0800 Subject: [PATCH] [clang][LoongArch] Add FreeBSD targets Co-authored-by: yu shan

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc updated https://github.com/llvm/llvm-project/pull/119638 >From 333befd054fb5da81f1349c8eba7255aa4e3ec12 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 11 Dec 2024 15:59:35 -0800 Subject: [PATCH 1/2] Revert "Switch builtin strings to use string tables (#

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2024-12-11 Thread via cfe-commits
github-actions[bot] wrote: @jijjijj 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] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2024-12-11 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9f1e9f6 - [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (#118537)

2024-12-11 Thread via cfe-commits
Author: jijjijj Date: 2024-12-12T09:38:47+08:00 New Revision: 9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356 URL: https://github.com/llvm/llvm-project/commit/9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356 DIFF: https://github.com/llvm/llvm-project/commit/9f1e9f682d0a85ea013ccbce6a3ec4ac1be83356.diff LOG:

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2024-12-11 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I'll merge this directly since it looks like you don't have commit access. https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2024-12-11 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM then https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f33e236 - [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (#119473)

2024-12-11 Thread via cfe-commits
Author: Qiongsi Wu Date: 2024-12-11T17:33:25-08:00 New Revision: f33e2369051e13a54a05dd361d89c1ba77f4f593 URL: https://github.com/llvm/llvm-project/commit/f33e2369051e13a54a05dd361d89c1ba77f4f593 DIFF: https://github.com/llvm/llvm-project/commit/f33e2369051e13a54a05dd361d89c1ba77f4f593.diff LO

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/119473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Darwin] Centralize framework search paths for headers & libraries. (PR #118543)

2024-12-11 Thread Cyndy Ishida via cfe-commits
@@ -339,13 +340,11 @@ void InitHeaderSearch::AddDefaultIncludePaths( if (triple.isOSDarwin()) { cyndyishida wrote: I looked into this a bit more. IMO the only way to move all this code to the driver is to either 1. changing search path order between Framew

[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)

2024-12-11 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Oh, yeah, agreed that known-bits data is marginal ... but a big pile of > marginal improvements stacks up. The main benefit would be is if we can reduce 64-bit indexing calculations down to 32-bit. Not sure if that's implemented anywhere https://github.com/llvm/llvm-project/p

[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)

2024-12-11 Thread Krzysztof Drewniak via cfe-commits
krzysz00 wrote: Oh, yeah, agreed that known-bits data is marginal ... but a big pile of marginal improvements stacks up. https://github.com/llvm/llvm-project/pull/79035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] Add concepts for raw buffers (PR #119643)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Joshua Batista (bob80905) Changes This PR adds concept validation to raw buffers like Structured buffers, in the same way that it was done for typed buffers in https://github.com/llvm/llvm-project/pull/116413. This PR should also be respo

[clang] Add concepts for raw buffers (PR #119643)

2024-12-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 created https://github.com/llvm/llvm-project/pull/119643 This PR adds concept validation to raw buffers like Structured buffers, in the same way that it was done for typed buffers in https://github.com/llvm/llvm-project/pull/116413. This PR should also be responsib

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-11 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/119543 >From 952b30598c7583f3f5508e5fda59d91d64d5d163 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Wed, 11 Dec 2024 12:11:31 +0100 Subject: [PATCH 1/2] [analyzer] Split alpha core Identical Expression tests

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/119638 Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bots and at least s

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

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

[clang] [clang-format] extend clang-format directive with options to prevent formatting for one line (PR #118566)

2024-12-11 Thread Brandon Staab via cfe-commits
BrandonStaab wrote: > I struggle with changes that encourage people to not be fully > clang-formatted, I would prefer to ask why we need this feature, can we have > some examples of where this would be used? This makes it so only one line isn't formatted instead of the current solution which

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 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 dd647e3e608ed0b2bac7c588d5859b80ef4a5976 333befd054fb5da81f1349c8eba7255aa4e3ec12 --e

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-11 Thread Chandler Carruth via cfe-commits
chandlerc wrote: Thanks for the careful review, merging! (And starting on the follow-ups!) https://github.com/llvm/llvm-project/pull/119198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-11 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc edited https://github.com/llvm/llvm-project/pull/119198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-11 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-tools-extra` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/172

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-m68k Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bots

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-sparc Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bots

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bo

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bo

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bots and at

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-systemz @llvm/pr-subscribers-backend-msp430 Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't

[clang] Revert "Switch builtin strings to use string tables" (PR #119638)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Chandler Carruth (chandlerc) Changes Reverts llvm/llvm-project#118734 There is currently a specific (unreleased?) version of MSVC and builder that are crashing / failing on this code. We don't know why as all the other build bot

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-11 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc closed https://github.com/llvm/llvm-project/pull/119198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-11 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > No real updates here, but our internal builder did catch up to this commit > and we are seeing the same (and a lot more) failures when this commit is > merged into our downstream codebase. I was kind of hoping that it would pass > so that it might indicate that the problem m

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-11 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: C standard rules for va_arg: "[...] if *type* is not compatible with the type of the actual next argument [...], the behavior is undefined [...]". A struct is never compatible with an array, so yes , it's undefined. (See 6.2.7 for what constitutes a "compatible type".)

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-11 Thread Garvit Gupta via cfe-commits
@@ -78,8 +86,9 @@ class LLVM_LIBRARY_VISIBILITY BareMetal : public ToolChain { using OrderedMultilibs = llvm::iterator_range::const_reverse_iterator>; OrderedMultilibs getOrderedMultilibs() const; - + bool UseLD; quic-garvgupt wrote: please see my

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-11 Thread Garvit Gupta via cfe-commits
@@ -110,20 +111,95 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +// GCC sysroot here means form sysroot from either --gcc-install-dir, or from +// --gcc-toolchain or if the toolchain is installed alongside

[clang] [clang][Driver] Allow `-fstack-clash-protection` for Fuchsia targets (PR #119633)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes Fuchsia uses guard pages for the stack, similar to Linux and other targets, which are required for stack-clash-protection. This patch adds Fuchsia to the list of allowed targets. --- Full diff: https://github

[clang] [clang][Driver] Allow `-fstack-clash-protection` for Fuchsia targets (PR #119633)

2024-12-11 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119633 Fuchsia uses guard pages for the stack, similar to Linux and other targets, which are required for stack-clash-protection. This patch adds Fuchsia to the list of allowed targets. >From 68748b066f7c7bddc5997754

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-11 Thread Garvit Gupta via cfe-commits
@@ -6521,11 +6521,7 @@ const ToolChain &Driver::getToolChain(const ArgList &Args, break; case llvm::Triple::riscv32: case llvm::Triple::riscv64: -if (toolchains::RISCVToolChain::hasGCCToolchain(*this, Args)) - TC = - std::make_

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-11 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/118809 >From b58f9dd197c78b1e39676022a421ca0e6d5552a5 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Wed, 13 Nov 2024 02:45:51 -0800 Subject: [PATCH] [WIP] Merging RISCVToolChain and BareMetal toolchains Curr

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,104 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,104 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,104 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [HLSL] Move `_init_resource_bindings` to entry point functions (PR #119311)

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

[clang] [HLSL] Move `_init_resource_bindings` to entry point functions (PR #119311)

2024-12-11 Thread Helena Kotas via cfe-commits
hekota wrote: You are correct @llvm-beanz, this change is not needed at all. Sorry for wasting your time! https://github.com/llvm/llvm-project/pull/119311 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-12-11 Thread Ramon de C Valle via cfe-commits
rcvalle wrote: I haven't received a reply for my concerns I commented at https://github.com/llvm/llvm-project/pull/117121#issuecomment-2502346476 and https://github.com/llvm/llvm-project/pull/117121#issuecomment-2516251353, and they still remain for the alternative proposal. I'd recommend wor

[clang-tools-extra] [clang-tidy]detecting conversion directly by `make_unique` and `make_shared` in bugprone-optional-value-conversion (PR #119371)

2024-12-11 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-tools-extra` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11188

[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)

2024-12-11 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/118809 >From 569feb86c654be044781aa5968907a72ea882e88 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Wed, 13 Nov 2024 02:45:51 -0800 Subject: [PATCH] [WIP] Merging RISCVToolChain and BareMetal toolchains Curr

[clang] [clang] Fix crashes when passing VLA to va_arg (PR #119563)

2024-12-11 Thread Robear Selwans via cfe-commits
mo7sen wrote: > While you're here, maybe look at emitting an undefined-behavior warning for > this construct? A VLA is never compatible with a function argument: if you > try to write an array in an function type, it gets promoted to a pointer. So > this construct is guaranteed to produce brok

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu ready_for_review https://github.com/llvm/llvm-project/pull/119473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Qiongsi Wu via cfe-commits
@@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS OrcShared OrcTargetProcess Support + Core qiongsiwu wrote: Code is revised to avoid adding the Core dependency. https://github.com/llvm/llvm-project/pull/119473 ___ c

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/119473 >From 06ae1ba1222f09e35ed428bcd6da91438b15e016 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Tue, 10 Dec 2024 15:42:46 -0800 Subject: [PATCH 1/3] Fixing issues causing build break when -DLLVM_ENABLE_MODULES

[clang-tools-extra] [clang-tidy]detecting conversion directly by `make_unique` and `make_shared` in bugprone-optional-value-conversion (PR #119371)

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

[clang-tools-extra] ba373a2 - [clang-tidy]detecting conversion directly by `make_unique` and `make_shared` in bugprone-optional-value-conversion (#119371)

2024-12-11 Thread via cfe-commits
Author: Congcong Cai Date: 2024-12-12T06:55:29+08:00 New Revision: ba373a222fe6f65c45a05e9e1114c92580953b79 URL: https://github.com/llvm/llvm-project/commit/ba373a222fe6f65c45a05e9e1114c92580953b79 DIFF: https://github.com/llvm/llvm-project/commit/ba373a222fe6f65c45a05e9e1114c92580953b79.diff

[clang] [flang] [flang][Driver] Don't require -fno-integrated-as when using -save-temps (PR #119624)

2024-12-11 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space approved this pull request. About time :) Thank you, LGTM! https://github.com/llvm/llvm-project/pull/119624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [flang] [flang][Driver] Don't require -fno-integrated-as when using -save-temps (PR #119624)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Tarun Prabhu (tarunprabhu) Changes Currently, --save-temps requires -fno-integrated-as since flang does not have `fc1as` i.e. a driver for an integrated assembler. This simply checks if the driver is in flang-mode and forces useInt

[clang] [flang] [flang][Driver] Don't require -fno-integrated-as when using -save-temps (PR #119624)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Tarun Prabhu (tarunprabhu) Changes Currently, --save-temps requires -fno-integrated-as since flang does not have `fc1as` i.e. a driver for an integrated assembler. This simply checks if the driver is in flang-mode and forces useInt

[clang] [flang] [flang][Driver] Don't require -fno-integrated-as when using -save-temps (PR #119624)

2024-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tarun Prabhu (tarunprabhu) Changes Currently, --save-temps requires -fno-integrated-as since flang does not have `fc1as` i.e. a driver for an integrated assembler. This simply checks if the driver is in flang-mode and forces useIntegrated

[clang] [flang] [flang][Driver] Don't require -fno-integrated-as when using -save-temps (PR #119624)

2024-12-11 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu created https://github.com/llvm/llvm-project/pull/119624 Currently, --save-temps requires -fno-integrated-as since flang does not have `fc1as` i.e. a driver for an integrated assembler. This simply checks if the driver is in flang-mode and forces useIntegratedAs(

[clang] [llvm] [clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (PR #119473)

2024-12-11 Thread Qiongsi Wu via cfe-commits
@@ -14,8 +14,6 @@ #ifndef CLANG_SUPPORT_COMPILER_H #define CLANG_SUPPORT_COMPILER_H -#include "llvm/Support/Compiler.h" qiongsiwu wrote: Thanks! Fixed! https://github.com/llvm/llvm-project/pull/119473 ___ cfe-commi

[clang] ee090cb - [OpenACC] Treat 'delete' as a valid clause during parsing in C++ mode

2024-12-11 Thread via cfe-commits
Author: erichkeane Date: 2024-12-11T14:19:20-08:00 New Revision: ee090cb83b523e4c8c888ded8ca1a70334ba65fa URL: https://github.com/llvm/llvm-project/commit/ee090cb83b523e4c8c888ded8ca1a70334ba65fa DIFF: https://github.com/llvm/llvm-project/commit/ee090cb83b523e4c8c888ded8ca1a70334ba65fa.diff LO

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-11 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/118074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Adding the amdgpu-num-work-groups function attribute (PR #79035)

2024-12-11 Thread Matt Arsenault via cfe-commits
arsenm wrote: > If that’s the case, is 1 the best-case scenario? Yes > @krzysz00 Do you suggest that the actual value doesn't matter? Like, 128 is > not better or worse than 256. This enables known bits optimizations. Less is always better, but the benefits can be marginal. https://githu

[clang] [llvm] [AArch64][FMV] Add missing feature dependencies and detect at runtime. (PR #119231)

2024-12-11 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea closed https://github.com/llvm/llvm-project/pull/119231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6f013db - [AArch64][FMV] Add missing feature dependencies and detect at runtime. (#119231)

2024-12-11 Thread via cfe-commits
Author: Alexandros Lamprineas Date: 2024-12-11T22:11:32Z New Revision: 6f013dbced67948119fe9ca71336f0284975ba4f URL: https://github.com/llvm/llvm-project/commit/6f013dbced67948119fe9ca71336f0284975ba4f DIFF: https://github.com/llvm/llvm-project/commit/6f013dbced67948119fe9ca71336f0284975ba4f.di

  1   2   3   >