[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -0,0 +1,151 @@ +//===-- RISCVInstrInfoQ.td - RISC-V 'Q' instructions ---*- tablegen -*-===// +// +// 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] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

2025-05-12 Thread via cfe-commits
choikwa wrote: @yxsamliu should this be merged before test? https://github.com/llvm/llvm-project/pull/129347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -0,0 +1,151 @@ +//===-- RISCVInstrInfoQ.td - RISC-V 'Q' instructions ---*- tablegen -*-===// +// +// 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] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -674,6 +681,9 @@ void RISCVInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, } else if (RISCV::FPR64RegClass.hasSubClassEq(RC)) { Opcode = RISCV::FSD; IsScalableVector = false; + } else if (RISCV::FPR128RegClass.hasSubClassEq(RC)) { topperc

[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -766,6 +776,9 @@ void RISCVInstrInfo::loadRegFromStackSlot( } else if (RISCV::FPR64RegClass.hasSubClassEq(RC)) { Opcode = RISCV::FLD; IsScalableVector = false; + } else if (RISCV::FPR128RegClass.hasSubClassEq(RC)) { topperc wrote: This isn't an M

[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -599,6 +599,13 @@ void RISCVInstrInfo::copyPhysReg(MachineBasicBlock &MBB, return; } + if (RISCV::FPR128RegClass.contains(DstReg, SrcReg)) { topperc wrote: This isn't an MC layer change and can't be tested. https://github.com/llvm/llvm-project/pull

[clang] a4186bd - [clang][OpenMP] Add error for large expr in collapse clause (#138592)

2025-05-12 Thread via cfe-commits
Author: Amr Hesham Date: 2025-05-12T21:34:35+02:00 New Revision: a4186bd04bca16a23769d9461e4b0fc1c7a03f53 URL: https://github.com/llvm/llvm-project/commit/a4186bd04bca16a23769d9461e4b0fc1c7a03f53 DIFF: https://github.com/llvm/llvm-project/commit/a4186bd04bca16a23769d9461e4b0fc1c7a03f53.diff LO

[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)

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

[clang] [clang] Fix Name Mangling Crashes (PR #134486)

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

[clang] 70ca3f4 - [OpenMP] Fix crash on invalid with cancel directive (#139577)

2025-05-12 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-05-12T13:44:03-04:00 New Revision: 70ca3f41fa1a16ede0b33e0780c04360b50e4dee URL: https://github.com/llvm/llvm-project/commit/70ca3f41fa1a16ede0b33e0780c04360b50e4dee DIFF: https://github.com/llvm/llvm-project/commit/70ca3f41fa1a16ede0b33e0780c04360b50e4dee.diff

[clang] [OpenMP] Fix crash on invalid with cancel directive (PR #139577)

2025-05-12 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/139577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add hasAnyNameInVector matcher (PR #139594)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Florian Mayer (fmayer) Changes This is useful for matching functions whose name is given as a parameter, e.g. --- Full diff: https://github.com/llvm/llvm-project/pull/139594.diff 1 Files Affected: - (modified) clang/include/clang/ASTMa

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-05-12 Thread Oliver Hunt via cfe-commits
@@ -65,6 +65,17 @@ enum class PointerAuthenticationMode : unsigned { SignAndAuth }; +static constexpr llvm::StringLiteral PointerAuthenticationOptionStrip = "strip"; ojhunt wrote: It's not stored as a string (or even an attribute), they're stored as flags

[clang] [llvm] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

2025-05-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang,llvm` at step 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/1199

[clang] [llvm] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

2025-05-12 Thread Finn Plummer via cfe-commits
inbelic wrote: Unused variables build failures were addressed [here ](https://github.com/llvm/llvm-project/pull/139590)and [here](https://github.com/llvm/llvm-project/commit/e74877bafebeff40f7213c199c8125bb49818fc1). https://github.com/llvm/llvm-project/pull/137690

[clang] [llvm] [RISCV] Add `zihintpause` LLVM/Clang intrinsic (PR #139519)

2025-05-12 Thread Craig Topper via cfe-commits
@@ -147,6 +147,13 @@ def ntl_load : RISCVBuiltin<"void(...)">; def ntl_store : RISCVBuiltin<"void(...)">; } // Features = "zihintntl", Attributes = [CustomTypeChecking] +//===--===// +// Zihintpause extension.

[clang] [clang] Add hasAnyNameInVector matcher (PR #139594)

2025-05-12 Thread Florian Mayer via cfe-commits
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/139594 This is useful for matching functions whose name is given as a parameter, e.g. Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e;

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-05-12 Thread Oliver Hunt via cfe-commits
@@ -65,6 +65,17 @@ enum class PointerAuthenticationMode : unsigned { SignAndAuth }; +static constexpr llvm::StringLiteral PointerAuthenticationOptionStrip = "strip"; ojhunt wrote: I was meaning "is there a more idiomatic way to have these string constants

[clang] Fix crash with invalid member function param list (PR #139595)

2025-05-12 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/139595 We cannot consume annotation tokens with ConsumeToken(), so any pragmas present in an invalid initializer would previously crash. Now we handle annotation tokens more generally and avoid the crash. Fixes

[clang] Fix crash with invalid member function param list (PR #139595)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes We cannot consume annotation tokens with ConsumeToken(), so any pragmas present in an invalid initializer would previously crash. Now we handle annotation tokens more generally and avoid the crash. Fi

[clang] [NFC][analyzer] Document configuration options (PR #135169)

2025-05-12 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,242 @@ +#!/usr/bin/env python3 +# A tool to automatically generate documentation for the config options of the +# clang static analyzer by reading `AnalyzerOptions.def`. + +import argparse +from collections import namedtuple +from enum import Enum, auto +import re +impo

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

2025-05-12 Thread Daan De Meyer via cfe-commits
DaanDeMeyer wrote: Ping @owenca @HazardyKnusperkeks 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] Fix crash with invalid member function param list (PR #139595)

2025-05-12 Thread Aaron Ballman via cfe-commits
@@ -40,3 +40,13 @@ struct S : public Base1, public Base2 { // All initializers are correct, nothing to skip, diagnose 2 missing commas. S(const S &) : Base1(0) ::Base2(1.0) x(2) {} // expected-error2{{missing ',' between base or member initializers}} }; + +namespace GH1137

[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

2025-05-12 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/137613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a6c4ca8 - [CIR] Upstream insert op for VectorType (#139146)

2025-05-12 Thread via cfe-commits
Author: Amr Hesham Date: 2025-05-12T20:22:02+02:00 New Revision: a6c4ca8e934474d3ed76718788fb086c28a10863 URL: https://github.com/llvm/llvm-project/commit/a6c4ca8e934474d3ed76718788fb086c28a10863 DIFF: https://github.com/llvm/llvm-project/commit/a6c4ca8e934474d3ed76718788fb086c28a10863.diff LO

[clang-tools-extra] bfd2ef7 - [clangd] Add CodePatterns config option under Completion (#137613)

2025-05-12 Thread via cfe-commits
Author: Noustaa Date: 2025-05-12T14:22:27-04:00 New Revision: bfd2ef765957307d8a02f72cf6d67de5d3977f10 URL: https://github.com/llvm/llvm-project/commit/bfd2ef765957307d8a02f72cf6d67de5d3977f10 DIFF: https://github.com/llvm/llvm-project/commit/bfd2ef765957307d8a02f72cf6d67de5d3977f10.diff LOG:

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

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

[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

2025-05-12 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/137613 >From 7e715447d242d7e409e02059d2948fb3417fb00f Mon Sep 17 00:00:00 2001 From: Noustaa Date: Mon, 28 Apr 2025 12:38:36 +0200 Subject: [PATCH 1/5] [clangd] Add CodePatterns config option under Completion A

[clang] Fix crash with invalid member function param list (PR #139595)

2025-05-12 Thread Erich Keane via cfe-commits
@@ -40,3 +40,13 @@ struct S : public Base1, public Base2 { // All initializers are correct, nothing to skip, diagnose 2 missing commas. S(const S &) : Base1(0) ::Base2(1.0) x(2) {} // expected-error2{{missing ',' between base or member initializers}} }; + +namespace GH1137

[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

2025-05-12 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks, LGTM! (I made one small tweak, to ConfigFragment.h, to refer to the config option values `All` and `None` with correct capitalization.) https://github.com/llvm/llvm-project/pull/137613 ___

[clang] [CUDA] fix wrapper cmath header to match #136101 (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
Artem-B wrote: @jhuber6 @ldionne One concern I have for this change is that it will break folks who will use older libc++ with the new Clang + wrapper headers. Is older libc++ expected to work with non-matching clang version? If the expectation is that libc++ and clang are from the same versio

[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

2025-05-12 Thread via cfe-commits
github-actions[bot] wrote: @Noustaa Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

2025-05-12 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @Noustaa if you'd like to also submit a documentation patch for https://clangd.llvm.org/config.html (source at https://github.com/llvm/clangd-www/blob/main/config.md), that would be appreciated! https://github.com/llvm/llvm-project/pull/137613 ___

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

2025-05-12 Thread Amr Hesham via cfe-commits
@@ -1399,8 +1400,10 @@ mlir::LogicalResult CIRToLLVMShiftOpLowering::matchAndRewrite( if (op.getIsShiftleft()) { rewriter.replaceOpWithNewOp(op, llvmTy, val, amt); } else { -assert(!cir::MissingFeatures::vectorType()); -bool isUnsigned = !cirValTy.isSigned(); +

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

2025-05-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper deleted https://github.com/llvm/llvm-project/pull/139465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8d7b35e - [CUDA] Remove obsolete GPU-side __constexpr_* wrappers. (#139164)

2025-05-12 Thread via cfe-commits
Author: Artem Belevich Date: 2025-05-12T12:50:47-07:00 New Revision: 8d7b35eeffa4ce6b8781eac4012ead7d5422264a URL: https://github.com/llvm/llvm-project/commit/8d7b35eeffa4ce6b8781eac4012ead7d5422264a DIFF: https://github.com/llvm/llvm-project/commit/8d7b35eeffa4ce6b8781eac4012ead7d5422264a.diff

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

2025-05-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/139465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Remove obsolete GPU-side __constexpr_* wrappers. (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B closed https://github.com/llvm/llvm-project/pull/139164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

2025-05-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/139465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libcxx] [libcxxabi] [libunwind] [cmake] Normalize TARGET_SUBDIR paths (PR #138524)

2025-05-12 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. https://github.com/llvm/llvm-project/pull/138524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libcxx] [libcxxabi] [libunwind] [cmake] Normalize TARGET_SUBDIR paths (PR #138524)

2025-05-12 Thread Louis Dionne via cfe-commits
ldionne wrote: Merging since this is both small and seems obviously correct. I technically don't have oversight of libc, but I don't think the owners would oppose this change. https://github.com/llvm/llvm-project/pull/138524 ___ cfe-commits mailing l

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-12 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr created https://github.com/llvm/llvm-project/pull/139614 Followup to #138741. This adds the requested macro to silence `-Wunnecessary-virtual-specifier` when declaring virtual anchor functions in `final` classes, per [LLVM policy](https://llvm.org/docs/CodingStandar

[libc] [libcxx] [libcxxabi] [libunwind] [cmake] Normalize TARGET_SUBDIR paths (PR #138524)

2025-05-12 Thread Louis Dionne via cfe-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/138524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-llvm-ir Author: Devon Loehr (DKLoehr) Changes Followup to #138741. This adds the requested macro to silence `-Wunnecessary-virtual-specifier` when declaring virtual anchor functions in `final` classes, per [LLVM poli

[libunwind] fc3b67a - [cmake] Normalize TARGET_SUBDIR paths (#138524)

2025-05-12 Thread via cfe-commits
Author: Raul Tambre Date: 2025-05-12T15:59:39-04:00 New Revision: fc3b67aee852d99bbb5d2f4670695d8246375dac URL: https://github.com/llvm/llvm-project/commit/fc3b67aee852d99bbb5d2f4670695d8246375dac DIFF: https://github.com/llvm/llvm-project/commit/fc3b67aee852d99bbb5d2f4670695d8246375dac.diff L

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-12 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,h -- clang/include/clang/AST/Decl.h clang/include/clang/

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

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

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-05-12 Thread David Blaikie via cfe-commits
dwblaikie wrote: > > My intent (haven't checked the patch) is that it'd be modeled as a static > > member variable - so there'd be a declaration in the class, but a > > definition DIE outside the class that'd be indexed by gdb OK, I'd have > > thought? (it'd go in .debug_names, and gdb_index,

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

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

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions c,h,cpp -- clang/include/clang/Sema/SemaWasm.h clang/lib/Co

[clang] dd3d7cf - [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (#137690)

2025-05-12 Thread via cfe-commits
Author: Finn Plummer Date: 2025-05-12T09:59:46-07:00 New Revision: dd3d7cfe2e77f0f33b2952b1c965c87c9ea46eb4 URL: https://github.com/llvm/llvm-project/commit/dd3d7cfe2e77f0f33b2952b1c965c87c9ea46eb4 DIFF: https://github.com/llvm/llvm-project/commit/dd3d7cfe2e77f0f33b2952b1c965c87c9ea46eb4.diff

[clang] [llvm] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

2025-05-12 Thread Finn Plummer via cfe-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/137690 ___ 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] Remove intrusive reference count from `DiagnosticOptions` (PR #139584)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes The `DiagnosticOptions` class is currently intrusively reference-counted, which makes reasoning about its lifetime very difficult in some cases. For example, `CompilerIn

[clang] [clang-tools-extra] [lldb] [clang] Remove intrusive reference count from `DiagnosticOptions` (PR #139584)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Jan Svoboda (jansvoboda11) Changes The `DiagnosticOptions` class is currently intrusively reference-counted, which makes reasoning about its lifetime very difficult in some cases. For example, `CompilerInvocation` owns the `DiagnosticOptio

[clang] [CIR] Implement folder for VecExtractOp (PR #139304)

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

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: Hood Chatham (hoodmane) Changes I also fixed __builtin_wasm_ref_null_extern() to generate a diagnostic when it gets an argument. It seems like `SemaRef.checkArgCount()` has a bug that makes it unable to check for 0 args. cc

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Hood Chatham (hoodmane) Changes I also fixed __builtin_wasm_ref_null_extern() to generate a diagnostic when it gets an argument. It seems like `SemaRef.checkArgCount()` has a bug that makes it unable to check for 0 args. cc @sbc1

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hood Chatham (hoodmane) Changes I also fixed __builtin_wasm_ref_null_extern() to generate a diagnostic when it gets an argument. It seems like `SemaRef.checkArgCount()` has a bug that makes it unable to check for 0 args. cc @sbc100 @pmat

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane created https://github.com/llvm/llvm-project/pull/139580 I also fixed __builtin_wasm_ref_null_extern() to generate a diagnostic when it gets an argument. It seems like `SemaRef.checkArgCount()` has a bug that makes it unable to check for 0 args. cc @sbc100 @pmatos

[clang] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern (PR #139580)

2025-05-12 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane updated https://github.com/llvm/llvm-project/pull/139580 >From 2ca282f0a20088bef15289a8ce5167d1e23595c3 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Fri, 9 May 2025 00:16:26 -0400 Subject: [PATCH 1/2] [Wasm][Clang] Add __builtin_wasm_ref_is_null_extern I also

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

2025-05-12 Thread via cfe-commits
@@ -1920,9 +1920,17 @@ static bool EvaluateComplex(const Expr *E, ComplexValue &Res, EvalInfo &Info); static bool EvaluateAtomic(const Expr *E, const LValue *This, APValue &Result, EvalInfo &Info); static bool EvaluateAsRValue(EvalInfo &Info, const E

[clang] [NFC][HLSL][RootSignature] Patch to remove unused variable (PR #139590)

2025-05-12 Thread Finn Plummer via cfe-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/139590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL][RootSignature] Patch to remove unused variable (PR #139590)

2025-05-12 Thread Finn Plummer via cfe-commits
inbelic wrote: https://github.com/llvm/llvm-project/commit/e74877bafebeff40f7213c199c8125bb49818fc1 beat me to it https://github.com/llvm/llvm-project/pull/139590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

2025-05-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/11067 Here is the relevant piece of

[clang] [NFC][analyzer] Document configuration options (PR #135169)

2025-05-12 Thread Donát Nagy via cfe-commits
@@ -7,6 +7,9 @@ //===--===// // // This file defines the analyzer options avaible with -analyzer-config. +// Note that clang/docs/tools/generate_analyzer_options_docs.py relies on the +// structure of this

[clang] [clang][analysis] Fix flaky clang/test/Analysis/live-stmts.cpp test (2nd attempt) (PR #127406)

2025-05-12 Thread Balazs Benics via cfe-commits
steakhal wrote: > Is there interest in backporting this to the release branch? If so, can > someone manually create a PR? Thanks for the heads up. Here is the manual backport: #139591 @tstellar https://github.com/llvm/llvm-project/pull/127406 ___ cf

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

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

[clang] [CUDA] fix wrapper cmath header to match #136101 (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
Artem-B wrote: > Right now this checks for `libc++` less than 14. Is that still relevant > following that change? That's a very good point. Looks like those `__constexpr_fmin/fmax` are gone now and we do not heed them any more. https://github.com/llvm/llvm-project/pull/139164

[clang] [CUDA] fix wrapper cmath header to match #136101 (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/139164 >From a1d60feed11174b9d2106b57ee15ff6d9bc56fa4 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Thu, 8 May 2025 14:43:47 -0700 Subject: [PATCH] [CUDA] remove obsolete GPU-side __constexpr* wrappers libc++ no

[clang] [CUDA] fix wrapper cmath header to match #136101 (PR #139164)

2025-05-12 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/139164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Remove obsolete GPU-side __constexpr_* wrappers. (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/139164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Remove obsolete GPU-side __constexpr_* wrappers. (PR #139164)

2025-05-12 Thread Artem Belevich via cfe-commits
Artem-B wrote: No wrappers -- no problems. :-) https://github.com/llvm/llvm-project/pull/139164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix Name Mangling Crashes (PR #134486)

2025-05-12 Thread via cfe-commits
Mr-Anyone wrote: It seems that a different approach is needed. https://github.com/llvm/llvm-project/pull/134486 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

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

[clang] [clang] Fix Name Mangling Crashes (PR #134486)

2025-05-12 Thread via cfe-commits
https://github.com/Mr-Anyone closed https://github.com/llvm/llvm-project/pull/134486 ___ 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-12 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak updated https://github.com/llvm/llvm-project/pull/138947 >From ece5ba2ee3adac03f058d5cc450ecf2ad70a5a70 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 7 May 2025 12:00:08 -0700 Subject: [PATCH 1/3] [ItaniumMangle] Make sure class types are added to the dic

[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

2025-05-12 Thread Amr Hesham via cfe-commits
@@ -1399,8 +1400,10 @@ mlir::LogicalResult CIRToLLVMShiftOpLowering::matchAndRewrite( if (op.getIsShiftleft()) { rewriter.replaceOpWithNewOp(op, llvmTy, val, amt); } else { -assert(!cir::MissingFeatures::vectorType()); -bool isUnsigned = !cirValTy.isSigned(); +

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

2025-05-12 Thread via cfe-commits
@@ -0,0 +1,20 @@ +// This verifies that hotpatch function attributes are correctly propagated when compiling directly to OBJ. +// +// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-hotpatch-functions-file=%S/ms-hotpatch-functions.txt /Fo%t.obj %s si

[clang] [PPC] Disable rop-protect for 32-bit OS targets. (PR #139619)

2025-05-12 Thread Sean Fertile via cfe-commits
https://github.com/mandlebug created https://github.com/llvm/llvm-project/pull/139619 The instructions are not supported on either 32-bit ELF (due to no redzone) or 32-bit AIX due to the instructions always using the full 64-bit width of the register inputs. >From 6f089b31986290495a452d71fe24

[clang] [PPC] Disable rop-protect for 32-bit OS targets. (PR #139619)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Sean Fertile (mandlebug) Changes The instructions are not supported on either 32-bit ELF (due to no redzone) or 32-bit AIX due to the instructions always using the full 64-bit width of the register inputs. --- Full diff: https://g

[clang] [PPC] Disable rop-protect for 32-bit OS targets. (PR #139619)

2025-05-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Sean Fertile (mandlebug) Changes The instructions are not supported on either 32-bit ELF (due to no redzone) or 32-bit AIX due to the instructions always using the full 64-bit width of the register inputs. --- Full diff: https:

[clang] [Clang][AArch64] Add pessimistic vscale_range for sve/sme (PR #137624)

2025-05-12 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: I really don't want the dependency chain that involves clang converting the target feature list to an LLVM attribute string, then grabbing the attribute out of the llvm::Function to parse it back into a feature list. That ties together the target info and codegen in a wei

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

2025-05-12 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

[libc] [libcxx] [libcxxabi] [libunwind] [cmake] Normalize TARGET_SUBDIR paths (PR #138524)

2025-05-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `libc,libcxx,libcxxabi,libunwind` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/149

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

2025-05-12 Thread via cfe-commits
sivadeilra wrote: > Oh so all this dance (`_ref_` and the additional metadata) is for code page > integrity purposes only? To keep them unmodified in memory? So how does then > the kernel use the PE metadata if it doesn't patch the code memory pages of > the initial (running) image? Is there a

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

2025-05-12 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] [C] Handle comma operator for implicit int->enum conversions (PR #138752)

2025-05-12 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Hi @AaronBallman > > I see that if I build clang with ASAN with this patch and run the testcase > `clang/test/C/C99/n590.c` it crashes and I see this > > ``` > AddressSanitizer:DEADLYSIGNAL > = > ==2063954==E

[clang] [OpenMP] Fix crash with invalid argument to simd collapse (PR #139313)

2025-05-12 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/139313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Fix crash with invalid argument to simd collapse (PR #139313)

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

[clang] [CUDA][HIP] Add a __device__ version of std::__glibcxx_assert_fail() (PR #136133)

2025-05-12 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: > Now the question is -- how do we test it? I'm working on adding some tests for the cuda_wrapper headers: * [ ] First in https://github.com/llvm/llvm-test-suite/tree/main/External/CUDA (there are some already related to other cuda_wrapper headers) * [ ] and likely something v

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-05-12 Thread Brad King via cfe-commits
@@ -14,3 +14,11 @@ //--- test.pcm // CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument] + +// test whether the following outputs %Hello.bmi +// RUN: %clang_cl /std:c++20 --precompile -x c++-module -fmodule-o

[clang] ed81a81 - [NFC][Clang] Don't check hardcode op num (#135375)

2025-05-12 Thread via cfe-commits
Author: Jinsong Ji Date: 2025-05-12T09:10:16-04:00 New Revision: ed81a8144a6c7ad35b2f5e0f73214dd4b51b2d60 URL: https://github.com/llvm/llvm-project/commit/ed81a8144a6c7ad35b2f5e0f73214dd4b51b2d60 DIFF: https://github.com/llvm/llvm-project/commit/ed81a8144a6c7ad35b2f5e0f73214dd4b51b2d60.diff LO

[clang] Reland "Reland [Modules] Remove unnecessary check when generating name lookup table in ASTWriter" (PR #139253)

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

[clang] [NFC][Clang] Don't check hardcode op num (PR #135375)

2025-05-12 Thread Jinsong Ji via cfe-commits
https://github.com/jsji closed https://github.com/llvm/llvm-project/pull/135375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "Reland [Modules] Remove unnecessary check when generating name lookup table in ASTWriter" (PR #139253)

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

[clang] Emit nested unused enum types with -fno-eliminate-unused-debug-types (PR #137818)

2025-05-12 Thread via cfe-commits
ykhatav wrote: Ping! https://github.com/llvm/llvm-project/pull/137818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang][Sema] Handle invalid variable template specialization whose type depends on itself (#134522)" (PR #139539)

2025-05-12 Thread Erich Keane via cfe-commits
erichkeane wrote: This would be quite disappointing to me. As much as I strongly dislike that we don't build a standard library, this patch fixed a handful of bugs in a really nice manner. I'd vastly prefer if someone could prepare a 'compatibility' hack here. Even something as absolutely

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-12 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm commented: This looks broadly good to me. https://github.com/llvm/llvm-project/pull/139190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-12 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/139190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-12 Thread Paul Walker via cfe-commits
@@ -1476,8 +1486,14 @@ CoerceScalableToFixed(CodeGenFunction &CGF, llvm::FixedVectorType *ToTy, // If we are casting a scalable i1 predicate vector to a fixed i8 // vector, first bitcast the source. if (FromTy->getElementType()->isIntegerTy(1) && - FromTy->getElemen

<    1   2   3   4   5   >