[clang] [OpenACC][CIR] 'update' construct lowering + a few clauses (PR #146378)

2025-06-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at step 7 "test-build-unified-tree-check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/31714 Here is the re

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

2025-06-30 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/145647 >From 8a1f98820b280b02f0662c7129a078680d67497f Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 25 Jun 2025 06:58:37 + Subject: [PATCH 1/4] Added prefetch extensions for MIPS RV64 P8700 and enab

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari created https://github.com/llvm/llvm-project/pull/146461 Remove the prior warning for attaching extern "C++" to main. >From 845f99834c6c9a78c05396a0337051273b1ae138 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 20:45:39 -0700 Subject: [PA

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Ashwin Banwari (ashwinbanwari) Changes Remove the prior warning for attaching extern "C++" to main. --- Full diff: https://github.com/llvm/llvm-project/pull/146461.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) -

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146461 >From 845f99834c6c9a78c05396a0337051273b1ae138 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 20:45:39 -0700 Subject: [PATCH 1/3] Implement P3618R0 --- clang/docs/ReleaseNotes.rst

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
ashwinbanwari wrote: CC @ChuanqiXu9 for review https://github.com/llvm/llvm-project/pull/146461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-06-30 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; + le

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-30 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/146288 >From c678e8f0978480fadf3f7d2ffc30cd1d8229a9fa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 29 Jun 2025 12:30:28 -0700 Subject: [PATCH 1/5] [clang] Improve constexpr-unknown diagnostics. APValue

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146461 >From 845f99834c6c9a78c05396a0337051273b1ae138 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 20:45:39 -0700 Subject: [PATCH 1/2] Implement P3618R0 --- clang/docs/ReleaseNotes.rst

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

2025-06-30 Thread via cfe-commits
@@ -790,6 +790,9 @@ static constexpr DecoderListEntry DecoderList32[]{ {DecoderTableXmipscmov32, {RISCV::FeatureVendorXMIPSCMov}, "MIPS mips.ccmov"}, +{DecoderTableXmipscbop32, + {RISCV::FeatureVendorXMIPSCBOP}, + "MIPS mips.pref"}, uk

[clang] [clang][diagnostics] Refactor "warn_doc_function_method_decl_mismatch" to use enum_select (PR #146426)

2025-06-30 Thread Ayokunle Amodu via cfe-commits
https://github.com/ayokunle321 created https://github.com/llvm/llvm-project/pull/146426 Related: https://github.com/llvm/llvm-project/issues/123121 This patch refactors the `note_constexpr_invalid_cast `diagnostic to use enum_select instead of select. This gets rid of magic numbers in its call

[clang] [clang][diagnostics] Refactor "warn_doc_function_method_decl_mismatch" to use enum_select (PR #146426)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayokunle Amodu (ayokunle321) Changes Related: https://github.com/llvm/llvm-project/issues/123121 This patch refactors the `note_constexpr_invalid_cast `diagnostic to use enum_select instead of select. This gets rid of magic numbers in its

[clang] [clang][diagnostics] Update note_constexpr_invalid_cast to use enum_select and adjust its uses (PR #130868)

2025-06-30 Thread Ayokunle Amodu via cfe-commits
https://github.com/ayokunle321 edited https://github.com/llvm/llvm-project/pull/130868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #142324)

2025-06-30 Thread via cfe-commits
@@ -0,0 +1,83 @@ +// RUN: %check_clang_tidy %s misc-bool-bitwise-operation %t \ +// RUN: -config="{CheckOptions: { \ +// RUN: misc-bool-bitwise-operation.StrictMode: true }}" + +bool function_with_possible_side_effects(); + +void bad_possible_side_effects() { +bool a = t

[clang] [clang][diagnostics] Refactor "warn_doc_function_method_decl_mismatch" to use enum_select (PR #146426)

2025-06-30 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Developer Policy](https://llvm.org/docs/DeveloperPol

[clang] [NFC] Remove getDefaultCallingConvention IsBuiltin (PR #145904)

2025-06-30 Thread Harald van Dijk via cfe-commits
hvdijk wrote: The calling convention doesn't just apply at the LLVM level though. For that, you're right it wouldn't make a difference for RVV intrinsics, but it also applies at the Clang level to determine whether Clang passes arguments by value or by reference, and whether it promotes argume

[clang] [clang-tools-extra] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: This has a stronger impact on C++20 modules since C++20 modules need to generate codes. How does this patch handle consistency issue? e.g., What if `a.pcm` is compiled with `-O0` but the consumer is compiled with `-O1`? I hope we won't break such thin

[clang] [clang][modules-driver] Add scanner to detect C++20 module presence (PR #145220)

2025-06-30 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > This PR is part of a series aimed at implementing native support for explicit > module builds from the Clang driver. This is confusing. Since explicit modules is an unrelated term with C++20 modules. https://github.com/llvm/llvm-project/pull/145220

[clang] __sys builtin support (PR #145079)

2025-06-30 Thread Adam Glass via cfe-commits
AdamGlass wrote: test failed though it had succeeded here. i'll investigate. https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)

2025-06-30 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/146224 >From b671feb6c9bc14bcfe15c420979b2826c8664b80 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sat, 28 Jun 2025 23:58:01 +0800 Subject: [PATCH] [C][Parser] Diagnostic for attribute declaration where statement is

[clang] [CodeGen] Remove unnecessary casts (NFC) (PR #146463)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes Both of these functions return void. --- Full diff: https://github.com/llvm/llvm-project/pull/146463.diff 2 Files Affected: - (modified) clang/lib/CodeGen/CGStmtOpenMP.cpp (+1-1) - (modifie

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-06-30 Thread via cfe-commits
@@ -1341,6 +1341,14 @@ checkExprLifetimeImpl(Sema &SemaRef, const InitializedEntity *InitEntity, } if (IsGslPtrValueFromGslTempOwner && DiagLoc.isValid()) { + +if (SemaRef.getLangOpts().CPlusPlus23) { yronglin wrote: Only update this test

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146461 >From 845f99834c6c9a78c05396a0337051273b1ae138 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 20:45:39 -0700 Subject: [PATCH 1/6] Implement P3618R0 --- clang/docs/ReleaseNotes.rst

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Chuanqi Xu via cfe-commits
@@ -12400,12 +12400,9 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, void Sema::CheckMain(FunctionDecl *FD, const DeclSpec &DS) { // [basic.start.main]p3 - //The main function shall not be declared with a linkage-specification. - if (FD->isExter

[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2025-06-30 Thread via cfe-commits
cppgent0 wrote: Ubuntu 24.04 installed clang-tidy-19 tried: ``` HeaderFilterRegex: '^(?!/usr/share/arduino/|/opt/arduino/).*' ExcludeHeaderFilterRegex : '/usr/share/arduino/.*|/opt/arduino/.*|.*/Arduino.h|.*/USBAPI.h' SystemHeaders: false ``` Get these warnings: ```-- 5] /usr/share/arduino/hard

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

2025-06-30 Thread Sam Elliott via cfe-commits
@@ -790,6 +790,9 @@ static constexpr DecoderListEntry DecoderList32[]{ {DecoderTableXmipscmov32, {RISCV::FeatureVendorXMIPSCMov}, "MIPS mips.ccmov"}, +{DecoderTableXmipscbop32, + {RISCV::FeatureVendorXMIPSCBOP}, + "MIPS mips.pref"}, le

[clang] WIP: fix assert in hasInitWithSideEffects (PR #146468)

2025-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: The change LGTM but I want a test to avoid further regression. https://github.com/llvm/llvm-project/pull/146468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
@@ -12400,12 +12400,9 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, void Sema::CheckMain(FunctionDecl *FD, const DeclSpec &DS) { // [basic.start.main]p3 - //The main function shall not be declared with a linkage-specification. - if (FD->isExter

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Sounds good. I'll merge this after the CI gets green. https://github.com/llvm/llvm-project/pull/146461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

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

2025-06-30 Thread Adam Nemet via cfe-commits
anemet wrote: We're also seeing LTO failures with this: https://green.lab.llvm.org/job/llvm.org/job/clang-stage2-Rthinlto/900/ I think that this should be reverted. I also have a small reproducer but unfortunately it requires the Apple linker. https://github.com/llvm/llvm-project/pull/14110

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Dan Liew via cfe-commits
@@ -85,6 +85,94 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { + switch

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Dan Liew via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple arm64-apple-macosx14.0.0 -O0 -debug-info-kind=standalone -dwarf-version=5 \ +// RUN: -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow -emit-llvm %s -o - | FileCheck %s + +int add_overflow(int a, int b) { + r

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Dan Liew via cfe-commits
https://github.com/delcypher edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Dan Liew via cfe-commits
https://github.com/delcypher requested changes to this pull request. Looks like we need to fix a few more things. Did you resolve the issue with the existing test cases failing? https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Dan Liew via cfe-commits
@@ -4051,6 +4139,14 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, llvm::BasicBlock *&TrapBB = TrapBBs[CheckHandlerID]; + llvm::DILocation *TrapLocation = Builder.getCurrentDebugLocation(); + llvm::StringRef TrapMessage = GetUBSanTrapForHandler(CheckHandlerI

[clang] [analyzer] Avoid unnecessary super region invalidation in `CStringChecker` (PR #146212)

2025-06-30 Thread via cfe-commits
flovent wrote: CI failures seem unlreated to the new change in this PR. https://github.com/llvm/llvm-project/pull/146212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-06-30 Thread KAWASHIMA Takahiro via cfe-commits
https://github.com/kawashima-fj created https://github.com/llvm/llvm-project/pull/146453 `-fveclib=libmvec` for AArch64 (NEON and SVE) in Clang was supported by #143696. This patch does the same for Flang. Vector functions defined in `libmvec` are used for the following Fortran operator and f

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: KAWASHIMA Takahiro (kawashima-fj) Changes `-fveclib=libmvec` for AArch64 (NEON and SVE) in Clang was supported by #143696. This patch does the same for Flang. Vector functions defined in `libmvec` are used for the following Fortran

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: KAWASHIMA Takahiro (kawashima-fj) Changes `-fveclib=libmvec` for AArch64 (NEON and SVE) in Clang was supported by #143696. This patch does the same for Flang. Vector functions defined in `libmvec` are used for the following Fortr

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-06-30 Thread KAWASHIMA Takahiro via cfe-commits
kawashima-fj wrote: `sinh` is not converted to the libmvec function currently. I did not investigate the reason yet. In FIR, most math functions are converted to `math` dialect (`%23 = math.cosh %22 fastmath : f64`) but `sinh` is not converted to `math` dialect (`%23 = fir.call @sinh(%22) fast

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-30 Thread Snehasish Kumar via cfe-commits
snehasish wrote: Sounds reasonable to me. Can you split this into two changes, first let's commit the one which adds the opt out flag and then the one which makes it the default? https://github.com/llvm/llvm-project/pull/145957 ___ cfe-commits mailin

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: Mythreya (MythreyaK) Changes Skips the first explicit object parameter when generating autocomplete suggestion string Fixes clangd/clangd#2339? --- Full diff: https://github.com/llvm/llvm-project/p

[clang-tools-extra] [clang-tidy] Switch misc-confusable-identifiers check to a faster algorithm. (PR #130369)

2025-06-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid updated https://github.com/llvm/llvm-project/pull/130369 >From 78c9d5da85723040c30f00cb53e77c9dd4cc14b8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 7 Mar 2025 22:49:37 + Subject: [PATCH 1/5] Switch misc-confusable-identifiers check to a faster algori

[clang] __sys builtin support for AArch64 (PR #146456)

2025-06-30 Thread Adam Glass via cfe-commits
https://github.com/AdamGlass created https://github.com/llvm/llvm-project/pull/146456 [This is a resubmit of 145079 after some git clumsiness on my part responding to feedback] Adds support for __sys Clang builtin for AArch64 __sys is a long existing MSVC intrinsic used to manage caches, tlbs

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-30 Thread via cfe-commits
MythreyaK wrote: > this is good to go Thanks for the confirmation! :shipit: ! https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] __sys builtin support for AArch64 (PR #146456)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Adam Glass (AdamGlass) Changes [This is a resubmit of 145079 after some git clumsiness on my part responding to feedback] Adds support for __sys Clang builtin for AArch64 __sys is a long existing MSVC intrinsic used to manage caches, tlb

[clang] __sys builtin support for AArch64 (PR #146456)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Adam Glass (AdamGlass) Changes [This is a resubmit of 145079 after some git clumsiness on my part responding to feedback] Adds support for __sys Clang builtin for AArch64 __sys is a long existing MSVC intrinsic used to manage cache

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-30 Thread via cfe-commits
https://github.com/MythreyaK ready_for_review https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] __sys builtin support for AArch64 (PR #146456)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Adam Glass (AdamGlass) Changes [This is a resubmit of 145079 after some git clumsiness on my part responding to feedback] Adds support for __sys Clang builtin for AArch64 __sys is a long existing MSVC intrinsic used to manage cac

[clang] [RISCV] Integrate RISCV target in baremetal toolchain object and deprecate RISCVToolchain object (PR #121831)

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

[clang] __sys builtin support (PR #145079)

2025-06-30 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,68 @@ +// REQUIRES: aarch64-registered-target + +// RUN: %clang_cc1 -triple arm64-windows -fms-compatibility -S \ +// RUN: -o - %s | FileCheck %s -check-prefix CHECK-ASM + +// RUN: %clang_cc1 -triple arm64-darwin -fms-compatibility -S \ +// RUN: -o - %s | FileCheck %s -

[clang] __sys builtin support (PR #145079)

2025-06-30 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] __sys builtin support (PR #145079)

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

[clang] __sys builtin support for AArch64 (PR #146456)

2025-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-backend-arm Author: Adam Glass (AdamGlass) Changes [This is a resubmit of 145079 after some git clumsiness on my part responding to feedback] Adds support for __sys Clang builtin for AArch64 __sys is a long existin

[clang-tools-extra] [clang-tidy] Switch misc-confusable-identifiers check to a faster algorithm. (PR #130369)

2025-06-30 Thread Richard Smith via cfe-commits
@@ -181,42 +160,105 @@ void ConfusableIdentifierCheck::check( if (!ND) return; - IdentifierInfo *NDII = ND->getIdentifier(); + addDeclToCheck(ND, cast(ND->getDeclContext() +->getNonTransparentContext())); + + // Associate template p

[clang-tools-extra] [clang-tidy] Switch misc-confusable-identifiers check to a faster algorithm. (PR #130369)

2025-06-30 Thread Richard Smith via cfe-commits
@@ -181,42 +160,105 @@ void ConfusableIdentifierCheck::check( if (!ND) return; - IdentifierInfo *NDII = ND->getIdentifier(); + addDeclToCheck(ND, cast(ND->getDeclContext() +->getNonTransparentContext())); + + // Associate template p

[clang-tools-extra] [clang-tidy] Switch misc-confusable-identifiers check to a faster algorithm. (PR #130369)

2025-06-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid updated https://github.com/llvm/llvm-project/pull/130369 >From 78c9d5da85723040c30f00cb53e77c9dd4cc14b8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 7 Mar 2025 22:49:37 + Subject: [PATCH 1/6] Switch misc-confusable-identifiers check to a faster algori

[clang] [llvm] Remove Native Client support (PR #133661)

2025-06-30 Thread Fangrui Song via cfe-commits
MaskRay wrote: > > Thanks for working on this! This will be the first time I'm not going to > > oppose an effort to remove Native Client support 🎉 Although I am going to > > ask you to wait a couple of months to land it, until we finally turn it off > > for good and start deleting the support

[clang] [RISCV] Add missing intrinsicis vrgatherei16/vslideup/vslidedown support for Zvfbfmin (PR #146309)

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

[clang] [clang] Mark GlobalAllocationFunctionVisibility as benign. (PR #145654)

2025-06-30 Thread Takuto Ikuta via cfe-commits
atetubou wrote: @cor3ntin @erichkeane could someone take a look at this PR? https://github.com/llvm/llvm-project/pull/145654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Anthony Tran via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple arm64-apple-macosx14.0.0 -O0 -debug-info-kind=standalone -dwarf-version=5 \ +// RUN: -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow -emit-llvm %s -o - | FileCheck %s + +int add_overflow(int a, int b) { + r

[clang] [CIR] Add OptInfo attribute (PR #146261)

2025-06-30 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/146261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Anthony Tran via cfe-commits
@@ -4051,6 +4139,14 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, llvm::BasicBlock *&TrapBB = TrapBBs[CheckHandlerID]; + llvm::DILocation *TrapLocation = Builder.getCurrentDebugLocation(); + llvm::StringRef TrapMessage = GetUBSanTrapForHandler(CheckHandlerI

[clang] [libcxx] [clang] [modules] Implement P3618R0: Allow attaching main to the global module (PR #146461)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146461 >From 845f99834c6c9a78c05396a0337051273b1ae138 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Mon, 30 Jun 2025 20:45:39 -0700 Subject: [PATCH 1/7] Implement P3618R0 --- clang/docs/ReleaseNotes.rst

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari edited https://github.com/llvm/llvm-project/pull/146247 ___ 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-30 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/145678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][LoongArch] Fixed incorrect _BitInt(N>64) alignment (PR #145297)

2025-06-30 Thread via cfe-commits
Ami-zhang wrote: > LGTM. BTW, could you please mention this change in clang's release note? Should we submit a separate PR later to document the major changes from this development cycle in the release notes? Similar to what was done in commit 3c7a878d919c6483c9e78a3ed4578d4ee2f54408. https:/

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Chuanqi Xu via cfe-commits
@@ -650,6 +650,9 @@ Improvements to Clang's diagnostics #GH69470, #GH59391, #GH58172, #GH46215, #GH45915, #GH45891, #GH44490, #GH36703, #GH32903, #GH23312, #GH69874. +- A warning is now emitted when ``main`` is attached to a named module, + which can be turned off with ``

[clang] [RISCV] Integrate RISCV target in baremetal toolchain object and deprecate RISCVToolchain object (PR #121831)

2025-06-30 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/121831 >From b9e1db372117d9d418d0812a09874526e88efad4 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Mon, 6 Jan 2025 10:05:08 -0800 Subject: [PATCH] [RISCV] Integrate RISCV target in baremetal toolchain object

[clang] [RISCV] Integrate RISCV target in baremetal toolchain object and deprecate RISCVToolchain object (PR #121831)

2025-06-30 Thread Garvit Gupta via cfe-commits
@@ -336,6 +336,26 @@ BareMetal::OrderedMultilibs BareMetal::getOrderedMultilibs() const { return llvm::reverse(Default); } +ToolChain::CXXStdlibType BareMetal::GetDefaultCXXStdlibType() const { + if (getTriple().isRISCV() && GCCInstallation.isValid()) +return ToolChain

[clang] [RISCV] Integrate RISCV target in baremetal toolchain object and deprecate RISCVToolchain object (PR #121831)

2025-06-30 Thread Garvit Gupta via cfe-commits
@@ -336,6 +336,26 @@ BareMetal::OrderedMultilibs BareMetal::getOrderedMultilibs() const { return llvm::reverse(Default); } +ToolChain::CXXStdlibType BareMetal::GetDefaultCXXStdlibType() const { + if (getTriple().isRISCV() && GCCInstallation.isValid()) +return ToolChain

[clang] HIPSPV: Unbundle SDL (PR #136412)

2025-06-30 Thread Paulius Velesko via cfe-commits
pvelesko wrote: ping https://github.com/llvm/llvm-project/pull/136412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146247 >From f2ed0c7989d7e181004237a4fa2ba7ae1efe44ed Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Sat, 28 Jun 2025 16:19:55 -0700 Subject: [PATCH 01/10] add err_main_in_named_module --- clang/include/cl

[clang] [clang][SPIRV] Remove volatile variants of GenericCastToPtr* built-ins (PR #146298)

2025-06-30 Thread Victor Lomuller via cfe-commits
@@ -115,16 +85,6 @@ __spirv_GenericCastToPtr_ToGlobal(__generic const void *p, int) __SPIRV_NOEXCEPT { return (__global const void *)p; } -static __SPIRV_overloadable __SPIRV_inline __global volatile void * Naghasan wrote: W

[clang] [clang][SPIRV] Remove volatile variants of GenericCastToPtr* built-ins (PR #146298)

2025-06-30 Thread Victor Lomuller via cfe-commits
@@ -93,16 +73,6 @@ __SPIRV_BUILTIN_ALIAS(__builtin_spirv_generic_cast_to_ptr_explicit) __private const void * __spirv_GenericCastToPtrExplicit_ToPrivate(__generic const void *, int) __SPIRV_NOEXCEPT; -extern __SPIRV_overloadable -__SP

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/146247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] WIP: Extend SourceLocation to 64 bits. (PR #146314)

2025-06-30 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/146314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Remove some dead code (PR #146287)

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

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146247 >From f2ed0c7989d7e181004237a4fa2ba7ae1efe44ed Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Sat, 28 Jun 2025 16:19:55 -0700 Subject: [PATCH 1/5] add err_main_in_named_module --- clang/include/clan

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/146247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari edited https://github.com/llvm/llvm-project/pull/146247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Chuanqi Xu via cfe-commits
@@ -1062,6 +1062,8 @@ def err_constexpr_main : Error< "'main' is not allowed to be declared %select{constexpr|consteval}0">; def err_deleted_main : Error<"'main' is not allowed to be deleted">; def err_mainlike_template_decl : Error<"%0 cannot be a template">; +def warn_main_

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Chuanqi Xu via cfe-commits
@@ -1062,6 +1062,8 @@ def err_constexpr_main : Error< "'main' is not allowed to be declared %select{constexpr|consteval}0">; def err_deleted_main : Error<"'main' is not allowed to be deleted">; def err_mainlike_template_decl : Error<"%0 cannot be a template">; +def warn_main_

[clang] [KeyInstr][Clang][NFC] Don't set -dwarf-use-key-instructions (PR #144115)

2025-06-30 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/144115 >From 5ed1dedf639090e0706d25c874ebbb4335cc26f2 Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Fri, 13 Jun 2025 17:39:53 +0100 Subject: [PATCH 1/3] [KeyInstr][Clang][NFC] Don't set -dwarf-use-key-ins

[clang] 57f7e14 - [LoongArch] Pre-commit test for _BitInt(N)

2025-06-30 Thread via cfe-commits
Author: Ami-zhang Date: 2025-06-30T15:37:33+08:00 New Revision: 57f7e14b577945258d0f25860ea5abc9098edc04 URL: https://github.com/llvm/llvm-project/commit/57f7e14b577945258d0f25860ea5abc9098edc04 DIFF: https://github.com/llvm/llvm-project/commit/57f7e14b577945258d0f25860ea5abc9098edc04.diff LOG

[clang] [Clang][LoongArch] Fixed incorrect _BitInt(N>64) alignment (PR #145297)

2025-06-30 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. LGTM. BTW, could you please mention this change in clang's release note? https://github.com/llvm/llvm-project/pull/145297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-30 Thread Nico Weber via cfe-commits
@@ -59,3 +118,39 @@ // CXX-AARCH64-BAREMETAL-NOSYSROOT-LIBCXX: "-internal-isystem" "{{.*}}/Inputs/basic_aarch64_gcc_tree/lib/gcc/aarch64-none-elf/8.2.1/../../../../aarch64-none-elf/include/c++/v1" // CXX-AARCH64-BAREMETAL-NOSYSROOT-LIBCXX: "-internal-isystem" "{{.*}}/Inputs/

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-30 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146247 >From f2ed0c7989d7e181004237a4fa2ba7ae1efe44ed Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Sat, 28 Jun 2025 16:19:55 -0700 Subject: [PATCH 1/9] add err_main_in_named_module --- clang/include/clan

[clang] WIP: Extend SourceLocation to 64 bits. (PR #146314)

2025-06-30 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/ASTContext.h clang/include/

[clang] WIP: Extend SourceLocation to 64 bits. (PR #146314)

2025-06-30 Thread Haojian Wu via cfe-commits
hokein wrote: Although this is still a draft, it should be ready for an initial round of review. Any feedback or suggestions would be greatly appreciated. @AaronBallman @cor3ntin @erichkeane @ilya-biryukov https://github.com/llvm/llvm-project/pull/146314 _

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-30 Thread Harald van Dijk via cfe-commits
hvdijk wrote: > This patch does not make assumption that it is for the same architecture as > host. Rather, it is inline with other toolchain objects that supports > GCCInstallation which have ld as the default linker. Thus breaking the case where it is not for the same architecture as host.

[clang] [Clang][AArch64] Add FP8 variants of Neon store intrinsics (PR #145346)

2025-06-30 Thread Kerry McLaughlin via cfe-commits
@@ -510,14 +510,14 @@ def VLD3_LANE : WInst<"vld3_lane", "3(c*!)3I", "QUsQUiQsQiQfQPsUcUsUicsifPcPs", [ImmCheck<5, ImmCheckLaneIndex, 1>]>; def VLD4_LANE : WInst<"vld4_lane", "4(c*!)4I", "QUsQUiQsQiQfQPsUcUsUicsifPcPs", [ImmCheck<6,

[clang] 5e732c0 - [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (#145383)

2025-06-30 Thread via cfe-commits
Author: amilendra Date: 2025-06-30T11:18:50+01:00 New Revision: 5e732c09b2138e40d682dcc47a9d85198386d628 URL: https://github.com/llvm/llvm-project/commit/5e732c09b2138e40d682dcc47a9d85198386d628 DIFF: https://github.com/llvm/llvm-project/commit/5e732c09b2138e40d682dcc47a9d85198386d628.diff LOG

[clang] a72a0f4 - [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (#145666)

2025-06-30 Thread via cfe-commits
Author: amilendra Date: 2025-06-30T11:19:14+01:00 New Revision: a72a0f415d595317a6966fc73bc716b13b19d7c2 URL: https://github.com/llvm/llvm-project/commit/a72a0f415d595317a6966fc73bc716b13b19d7c2 DIFF: https://github.com/llvm/llvm-project/commit/a72a0f415d595317a6966fc73bc716b13b19d7c2.diff LOG

[clang] [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (PR #145383)

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

[clang] [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (PR #145666)

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

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-30 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5