[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread Nikita Popov via cfe-commits
@@ -349,7 +350,12 @@ class Triple { /// triple fields unknown. Triple() = default; + LLVM_ABI explicit Triple(std::string &&Str); nikic wrote: Probably my C++-foo is not strong enough, but I thought that doing a by-value pass + std::move gives you the s

[clang] [sanitizers] do not accept out of bounds -fsanitize-skip-hot-cutoff (PR #145806)

2025-06-25 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/145806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatchers] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #145840)

2025-06-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/145840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix an off-by-1 bug with -length option (PR #143302)

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

[clang-tools-extra] [clangd] Migrate away from std::nullopt (NFC) (PR #145841)

2025-06-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/145841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/145843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

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

[clang] fff720d - Triple: Forward declare Twine and remove include (#145685)

2025-06-25 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-06-26T15:26:04+09:00 New Revision: fff720d6419b92be068ac4f3ac7e8333a781ee20 URL: https://github.com/llvm/llvm-project/commit/fff720d6419b92be068ac4f3ac7e8333a781ee20 DIFF: https://github.com/llvm/llvm-project/commit/fff720d6419b92be068ac4f3ac7e8333a781ee20.diff

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2025-06-25 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: > Driver options need to have some stability guarantee, while CC1 options can > be more freely changed. So I'd be concerned if we commit to certain forms of > driver options with known ergonomics issues. The Clang driver options should > come last in the patch stack, with other

[clang] [clang] Revise relnote for int->enum conversion. (PR #145755)

2025-06-25 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/145755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Guard against self-assignment; NFC (PR #145743)

2025-06-25 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. approving this because it's a nice code cleaning, however defaulting operator= does not protect against self assignment afaik https://github.com/llvm/llvm-project/pull/145743 ___ cfe-commits mail

[clang-tools-extra] [clangd] Migrate away from std::nullopt (NFC) (PR #145841)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Kazu Hirata (kazutakahirata) Changes ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is ki

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Chuanqi Xu via cfe-commits
@@ -1469,6 +1470,12 @@ bool MatchASTVisitor::TraverseDecl(Decl *DeclNode) { return true; } + if (Options.SkipDeclsInModules && DeclNode->isFromASTFile()) { +auto *M = DeclNode->getOwningModule(); +if (M && (M->isInterfaceOrPartition() || M->isGlobalModule())) +

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/145630 >From 3e526e9a666dcc2ea0e6bdcb666dca43ab6ba740 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 17 Jan 2024 13:22:10 +0800 Subject: [PATCH 1/2] [clang-tidy] [Modules] Skip checking decls in clang-tidy --

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes llvm::is_contained is shorter than llvm::all_of plus a lambda. --- Full diff: https://github.com/llvm/llvm-project/pull/145843.diff 7 Files Affected: - (modified) clang/lib/AST/ExprCXX.cpp (+1-1) -

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes llvm::is_contained is shorter than llvm::all_of plus a lambda. --- Full diff: https://github.com/llvm/llvm-project/pull/145843.diff 7 Files Affected: - (modified) clang/lib/AST/ExprCXX.cpp

[clang] Cap IntRange::Width to MaxWidth (PR #145356)

2025-06-25 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/145356 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Kazu Hirata (kazutakahirata) Changes llvm::is_contained is shorter than llvm::all_of plus a lambda. --- Full diff: https://github.com/llvm/llvm-project/pull/145843.diff 7 Files Affected: - (modified) clang/lib/AST/ExprCXX.c

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes llvm::is_contained is shorter than llvm::all_of plus a lambda. --- Full diff: https://github.com/llvm/llvm-project/pull/145843.diff 7 Files Affected: - (modified) clang/lib/AST/ExprCXX.cpp (+

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145843 llvm::is_contained is shorter than llvm::all_of plus a lambda. >From 61c8b69ad8e34b51e10f6f9530604dd8a9d56cdd Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 25 Jun 2025 08:53:51 -0700 Subject: [P

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Chuanqi Xu via cfe-commits
@@ -1469,6 +1470,12 @@ bool MatchASTVisitor::TraverseDecl(Decl *DeclNode) { return true; } + if (Options.SkipDeclsInModules && DeclNode->isFromASTFile()) { +auto *M = DeclNode->getOwningModule(); +if (M && (M->isInterfaceOrPartition() || M->isGlobalModule())) +

[clang-tools-extra] [clangd] Migrate away from std::nullopt (NFC) (PR #145841)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::opt

[clang-tools-extra] [clangd] Migrate away from std::nullopt (NFC) (PR #145841)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145841 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [ASTMatchers] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #145840)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kin

[clang] [ASTMatchers] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #145840)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145840 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Chuanqi Xu via cfe-commits
@@ -139,6 +139,11 @@ class MatchFinder { /// /// It prints a report after match. std::optional CheckProfiling; + +bool SkipDeclsInModules = false; + +MatchFinderOptions() +: CheckProfiling(std::nullopt), SkipDeclsInModules(false) {}

[clang] a6e5242 - [Modules] Add merged Files to UsedModuleFiles

2025-06-25 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-26T13:39:45+08:00 New Revision: a6e524276e2c0596162a9635e0aa87a5ba145409 URL: https://github.com/llvm/llvm-project/commit/a6e524276e2c0596162a9635e0aa87a5ba145409 DIFF: https://github.com/llvm/llvm-project/commit/a6e524276e2c0596162a9635e0aa87a5ba145409.diff LO

[clang] [clang-format] Fix an off-by-1 bug with -length option (PR #143302)

2025-06-25 Thread Owen Pan via cfe-commits
@@ -296,12 +296,16 @@ static bool fillRanges(MemoryBuffer *Code, } if (!EmptyLengths) Length = Lengths[I]; +if (Length == 0) { + errs() << "error: length should be at least 1\n"; + return true; +} if (Offset + Length > CodeSize) { err

[clang-tools-extra] [clang-doc] refactor JSONGenerator array usage (PR #145595)

2025-06-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/145595 >From 19569ab7cecab1d2d0c608d85d7571dd9c754101 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Tue, 24 Jun 2025 11:19:06 -0700 Subject: [PATCH] [clang-doc] refactor JSONGenerator array usage Improve code reuse

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/145685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix source location data loss during decoding. (PR #145529)

2025-06-25 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/145529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [NFC][libclc] Refactor _CLC_*_VECTORIZE macros to functions in .inc files (PR #145678)

2025-06-25 Thread Wenju He via cfe-commits
@@ -0,0 +1,121 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-25 Thread via cfe-commits
@@ -2925,6 +2925,54 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base, return true; } +/// Similar to SelectAddrRegImm, except that the offset restricted for +/// nine bits. +bool RISCVDAGToDAGISel::SelectAddrRegImm9(SDValue Addr, SDValue &Base, +

[clang-tools-extra] [clang-doc] refactor JSONGenerator array usage (PR #145595)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Improve code reuse by calling serializeArray in more generic cases instead of creating and reserving arrays on their own. --- Full diff: https://github.com/llvm/llvm-project/pull/145595.diff 1 Fi

[clang-tools-extra] [clang-doc] refactor JSONGenerator array usage (PR #145595)

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

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/145685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] refactor JSONGenerator array usage (PR #145595)

2025-06-25 Thread Erick Velez via cfe-commits
@@ -454,27 +417,19 @@ static void serializeInfo(const RecordInfo &I, json::Object &Obj, Obj["ProtectedMembers"] = ProtectedMembersArray; } - if (!I.Bases.empty()) { -json::Value BasesArray = Array(); -json::Array &BasesArrayRef = *BasesArray.getAsArray(); -

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread Matt Arsenault via cfe-commits
@@ -349,7 +350,12 @@ class Triple { /// triple fields unknown. Triple() = default; + LLVM_ABI explicit Triple(std::string &&Str); + explicit Triple(StringRef Str) : Triple(Str.str()) {} + explicit Triple(const char *Str) : Triple(std::string(Str)) {} + explicit Triple(

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread Fangrui Song via cfe-commits
@@ -349,7 +350,12 @@ class Triple { /// triple fields unknown. Triple() = default; + LLVM_ABI explicit Triple(std::string &&Str); + explicit Triple(StringRef Str) : Triple(Str.str()) {} + explicit Triple(const char *Str) : Triple(std::string(Str)) {} + explicit Triple(

[clang] [clang-tools-extra] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-06-25 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/145784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-06-25 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: Please add a tag to the beginning of the PR title in square brackets like other PRs. E.g. `[clang-tidy]`. https://github.com/llvm/llvm-project/pull/145784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-25 Thread via cfe-commits
@@ -103,9 +109,41 @@ class SWPFormat let Inst{6-0} = OPC_CUSTOM_0.Value; } +// Prefetch format. +let hasSideEffects = 0, mayLoad = 1,mayStore = 1 in +class Mips_prefetch_ri +: RVInst { + bits<9> imm9; + bits<5> rs1; + bits<5> hint; + + let Inst{31 - 29} = 0b000; + l

[clang] [llvm] [llvm] Enable LLVM_LINK_LLVM_DYLIB by default on non-Windows platforms (PR #138187)

2025-06-25 Thread Reid Kleckner via cfe-commits
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/138187 >From 7e23666e3366101d635648faf95aaf7245643b4e Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 30 Apr 2025 16:32:32 -0700 Subject: [PATCH 1/4] [llvm] Enable LLVM_LINK_LLVM_DYLIB by default on non-Windows pla

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-25 Thread via cfe-commits
@@ -0,0 +1,40 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc -mtriple=riscv32 -mattr=+xmipscbop -mattr=+m -verify-machineinstrs < %s \ +; RUN: | FileCheck %s -check-prefix=RV32XMIPSPREFETCH +; RUN: llc -mtriple=riscv64 -mattr=+xmip

[clang] [llvm] [RISCV] Add support of Zibi experimental extension (PR #127463)

2025-06-25 Thread Craig Topper via cfe-commits
topperc wrote: > > > This adds the support of Zibi v0.1 experimental extension. > > > References: > > > > > > * > > > https://lf-riscv.atlassian.net/wiki/spaces/USXX/pages/599261201/Branch+with+Immediate+Zibi+Ratification+Plan > > > > > > I cannot for the life of me find an actual specificati

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2025-06-25 Thread Fangrui Song via cfe-commits
MaskRay wrote: Sorry, I haven't closely followed the AArch64 PAuth work. The Clang driver options should come last in the patch stack, with other patches reviewed first. For driver options, I don't know a bunch of `-fptrauth-*` is a good idea. We had a similar scenario with -mbranches-within-3

[clang] [llvm] [AMDGPU] Add alignment attr & propagate alignment through make.buffer.rsrc inst (PR #145278)

2025-06-25 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/145278 >From 888df5412b37bd3f232bdb38c9f89786d042fe75 Mon Sep 17 00:00:00 2001 From: shore <372660...@qq.com> Date: Mon, 23 Jun 2025 14:12:15 +0800 Subject: [PATCH 1/5] Add alignment attr & propagate alignment through

[clang] [Clang][Sema] Require `BaseClass::` (not other classes) in member using-declaration (PR #143492)

2025-06-25 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/143492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-25 Thread via cfe-commits
@@ -169,4 +169,20 @@ void record_uninit() { // CHECK-SAME: a46bb5c1ee44d4611ffeb13f7f499605 // CHECK: issue_hash_content_of_line_in_context // CHECK-SAME: e0e0d30ea5a7b2e3a71e1931fa0768a5 + +struct B{ + int i :2; + int:30; // unnamed bit-field +}; + +void bitfield_B_ini

[clang] [llvm] [AMDGPU] Add alignment attr & propagate alignment through make.buffer.rsrc inst (PR #145278)

2025-06-25 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/145278 >From 888df5412b37bd3f232bdb38c9f89786d042fe75 Mon Sep 17 00:00:00 2001 From: shore <372660...@qq.com> Date: Mon, 23 Jun 2025 14:12:15 +0800 Subject: [PATCH 1/5] Add alignment attr & propagate alignment through

[clang] [llvm] [RISCV] Add support of Zibi experimental extension (PR #127463)

2025-06-25 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From e740d8cfb8b689d766841396c5a6ab9a1d389ec7 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Mon, 17 Feb 2025 17:35:52 +0800 Subject: [PATCH 1/5] [RISCV] Add Support of RISCV Zibimm Experimental Extension

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-25 Thread via cfe-commits
@@ -1,12 +1,19 @@ // RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-config core.CallAndMessage:ArgPointeeInitializedness=true \ +// RUN: -analyzer-config core.CallAndMessage:ArgInitializedness=false \ // RUN: -analyzer-output=pl

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-25 Thread via cfe-commits
@@ -2122,8 +2122,21 @@ SVal RegionStoreManager::getBindingForField(RegionBindingsConstRef B, if (const std::optional &V = B.getDirectBinding(R)) return *V; - // If the containing record was initialized, try to get its constant value. + // UnnamedBitField is always Und

[clang] [llvm] [Hexagon] NFC: Reduce the amount of version-specific code (PR #145812)

2025-06-25 Thread Alexey Karyakin via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/145812 >From a84ed78481f37843143b5622a1351d7d8a3c3045 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Mon, 19 May 2025 12:16:36 -0700 Subject: [PATCH] [Hexagon] NFC: Reduce the amount of version-specific cod

[clang] [NFC] [sanitizer] get rid of references to fsanitize-top-hot (PR #145810)

2025-06-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/10189 Here is the relev

[clang] [Clang] Determine offloading architectures at Toolchain creation (PR #145799)

2025-06-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/145799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes This pr updates `setDefaultFlags` in `HLSLRootSignature.h` to account for which version it should initialize the default flag values for. - Updates `setDefaultFlags` with a `Version` argument and initializes

[clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Finn Plummer (inbelic) Changes This pr updates `setDefaultFlags` in `HLSLRootSignature.h` to account for which version it should initialize the default flag values for. - Updates `setDefaultFlags` with a `Version` argument and initializes

[clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

2025-06-25 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/145828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

2025-06-25 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/145828 This pr updates `setDefaultFlags` in `HLSLRootSignature.h` to account for which version it should initialize the default flag values for. - Updates `setDefaultFlags` with a `Version` argument and initializes th

[clang] [llvm] Non constant size and offset in DWARF (PR #141106)

2025-06-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `clang,llvm` at step 6 "test-build-unified-tree-check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/19862 Here

[clang] [RISCV] Implement intrinsics for XAndesVBFHCVT (PR #145634)

2025-06-25 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/145634 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2f9eee8 - [RISCV] Implement intrinsics for XAndesVBFHCVT (#145634)

2025-06-25 Thread via cfe-commits
Author: Jim Lin Date: 2025-06-26T08:58:36+08:00 New Revision: 2f9eee849f7d7414c447d26625517edc34437138 URL: https://github.com/llvm/llvm-project/commit/2f9eee849f7d7414c447d26625517edc34437138 DIFF: https://github.com/llvm/llvm-project/commit/2f9eee849f7d7414c447d26625517edc34437138.diff LOG:

[clang] 0529a34 - [clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (#145244)

2025-06-25 Thread via cfe-commits
Author: yronglin Date: 2025-06-26T08:49:43+08:00 New Revision: 0529a346007cecab95c6820a60cb3e4e36f34990 URL: https://github.com/llvm/llvm-project/commit/0529a346007cecab95c6820a60cb3e4e36f34990 DIFF: https://github.com/llvm/llvm-project/commit/0529a346007cecab95c6820a60cb3e4e36f34990.diff LOG:

[clang] [clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (PR #145244)

2025-06-25 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/145244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (PR #145244)

2025-06-25 Thread via cfe-commits
yronglin wrote: @AaronBallman @shafik Thanks for the review! https://github.com/llvm/llvm-project/pull/145244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 63b14b3 - [RISCV] Add missing required features for Zvfbfmin intrinsics (#145646)

2025-06-25 Thread via cfe-commits
Author: Jim Lin Date: 2025-06-26T08:46:20+08:00 New Revision: 63b14b3f2bf6abd96d9a6cf0cec9e9447b7a3744 URL: https://github.com/llvm/llvm-project/commit/63b14b3f2bf6abd96d9a6cf0cec9e9447b7a3744 DIFF: https://github.com/llvm/llvm-project/commit/63b14b3f2bf6abd96d9a6cf0cec9e9447b7a3744.diff LOG:

[clang] [RISCV] Add missing required features for Zvfbfmin intrinsics (PR #145646)

2025-06-25 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/145646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][RootSignature] Add bounded parameter validations of Root Elements for non-flag values (PR #145795)

2025-06-25 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/145795 >From 7e3f1398ae2ba147822f96dd262a2c6127f0ff68 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 25 Jun 2025 18:16:12 + Subject: [PATCH 1/8] simple prototype first error --- .../clang/Basic/Diagnostic

[clang] [HLSL][RootSignature] Add bounded parameter validations of Root Elements for non-flag values (PR #145795)

2025-06-25 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/145795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-06-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-02` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/8751 Here is the relevant piece of the bui

[clang] 3d51490 - [RISCV] Fix typo in the description of xsfvfwmaccqqq. (#145771)

2025-06-25 Thread via cfe-commits
Author: Craig Topper Date: 2025-06-25T15:46:45-07:00 New Revision: 3d51490622883a197bd40bf3c1e2962d032ea3c9 URL: https://github.com/llvm/llvm-project/commit/3d51490622883a197bd40bf3c1e2962d032ea3c9 DIFF: https://github.com/llvm/llvm-project/commit/3d51490622883a197bd40bf3c1e2962d032ea3c9.diff

[clang] [llvm] [RISCV] Fix typo in the description of xsfvfwmaccqqq. (PR #145771)

2025-06-25 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/145771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix replaceability/relocatability computation (PR #145655)

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

[clang] [CIR] Add support for constructor aliases (PR #145792)

2025-06-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/145792 This change adds support for handling the -mconstructor-aliases option in CIR. Aliases are not yet correctly lowered to LLVM IR. That will be implemented in a future change. >From b9fa4c7e927b01bf998380334d

[clang] [OpenACC][CIR] Implement 'modifier-list' lowering (PR #145770)

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

[clang] [CIR] Add support for constructor aliases (PR #145792)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This change adds support for handling the -mconstructor-aliases option in CIR. Aliases are not yet correctly lowered to LLVM IR. That will be implemented in a future change. --- Full diff: https://githu

[clang] [llvm] [RISCV] Fix typo in the description of xsfvfwmaccqqq. (PR #145771)

2025-06-25 Thread Philip Reames via cfe-commits
https://github.com/preames approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/145771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-06-25 Thread Dave Bartolomeo via cfe-commits
https://github.com/dbartol updated https://github.com/llvm/llvm-project/pull/145784 >From 0be65986e1e2adf973a032936afa9cf48841055b Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Wed, 25 Jun 2025 17:45:50 -0400 Subject: [PATCH] EndSourceFile() for preprocessor before diagnostic client The

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-25 Thread Donát Nagy via cfe-commits
@@ -123,26 +123,10 @@ S getS(); S *getSP(); void testReferenceAddress(int &x) { -// FIXME: Move non-zero reference assumption out of RangeConstraintManager.cpp:422 NagyDonat wrote: This FIXME asks for ensuring that some logic is applied in all constraint ma

[clang] [llvm] [AMDGPU] Add support for `v_cvt_pk_f16_fp8` on gfx1250 (PR #145747)

2025-06-25 Thread Shilei Tian via cfe-commits
shiltian wrote: ### Merge activity * **Jun 25, 8:56 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/145747). https://github.com/llvm/llvm-project/pull/145747 ___

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-25 Thread Donát Nagy via cfe-commits
@@ -123,26 +123,10 @@ S getS(); S *getSP(); void testReferenceAddress(int &x) { -// FIXME: Move non-zero reference assumption out of RangeConstraintManager.cpp:422 -#ifdef ANALYZER_CM_Z3 - clang_analyzer_eval(&x != 0); // expected-warning{{UNKNOWN}} - clang_analyzer_eval(&r

[clang] [HLSL] Add option for VK layouts (PR #145327)

2025-06-25 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/145327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-25 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: Once we are settled on the implementation here, I'll split the `classof` refactors from this PR and merge it before merging this one. Should I measure the perf of this change? https://github.com/llvm/llvm-project/pull/144327

[clang] [clang-format] Handle Trailing Whitespace After Line Continuation (P2223R2) (PR #145243)

2025-06-25 Thread Owen Pan via cfe-commits
@@ -25768,6 +25768,29 @@ TEST_F(FormatTest, OperatorPassedAsAFunctionPtr) { verifyFormat("foo(operator, , -42);", Style); } +TEST_F(FormatTest, LineSpliceWithTrailingWhitespace) { + // Test that each sequence of a backslash (\) immediately followed by zero or + // more hor

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-25 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. LGTM if there are no surprising performance regressions. https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] 4b4782b - Revert "Add support for Windows Secure Hot-Patching" (#145553)

2025-06-25 Thread via cfe-commits
Author: Qinkun Bao Date: 2025-06-24T13:11:52-04:00 New Revision: 4b4782bc868bcca7a92f1253529f148eb61cb628 URL: https://github.com/llvm/llvm-project/commit/4b4782bc868bcca7a92f1253529f148eb61cb628 DIFF: https://github.com/llvm/llvm-project/commit/4b4782bc868bcca7a92f1253529f148eb61cb628.diff LO

[clang] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-25 Thread Krzysztof Parzyszek via cfe-commits
kparzysz wrote: @alexey-bataev This is ready now. https://github.com/llvm/llvm-project/pull/141772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-25 Thread Aaron Ballman via cfe-commits
@@ -488,3 +488,89 @@ static_assert(__is_trivially_copyable(S12)); // expected-note@-1 {{'S12' is not trivially copyable}} \ // expected-note@#tc-S12 {{'S12' defined here}} } + +namespace standard_layout_tests { +struct WithVirtual { // #sl-Virtual +virtual void foo(); // #s

[clang] [llvm] [NVPTX] Consolidate and cleanup various NVPTXISD nodes (NFC) (PR #145581)

2025-06-25 Thread Artem Belevich via cfe-commits
@@ -457,3 +457,25 @@ void NVPTXInstPrinter::printCTAGroup(const MCInst *MI, int OpNum, } llvm_unreachable("Invalid cta_group in printCTAGroup"); } + +void NVPTXInstPrinter::printCallOperand(const MCInst *MI, int OpNum, +raw_ostream &

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-06-25 Thread Maksim Levental via cfe-commits
@@ -0,0 +1,38 @@ +//===- ABIInfo.h - ABI information access & encapsulation - C++ ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-25 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I'll be back to working on this later today - there's a pile of feedback, and a bunch of nonsense that I managed to accidentally accrue and/or re-format when pushing the PR so it will take a little time to unbreak that. It may be easiest to force push a repaired PR first and then

[clang] [CIR][NFC] Sort the 'Misc' section of MissingFeatures (PR #145750)

2025-06-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/145750 This sorts the 'Misc' section of the MissingFeatures.h file lexicographically. The goal is to reduce the number of merge conflicts we're having with this file. Currently, we've been adding new entries at the

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Balazs Benics via cfe-commits
@@ -139,6 +139,11 @@ class MatchFinder { /// /// It prints a report after match. std::optional CheckProfiling; + +bool SkipDeclsInModules = false; + +MatchFinderOptions() +: CheckProfiling(std::nullopt), SkipDeclsInModules(false) {}

[clang] [llvm] [LLVM][AArch64] Relax SVE/SME codegen predicates for crypto and bitperm instructions. (PR #145696)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Walker (paulwalker-arm) Changes Adds sve-sha3 to reference FEAT_SVE_SHA3 without specifically enabling SVE2. The SVE2 requirement for AES, SHA3 and Bitperm is replaced with SVE for non-streaming function. --- Patch is 49.41 KiB, tr

[clang] [NFC][C++][Modules] Mark P2788R0(DR) as implemented and added more test (PR #144214)

2025-06-25 Thread via cfe-commits
yronglin wrote: CC @Bigcheese @jansvoboda11 Could you help review this change? https://github.com/llvm/llvm-project/pull/144214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [llvm] fix extern cl::opt definitions for DLL export (PR #145374)

2025-06-25 Thread Andrew Rogers via cfe-commits
andrurogerz wrote: @compnerd, @vgvassilev another hopefully quick one, thanks! https://github.com/llvm/llvm-project/pull/145374 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f18cfb9 - [InstrProf] Factor out getRecord() and use NamedInstrProfRecord (#145417)

2025-06-25 Thread via cfe-commits
Author: Ellis Hoag Date: 2025-06-24T09:52:47-07:00 New Revision: f18cfb9108fda51c7c8233c32b4e2193a0a13766 URL: https://github.com/llvm/llvm-project/commit/f18cfb9108fda51c7c8233c32b4e2193a0a13766 DIFF: https://github.com/llvm/llvm-project/commit/f18cfb9108fda51c7c8233c32b4e2193a0a13766.diff LO

[clang] [llvm] [LLVM][AArch64] Relax SVE/SME codegen predicates for crypto and bitperm instructions. (PR #145696)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Paul Walker (paulwalker-arm) Changes Adds sve-sha3 to reference FEAT_SVE_SHA3 without specifically enabling SVE2. The SVE2 requirement for AES, SHA3 and Bitperm is replaced with SVE for non-streaming function. --- Patch is 49.

[clang] [llvm] [OpenMP][clang] 6.0: parsing/sema for num_threads 'strict' modifier (PR #145490)

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

  1   2   3   4   5   6   >