[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-07-15 Thread Daan De Meyer via cfe-commits
https://github.com/DaanDeMeyer updated https://github.com/llvm/llvm-project/pull/137840 >From 06b9d2dffe560eedb28f15630252d361b881c71f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 29 Apr 2025 18:26:36 +0200 Subject: [PATCH] clang-format: Add IgnoreExtension option to SortIncludesOpt

[clang] [llvm] [VectorCombine] Shrink loads used in shufflevector rebroadcasts (PR #128938)

2025-07-15 Thread Simon Pilgrim via cfe-commits
@@ -3691,6 +3696,132 @@ bool VectorCombine::foldInterleaveIntrinsics(Instruction &I) { return true; } +// Attempt to shrink loads that are only used by shufflevector instructions. +bool VectorCombine::shrinkLoadForShuffles(Instruction &I) { + auto *OldLoad = dyn_cast(&I);

[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-07-15 Thread Daan De Meyer via cfe-commits
https://github.com/DaanDeMeyer updated https://github.com/llvm/llvm-project/pull/137840 >From 22a095db11bf132dd9fd5c5bcc887397b2766206 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 29 Apr 2025 18:26:36 +0200 Subject: [PATCH] clang-format: Add IgnoreExtension option to SortIncludesOpt

[clang] [llvm] [CodeGen] Fix VNInfo mapping in LiveRange::assign (PR #148790)

2025-07-15 Thread via cfe-commits
pzzp wrote: This isssue lead to a crash on our private target., but we did not reproduce it in x86 or AMDGPU crash stacktrace: llc: /root/baidu/xpu/llvm19/llvm/lib/CodeGen/LiveIntervals.cpp:397: void llvm::LiveIntervals::extendSegmentsToUses(llvm::LiveRange&, llvm::LiveIntervals::ShrinkToUses

[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-07-15 Thread Daan De Meyer via cfe-commits
https://github.com/DaanDeMeyer updated https://github.com/llvm/llvm-project/pull/137840 >From f17570565365d0dc94cb2dd2a63e303bc1f92493 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 29 Apr 2025 18:26:36 +0200 Subject: [PATCH] clang-format: Add IgnoreExtension option to SortIncludesOpt

[clang] [NFC][-Wunsafe-buffer-usage] Refactor safe pattern check for pointer-size pairs (PR #145626)

2025-07-15 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: > https://lab.llvm.org/buildbot/#/builders/190/builds/23511 The failed test is `ExecutionEngine/OrcLazy/multiple-compile-threads-basic.ll`, which can't be affected by this change. https://github.com/llvm/llvm-project/pull/145626 _

[clang] [NFC][-Wunsafe-buffer-usage] Refactor safe pattern check for pointer-size pairs (PR #145626)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/23511 Here is th

[clang] [clang-tools-extra] [clang]: Propagate `*noreturn` attributes in `CFG` (PR #146355)

2025-07-15 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/146355 >From fc3b77d8c4b5dd264bd746ed997bcea6cddaf389 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 30 Jun 2025 17:05:41 +0300 Subject: [PATCH 1/8] Initial implementation --- .../bugprone/unchecked-optional

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-07-15 Thread Michael Buch via cfe-commits
Michael137 wrote: Yea this even works when the typedef is not template-dependent but used outside of the class only: ``` template struct Y { typedef int outside; int o; }; Y<> y;

[clang] [Clang][Test] Add PS5 and WI cases to clang/test/Sema/dllexport.c (PR #148818)

2025-07-15 Thread via cfe-commits
https://github.com/bd1976bris created https://github.com/llvm/llvm-project/pull/148818 Windows Itanium and PS5 are both Itanium C++ ABI variants which have the goal of semantic compatibility with Microsoft C++ code that uses dllimport/export. This patch adds Windows Itanium and PS5 triple test

[clang] [clang-tools-extra] [clang]: Propagate `*noreturn` attributes in `CFG` (PR #146355)

2025-07-15 Thread Andrey Karlov via cfe-commits
@@ -6298,10 +6304,43 @@ static bool isImmediateSinkBlock(const CFGBlock *Blk) { // at least for now, but once we have better support for exceptions, // we'd need to carefully handle the case when the throw is being // immediately caught. - if (llvm::any_of(*Blk, [](const

[clang] [Clang][Test] Add PS5 and WI cases to clang/test/Sema/dllexport.c (PR #148818)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: bd1976bris (bd1976bris) Changes Windows Itanium and PS5 are both Itanium C++ ABI variants which have the goal of semantic compatibility with Microsoft C++ code that uses dllimport/export. This patch adds Windows Itanium and PS5 triple tes

[clang] [clang-format] Add IgnoreExtension to SortIncludes (PR #137840)

2025-07-15 Thread Daan De Meyer via cfe-commits
https://github.com/DaanDeMeyer updated https://github.com/llvm/llvm-project/pull/137840 >From e8e1f1e47accfbda1dc9d2a68ebdf2a881b7026b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 29 Apr 2025 18:26:36 +0200 Subject: [PATCH] clang-format: Add IgnoreExtension option to SortIncludesOpt

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Wenju He via cfe-commits
@@ -164,34 +164,14 @@ endif() list( SORT LIBCLC_TARGETS_TO_BUILD ) -# Construct LLVM version define -set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}" ) - # This needs to be set before any target that needs it # We need to use LLVM_INCLUD

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Wenju He via cfe-commits
@@ -0,0 +1,24 @@ +# Construct LLVM version define +set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}" ) + +# Setup prepare_builtins tools +set(LLVM_LINK_COMPONENTS wenju-he wrote: add a space after `(` to align with the style in

[clang] [clang-format] Add IgnoreExtension to SortIncludes (PR #137840)

2025-07-15 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/137840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/137991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,46 @@ +# Key Instructions in Clang + +Key Instructions is an LLVM feature that reduces the jumpiness of optimized code debug stepping. This document explains how Clang applies the necessary metadata. OCHyams wrote: Couldn't find better wording than y

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams commented: Thanks for for the comments, I think I've addressed everything. I've merged both files into the LLVM docs as I couldn't get a link to the Clang docs working properly. How does this look? https://github.com/llvm/llvm-project/pull/137991

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,46 @@ +# Key Instructions in Clang + +Key Instructions is an LLVM feature that reduces the jumpiness of optimized code debug stepping. This document explains how Clang applies the necessary metadata. + +## Implementation + +See the [LLVM docs](../../llvm/docs/KeyInstr

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,46 @@ +# Key Instructions in Clang + +Key Instructions is an LLVM feature that reduces the jumpiness of optimized code debug stepping. This document explains how Clang applies the necessary metadata. + +## Implementation + +See the [LLVM docs](../../llvm/docs/KeyInstr

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,46 @@ +# Key Instructions in Clang + +Key Instructions is an LLVM feature that reduces the jumpiness of optimized code debug stepping. This document explains how Clang applies the necessary metadata. + +## Implementation + +See the [LLVM docs](../../llvm/docs/KeyInstr

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,114 @@ +# Key Instructions debug info in LLVM + +Key Instructions reduces the jumpiness of optimized code debug stepping. This document explains the feature and how it is implemented in LLVM. For Clang support please see the [Clang docs](../../clang/docs/KeyInstructio

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,46 @@ +# Key Instructions in Clang + +Key Instructions is an LLVM feature that reduces the jumpiness of optimized code debug stepping. This document explains how Clang applies the necessary metadata. + +## Implementation + +See the [LLVM docs](../../llvm/docs/KeyInstr

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/19024 Here is the relevant piece of the build lo

[clang] [clang] Reduce the size of ParsedAttributesView and AttributePool (PR #148726)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM, thank you! https://github.com/llvm/llvm-project/pull/148726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/137991 >From cb89d1f1bb60db07743f1973f9b263424fab9f6d Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Wed, 30 Apr 2025 15:19:03 +0100 Subject: [PATCH 1/8] [KeyInstr] Add docs --- clang/docs/KeyInstructions

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/5] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Design Overview (PR #126654)

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

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-win` running on `as-builder-10` while building `clang` at step 8 "build-default". Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/7022 Here is the relevant piece of the bu

[clang] [clang] Reduce the small vector size for DeclTypeInfo. (PR #148788)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! 8 declarator chunks is actually quite a bit, I suspect 4 is a more sensible default for the average TU. 2 might be a bit too few for what I'd suspect is the average use case. https://github.com/llvm/llvm-project/pull/148788

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Fix the Lowering Prepare a multi-line summary --- Full diff: https://github.com/llvm/llvm-project/pull/148826.diff 1 Files Affected: - (modified) clang/include/clang/CIR/Dialect/Passes.td (+2-2)

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Fix the Lowering Prepare a multi-line summary --- Full diff: https://github.com/llvm/llvm-project/pull/148826.diff 1 Files Affected: - (modified) clang/include/clang/CIR/Dialect/Passes.td (+2-2) ``

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/148826 Fix the Lowering Prepare a multi-line summary >From 10a58ba4f1872a7ea6ba302178dfe48625584a5f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 15 Jul 2025 13:12:10 +0200 Subject: [PATCH] [CIR][NFC] Fi

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -3,9 +3,80 @@ // RUN: cat %s | clang-repl -Xcc -xc | FileCheck %s // RUN: cat %s | clang-repl -Xcc -std=c++11 | FileCheck %s -// Fails with `Symbols not found: [ __clang_Interpreter_SetValueNoAlloc ]`. // UNSUPPORTED: hwasan + +char c = 'a'; c +// CHECK: (char) 'a' + c

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -3,9 +3,80 @@ // RUN: cat %s | clang-repl -Xcc -xc | FileCheck %s // RUN: cat %s | clang-repl -Xcc -std=c++11 | FileCheck %s -// Fails with `Symbols not found: [ __clang_Interpreter_SetValueNoAlloc ]`. // UNSUPPORTED: hwasan + +char c = 'a'; c +// CHECK: (char) 'a' + c

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -3,9 +3,80 @@ // RUN: cat %s | clang-repl -Xcc -xc | FileCheck %s // RUN: cat %s | clang-repl -Xcc -std=c++11 | FileCheck %s -// Fails with `Symbols not found: [ __clang_Interpreter_SetValueNoAlloc ]`. // UNSUPPORTED: hwasan + +char c = 'a'; c +// CHECK: (char) 'a' + c

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -3,9 +3,80 @@ // RUN: cat %s | clang-repl -Xcc -xc | FileCheck %s // RUN: cat %s | clang-repl -Xcc -std=c++11 | FileCheck %s -// Fails with `Symbols not found: [ __clang_Interpreter_SetValueNoAlloc ]`. // UNSUPPORTED: hwasan + +char c = 'a'; c +// CHECK: (char) 'a' + c

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -250,17 +254,35 @@ const ASTContext &Value::getASTContext() const { return getInterpreter().getASTContext(); } -void Value::dump() const { print(llvm::outs()); } +void Value::dump() { print(llvm::outs()); } void Value::printType(llvm::raw_ostream &Out) const { - Out <

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/148826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/148701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Precommit CI found some crashing issues that will need to be addressed, and I had some more testing requests to make sure we handle basics properly. https://github.com/llvm/llvm-project/pull/148701 ___ cfe-co

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,59 @@ +// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \ +// RUN:'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s +// UNSUPPORTED: system-aix +// CHECK-DRIVER: i = 10 +// RUN: cat %s | clang-repl -Xcc

[clang] b3240b4 - [CIR][NFC] Fix LoweringPrepare pass multi lines summary (#148826)

2025-07-15 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-15T13:15:25+02:00 New Revision: b3240b4889bb4b700e655d21e908ae07cfda5a55 URL: https://github.com/llvm/llvm-project/commit/b3240b4889bb4b700e655d21e908ae07cfda5a55 DIFF: https://github.com/llvm/llvm-project/commit/b3240b4889bb4b700e655d21e908ae07cfda5a55.diff LO

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: I will quickly merge to make it buildable again https://github.com/llvm/llvm-project/pull/148826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/148815 >From a426ba39c895ac8eed7ee0bc69310d7ccb681560 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Tue, 15 Jul 2025 10:44:48 +0100 Subject: [PATCH 1/2] [libclc] Move CMake for prepare_builtins to a subdirec

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 Thread Hugo Melder via cfe-commits
https://github.com/hmelder created https://github.com/llvm/llvm-project/pull/148827 When constructing the protocol list in the class metadata generation (`GenerateClass`), only the protocols from the base class are added but not protocols declared in class extensions. This is fixed by using `

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Fraser Cormack via cfe-commits
@@ -164,34 +164,14 @@ endif() list( SORT LIBCLC_TARGETS_TO_BUILD ) -# Construct LLVM version define -set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}" ) - # This needs to be set before any target that needs it # We need to use LLVM_INCLUD

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Fraser Cormack via cfe-commits
@@ -0,0 +1,24 @@ +# Construct LLVM version define +set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}" ) + +# Setup prepare_builtins tools +set(LLVM_LINK_COMPONENTS frasercrmck wrote: Good idea, thanks. Done https://github.com/l

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-15 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/148815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hugo Melder (hmelder) Changes When constructing the protocol list in the class metadata generation (`GenerateClass`), only the protocols from the base class are added but not protocols declared in class extensions. This is fixed by using

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 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 cpp -- clang/lib/CodeGen/CGObjCGNU.cpp `` View

[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-07-15 Thread Owen Pan via cfe-commits
@@ -4385,8 +4385,18 @@ struct FormatStyle { ///#include "B/a.h" #include "a/b.h" /// \endcode bool IgnoreCase; +/// When sorting includes in each block, only take file extensions into +/// account if two includes compare equal otherwise. +/

[clang] clang-format: Add IncludeSortKey option (PR #137840)

2025-07-15 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/137840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-15 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/146913 >From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 3 Jul 2025 14:03:14 +0200 Subject: [PATCH 1/7] [llvm-objcopy][libObject] Add RISC-V big-endian support

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-15 Thread Djordje Todorovic via cfe-commits
@@ -48,62 +48,64 @@ class Triple { enum ArchType { UnknownArch, -arm,// ARM (little endian): arm, armv.*, xscale -armeb, // ARM (big endian): armeb -aarch64,// AArch64 (little endian): aarch64 -aarch64_be, // AArch64 (big

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: I don't really feel comfortable reviewing Clang patches, living mostly on the LLVM side of things. @dwblaikie do you know who could take a look? https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commits mailing list cfe-commits@l

[clang] [llvm] [RISCV] Implement Builtins for XAndesBFHCvt extension. (PR #148804)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Jim Lin (tclin914) Changes XAndesBFHCvt provides two builtins functions for converting between float and bf16. Users can use them to convert bf16 values loaded from memory to float, perform arithmetic operations, then convert them b

[clang] [libclc] [clang] Add the ability to link libclc OpenCL libraries (PR #146503)

2025-07-15 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: ping, thanks. https://github.com/llvm/llvm-project/pull/146503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-15 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 2bff132be9082f85835f22e73550447f7b880e13 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH] [LifetimeSafety] Add expired loans analysis --- clang/lib/Analy

[clang] [Clang] Remove explicit object from non member function. (PR #148807)

2025-07-15 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/148807 >From 25d5589b47b39779958c94011814cb68fd7ea374 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 15 Jul 2025 11:06:03 +0200 Subject: [PATCH] [Clang] Remove explicit object from non member function. To a

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-15 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 5d10f007a81861e513c1483163947182b109c92d Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/3] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)

2025-07-15 Thread Remy Farley via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: clang-query -c "match \ +// RUN: functionDecl( \ +// RUN: hasName( \ +// RUN: \"foo\", \ +// RUN: ), \ +// RUN: ) \ +// RUN: " %s -- | FileCheck %s + +// CHECK: trailing-comma.c:10:1: note: "root" binds here one-

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #148802)

2025-07-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum closed https://github.com/llvm/llvm-project/pull/148802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 Thread David Chisnall via cfe-commits
https://github.com/davidchisnall approved this pull request. Looks good to me, thank you. There's a clang-format error, but once that's fixed we should be good to merge it. https://github.com/llvm/llvm-project/pull/148827 ___ cfe-commits mailing list

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-15 Thread Victor Campos via cfe-commits
https://github.com/vhscampos approved this pull request. Approved from my side. https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [clang] Extend SourceLocation to 64 bits. (PR #147292)

2025-07-15 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Hello all! There was a request to hold a Clang Area Team discussion about this topic, which is scheduled for [Thur Jul 17 at 4pm Eastern Time](https://www.timeanddate.com/worldclock/converter.html?iso=20250717T20&p1=1440&p2=1241&p3=4747&p4=195). Link to the meeting tele

[clang] [Clang] Fix a crash when parsing an invalid `decltype` (PR #148798)

2025-07-15 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/148798 >From c80347a825264474a51ee6e638434d3454a0a7e3 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 15 Jul 2025 09:38:59 +0200 Subject: [PATCH 1/2] [Clang] Fix a crash when parsing an invalid `decltype` We

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -1669,6 +1669,51 @@ def GetGlobalOp : CIR_Op<"get_global", }]; } +//===--===// +// VTableAddrPointOp +//===--===// + +def VTableAddrPoin

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -1669,6 +1669,51 @@ def GetGlobalOp : CIR_Op<"get_global", }]; } +//===--===// +// VTableAddrPointOp +//===--===// + +def VTableAddrPoin

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -515,5 +515,35 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> { ]; } +//===--===// +// AddressPointAttr +//===--==

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -515,5 +515,35 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> { ]; } +//===--===// +// AddressPointAttr +//===--==

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -515,5 +515,35 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> { ]; } +//===--===// +// AddressPointAttr +//===--==

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 Thread Hugo Melder via cfe-commits
https://github.com/hmelder updated https://github.com/llvm/llvm-project/pull/148827 >From 07f00da14d0716da4ad3637e9296e68fee95f64e Mon Sep 17 00:00:00 2001 From: hmelder Date: Tue, 15 Jul 2025 13:09:28 +0200 Subject: [PATCH] [CodeGen][ObjC] Include all referenced protocols in protocol list Wh

[clang] [CodeGen][ObjC] Include all referenced protocols in protocol list (PR #148827)

2025-07-15 Thread Hugo Melder via cfe-commits
https://github.com/hmelder updated https://github.com/llvm/llvm-project/pull/148827 >From 3a4e7a8a31b90f933ef01385759bee8699efe94b Mon Sep 17 00:00:00 2001 From: hmelder Date: Tue, 15 Jul 2025 13:09:28 +0200 Subject: [PATCH] [CodeGen][ObjC] Include all referenced protocols in protocol list Wh

[clang] [clang-format] Add IgnoreExtension to SortIncludes (PR #137840)

2025-07-15 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/137840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-07-15 Thread William Huynh via cfe-commits
saturn691 wrote: @petrhosek ping https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Remove code related to trigraphs (PR #148640)

2025-07-15 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/148640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)

2025-07-15 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: It looks like precommit CI found a relevant failure: ``` TEST 'Clang Tools :: clang-query/trailing-comma.c' FAILED Exit Code: 1 Command Output (stdout): -- # shell parser error on RUN: at line 14: clang-query -c "$(echo "ma

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

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

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

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

[clang] [WIP] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-07-15 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj edited https://github.com/llvm/llvm-project/pull/135163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-15 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 2bff132be9082f85835f22e73550447f7b880e13 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/3] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [llvm] [RISCV] Implement Builtins for XAndesBFHCvt extension. (PR #148804)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang-codegen Author: Jim Lin (tclin914) Changes XAndesBFHCvt provides two builtins functions for converting between float and bf16. Users can use them to convert bf16 values loaded from mem

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-15 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148222 >From 2bff132be9082f85835f22e73550447f7b880e13 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 11 Jul 2025 11:11:47 + Subject: [PATCH 1/2] [LifetimeSafety] Add expired loans analysis --- clang/lib/A

[clang] [CIR] Add rotate operation (PR #148426)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -2847,6 +2847,45 @@ def ByteSwapOp : CIR_BitOpBase<"byte_swap", CIR_UIntOfWidths<[16, 32, 64]>> { }]; } +//===--===// +// RotateOp +//===--

[clang] 57d81c2 - [Clang] Remove explicit object from non member function. (#148807)

2025-07-15 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-15T13:34:32+02:00 New Revision: 57d81c23f4c8d3ad88210aab29f0809974e7d1ce URL: https://github.com/llvm/llvm-project/commit/57d81c23f4c8d3ad88210aab29f0809974e7d1ce DIFF: https://github.com/llvm/llvm-project/commit/57d81c23f4c8d3ad88210aab29f0809974e7d1ce.diff

[clang] [Clang] Remove explicit object from non member function. (PR #148807)

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

[libclc] 8a7a648 - [libclc] Move CMake for prepare_builtins to a subdirectory (#148815)

2025-07-15 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-07-15T12:26:11+01:00 New Revision: 8a7a64873b13e6fd931b748fbf50b3da26fe7fca URL: https://github.com/llvm/llvm-project/commit/8a7a64873b13e6fd931b748fbf50b3da26fe7fca DIFF: https://github.com/llvm/llvm-project/commit/8a7a64873b13e6fd931b748fbf50b3da26fe7fca.diff

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

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

[clang] [Clang] Remove explicit object from non member function. (PR #148807)

2025-07-15 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/148807 To avoid crashing later (as we assume only member functions can have explicit parameters) Fixes #113185 >From bf204f023a4f84732c5876ff86e7de603fd95aac Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue,

[clang] [Clang] Remove explicit object from non member function. (PR #148807)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes To avoid crashing later (as we assume only member functions can have explicit parameters) Fixes #113185 --- Full diff: https://github.com/llvm/llvm-project/pull/148807.diff 2 Files Affected: - (modifi

[clang] 8aeab8f - [Driver][MinGW] Allow using clang driver to link ARM64X PEs. (#148064)

2025-07-15 Thread via cfe-commits
Author: WhatAmISupposedToPutHere Date: 2025-07-15T12:01:36+03:00 New Revision: 8aeab8faeebfa737a388041e5b37717ab15d387e URL: https://github.com/llvm/llvm-project/commit/8aeab8faeebfa737a388041e5b37717ab15d387e DIFF: https://github.com/llvm/llvm-project/commit/8aeab8faeebfa737a388041e5b37717ab15

  1   2   3   4   5   >