[clang-tools-extra] [Clang-Tidy][NFC] Simplify check cppcoreguidelines-missing-std-forward (PR #138504)

2025-05-07 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Thank you for your review! I don't have commit access. Please help me merge this PR if it's ready. https://github.com/llvm/llvm-project/pull/138504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [C++20] Fix crash with invalid concept requirement (PR #138877)

2025-05-07 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/138877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Check for array size of initlists (PR #138673)

2025-05-07 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/138673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-05-07 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/134985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Regroup declarations in `Parser` (PR #138511)

2025-05-07 Thread Vlad Serebrennikov via cfe-commits
@@ -59,8 +59,8 @@ Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) PreferredType(&actions.getASTContext(), pp.isCodeCompletionEnabled()), Actions(actions), Diags(PP.getDiagnostics()), StackHandler(Diags), GreaterThanIsOperator(true), C

[clang] c3ce568 - [Clang][OpenCL][AMDGPU] OpenCL Kernel stubs should be assigned alwaysinline attribute (#137769)

2025-05-07 Thread via cfe-commits
Author: Aniket Lal Date: 2025-05-07T15:42:23+05:30 New Revision: c3ce5684a8b408220eed983d065edba0e6ed5016 URL: https://github.com/llvm/llvm-project/commit/c3ce5684a8b408220eed983d065edba0e6ed5016 DIFF: https://github.com/llvm/llvm-project/commit/c3ce5684a8b408220eed983d065edba0e6ed5016.diff LO

[clang] [C] Handle comma operator for implicit int->enum conversions (PR #138752)

2025-05-07 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/138752 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,s

[clang] [C] Handle comma operator for implicit int->enum conversions (PR #138752)

2025-05-07 Thread Aaron Ballman via cfe-commits
@@ -11647,6 +11647,29 @@ static void DiagnoseFloatingImpCast(Sema &S, Expr *E, QualType T, } } +static void CheckCommaOperand(Sema &S, Expr *E, QualType T, SourceLocation CC, + bool Check) { AaronBallman wrote: Renamed https:/

[clang] [StaticAnalyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread Balazs Benics via cfe-commits
@@ -0,0 +1,50 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=cplusplus -verify %s +// RUN: %clang_analyze_cc1 -analyzer-checker=cplusplus -verify %s -DEMPTY_CLASS +// UNSUPPORTED: system-windows +// expected-no-diagnostics + +// This test reproduces the issue that previously the

[clang] [StaticAnalyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread Balazs Benics via cfe-commits
@@ -715,7 +716,11 @@ void ExprEngine::handleConstructor(const Expr *E, // actually make things worse. Placement new makes this tricky as well, // since it's then possible to be initializing one part of a multi- // dimensional array. -State = Stat

[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)

2025-05-07 Thread Aaron Puchert via cfe-commits
@@ -0,0 +1,34 @@ +//===--- UseEnumClassCheck.cpp - clang-tidy ---===// +// +// 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: Apa

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-05-07 Thread Mallikarjuna Gouda via cfe-commits
@@ -0,0 +1,724 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc -mtriple=mips64 -mcpu=i6500 < %s | FileCheck %s --check-prefixes=ALL +; RUN: llc -mtriple=mips64 -mcpu=i6400 < %s | FileCheck %s --check-prefixes=ALL mgoud

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-05-07 Thread Mallikarjuna Gouda via cfe-commits
mgoudar wrote: I added RUN commands for i6500/i6400 msa test to the existing test test/CodeGen/Mips/msa/arithmetic.ll and deleted new test that was added in the prev commit. https://github.com/llvm/llvm-project/pull/134985

[clang] [llvm] [MIPS] Add FeatureMSA to i6400 and i6500 cores (PR #134985)

2025-05-07 Thread Mallikarjuna Gouda via cfe-commits
https://github.com/mgoudar edited https://github.com/llvm/llvm-project/pull/134985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] show attribute namespace in diagnostics (PR #138519)

2025-05-07 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/138519 >From cbbca4d26b8d00eb103f110c2341fab2e4a2e40d Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Mon, 5 May 2025 15:30:14 +0300 Subject: [PATCH 1/2] [Clang] diagnose unknown attribute namespaces --- c

[clang] [clang][Driver] Handle ROCm installation layout of lib/llvm/bin/clang (PR #138928)

2025-05-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Also needs test https://github.com/llvm/llvm-project/pull/138928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] Fix crash with invalid concept requirement (PR #138877)

2025-05-07 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Does this also fix: https://github.com/llvm/llvm-project/issues/138823 https://github.com/llvm/llvm-project/pull/138877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)

2025-05-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/31001 Here is

[clang] [clang][modules][deps] Implicit modules are out of date when their explicit imports are (PR #138920)

2025-05-07 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 edited https://github.com/llvm/llvm-project/pull/138920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle CC attrs for UEFI (PR #138935)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -581,8 +581,11 @@ CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD, } FunctionType::ExtInfo einfo; - bool IsWindows = getContext().getTargetInfo().getTriple().isOSWindows(); - einfo = einfo.withCallingConv(getCallingConventionForDecl(MD, IsWindo

[clang] [Clang][CMake] use CMakePushCheckState (PR #138783)

2025-05-07 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/138783 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CMake] use CMakePushCheckState (PR #138783)

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

[clang] [clang] UEFI default ABI (PR #138364)

2025-05-07 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/138364 >From d0786948b07adb0318a19562c9a9ee72e893feef Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 2 May 2025 23:38:40 + Subject: [PATCH 1/2] [clang] UEFI default ABI Set MS ABI as default ABI for UEFI. ---

[clang] [CIR] Remove inferred context from pointer type getters (PR #138858)

2025-05-07 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/138858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2eb6545 - [CIR] Add cir-simplify pass (#138317)

2025-05-07 Thread via cfe-commits
Author: Morris Hafner Date: 2025-05-07T18:50:39+02:00 New Revision: 2eb6545b3ecb567a85d9114dab69a1455c7a032c URL: https://github.com/llvm/llvm-project/commit/2eb6545b3ecb567a85d9114dab69a1455c7a032c DIFF: https://github.com/llvm/llvm-project/commit/2eb6545b3ecb567a85d9114dab69a1455c7a032c.diff

[clang] [Clang] show attribute namespace in diagnostics (PR #138519)

2025-05-07 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/138519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CMake] use CMakePushCheckState (PR #138783)

2025-05-07 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/138783 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread Alexey Bataev via cfe-commits
@@ -4899,6 +4899,234 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF, } } +void CGOpenMPRuntime::emitPrivateReduction( +CodeGenFunction &CGF, SourceLocation Loc, ArrayRef Privates, +ArrayRef LHSExprs, ArrayRef RHSExprs, +ArrayRef Reduct

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread CHANDRA GHALE via cfe-commits
@@ -0,0 +1,538 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-globals all --include-generated-funcs --prefix-filecheck-ir-name _ --version 5 +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -fopenmp-version=60 -x c

[clang] [clang][NFC] Regroup declarations in `Parser` (PR #138511)

2025-05-07 Thread via cfe-commits
@@ -59,8 +59,8 @@ Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) PreferredType(&actions.getASTContext(), pp.isCodeCompletionEnabled()), Actions(actions), Diags(PP.getDiagnostics()), StackHandler(Diags), GreaterThanIsOperator(true), C

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread CHANDRA GHALE via cfe-commits
@@ -4899,6 +4899,234 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF, } } +void CGOpenMPRuntime::emitPrivateReduction( +CodeGenFunction &CGF, SourceLocation Loc, ArrayRef Privates, +ArrayRef LHSExprs, ArrayRef RHSExprs, +ArrayRef Reduct

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread CHANDRA GHALE via cfe-commits
@@ -4899,6 +4899,234 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF, } } +void CGOpenMPRuntime::emitPrivateReduction( +CodeGenFunction &CGF, SourceLocation Loc, ArrayRef Privates, +ArrayRef LHSExprs, ArrayRef RHSExprs, +ArrayRef Reduct

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread CHANDRA GHALE via cfe-commits
@@ -4899,6 +4899,234 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF, } } +void CGOpenMPRuntime::emitPrivateReduction( +CodeGenFunction &CGF, SourceLocation Loc, ArrayRef Privates, +ArrayRef LHSExprs, ArrayRef RHSExprs, +ArrayRef Reduct

[clang] c53e583 - [Driver] Reject -mcmodel=tiny on X86 (#125643)

2025-05-07 Thread via cfe-commits
Author: ShashwathiNavada Date: 2025-05-07T09:55:14-07:00 New Revision: c53e583007738f591d0c9993f06b65c4898a04f8 URL: https://github.com/llvm/llvm-project/commit/c53e583007738f591d0c9993f06b65c4898a04f8 DIFF: https://github.com/llvm/llvm-project/commit/c53e583007738f591d0c9993f06b65c4898a04f8.di

[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)

2025-05-07 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread CHANDRA GHALE via cfe-commits
@@ -4899,6 +4899,238 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF, } } +void CGOpenMPRuntime::emitPrivateReduction( chandraghale wrote: - Updated the code with comments and clarified the logic - Updated OpenMPSupport.rst and th

[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)

2025-05-07 Thread Johannes Doerfert via cfe-commits
@@ -9820,7 +9822,8 @@ void CGOpenMPRuntime::adjustTargetSpecificDataForLambdas( void CGOpenMPRuntime::processRequiresDirective(const OMPRequiresDecl *D) { for (const OMPClause *Clause : D->clauselists()) { -if (Clause->getClauseKind() == OMPC_unified_shared_memory) { +

[clang] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-07 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: Could you expected codegen description in the patch description? https://github.com/llvm/llvm-project/pull/134709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add cir-simplify pass (PR #138317)

2025-05-07 Thread Morris Hafner via cfe-commits
https://github.com/mmha closed https://github.com/llvm/llvm-project/pull/138317 ___ 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 HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138060 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-s

[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)

2025-05-07 Thread Deepak Eachempati via cfe-commits
@@ -9820,7 +9822,8 @@ void CGOpenMPRuntime::adjustTargetSpecificDataForLambdas( void CGOpenMPRuntime::processRequiresDirective(const OMPRequiresDecl *D) { for (const OMPClause *Clause : D->clauselists()) { -if (Clause->getClauseKind() == OMPC_unified_shared_memory) { +

[clang] [CIR] Upstream extract op for VectorType (PR #138413)

2025-05-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/138413 >From d0a6c4fa94d387d8c9afec10deae150d6bce54ee Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 3 May 2025 13:43:04 +0200 Subject: [PATCH 1/3] [CIR] Upstream extract op for VectorType --- clang/incl

[clang] [CIR] Remove inferred context from pointer type getters (PR #138858)

2025-05-07 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **May 7, 1:16 PM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/138858). https://github.com/llvm/llvm-project/pull/138858 __

[clang] [CIR] Remove inferred context from pointer type getters (PR #138858)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/138858 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-se

[clang] [CIR] Add cir-simplify pass (PR #138317)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/17384 Her

[clang] [CIR] Refactor VoidPtr constraint to CIR_VoidPtrType (PR #138859)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/138859 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-se

[clang] 68ee36a - [CIR] Remove inferred context from pointer type getters (#138858)

2025-05-07 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-05-07T19:21:01+02:00 New Revision: 68ee36a144bb6f090b10586a9e1f049f1462132e URL: https://github.com/llvm/llvm-project/commit/68ee36a144bb6f090b10586a9e1f049f1462132e DIFF: https://github.com/llvm/llvm-project/commit/68ee36a144bb6f090b10586a9e1f049f1462132e.diff

[clang] [CIR] Remove inferred context from pointer type getters (PR #138858)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/138858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Refactor VoidPtr constraint to CIR_VoidPtrType (PR #138859)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/138859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement address sanitizer on AIX (1/n) (PR #129925)

2025-05-07 Thread Jake Egan via cfe-commits
https://github.com/jakeegan edited https://github.com/llvm/llvm-project/pull/129925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-05-07 Thread Aaron Ballman via cfe-commits
@@ -238,3 +246,69 @@ void f(Scoped1 S1, Scoped2 S2) { } #endif + +#if __cplusplus >= 202000L +class my_string { + char *data; + unsigned size; + +public: + template + constexpr my_string(const char (&literal)[N]) { +data = new char[N+1]; +for (size = 0; size < N; +

[clang] [CIR] Refactor VoidPtr constraint to CIR_VoidPtrType (PR #138859)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/138859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9808e1f - clang: Remove unnecessary pointer bitcast (#138857)

2025-05-07 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-05-07T19:24:34+02:00 New Revision: 9808e1f9820eb16d240bee2e101b6538fe8b8269 URL: https://github.com/llvm/llvm-project/commit/9808e1f9820eb16d240bee2e101b6538fe8b8269 DIFF: https://github.com/llvm/llvm-project/commit/9808e1f9820eb16d240bee2e101b6538fe8b8269.diff

[clang] clang: Remove unnecessary pointer bitcast (PR #138857)

2025-05-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/138857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5fd9098 - [CIR] Refactor VoidPtr constraint to CIR_VoidPtrType (#138859)

2025-05-07 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-05-07T19:23:53+02:00 New Revision: 5fd90987e147c64a735f0cb2bcfbef4e4cce5e21 URL: https://github.com/llvm/llvm-project/commit/5fd90987e147c64a735f0cb2bcfbef4e4cce5e21 DIFF: https://github.com/llvm/llvm-project/commit/5fd90987e147c64a735f0cb2bcfbef4e4cce5e21.diff

[clang] [CIR] Remove implicit options from tablegen files (PR #138860)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/138860 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Remove implicit options from tablegen files (PR #138860)

2025-05-07 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/138860 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-se

[clang] [CIR] Upstream extract op for VectorType (PR #138413)

2025-05-07 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > > > Overall looks good. While here, can you please implement a folder for > > > this operation? It should kick-in if both idx and input vector are > > > constants. > > > > > > @bcardosolopes I implement it like this snippet > > ``` > > OpFoldResult cir::VecExtractOp::fol

[clang] [clang] Mark some language options as benign. (PR #131569)

2025-05-07 Thread via cfe-commits
https://github.com/matts1 updated https://github.com/llvm/llvm-project/pull/131569 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-se

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-05-07 Thread via cfe-commits
https://github.com/apple-fcloutier updated https://github.com/llvm/llvm-project/pull/135864 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Aria

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/25255 Here is the rel

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-05-07 Thread via cfe-commits
=?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier Message-ID: In-Reply-To: github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your c

[clang] [clang][ExprConstant] Bail out on invalid lambda capture inits (PR #138832)

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

[clang] dc28f9d - [clang][ExprConstant] Bail out on invalid lambda capture inits (#138832)

2025-05-07 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-08T05:22:11+02:00 New Revision: dc28f9d087324f77db81e7192648a17ebf036125 URL: https://github.com/llvm/llvm-project/commit/dc28f9d087324f77db81e7192648a17ebf036125 DIFF: https://github.com/llvm/llvm-project/commit/dc28f9d087324f77db81e7192648a17ebf036125.diff L

[clang] [lld] [llvm] Adding Matching and Inference Functionality to Propeller (PR #139008)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities @llvm/pr-subscribers-objectyaml @llvm/pr-subscribers-backend-aarch64 Author: None (wdx727) Changes We would like to add the matching and inference functionality to Propeller to address the issue that Propeller has zero tolerance fo

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread via cfe-commits
tcwzxx wrote: Given that the mangleCXXRecordDecl function is used outside of the `MangleVTable` , I think the ABI compatibility logic should be moved to mangleCXXCtorVTable https://github.com/llvm/llvm-project/pull/138947 ___ cfe-commits mailing list

[clang] [clang][ExprConst] Check for array size of initlists (PR #138673)

2025-05-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/138673 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] clang/OpenCL: Add baseline test showing broken codegen (PR #138862)

2025-05-07 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **May 8, 1:36 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/138862). https://github.com/llvm/llvm-project/pull/138862 __

[clang] Revert "[Clang] Deprecate `__is_trivially_relocatable`" (PR #139027)

2025-05-07 Thread via cfe-commits
https://github.com/dyung created https://github.com/llvm/llvm-project/pull/139027 Reverts llvm/llvm-project#138835 This is causing a test failure on a bot: https://lab.llvm.org/buildbot/#/builders/144/builds/24541 >From 6a4fa089a40a13122b358e1fe14e06b21f2dfbdb Mon Sep 17 00:00:00 2001 From: d

[clang] ab2e7aa - Revert "[Clang] Deprecate `__is_trivially_relocatable`" (#139027)

2025-05-07 Thread via cfe-commits
Author: dyung Date: 2025-05-08T01:38:04-04:00 New Revision: ab2e7aa5179ab7ba83fa7f731df63a1adbf7612c URL: https://github.com/llvm/llvm-project/commit/ab2e7aa5179ab7ba83fa7f731df63a1adbf7612c DIFF: https://github.com/llvm/llvm-project/commit/ab2e7aa5179ab7ba83fa7f731df63a1adbf7612c.diff LOG: Re

[clang] Revert "[Clang] Deprecate `__is_trivially_relocatable`" (PR #139027)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dyung) Changes Reverts llvm/llvm-project#138835 This is causing a test failure on a bot: https://lab.llvm.org/buildbot/#/builders/144/builds/24541 --- Patch is 22.93 KiB, truncated to 20.00 KiB below, full version: https://github

[clang] [Clang] Deprecate `__is_trivially_relocatable` (PR #138835)

2025-05-07 Thread via cfe-commits
dyung wrote: @cor3ntin I've reverted the commit to get the bot back to green. Please look into the failure when you try to reland the change. https://github.com/llvm/llvm-project/pull/138835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] Revert "[Clang] Deprecate `__is_trivially_relocatable`" (PR #139027)

2025-05-07 Thread via cfe-commits
https://github.com/dyung closed https://github.com/llvm/llvm-project/pull/139027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/OpenCL: Add baseline test showing broken codegen (PR #138862)

2025-05-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/138862 >From 1f41551ad5177f6662f410863306bcb4f5ae10dd Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 7 May 2025 08:38:49 +0200 Subject: [PATCH 1/2] clang/OpenCL: Add baseline test showing broken codegen ---

[clang] [clang-format] Correctly annotate ObjC `* __autoreleasing *` (PR #138799)

2025-05-07 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/138799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fa09d03 - [clang-format] Correctly annotate ObjC `* __autoreleasing *` (#138799)

2025-05-07 Thread via cfe-commits
Author: Owen Pan Date: 2025-05-07T22:41:57-07:00 New Revision: fa09d031d3f3a5018e626938ef76b7072a298dfd URL: https://github.com/llvm/llvm-project/commit/fa09d031d3f3a5018e626938ef76b7072a298dfd DIFF: https://github.com/llvm/llvm-project/commit/fa09d031d3f3a5018e626938ef76b7072a298dfd.diff LOG:

[clang] clang/OpenCL: Add baseline test showing broken codegen (PR #138862)

2025-05-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/138862 >From 28c02e8481056281b059192a5889704b261ae18e Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 7 May 2025 08:38:49 +0200 Subject: [PATCH 1/2] clang/OpenCL: Add baseline test showing broken codegen ---

[clang] 26572ba - clang/OpenCL: Add baseline test showing broken codegen (#138862)

2025-05-07 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-05-08T07:46:04+02:00 New Revision: 26572bad95f816a979ce70b4e1335c8438a96df2 URL: https://github.com/llvm/llvm-project/commit/26572bad95f816a979ce70b4e1335c8438a96df2 DIFF: https://github.com/llvm/llvm-project/commit/26572bad95f816a979ce70b4e1335c8438a96df2.diff

[clang] Revert "[Clang] Deprecate `__is_trivially_relocatable`" (PR #139027)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `publish-sphinx-docs` running on `as-worker-4` while building `clang` at step 9 "Publish docs-lld-html". Full details are available at: https://lab.llvm.org/buildbot/#/builders/45/builds/11971 Here is the relevant piece of t

[clang] Revert "[Clang] Deprecate `__is_trivially_relocatable`" (PR #139027)

2025-05-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-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/19645 Here is th

[clang] [lld] [llvm] Adding Matching and Inference Functionality to Propeller (PR #139008)

2025-05-07 Thread James Henderson via cfe-commits
https://github.com/jh7370 commented: Thanks for the patch. I think this PR should be split up a bit, so that it's easier to review distinct sections. In particular the areas related to yaml2obj/obj2yaml, llvm-readobj and llvm-objdump could probably be their own PR, where we can focus on review

[clang] f74d893 - [CIR] Upstream support for switch statements case kinds (#138003)

2025-05-07 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-05-07T12:28:35-07:00 New Revision: f74d893987dd72c6a7dc6b4f219877204a7681f4 URL: https://github.com/llvm/llvm-project/commit/f74d893987dd72c6a7dc6b4f219877204a7681f4 DIFF: https://github.com/llvm/llvm-project/commit/f74d893987dd72c6a7dc6b4f219877204a7681f4.di

[clang] [CIR] Upstream support for switch statements case kinds (PR #138003)

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

[clang] [Clang][CodeGen] Add workaround for old glibc `__PTR_ALIGN` macro (PR #137851)

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

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread via cfe-commits
@@ -715,7 +716,11 @@ void ExprEngine::handleConstructor(const Expr *E, // actually make things worse. Placement new makes this tricky as well, // since it's then possible to be initializing one part of a multi- // dimensional array. -State = Stat

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
@@ -1039,6 +1039,8 @@ def err_ptrauth_address_discrimination_invalid : Error< "invalid address discrimination flag '%0'; '__ptrauth' requires '0' or '1'">; def err_ptrauth_extra_discriminator_invalid : Error< "invalid extra discriminator flag '%0'; '__ptrauth' requires a va

[clang] 9048c2d - Revert "[analyzer] Make it a noop when initializing a field of empty record" (#138951)

2025-05-07 Thread via cfe-commits
Author: Balazs Benics Date: 2025-05-07T21:52:21+02:00 New Revision: 9048c2d4f239cb47fed17cb150e2bbf3934454c2 URL: https://github.com/llvm/llvm-project/commit/9048c2d4f239cb47fed17cb150e2bbf3934454c2 DIFF: https://github.com/llvm/llvm-project/commit/9048c2d4f239cb47fed17cb150e2bbf3934454c2.diff

[clang] Revert "[analyzer] Make it a noop when initializing a field of empty record" (PR #138951)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balazs Benics (steakhal) Changes Reverts llvm/llvm-project#138594 Crashes, see: https://lab.llvm.org/buildbot/#/builders/144/builds/24534 --- Full diff: https://github.com/llvm/llvm-project/pull/138951.diff 2 Files Affected: - (modifie

[clang] [clang][modules][deps] Implicit modules are out of date when their explicit imports are (PR #138920)

2025-05-07 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,77 @@ +// Test that modifications to a common header (imported from both a PCH and a TU) +// cause rebuilds of dependent modules imported from the TU on incremental build. + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module mod_common { he

[clang] [mlir] [OpenACC][CIR] Implement 'worker'/'vector' lowering (PR #138765)

2025-05-07 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/138765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Given that the original PR broke pointer auth discriminators for function pointers, can we verify that discriminators for vtable pointers and vtable pointer slots are still correct as well? I think what we might actually need is for mangling to be aware that it is being used for

[clang] [CIR] Add cir-simplify pass (PR #138317)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/3451 Here is the relevant piece

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I'd like to have @tcwzxx look at this as well https://github.com/llvm/llvm-project/pull/138947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Deprecate `__is_trivially_relocatable` (PR #138835)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/24541

[clang] 62a2f0f - [APINotes] Add support for SWIFT_RETURED_AS_UNRETAINED_BY_DEFAULT (#138699)

2025-05-07 Thread via cfe-commits
Author: fahadnayyar Date: 2025-05-07T13:42:39-07:00 New Revision: 62a2f0fdc74f086c875833eefe9099bd30f41957 URL: https://github.com/llvm/llvm-project/commit/62a2f0fdc74f086c875833eefe9099bd30f41957 DIFF: https://github.com/llvm/llvm-project/commit/62a2f0fdc74f086c875833eefe9099bd30f41957.diff L

[clang] [APINotes] Add support for SWIFT_RETURED_AS_UNRETAINED_BY_DEFAULT (PR #138699)

2025-05-07 Thread via cfe-commits
https://github.com/fahadnayyar closed https://github.com/llvm/llvm-project/pull/138699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA][HIP] Fix host/device attribute of builtin (PR #138162)

2025-05-07 Thread Changpeng Fang via cfe-commits
changpeng wrote: @Artem-B : any further suggestions? Thanks. https://github.com/llvm/llvm-project/pull/138162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Mark some language options as benign. (PR #131569)

2025-05-07 Thread Michael Spencer via cfe-commits
@@ -398,11 +398,11 @@ BENIGN_LANGOPT(HalfNoSemanticInterposition, 1, 0, "Like -fno-semantic-interposition but don't use local aliases") ENUM_LANGOPT(StackProtector, StackProtectorMode, 2, SSPOff, "stack protector mode") -ENUM_LANGOPT(TrivialAutoVarIn

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-05-07 Thread Daniel Chen via cfe-commits
@@ -88,6 +117,67 @@ set(host_sources unit-map.cpp ) +# Module sources that are required by other modules +set(intrinsics_sources + __fortran_builtins.f90 +) + + +#set_property(SOURCE "__fortran_type_info.f90" APPEND PROPERTY OBJECT_DEPENDS "/home/meinersbur/build/llvm-pro

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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

<    1   2   3   4   5   >