[clang] [Clang] fix missing source location for ':' error in macro-expanded case statements (PR #143460)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #143216 --- This patch addresses the issue where diagnostics for `case` statements originating from macro expansions lacked source location information when the colon `:` was missing. --- Full

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-09 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/142483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-09 Thread Erick Velez via cfe-commits
@@ -0,0 +1,193 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --output=%t --format=json --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.json + +struct Foo; + +// This is a nice class. +// It has some nice methods and fields. +// @brief This is

[clang] [llvm][RISCV] Handle required features of intrinsic correctly (PR #143062)

2025-06-09 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. https://github.com/llvm/llvm-project/pull/143062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Non-polymorphic trivially relocatable types can have [[trivial_abi]] (PR #143111)

2025-06-09 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/143111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-09 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/142313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Utkarsh Saxena (usx95) Changes This patch introduces the initial implementation of the intra-procedural, flow-sensitive lifetime analysis for Clang, as proposed in the recent RFC: https://discourse.llvm.org/t/rfc-intra-procedural

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes This patch introduces the initial implementation of the intra-procedural, flow-sensitive lifetime analysis for Clang, as proposed in the recent RFC: https://discourse.llvm.org/t/rfc-intra-procedural-lifetime

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-09 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > You should always have a summary, for this one it could have simply been > "replace std::count with llvm::count in Sema::CheckBaseSpecifier" @shafik Ack. https://github.com/llvm/llvm-project/pull/143228 ___ cfe-commits mailing

[clang] d56ce31 - [Clang] Non-polymorphic trivially relocatable types can have [[trivial_abi]] (#143111)

2025-06-09 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-06-10T07:30:06+02:00 New Revision: d56ce312d0c2e5ae74476977a8952dbb3ba4c513 URL: https://github.com/llvm/llvm-project/commit/d56ce312d0c2e5ae74476977a8952dbb3ba4c513 DIFF: https://github.com/llvm/llvm-project/commit/d56ce312d0c2e5ae74476977a8952dbb3ba4c513.diff

[clang] [clang][NFC] Remove dead PassTypeToPlacementDelete field (PR #143448)

2025-06-09 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. Thank you for the fix! https://github.com/llvm/llvm-project/pull/143448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Cleanup (PR #143477)

2025-06-09 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/143477 None >From 7f745330975e0e360e9a42b9d57c3e3afa3680f8 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sat, 7 Jun 2025 20:59:53 -0700 Subject: [PATCH 1/2] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp

[clang] Cleanup (PR #143477)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143477.diff 1 Files Affected: - (modified) clang/tools/clang-format/ClangFormat.cpp (+23-28) ``diff diff --git a/clang/tools/clang-for

[clang] Cleanup (PR #143477)

2025-06-09 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/143477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp" (PR #143477)

2025-06-09 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/143477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

2025-06-09 Thread Owen Pan via cfe-commits
@@ -1547,6 +1547,38 @@ struct FormatStyle { bool BeforeWhile; /// Indent the wrapped braces themselves. bool IndentBraces; +/// Indent nested wrapped lambda braces. owenca wrote: If we allow this new option, I want a separate NFC patch that upg

[clang] [AArch64] Change the coercion type of structs with pointer members. (PR #135064)

2025-06-09 Thread David Green via cfe-commits
https://github.com/davemgreen closed https://github.com/llvm/llvm-project/pull/135064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5f648c3 - [AArch64] Change the coercion type of structs with pointer members. (#135064)

2025-06-09 Thread via cfe-commits
Author: David Green Date: 2025-06-10T07:04:54+01:00 New Revision: 5f648c370edf5d71c471ffbabdaaa821ad05fb4b URL: https://github.com/llvm/llvm-project/commit/5f648c370edf5d71c471ffbabdaaa821ad05fb4b DIFF: https://github.com/llvm/llvm-project/commit/5f648c370edf5d71c471ffbabdaaa821ad05fb4b.diff L

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-09 Thread Martin Storsjö via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm < %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-pc-cygwin -emit-llvm < %s | FileCheck %s + +// copy ms_abi block only from ../ms_abi.c mstorsjo wrote: Yes, exactly https://github.c

[clang] [clang][NFC] Remove dead PassTypeToPlacementDelete field (PR #143448)

2025-06-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/143448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 487e757 - [clang][NFC] Remove dead PassTypeToPlacementDelete field (#143448)

2025-06-09 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-06-09T23:28:33-07:00 New Revision: 487e757f3e587aedc1668fb9cb18a8d464913605 URL: https://github.com/llvm/llvm-project/commit/487e757f3e587aedc1668fb9cb18a8d464913605 DIFF: https://github.com/llvm/llvm-project/commit/487e757f3e587aedc1668fb9cb18a8d464913605.diff L

[clang] [clang][NFC] Remove dead PassTypeToPlacementDelete field (PR #143448)

2025-06-09 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > Thank you for the fix! sorry for the delay, just completely forgot about it https://github.com/llvm/llvm-project/pull/143448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [WebKit checkers] Treat passing of a member variable which is capable of CheckedPtr as safe. (PR #142485)

2025-06-09 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/142485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Implement fix as suggested by FIXME (PR #143142)

2025-06-09 Thread Nikita Popov via cfe-commits
nikic wrote: Looks neutral: https://llvm-compile-time-tracker.com/compare.php?from=e4060d3beab3b525b49baaa15484e3c595740a2f&to=aace43c7cc60347e1853e55ee7c033a19a9a65ea&stat=instructions:u max-rss seems to have an improvement on tramp3d-v4 in multiple configurations, so that's probably not nois

[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-06-09 Thread zhijian lin via cfe-commits
diggerlin wrote: @MaskRay, Just checking in to see if you have any further comments on the patch. If not, I’d like to go ahead and proceed with landing it. Thanks! https://github.com/llvm/llvm-project/pull/137670 ___ cfe-commits mailing list cfe-commi

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-09 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/142409 >From c0cc666ab8864b665539a857dbdae6c592266227 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Mon, 2 Jun 2025 10:21:22 +0100 Subject: [PATCH 1/7] [Frontend][PCH]-Add support for ignoring PCH options (-ignore

[clang] [Clang] Implement CWG2496 (PR #142975)

2025-06-09 Thread Aaron Ballman via cfe-commits
@@ -215,3 +215,32 @@ void (*q)() throw() = S(); // since-cxx17-error@-1 {{no viable conversion from 'S' to 'void (*)() throw()'}} // since-cxx17-note@#cwg2486-conv {{candidate function}} } // namespace cwg2486 + + +namespace cwg2496 { // cwg2496: 21 +#if __cplusplus >= 20110

[clang] [llvm] [mlir] [DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag (PR #143207)

2025-06-09 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse updated https://github.com/llvm/llvm-project/pull/143207 >From b0cf784e2bf0b7c42f5365907dc94353676ae8fc Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Thu, 15 May 2025 14:10:58 +0100 Subject: [PATCH 1/6] [DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag

[clang] [clang][driver] Suppress gnu-line-marker when saving temps (PR #134621)

2025-06-09 Thread via cfe-commits
macurtis-amd wrote: @MaskRay I plan on merging this tomorrow morning unless you have any objections. https://github.com/llvm/llvm-project/pull/134621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [Clang] Added explanation why a is constructible evaluated to false. (PR #143309)

2025-06-09 Thread Shamshura Egor via cfe-commits
@@ -2159,6 +2167,26 @@ static void DiagnoseNonTriviallyCopyableReason(Sema &SemaRef, } } +static void DiagnoseNonConstructibleReason(Sema &SemaRef, SourceLocation Loc, + QualType T) { + SemaRef.Diag(Loc, diag::note_unsatisfied_trai

[clang] 4ed0ff8 - [CIR] Add support for using enum constants (#143214)

2025-06-09 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-06-09T09:19:31-07:00 New Revision: 4ed0ff8756cb1ed0f67cf5415a60cfbce2c6164b URL: https://github.com/llvm/llvm-project/commit/4ed0ff8756cb1ed0f67cf5415a60cfbce2c6164b DIFF: https://github.com/llvm/llvm-project/commit/4ed0ff8756cb1ed0f67cf5415a60cfbce2c6164b.diff L

[clang] [Clang] Added explanation why a is constructible evaluated to false. (PR #143309)

2025-06-09 Thread Shamshura Egor via cfe-commits
https://github.com/egorshamshura updated https://github.com/llvm/llvm-project/pull/143309 >From ed1f379144736e0c645dca87b0111f685bdd7e53 Mon Sep 17 00:00:00 2001 From: Shamshura Egor Date: Sun, 8 Jun 2025 13:09:54 + Subject: [PATCH 1/2] Fixed problem when std::is_xxx_v<> tries to get Argume

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/143214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/143214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -229,6 +230,36 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { cir::IntType getUInt32Ty() { return typeCache.UInt32Ty; } cir::IntType getUInt64Ty() { return typeCache.UInt64Ty; } + cir::ConstantOp getConstInt(mlir::Location loc, llvm::APSInt intVal); + + cir

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -229,6 +230,36 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { cir::IntType getUInt32Ty() { return typeCache.UInt32Ty; } cir::IntType getUInt64Ty() { return typeCache.UInt64Ty; } + cir::ConstantOp getConstInt(mlir::Location loc, llvm::APSInt intVal); + + cir

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -0,0 +1,55 @@ +//===--===// +// +// 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: Apac

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -38,3 +38,25 @@ mlir::Value CIRGenBuilderTy::getArrayElement(mlir::Location arrayLocBegin, const mlir::Type flatPtrTy = basePtr.getType(); return create(arrayLocEnd, flatPtrTy, basePtr, idx); } + +cir::ConstantOp CIRGenBuilderTy::getConstInt(mlir::Location loc, +

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -201,6 +201,19 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { cir::IntType getUInt32Ty() { return typeCache.UInt32Ty; } cir::IntType getUInt64Ty() { return typeCache.UInt64Ty; } + cir::ConstantOp getConstInt(mlir::Location loc, llvm::APSInt intVal); + + cir

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Erich Keane via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fcla

[clang] [Clang] Implement CWG2496 (PR #142975)

2025-06-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/142975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement CWG2496 (PR #142975)

2025-06-09 Thread Aaron Ballman via cfe-commits
@@ -215,3 +215,32 @@ void (*q)() throw() = S(); // since-cxx17-error@-1 {{no viable conversion from 'S' to 'void (*)() throw()'}} // since-cxx17-note@#cwg2486-conv {{candidate function}} } // namespace cwg2486 + + +namespace cwg2496 { // cwg2496: 21 +#if __cplusplus >= 20110

[clang] [llvm] [SystemZ][z/OS] Refactor AutoConvert.h to remove large MVS guard (PR #143174)

2025-06-09 Thread Sean Perry via cfe-commits
@@ -5199,13 +5199,13 @@ static void flush_atexit(void) { int main(int argc, const char **argv) { thread_info client_data; -#ifdef __MVS__ + // On z/OS we need to enable auto conversion if (enablezOSAutoConversion(fileno(stdout)) == -1) perry-ca wrote: I

[clang] [Clang] Added explanation why a is constructible evaluated to false. (PR #143309)

2025-06-09 Thread Shamshura Egor via cfe-commits
https://github.com/egorshamshura edited https://github.com/llvm/llvm-project/pull/143309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Added explanation why a is constructible evaluated to false. (PR #143309)

2025-06-09 Thread Shamshura Egor via cfe-commits
https://github.com/egorshamshura edited https://github.com/llvm/llvm-project/pull/143309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Refactor AutoConvert.h to remove large MVS guard (PR #143174)

2025-06-09 Thread Sean Perry via cfe-commits
@@ -11,30 +11,37 @@ // //===--===// -#ifdef __MVS__ perry-ca wrote: See my previous comment. If we write the interface in AutoConvert.h so the functions are inline functions that do nothin

[clang] [llvm] [SystemZ][z/OS] Refactor AutoConvert.h to remove large MVS guard (PR #143174)

2025-06-09 Thread Sean Perry via cfe-commits
@@ -25,6 +26,16 @@ #define CCSID_UTF_8 1208 #define CCSID_ISO8859_1 819 +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif perry-ca wrote: I'd s

[clang] [llvm] [SystemZ][z/OS] Refactor AutoConvert.h to remove large MVS guard (PR #143174)

2025-06-09 Thread Sean Perry via cfe-commits
@@ -516,7 +514,7 @@ getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, // off the stream. // Note: This only works with the assumption of reading a full file (i.e, // Offset == 0 and MapSize == FileSize). Reading a file slice does not work. -

[clang] [Clang] Clarify the `[[trivial_abi]]` documentation. (PR #143243)

2025-06-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/12538 Here is the re

[clang] [alpha.webkit.NoUnretainedMemberChecker] Recognize NS_REQUIRES_PROPERTY_DEFINITIONS (PR #141293)

2025-06-09 Thread Ryosuke Niwa via cfe-commits
@@ -142,6 +144,8 @@ class RawPtrRefMemberChecker if (auto *ID = dyn_cast(CD)) { for (auto *Ivar : ID->ivars()) visitIvarDecl(CD, Ivar); + for (auto *PropImpl : ID->property_impls()) +visitPropImpl(CD, PropImpl); rniwa wrote: oh,

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-09 Thread Andy Kaylor via cfe-commits
@@ -1579,6 +1579,109 @@ OpFoldResult cir::VecExtractOp::fold(FoldAdaptor adaptor) { return elements[index]; } +//===--===// +// VecCmpOp +//===---

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-09 Thread Andy Kaylor via cfe-commits
@@ -142,7 +142,7 @@ void CIRCanonicalizePass::runOnOperation() { // Many operations are here to perform a manual `fold` in // applyOpPatternsGreedily. if (isa(op)) +VecExtractOp, VecShuffleDynamicOp, VecTernaryOp, VecCmpOp>(op)) andykayl

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-09 Thread Andy Kaylor via cfe-commits
@@ -1579,6 +1579,109 @@ OpFoldResult cir::VecExtractOp::fold(FoldAdaptor adaptor) { return elements[index]; } +//===--===// +// VecCmpOp +//===---

[clang] [NFC][HLSL] Move Sema work from `ParseMicrosoftRootSignatureAttributeArgs` (PR #143184)

2025-06-09 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/143184 >From f8b165eecd613a4e9dc1576f5087e37ec74034e5 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 6 Jun 2025 17:37:12 + Subject: [PATCH 1/5] define ActOnStartRootSignatureDecl --- clang/include/clang/S

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-06-09 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt edited https://github.com/llvm/llvm-project/pull/121829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #121829)

2025-06-09 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt edited https://github.com/llvm/llvm-project/pull/121829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Cameron McInally via cfe-commits
https://github.com/mcinally created https://github.com/llvm/llvm-project/pull/143418 This patch adds support for the -mrecip command line option. The parsing of this options is equivalent to Clang's and it is implemented by setting the "reciprocal-estimates" function attribute. Also move the

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Cameron McInally (mcinally) Changes This patch adds support for the -mrecip command line option. The parsing of this options is equivalent to Clang's and it is implemented by setting the "reciprocal-estimates" function attribute. Also mov

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Cameron McInally (mcinally) Changes This patch adds support for the -mrecip command line option. The parsing of this options is equivalent to Clang's and it is implemented by setting the "reciprocal-estimates" function attribute. Also mo

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Cameron McInally (mcinally) Changes This patch adds support for the -mrecip command line option. The parsing of this options is equivalent to Clang's and it is implemented by setting the "reciprocal-estimates" function attribute.

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From a51b184e4971c0e935bd014730791765c0c3fd61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-09 Thread via cfe-commits
SharonXSharon wrote: @snehasish thanks for the detailed reply! I will take a closer week through the week and get back to you. Btw a quick question, our sister team is actually also interested in supporting memprof for Android platform, i.e. getting the access profile of the Android native

[clang] Remove delayed typo expressions (PR #143423)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This removes the delayed typo correction functionality from Clang (regular typo correction still remains) due to fragility of the solution. An RFC was posted here: https://discourse.llvm.org/t/rfc-rem

[clang] Remove delayed typo expressions (PR #143423)

2025-06-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Posting the PR for review, but also because I'd like to see what precommit CI thinks of the changes on platforms other than the one I'm on (Windows). https://github.com/llvm/llvm-project/pull/143423 ___ cfe-commits mailing list cfe

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-09 Thread via cfe-commits
https://github.com/dingxiangfei2009 created https://github.com/llvm/llvm-project/pull/143424 [Discourse link](https://discourse.llvm.org/t/a-small-proposal-for-extraction-of-inline-assembly-block-information/86658) We strive for exposing such information using existing stable ABIs. In doing s

[clang] [Clang] Implement CWG2496 (PR #142975)

2025-06-09 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/142975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c800979 - [Clang] Implement CWG2496 (#142975)

2025-06-09 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-06-09T21:16:57+02:00 New Revision: c8009797d388a89346e2116de08e9c0be17e0c2d URL: https://github.com/llvm/llvm-project/commit/c8009797d388a89346e2116de08e9c0be17e0c2d DIFF: https://github.com/llvm/llvm-project/commit/c8009797d388a89346e2116de08e9c0be17e0c2d.diff

[clang] [Clang] Implement CWG2496 (PR #142975)

2025-06-09 Thread Corentin Jabot via cfe-commits
@@ -215,3 +215,32 @@ void (*q)() throw() = S(); // since-cxx17-error@-1 {{no viable conversion from 'S' to 'void (*)() throw()'}} // since-cxx17-note@#cwg2486-conv {{candidate function}} } // namespace cwg2486 + + +namespace cwg2496 { // cwg2496: 21 +#if __cplusplus >= 20110

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -1549,6 +1549,9 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) { if (auto tuneCpu = func.getTuneCpu()) llvmFunc->addFnAttr("tune-cpu", *tuneCpu); + if (auto reciprocalEstimates = func.getReciprocalEstimates()) tarunprabhu wr

[clang] e7739eb - [Clang] [Cygwin] wint_t is unsigned int (#143117)

2025-06-09 Thread via cfe-commits
Author: Tomohiro Kashiwada Date: 2025-06-09T22:19:06+03:00 New Revision: e7739eb6ccb775a2cfc2f68c3d2356ceeabdf94a URL: https://github.com/llvm/llvm-project/commit/e7739eb6ccb775a2cfc2f68c3d2356ceeabdf94a DIFF: https://github.com/llvm/llvm-project/commit/e7739eb6ccb775a2cfc2f68c3d2356ceeabdf94a.

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Cameron McInally via cfe-commits
@@ -1549,6 +1549,9 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) { if (auto tuneCpu = func.getTuneCpu()) llvmFunc->addFnAttr("tune-cpu", *tuneCpu); + if (auto reciprocalEstimates = func.getReciprocalEstimates()) mcinally wrote

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-06-09 Thread Bill Wendling via cfe-commits
bwendling wrote: @AaronBallman I know of no other CFI attribute requests. (But keep in mind that I'm not the CFI expert I play on TV.) https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,27 @@ +! Test that -mrecip[=] works as expected. + tarunprabhu wrote: Since you have added both `FlangOption` and `FC1Option` in `Options.td`, could we test that the option is recognized by the main driver as well, not just `-fc1`? https://github.co

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s + +; CHECK-LABEL: llvm.func @reciprocal_estimates() +; CHECK-SAME: reciprocal_estimates = "all" +define void @reciprocal_estimates() #0 { + ret void +} + +attributes #0 = { "reciprocal-estimat

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Cameron McInally via cfe-commits
@@ -2636,6 +2636,11 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func, funcOp.setTargetFeaturesAttr( LLVM::TargetFeaturesAttr::get(context, attr.getValueAsString())); + if (llvm::Attribute attr = func->getFnAttribute("reciprocal-estimates"); +

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-09 Thread via cfe-commits
sivadeilra wrote: Ok, I've redone the code that modifies GlobalVariable references. It is more complicated, but that was necessary to handle constant expressions. There are detailed comments in the code, so I'll let those comments speak for themselves. Fixed a bug in how the `__ref_*` variab

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Cameron McInally via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s + +; CHECK-LABEL: llvm.func @reciprocal_estimates() +; CHECK-SAME: reciprocal_estimates = "all" +define void @reciprocal_estimates() #0 { + ret void +} + +attributes #0 = { "reciprocal-estimat

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -2636,6 +2636,11 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func, funcOp.setTargetFeaturesAttr( LLVM::TargetFeaturesAttr::get(context, attr.getValueAsString())); + if (llvm::Attribute attr = func->getFnAttribute("reciprocal-estimates"); +

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -56,6 +56,9 @@ class CodeGenOptions : public CodeGenOptionsBase { // The prefered vector width, if requested by -mprefer-vector-width. std::string PreferVectorWidth; + // List of reciprocal estimate sub-options. tarunprabhu wrote: Should this be a doc

[clang] [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #121829)

2025-06-09 Thread Garvit Gupta via cfe-commits
quic-garvgupt wrote: @smithp35 , could you pls parallely also review PR - https://github.com/llvm/llvm-project/pull/121831? I added you as reviewer there as well in the beginning and will appreciate your comments/feedback. Thanks! https://github.com/llvm/llvm-project/pull/121829 __

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: wieDasDing (dingxiangfei2009) Changes [Discourse link](https://discourse.llvm.org/t/a-small-proposal-for-extraction-of-inline-assembly-block-information/86658) We strive for exposing such information using existing stable ABIs. In doing

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

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

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-09 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/142559 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-09 Thread Eli Friedman via cfe-commits
@@ -843,8 +843,8 @@ static const ARMVectorIntrinsicInfo ARMSIMDIntrinsicMap [] = { NEONMAP1(vrndaq_v, arm_neon_vrinta, Add1ArgType), NEONMAP0(vrndi_v), NEONMAP0(vrndiq_v), - NEONMAP1(vrndm_v, arm_neon_vrintm, Add1ArgType), - NEONMAP1(vrndmq_v, arm_neon_vrintm, Add1ArgT

[clang] [AArch64] Change the coercion type of structs with pointer members. (PR #135064)

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

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Andy Kaylor via cfe-commits
@@ -1004,8 +1004,48 @@ static cir::FuncOp emitFunctionDeclPointer(CIRGenModule &cgm, GlobalDecl gd) { return cgm.getAddrOfFunction(gd); } -static CIRGenCallee emitDirectCallee(CIRGenModule &cgm, GlobalDecl gd) { - assert(!cir::MissingFeatures::opCallBuiltinFunc()); ---

[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

2025-06-09 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,55 @@ +//===--===// +// +// 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: Apac

[clang] 0e4b8b8 - [DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag (#143207)

2025-06-09 Thread via cfe-commits
Author: Jeremy Morse Date: 2025-06-09T19:36:34+01:00 New Revision: 0e4b8b8f81c97ef7374c321fd67a804dd17b4532 URL: https://github.com/llvm/llvm-project/commit/0e4b8b8f81c97ef7374c321fd67a804dd17b4532 DIFF: https://github.com/llvm/llvm-project/commit/0e4b8b8f81c97ef7374c321fd67a804dd17b4532.diff

[clang] Remove delayed typo expressions (PR #143423)

2025-06-09 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 HEAD~1 HEAD --extensions c,cpp,h,cl,cppm -- clang/test/Sema/c23-delayed-typo-correcti

[clang] [Cygwin] wint_t is unsigned int (PR #143117)

2025-06-09 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/143117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-06-09 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/138972 >From b12e2fbcb33b685db216a8ff063409c8595ee723 Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Thu, 3 Apr 2025 16:10:50 -0700 Subject: [PATCH 1/2] Windows hotpatching support --- clang/include/clang/Basic/

[clang] [lldb] [Clang][PowerPC] Add __dmr type and DMF integer calculation builtins (PR #142480)

2025-06-09 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo updated https://github.com/llvm/llvm-project/pull/142480 >From 5ef7a4ca7c2a838a6b2100968d5023e0797b2848 Mon Sep 17 00:00:00 2001 From: Maryam Moghadas Date: Mon, 2 Jun 2025 19:54:57 + Subject: [PATCH 1/2] [Clang][PowerPC] Add __dmr type and DMF integer calculati

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From c3a0990b0b72f9a0cdf4968f0b9197745dedb7ae Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/6] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] Remove delayed typo expressions (PR #143423)

2025-06-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I spent a while with these changes, and they all seem correct to me best I can tell. As most seems to just be deletions, its as good as I can figure. It would be cool if we could have done this more gradually, but I'm happy to commit-a

[clang] [clang][analyzer] Correct SMT Layer for _BitInt cases refutations (PR #143310)

2025-06-09 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/143310 >From 4065ca6418831aba48e1d3147f67fa5bd01b7438 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Sun, 8 Jun 2025 15:48:04 +0200 Subject: [PATCH] [analyzer] Correct SMT Layer for _BitInt cases refutations MI

[clang] [SPIRV] enable and copy device implementation for logb and scalbn builtins (PR #143431)

2025-06-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: choikwa (choikwa) Changes Copied from previous AMDGPU implementation #77de8a0 --- Patch is 69.37 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/143431.diff 3 Files Affected: - (modified) cla

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -2636,6 +2636,11 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func, funcOp.setTargetFeaturesAttr( LLVM::TargetFeaturesAttr::get(context, attr.getValueAsString())); + if (llvm::Attribute attr = func->getFnAttribute("reciprocal-estimates"); +

[clang] [flang] [mlir] [flang] Add support for -mrecip[=] (PR #143418)

2025-06-09 Thread Tarun Prabhu via cfe-commits
@@ -1549,6 +1549,9 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) { if (auto tuneCpu = func.getTuneCpu()) llvmFunc->addFnAttr("tune-cpu", *tuneCpu); + if (auto reciprocalEstimates = func.getReciprocalEstimates()) tarunprabhu wr

[clang] Revert "[HIP] use offload wrapper for non-device-only non-rdc (#132869)" (PR #143432)

2025-06-09 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/143432 This breaks a lot of new driver HIP compilation. We should probably revert this for now until we can make a fixed version. ```c++ static __global__ void print() { printf("%s\n", "foo"); } void b(); int main()

[clang] [SPIRV] enable and copy device implementation for logb and scalbn builtins (PR #143431)

2025-06-09 Thread via cfe-commits
https://github.com/choikwa edited https://github.com/llvm/llvm-project/pull/143431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >