[clang] [clang][test] Add test for comma operator rejection in preprocessor conditionals (PR #155570)

2025-09-23 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: I think this is good to go after you add `#if ,` test suggested earlier https://github.com/llvm/llvm-project/pull/155570 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailma

[clang] [llvm] Add support in LLVM BitstreamWriter to automatically choose abbrevs. (PR #147191)

2025-09-23 Thread Chuanqi Xu via cfe-commits
@@ -2504,7 +2362,7 @@ void ASTWriter::WriteDeclAbbrevs() { // Type Source Info Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array)); Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // TypeLoc ChuanqiXu9 wrote: These specification still seems complex and

[clang] [llvm] Add support in LLVM BitstreamWriter to automatically choose abbrevs. (PR #147191)

2025-09-23 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/147191 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] improve robustness of the member initializer detection in modernize-use-default-member-init (PR #159392)

2025-09-23 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/159392 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

2025-09-23 Thread Rana Pratap Reddy via cfe-commits
@@ -0,0 +1,731 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1100 %s -emit-llvm -o - | FileCheck %s + +typedef int int8 __attribute__((ext_vector_type(8))); +typedef flo

[clang] Use existing AvailabilityKind enum for code completion availability (PR #160296)

2025-09-23 Thread Vlad Serebrennikov via cfe-commits
@@ -3039,6 +3039,16 @@ class _CXUnsavedFile(Structure): } +# Converting the new enum names (full upper-case, underscore separated) Endilll wrote: I think it would do better as a docstring within the body of the function https://github.com/llvm/llvm-project/

[clang] Use existing AvailabilityKind enum for code completion availability (PR #160296)

2025-09-23 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Can you also add a test to ensure that nothing breaks? https://github.com/llvm/llvm-project/pull/160296 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] Use existing AvailabilityKind enum for code completion availability (PR #160296)

2025-09-23 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/160296 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-09-23 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa deleted https://github.com/llvm/llvm-project/pull/152942 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] introduce constexpr step limit opt-out (PR #160440)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Tsche) Changes To address @AaronBallman's feedback from https://github.com/llvm/llvm-project/pull/143785 this patch implements an explicit opt-out for `-fconstexpr-steps` by setting `-fconstexpr-steps=0`. This does not change any d

[clang] [clang] introduce constexpr step limit opt-out (PR #160440)

2025-09-23 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [llvm] [AMDGPU] Add a new builtin type for image descriptor rsrc (PR #160258)

2025-09-23 Thread Rana Pratap Reddy via cfe-commits
@@ -34,6 +34,7 @@ // Q -> target builtin type, followed by a character to distinguish the builtin type //Qa -> AArch64 svcount_t builtin type. //Qb -> AMDGPU __amdgpu_buffer_rsrc_t builtin type. +//Qc -> AMDGPU __amdgpu_image_desc_t builtin type.

[clang] [llvm] [AMDGPU] Add a new builtin type for image descriptor rsrc (PR #160258)

2025-09-23 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/160258 >From ba7f9faab7e0cad2c8b830b0d7346e781df17297 Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Tue, 23 Sep 2025 14:46:16 +0530 Subject: [PATCH 1/2] [AMDGPU] Add a new builtin type for image descriptor rsr

[clang] [clang] increase default constexpr step limit (PR #143785)

2025-09-23 Thread via cfe-commits
https://github.com/Tsche closed https://github.com/llvm/llvm-project/pull/143785 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 06b49eb - [clang-tidy] improve robustness of the member initializer detection in modernize-use-default-member-init (#159392)

2025-09-23 Thread via cfe-commits
Author: Congcong Cai Date: 2025-09-24T03:27:08Z New Revision: 06b49eb6d6e3344a92b2f31b9ed15cd29b739ccf URL: https://github.com/llvm/llvm-project/commit/06b49eb6d6e3344a92b2f31b9ed15cd29b739ccf DIFF: https://github.com/llvm/llvm-project/commit/06b49eb6d6e3344a92b2f31b9ed15cd29b739ccf.diff LOG:

[clang] [clang] simplify constant template parameter type deduction for partial ordering (PR #160433)

2025-09-23 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/160433 This simplifies things a little bit. This is mostly NFCish, except the reference type deduction workaround now applies in partial ordering as well, but we don't have any test cases and any reason to suspect th

[clang-tools-extra] [clang-tidy] improve robustness of the member initializer detection in modernize-use-default-member-init (PR #159392)

2025-09-23 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/159392 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Refine __clc_fp*_subnormals_supported and __clc_flush_denormal_if_not_supported (PR #157633)

2025-09-23 Thread Matt Arsenault via cfe-commits
@@ -127,9 +127,9 @@ _CLC_DEF _CLC_OVERLOAD float __clc_sw_fma(float a, float b, float c) { return c; } - a = __clc_flush_denormal_if_not_supported(a); - b = __clc_flush_denormal_if_not_supported(b); - c = __clc_flush_denormal_if_not_supported(c); + a = __clc_soft_fl

[clang] [llvm] [mlir] Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end (#155339)" (PR #159278)

2025-09-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-arm64-windows-msvc` running on `linaro-armv8-windows-msvc-01` while building `clang,llvm,mlir` at step 6 "test-build-unified-tree-check-mlir". Full details are available at: https://lab.llvm.org/buildbot/#/builders/207/

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-09-23 Thread via cfe-commits
owenca wrote: > > If this were in the [GNU coding > > standards](https://www.gnu.org/prep/standards/standards.html#Formatting), I > > might agree to adding some special handling for GNU without adding a new > > option. Regardless, I'm inclined to oppose an option this niche. > > @kgerlich you

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Razvan Lupusoru via cfe-commits
@@ -1715,8 +1715,15 @@ class CIRGenFunction : public CIRGenTypeCache { mlir::Location beginLoc; mlir::Value varValue; std::string name; +// The type of the original variable reference: that is, after 'bounds' have +// removed pointers/array types/etc. So in

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Razvan Lupusoru via cfe-commits
razvanlupusoru wrote: > Also hoping @razvanlupusoru could do a quick look at the tests to make sure > I'm not doing anything silly with the bounds/misinterpreting what I'm > supposed to be doing with it! Would it be possible to have the C++ code and the CHECK lines for recipes intertwined? Wi

[clang] [CodeGen] Fix cleanup attribute for C89 for-loop init variables (PR #156643)

2025-09-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic closed https://github.com/llvm/llvm-project/pull/156643 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 60b3cc6 - [CodeGen] Fix cleanup attribute for C89 for-loop init variables (#156643)

2025-09-23 Thread via cfe-commits
Author: Jongmyeong Choi Date: 2025-09-23T20:35:43-07:00 New Revision: 60b3cc69af52fa4be05cdb1632efdca7266ed823 URL: https://github.com/llvm/llvm-project/commit/60b3cc69af52fa4be05cdb1632efdca7266ed823 DIFF: https://github.com/llvm/llvm-project/commit/60b3cc69af52fa4be05cdb1632efdca7266ed823.dif

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-09-23 Thread Jade Marker via cfe-commits
https://github.com/Jade-Marker updated https://github.com/llvm/llvm-project/pull/152942 >From 0f460186012b377067d9e6ac58a2446453f5817b Mon Sep 17 00:00:00 2001 From: Jade Marker <[email protected]> Date: Sun, 10 Aug 2025 22:47:14 +0100 Subject: [PATCH 1/3] Update libu

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-09-23 Thread Jade Marker via cfe-commits
@@ -1082,11 +1083,13 @@ DEFINE_LIBUNWIND_FUNCTION(_ZN9libunwind21Registers_mips_newabi6jumptoEv) ld$2, (8 * 2)($4) ld$3, (8 * 3)($4) // skip a0 for now - .irp i,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + .irp i,5,6,7,8,9,10,11,1

[clang] [clang][bytecode] Use stack offsets for This/RVO ptrs (PR #160285)

2025-09-23 Thread Shafik Yaghmour via cfe-commits
@@ -58,15 +58,12 @@ InterpFrame::InterpFrame(InterpState &S, const Function *Func, CodePtr RetPC, // If the fuction has a This pointer, that one is next. // Then follow the actual arguments (but those are handled // in getParamPointer()). - if (Func->hasRVO()) -RVOP

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-23 Thread via cfe-commits
@@ -6246,40 +6246,178 @@ __m512i test_mm512_ternarylogic_epi32(__m512i __A, __m512i __B, __m512i __C) { // CHECK: @llvm.x86.avx512.pternlog.d.512({{.*}}, i32 240) return _mm512_ternarylogic_epi32(__A, __B, __C, _MM_TERNLOG_A); } +TEST_CONSTEXPR(match_v16si( + _mm512_terna

[clang] [clang][ExtractAPI] Fix for nested types are not enabled. (PR #159698)

2025-09-23 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: @daniel-grumberg please review. https://github.com/llvm/llvm-project/pull/159698 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-23 Thread via cfe-commits
@@ -2604,6 +2604,52 @@ static bool interp__builtin_elementwise_int_binop( return true; } +static bool +interp__builtin_x86_pack(InterpState &S, CodePtr, const CallExpr *E, + llvm::function_ref PackFn) { + const auto *VT0 = E->getArg(0)->getType()->ca

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
https://github.com/jiang1997 converted_to_draft https://github.com/llvm/llvm-project/pull/160362 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] simplify constant template parameter type deduction for partial ordering (PR #160433)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This simplifies things a little bit. This is mostly NFCish, except the reference type deduction workaround now applies in partial ordering as well, but we don't have any test cases and any reason to susp

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Matheus Izvekov via cfe-commits
@@ -426,6 +426,8 @@ LANGOPT(FixedPoint, 1, 0, NotCompatible, "fixed point types") LANGOPT(PaddingOnUnsignedFixedPoint, 1, 0, NotCompatible, "unsigned fixed point types having one extra padding bit") +LANGOPT(OverflowBehaviorTypes, 1, 0, NotCompatible, "overflow behavi

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Kees Cook via cfe-commits
@@ -2885,7 +2885,7 @@ static bool CheckedIntArithmetic(EvalInfo &Info, const Expr *E, APSInt Value(Op(LHS.extend(BitWidth), RHS.extend(BitWidth)), false); Result = Value.trunc(LHS.getBitWidth()); - if (Result.extend(BitWidth) != Value) { + if (Result.extend(BitWidth) !=

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > I don't believe this warrants a keyword, and I don't believe the RFC supports > the addition of such. As far as I can make out all the RFC discussion is in > terms of an attribute. I don't think the RFC is for bike shedding discussions about the spelling of the type, this ca

[clang] [clang] Fix crash with -lstdc++ in -ccc-print-phases (PR #160047)

2025-09-23 Thread via cfe-commits
pzzp wrote: @cor3ntin I’ve added some explanation. Since I felt this issue is trivial, I didn’t add a test. Also, where I write the release note, and how should I write it? I’m not familiar with the GitHub workflow, could you give me some advice? https://github.com/llvm/llvm-project/pull/16004

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-09-23 Thread YunQiang Su via cfe-commits
@@ -1082,11 +1083,13 @@ DEFINE_LIBUNWIND_FUNCTION(_ZN9libunwind21Registers_mips_newabi6jumptoEv) ld$2, (8 * 2)($4) ld$3, (8 * 3)($4) // skip a0 for now - .irp i,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + .irp i,5,6,7,8,9,10,11,1

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-09-23 Thread YunQiang Su via cfe-commits
@@ -1082,11 +1083,13 @@ DEFINE_LIBUNWIND_FUNCTION(_ZN9libunwind21Registers_mips_newabi6jumptoEv) ld$2, (8 * 2)($4) ld$3, (8 * 3)($4) // skip a0 for now - .irp i,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + .irp i,5,6,7,8,9,10,11,1

[clang] [clang] Fix crash with -lstdc++ in -ccc-print-phases (PR #160047)

2025-09-23 Thread via cfe-commits
pzzp wrote: @shafik ok, I added some more explanation. https://github.com/llvm/llvm-project/pull/160047 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
https://github.com/jiang1997 created https://github.com/llvm/llvm-project/pull/160362 closes #160281 >From 0a7e65440049fbb543eaf03567ebd4376551abd4 Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Wed, 24 Sep 2025 02:28:05 +0800 Subject: [PATCH] [clang][x86][bytecode] Refactor BMI intrinsic wrap

[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

2025-09-23 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl closed https://github.com/llvm/llvm-project/pull/159446 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/160360 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
evelez7 wrote: ### Merge activity * **Sep 24, 12:54 AM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/160360). https://github.com/llvm/llvm-project/pull/160360 ___

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-23 Thread Sebastian Proell via cfe-commits
@@ -964,3 +964,79 @@ namespace is_aggregate { static_assert(__is_aggregate(S7[10])); } + +namespace is_abstract_tests { +struct Abstract1 { + virtual void fn1() = 0; +}; + +struct Abstract2 { + virtual void fn2() = 0; +}; + +struct NonAbstract +{ + virtual void f() {} +

[clang] [clang][Dependency Scanning] Implementing `CompilerInstanceWithContext` to Speedup By Name Scans (PR #160207)

2025-09-23 Thread Qiongsi Wu via cfe-commits
@@ -0,0 +1,250 @@ +//===- CompilerInstanceWithContext.cpp - clang scanning compiler instance -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang] Add missing readonly/readnone annotations (PR #158424)

2025-09-23 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: If you want me to merge for you, please let me know. https://github.com/llvm/llvm-project/pull/158424 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add missing readonly/readnone annotations (PR #158424)

2025-09-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/158424 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Change masked load / store builtin interface to take scalar pointer (PR #156063)

2025-09-23 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 origin/main HEAD --extensions cpp,c -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/Sema

[clang] e4e666a - [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (#160359)

2025-09-23 Thread via cfe-commits
Author: Finn Plummer Date: 2025-09-23T13:18:19-07:00 New Revision: e4e666a8525d1b7270c198925db50886e82f3e50 URL: https://github.com/llvm/llvm-project/commit/e4e666a8525d1b7270c198925db50886e82f3e50 DIFF: https://github.com/llvm/llvm-project/commit/e4e666a8525d1b7270c198925db50886e82f3e50.diff

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
https://github.com/jiang1997 ready_for_review https://github.com/llvm/llvm-project/pull/160362 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][fatlto] Only run sanitzer passes in prelink pipelines (PR #160213)

2025-09-23 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Why do we want to run sanitizer passes prelink? Wouldn't it be more effective to run them postlink? https://github.com/llvm/llvm-project/pull/160213 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/c

[clang-tools-extra] [clang-tidy] improve robustness of the member initializer detection in modernize-use-default-member-init (PR #159392)

2025-09-23 Thread Baranov Victor via cfe-commits
vbvictor wrote: Could you add also test from https://github.com/llvm/llvm-project/issues/160394? https://github.com/llvm/llvm-project/pull/159392 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > Additionally, just for some namespace sanity (especially from the perspective > of Linux's use of OBTs), can we have the type specifier named > "__ob_$behavior": __ob_wrap, __ob_trap ? That would make things a bit cleaner > for Linux's resulting macros for OBT usage to de-con

[clang-tools-extra] [llvm] [GitHub] Bump clang-tidy version to 21th in CI (PR #160193)

2025-09-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/ClangTidy.cpp | python3 clang-tools-extra/clang-tidy/tool/c

[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

2025-09-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/160359 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Zibi Sarbinowski via cfe-commits
@@ -18,6 +18,7 @@ #include "clang/AST/ASTLambda.h" #include "clang/AST/Expr.h" #include "clang/Basic/TargetInfo.h" +#include "llvm/Support/SystemZ/zOSSupport.h" zibi2 wrote: Thank you for suggestion. This header is included in 1/2 a dozen places and it was no

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-09-23 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm, but can you open an issue to track the issue I mentioned with making these operators visible in the IR when used on real/int values? https://github.com/llvm/llvm-project/pull/159916 ___ c

[clang-tools-extra] [llvm] [GitHub] Bump clang-tidy version to 21th in CI (PR #160193)

2025-09-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/160193 >From e78a08ba18618ad8b1bc4e0a7203fc311d8fb75e Mon Sep 17 00:00:00 2001 From: Baranov Victor Date: Mon, 22 Sep 2025 23:22:19 +0300 Subject: [PATCH 1/4] WIP --- .github/workflows/pr-code-lint.yml | 5 - 1

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/160355 >From 40676e4d17e9d56395f5f4ea0804b409fde6fbb7 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Tue, 23 Sep 2025 11:16:26 -0700 Subject: [PATCH 1/2] ok to init struct with zero members --- clang/lib/Sema/SemaHLS

[clang-tools-extra] [clang-tidy] Add bugprone-default-lambda-capture (PR #160150)

2025-09-23 Thread JJ Marr via cfe-commits
https://github.com/jjmarr-amd updated https://github.com/llvm/llvm-project/pull/160150 >From 35df1c6ea3af8dbaea2d7049ae79b14ce39f0774 Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Fri, 11 Jul 2025 14:40:57 -0400 Subject: [PATCH 01/13] Bugprone-default-lambda-capture on-behalf-of: @AMD --- ...

[clang] ac62c4a - [CIR] Implement UnaryExtension support for ComplexType (#159913)

2025-09-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-23T16:50:24+02:00 New Revision: ac62c4af29533e8101063f4ab7af66d0b4784d4d URL: https://github.com/llvm/llvm-project/commit/ac62c4af29533e8101063f4ab7af66d0b4784d4d DIFF: https://github.com/llvm/llvm-project/commit/ac62c4af29533e8101063f4ab7af66d0b4784d4d.diff LO

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/157403 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/149694 >From 823bfd458a0e03125d84fd676fbc284f09b50a5b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 19 Jul 2025 23:43:55 -0700 Subject: [PATCH 01/10] [clang-tidy] Make `modernize-use-using`'s fixits mo

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/17] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-09-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/159916 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add -r option for recursing into directories (PR #160299)

2025-09-23 Thread James Henderson via cfe-commits
https://github.com/jh7370 converted_to_draft https://github.com/llvm/llvm-project/pull/160299 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Deric C. via cfe-commits
@@ -985,3 +995,35 @@ void case18() { void case19(Unnamed U) { TwoInts TI = {U, 1}; } + +// InitList with Empty Struct on LHS +// CHECK-LABEL: case20 +// CHECK: [[E:%.*]] = alloca %struct.Empty, align 1 +// CHECK-NEXT: call void @llvm.memcpy.p0.p0.i32(ptr align 1 [[E]], ptr al

[clang] [NFC][HLSL] Remove use of `clang_dxc` in testing (PR #160359)

2025-09-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/160359 The use of `clang_dxc` should be contained to the `clang/test/[Option|Driver]` directories. `clang_cc1` is a more direct way to invoke these tests. >From 7ae584592f17ade9f7cfa2b0497d4d5cd0db580b Mon Sep 17 00:

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/159974 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a0d145 - [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (#158744)

2025-09-23 Thread via cfe-commits
Author: Akira Hatanaka Date: 2025-09-23T12:21:15-07:00 New Revision: 8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc URL: https://github.com/llvm/llvm-project/commit/8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc DIFF: https://github.com/llvm/llvm-project/commit/8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc.diff

[clang] [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (PR #158744)

2025-09-23 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak closed https://github.com/llvm/llvm-project/pull/158744 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

2025-09-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/160359 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Builtin type declaration builder cleanup (PR #160375)

2025-09-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/160375 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Cleanup builtin type declaration builder (PR #160375)

2025-09-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/160375 Replace early exit from builder methods with assert - they should be not called on a completed record. Also removes commented-out code. >From d006e675de7978a7e064995932e7dc097b1ace01 Mon Sep 17 00:00:00 2001 Fro

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/160339 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[clang] [llvm] [Offload][PGO] Fix PGO on NVPTX targets (PR #143568)

2025-09-23 Thread Kevin Sala Penades via cfe-commits
@@ -947,11 +954,18 @@ bool InstrLowerer::lower() { if (!ContainsProfiling && !CoverageNamesVar) return MadeChange; + // Cached info for generating delayed offset calculations + // This is only relevant on NVPTX targets + SmallVector Kernels; + SmallVector ValueSites;

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#160360** https://app.graphite.dev/github/pr/llvm/llvm-project/160360?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1603

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
localspook wrote: > give up fixed multiple type in type define when the types are not exactly the > same That would get rid of the bad fix-its, but I think it would lose too many of the good ones. For example, we handle this case perfectly fine: ```cpp typedef int Int, *IntPtr; ``` > only fix

[clang] 2d6a671 - [CIR] Upstream support Agg init with lvalue ComplexType (#159974)

2025-09-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-23T21:07:55+02:00 New Revision: 2d6a6714f36907459d184b1a9350ae0e950f360a URL: https://github.com/llvm/llvm-project/commit/2d6a6714f36907459d184b1a9350ae0e950f360a DIFF: https://github.com/llvm/llvm-project/commit/2d6a6714f36907459d184b1a9350ae0e950f360a.diff LO

[libcxx] [libcxxabi] [libunwind] [llvm] [libc++] Build Google Benchmark directly from Lit (PR #160367)

2025-09-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD libcxx/utils/libcxx/test/config.py libcxx/utils/libcxx/test/format.py `

[clang] [CIR] Implement UnaryExtension support for ComplexType (PR #159913)

2025-09-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/159913 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Resource creation not using the correct path after the patch that placed HTML files into their own directory. --- Full diff: https://github.com/llvm/llvm-project/pull/160360.diff 2 Files Affected

[clang] [clang-format] Support fine-grained alignment of variable declarations (PR #160270)

2025-09-23 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. Based on the acceptance of the linked commit, LGTM. But please wait a bit for additional feedback. https://github.com/llvm/llvm-project/pull/160270 ___ cfe-commits mailing list cfe-comm

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (jiang1997) Changes Fix #160281 --- Full diff: https://github.com/llvm/llvm-project/pull/160362.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+52-95) ``diff diff --git a/clang/lib/AST/Byte

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
@@ -50,6 +50,16 @@ struct Unnamed { int : 8; }; +struct Empty { +}; + +struct UnnamedOnly { + int : 8; +}; + llvm-beanz wrote: A few other potential cases to consider: ``` struct EmptyDerived : Empty {}; struct UnnamedDerived : UnnamedOnly {}; ``` https:

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-23 Thread Sebastian Proell via cfe-commits
https://github.com/sebproell edited https://github.com/llvm/llvm-project/pull/156199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
https://github.com/jiang1997 edited https://github.com/llvm/llvm-project/pull/160362 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-23 Thread Sebastian Proell via cfe-commits
https://github.com/sebproell updated https://github.com/llvm/llvm-project/pull/156199 >From ce6fb88dadbfa996fe07ea381e3ffca94330af43 Mon Sep 17 00:00:00 2001 From: Sebastian Proell Date: Sat, 30 Aug 2025 14:46:25 +0200 Subject: [PATCH 1/2] [Clang] Add diagnostic for why std::is_abstract is fals

[clang] [NFC][HLSL] Remove use of `clang_dxc` in testing (PR #160359)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes The use of `clang_dxc` should be contained to the `clang/test/[Option|Driver]` directories. `clang_cc1` is a more direct way to invoke these tests. --- Full diff: https://github.com/llvm/llvm-project/pull/1

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. Looks good, one suggestion for additional tests. https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
https://github.com/llvm-beanz edited https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-09-23 Thread Björn Schäpers via cfe-commits
@@ -1219,6 +1219,8 @@ template <> struct MappingTraits { Style.SpaceBeforeCtorInitializerColon); IO.mapOptional("SpaceBeforeInheritanceColon", Style.SpaceBeforeInheritanceColon); +IO.mapOptional("SpaceBetweenUnderscoreParens", -

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/160360 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

2025-09-23 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. https://github.com/llvm/llvm-project/pull/160359 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/160360 Resource creation not using the correct path after the patch that placed HTML files into their own directory. >From e6c68b9f0081606b62a1cfa1d80ccbe69fc946c3 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Tue,

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-23 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/159974 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

  1   2   3   >