[clang] [Clang] allow usage of placement new operator in [[msvc::constexpr]] context outside of the std namespace (PR #119153)

2024-12-09 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: @cor3ntin could you review the latest changes? https://github.com/llvm/llvm-project/pull/119153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [llvm] [libclc] Add Maintainers.md for libclc (PR #118309)

2024-12-09 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/118309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-09 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,173 @@ +//===--- UseIntegerSignComparisonCheck.cpp - clang-tidy ---===// +// +// 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-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-09 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,47 @@ +//===--- UseIntegerSignComparisonCheck.h - clang-tidy ---*- 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

[libclc] [llvm] [libclc] Add Maintainers.md for libclc (PR #118309)

2024-12-09 Thread David Spickett via cfe-commits
DavidSpickett wrote: Polly pushed in https://github.com/llvm/llvm-project/commit/788d5a5f1e1263657f0a281545e095769f6b375b. Only libclc remains. https://github.com/llvm/llvm-project/pull/118309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Florian Hahn via cfe-commits
@@ -25,3 +26,12 @@ // CHECK-ARM: cortex-a73 // CHECK-ARM: cortex-a75 // CHECK-ARM: Use -mcpu or -mtune to specify the target's processor. + +// RUN: %clang --target=arm64-apple-macosx --print-supported-cpus 2>&1 | \ +// RUN: FileCheck %s --check-prefix=CHECK-AARCH64 --implic

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Florian Hahn via cfe-commits
https://github.com/fhahn edited https://github.com/llvm/llvm-project/pull/118581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Florian Hahn via cfe-commits
@@ -137,8 +146,11 @@ static void cpuHelp(ArrayRef CPUTable) { // Print the CPU table. errs() << "Available CPUs for this target:\n\n"; - for (auto &CPU : CPUTable) -errs() << "\t" << CPU.Key << "\n"; + for (auto &CPU : CPUNames) { +if (CPU == "apple-latest") +

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Florian Hahn via cfe-commits
https://github.com/fhahn approved this pull request. LGTM, thanks. Add a few minor suggestions https://github.com/llvm/llvm-project/pull/118581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Florian Hahn via cfe-commits
@@ -104,14 +110,17 @@ static void Help(ArrayRef CPUTable, } // Determine the length of the longest CPU and Feature entries. - unsigned MaxCPULen = getLongestEntryLength(CPUTable); + unsigned MaxCPULen = getLongestEntryLength(CPUNames); unsigned MaxFeatLen = getLonges

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: ykiko (16bit-ykiko) Changes Fix https://github.com/llvm/llvm-project/issues/119129. --- Full diff: https://github.com/llvm/llvm-project/pull/119212.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaExpr.cpp (+1-1) ``diff

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/16bit-ykiko created https://github.com/llvm/llvm-project/pull/119212 Fix https://github.com/llvm/llvm-project/issues/119129. >From 64dcfdfd0a87d6ca5bfcfe5f5a8e5204c24a26d2 Mon Sep 17 00:00:00 2001 From: ykiko Date: Mon, 9 Dec 2024 21:56:58 +0800 Subject: [PATCH] Fix call loc

[clang] [llvm] [ConstantFolding] Infer getelementptr nuw flag (PR #119214)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Nikita Popov (nikic) Changes Infer nuw from nusw and nneg. This is the constant expression variant of https://github.com/llvm/llvm-project/pull/44. Proof: https://alive2.llvm.org/ce/z/ihztLy --- Patch is 187.43 KiB, truncat

[clang] [llvm] [ConstantFolding] Infer getelementptr nuw flag (PR #119214)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-systemz Author: Nikita Popov (nikic) Changes Infer nuw from nusw and nneg. This is the constant expression variant of https://github.com/llvm/llvm-project/pull/44. Proof: https://alive2.llvm.org/ce/z/ihztLy ---

[clang] [llvm] [ConstantFolding] Infer getelementptr nuw flag (PR #119214)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis Author: Nikita Popov (nikic) Changes Infer nuw from nusw and nneg. This is the constant expression variant of https://github.com/llvm/llvm-project/pull/44. Proof: https://alive2.llvm.org/ce/z/ihztLy --- Patch is 187.43 KiB, truncate

[clang] [llvm] [LLVM][Clang][AArch64] Implement AArch64 build attributes (PR #118771)

2024-12-09 Thread Oliver Stannard via cfe-commits
ostannard wrote: The code changes are all in llvm (not clang), so the tests need to be there too, using `llvm-mc` and `llc` instead of `clang`. I'd prefer to see the code for the assembly parser before reviewing this, because that will probably affect the API design of the streamer, since it w

[clang] [Clang] Fix handling of immediate escalation for inherited constructors (PR #112860)

2024-12-09 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/112860 >From 7eaab8513da17992e73ed92dbdbaa2dc0ece59ba Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 18 Oct 2024 10:59:35 +0200 Subject: [PATCH 1/2] '[Clang] Fix handling of immediate escalation for inherit

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
cor3ntin wrote: This needs tests (you could adapt #119129 to to make foo a constexpr function returning the line number, and checking that. use `#line 4242` to make the test less susceptible to lines changes https://github.com/llvm/llvm-project/pull/119212 _

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-09 Thread via cfe-commits
https://github.com/AdUhTkJm updated https://github.com/llvm/llvm-project/pull/119098 >From 902de28b3d37c0255d6ba59c1155b8ffb0e2d42e Mon Sep 17 00:00:00 2001 From: AdUhTkJm <2292398...@qq.com> Date: Sun, 8 Dec 2024 08:07:59 +0800 Subject: [PATCH] [Clang] Fix crash for incompatible types in inline

[clang] [Clang] Fix typo in ItaniumRecordLayoutBuilder API (PR #118563)

2024-12-09 Thread Eric Wang via cfe-commits
https://github.com/Ptkyr updated https://github.com/llvm/llvm-project/pull/118563 >From 6d723faf919c3fe3788700a5fc639ebd856aa6d7 Mon Sep 17 00:00:00 2001 From: Eric Wang <48936088+pt...@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:04:14 -0500 Subject: [PATCH] [Clang] Fix typo in ItaniumRec

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/2] Rename __ prefix to __libcpp_ for locale related functi

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/3] Rename __ prefix to __libcpp_ for locale related functi

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-09 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,36 @@ +.. title:: clang-tidy - modernize-use-integer-sign-comparison + +modernize-use-integer-sign-comparison += + +Replace comparisons between signed and unsigned integers with their safe +C++20 ``std::cmp_*`` alternative, if availab

[clang] [X86][AVX10.2] Add comments for the avx10_2copyintrin.h file (PR #119238)

2024-12-09 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog edited https://github.com/llvm/llvm-project/pull/119238 ___ 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 readability-use-span-first-last check (PR #118074)

2024-12-09 Thread Helmut Januschka via cfe-commits
@@ -0,0 +1,96 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- 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

[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)

2024-12-09 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/118004 >From e2046b5000e1a6e104121a8022d33f4f181f5d03 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Wed, 27 Nov 2024 18:44:38 + Subject: [PATCH 1/7] update llc tc affected --- .../CostModel/PowerPC/load-to-trunc.

[clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)

2024-12-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/4569 Here is the relevant piec

[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

2024-12-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: FYI, I'm going to be out on vacation after today, so if this is ready to land, someone else can feel free to press the button. Otherwise, I can pick this up again when I'm back. https://github.com/llvm/llvm-project/pull/118800 ___

[clang] [llvm] [WebAssembly] Add `-i128:128` to the `datalayout` string. (PR #119204)

2024-12-09 Thread via cfe-commits
@@ -524,9 +524,7 @@ define i64 @utest_f64i64(double %x) { ; CHECK-NEXT:local.get 0 ; CHECK-NEXT:call __fixunsdfti ; CHECK-NEXT:local.get 1 -; CHECK-NEXT:i32.const 8 -; CHECK-NEXT:i32.add -; CHECK-NEXT:i64.load 0 +; CHECK-NEXT:i64.load 8 -

[clang] [clang][docs] fix rendering of `$`-prefixed options (PR #119249)

2024-12-09 Thread Carlo Cabrera via cfe-commits
carlocab wrote: No worries, I missed it too. For future reference, it might be useful to check the rich diff too: https://github.com/user-attachments/assets/003082f8-1135-4be2-996a-2cde6691f61a";> https://github.com/llvm/llvm-project/pull/119249 ___

[clang] [llvm] [WebAssembly] Add `-i128:128` to the `datalayout` string. (PR #119204)

2024-12-09 Thread via cfe-commits
https://github.com/workingjubilee edited https://github.com/llvm/llvm-project/pull/119204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Revert "[Fuchsia][cmake] Allow using FatLTO when building runtimes" (PR #119252)

2024-12-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119252 Reverts llvm/llvm-project#112277 This broke something on Fuchsia's Mac builders, so there's still something in the CMake that needs to be updated before we reland. Failed build: https://ci.chromium.org/ui/p/

[clang] 1cbd67e - Revert "[Fuchsia][cmake] Allow using FatLTO when building runtimes" (#119252)

2024-12-09 Thread via cfe-commits
Author: Paul Kirth Date: 2024-12-09T11:25:01-08:00 New Revision: 1cbd67efe438bdf0a8183482471107363ce091d1 URL: https://github.com/llvm/llvm-project/commit/1cbd67efe438bdf0a8183482471107363ce091d1 DIFF: https://github.com/llvm/llvm-project/commit/1cbd67efe438bdf0a8183482471107363ce091d1.diff LO

[clang] [llvm] Revert "[Fuchsia][cmake] Allow using FatLTO when building runtimes" (PR #119252)

2024-12-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/119252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Revert "[Fuchsia][cmake] Allow using FatLTO when building runtimes" (PR #119252)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes Reverts llvm/llvm-project#112277 This broke something on Fuchsia's Mac builders, so there's still something in the CMake that needs to be updated before we reland. Failed build: https://ci.chromium.org/ui/p

[clang] 511e84f - [clang][docs] fix rendering of `$`-prefixed options (#119249)

2024-12-09 Thread via cfe-commits
Author: Carlo Cabrera Date: 2024-12-10T03:24:04+08:00 New Revision: 511e84ff2624b76948e35a2220550a67ae67b264 URL: https://github.com/llvm/llvm-project/commit/511e84ff2624b76948e35a2220550a67ae67b264 DIFF: https://github.com/llvm/llvm-project/commit/511e84ff2624b76948e35a2220550a67ae67b264.diff

[clang] [clang][docs] fix rendering of `$`-prefixed options (PR #119249)

2024-12-09 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab closed https://github.com/llvm/llvm-project/pull/119249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bug/templated struct debug reference this (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/119041 >From f6a7af10669d71251c2235bef5b2625d88fa1d90 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Fri, 6 Dec 2024 01:27:24 + Subject: [PATCH 1/4] Apply DXC fix and add tests --- clang/lib/CodeGen/CGDebu

[clang] [clang][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2024-12-09 Thread via cfe-commits
https://github.com/jijjijj updated https://github.com/llvm/llvm-project/pull/118537 >From d0a3059a10b7ceeb7e9c27068266f8c41e794203 Mon Sep 17 00:00:00 2001 From: jijjijj Date: Tue, 3 Dec 2024 22:57:34 +0300 Subject: [PATCH 1/2] Fix std::initializer_list recognition if it's exported out of a mo

[clang] [HLSL] Fix debug info generation fro RWBuffer types (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/119041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Add `-i128:128` to the `datalayout` string. (PR #119204)

2024-12-09 Thread via cfe-commits
@@ -183,11 +183,12 @@ class LLVM_LIBRARY_VISIBILITY WebAssembly32TargetInfo const TargetOptions &Opts) : WebAssemblyTargetInfo(T, Opts) { if (T.isOSEmscripten()) - resetDataLayout("e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n3

[clang] [llvm] [HLSL] Implement `WaveActiveAllTrue` Intrinsic (PR #117245)

2024-12-09 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt updated https://github.com/llvm/llvm-project/pull/117245 >From 1156d98a0ba25a92b4edbacb7c17e5ad6bb2b522 Mon Sep 17 00:00:00 2001 From: Ashley Coleman Date: Thu, 21 Nov 2024 08:42:31 -0700 Subject: [PATCH 1/2] [HLSL] Implement WaveActiveAllTrue Intrinsic --- clang/in

[clang] [clang] Fix a dangling reference in clang/utils/TableGen/ClangDiagnosticsEmitter.cpp (PR #119197)

2024-12-09 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/119197 >From 85f1d54459125568bfbe2088827040c3b05a7804 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 9 Dec 2024 11:48:59 +0100 Subject: [PATCH 1/2] [clang] Fix a dangling reference in clang/utils/TableGen/ClangDi

[clang] [clang] wasm cpu name is supposed to be lime1, not lime (PR #119262)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jacob Lifshay (programmerjake) Changes Originally added in #112035 cc @sunfishcode --- Full diff: https://github.com/llvm/llvm-project/pull/119262.diff 1 Files Affected: - (modified) clang/lib/Basic/Targets/WebAssembly.cpp (+1-1) ```

[clang] [clang] wasm cpu name is supposed to be lime1, not lime (PR #119262)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: Jacob Lifshay (programmerjake) Changes Originally added in #112035 cc @sunfishcode --- Full diff: https://github.com/llvm/llvm-project/pull/119262.diff 1 Files Affected: - (modified) clang/lib/Basic/Targets/WebAssembly.cpp

[clang] [clang] wasm cpu name is supposed to be lime1, not lime (PR #119262)

2024-12-09 Thread Jacob Lifshay via cfe-commits
https://github.com/programmerjake created https://github.com/llvm/llvm-project/pull/119262 Originally added in #112035 cc @sunfishcode >From 6c8d075462e70c6d03938c07bdb2733ede916d89 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 9 Dec 2024 12:17:23 -0800 Subject: [PATCH] [clang] wasm

[clang] [clang-format] Reorder TokenAnnotator::canBreakBefore (PR #119044)

2024-12-09 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/119044 >From c6b628536daf5640c383fd7abe629e84d1505ae2 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 6 Dec 2024 16:52:35 -0700 Subject: [PATCH 1/2] [clang-format] Reorder TokenAnnotator::canBreakBefore Move the

[clang] [clang-format] Reorder TokenAnnotator::canBreakBefore (PR #119044)

2024-12-09 Thread Gedare Bloom via cfe-commits
@@ -6105,6 +6105,33 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, return false; } + // We only break before r_brace if there was a corresponding break before + // the l_brace, which is tracked by BreakBeforeClosingBrace. gedare w

[clang] [clang-format] Reorder TokenAnnotator::canBreakBefore (PR #119044)

2024-12-09 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/119044 >From c5bf1fc70df08ef94cc32a47d1bdce69c92c2abf Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 6 Dec 2024 16:52:35 -0700 Subject: [PATCH] [clang-format] Reorder TokenAnnotator::canBreakBefore Move the che

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-09 Thread via cfe-commits
dyung wrote: > > > Not sure what to do debug this... @zmodem maybe has some idea? > > > > > > Sorry, I don't have a lot to add. Things look good on my end so far (local > > builds and https://lab.llvm.org/buildbot/#/builders/63 + > > https://lab.llvm.org/buildbot/#/builders/107). > > Besides

[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)

2024-12-09 Thread Saleem Abdulrasool via cfe-commits
@@ -46,6 +46,9 @@ typedef struct { /** * Retrieve the character data associated with the given string. + * + * The caller shouldn't free the returned string data, and the returned string + * data shouldn't be accessed after the \c CXString disposed. compnerd

[clang] [clang] Implement statement printer for EmbedExpr (PR #117770)

2024-12-09 Thread Aaron Ballman via cfe-commits
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl( } EmbedAnnotationData *Data = new (BP) EmbedAnnotationData; + Data->Filename = Filename; + Data->IsAngled = IsAngled; Data->BinaryData = BinaryContents; AaronBallman wrote: I think th

[clang] [Clang] Fix handling of immediate escalation for inherited constructors (PR #112860)

2024-12-09 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/112860 >From 7eaab8513da17992e73ed92dbdbaa2dc0ece59ba Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 18 Oct 2024 10:59:35 +0200 Subject: [PATCH 1/2] '[Clang] Fix handling of immediate escalation for inherit

[clang] [Clang] allow usage of placement new operator in [[msvc::constexpr]] context outside of the std namespace (PR #119153)

2024-12-09 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/119153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-09 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/119091 >From ccbbc8cd83415aa56fbc3726069776255bcbc918 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Sat, 7 Dec 2024 13:47:23 -0600 Subject: [PATCH] [OpenMP] Use generic IR for the OpenMP DeviceRTL Summary: We prev

[clang] [clang] Fix cast for injected types in case name lookup for dependent bases (PR #119024)

2024-12-09 Thread Erich Keane via cfe-commits
@@ -368,8 +368,8 @@ bool CXXRecordDecl::FindBaseClass(const CXXBaseSpecifier *Specifier, const CXXRecordDecl *BaseRecord) { assert(BaseRecord->getCanonicalDecl() == BaseRecord && "User data for FindBaseClass is not canonical!"); -

[clang-tools-extra] [clang-tidy] Filter out googletest TUs in bugprone-unchecked-optional-access (PR #115051)

2024-12-09 Thread Yitzhak Mandelbaum via cfe-commits
ymand wrote: This review has been going on for longer than a month so, as one of the reviewers and the original author of this check, I wanted to jump in and see if we can bring it to an agreeable conclusion. I’d like to start with some background: * This check was introduced in 2020 with the

[clang] [flang] [clang][driver] When -fveclib=ArmPL flag is in use, always link against libamath (PR #116432)

2024-12-09 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: > > with -fveclib=ArmPL -lamath put into a config file, it will always be > > linked with libamath, even if the user decides to use -fveclib=none > > I think there might be a related issue with the approach in this patch too > though, in that `-fveclib=ArmPL` will silently fo

[clang] [llvm] [AArch64] Implement FP8 SVE Intrinsics for narrowing conversions (PR #118124)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov edited https://github.com/llvm/llvm-project/pull/118124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for widening conversions (PR #118123)

2024-12-09 Thread Momchil Velikov via cfe-commits
@@ -0,0 +1,78 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mattr=+bf16,+sve2,+fp8 < %s | FileCheck %s momchil-velikov wrote: Removed. https://github.com/llvm/llvm-project/pull/118123 __

[clang] Warn when unique objects might be duplicated in shared libraries (PR #117622)

2024-12-09 Thread Devon Loehr via cfe-commits
DKLoehr wrote: Ping https://github.com/llvm/llvm-project/pull/117622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for widening conversions (PR #118123)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov edited https://github.com/llvm/llvm-project/pull/118123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)

2024-12-09 Thread Lei Huang via cfe-commits
lei137 wrote: ping https://github.com/llvm/llvm-project/pull/118004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support (PR #118938)

2024-12-09 Thread via cfe-commits
@@ -373,6 +373,13 @@ void ReadFunctionInfo(const uint8_t *&Data, FunctionInfo &Info) { endian::readNext(Data); Info.ResultType = std::string(Data, Data + ResultTypeLen); Data += ResultTypeLen; + + unsigned SwiftReturnOwnershipLength = + endian::readNext(Data);

[clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)

2024-12-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/112277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support (PR #118938)

2024-12-09 Thread via cfe-commits
https://github.com/fahadnayyar updated https://github.com/llvm/llvm-project/pull/118938 >From 781bb2a49fed8fa38059cfd23563b02c82f83eb0 Mon Sep 17 00:00:00 2001 From: Fahad Nayyar Date: Thu, 5 Dec 2024 18:25:49 -0800 Subject: [PATCH] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support to APINotes

[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)

2024-12-09 Thread via cfe-commits
https://github.com/RolandF77 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/118004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Migrate away from PointerUnion::{is,get} (NFC) (PR #118948)

2024-12-09 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/118948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 83cb3db - [Serialization] Migrate away from PointerUnion::{is,get} (NFC) (#118948)

2024-12-09 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-09T09:47:38-08:00 New Revision: 83cb3dbc0c7c1c6950d52412e3346e3b382d79d6 URL: https://github.com/llvm/llvm-project/commit/83cb3dbc0c7c1c6950d52412e3346e3b382d79d6 DIFF: https://github.com/llvm/llvm-project/commit/83cb3dbc0c7c1c6950d52412e3346e3b382d79d6.diff L

[clang] [llvm] [HLSL] Implement SV_GroupThreadId semantic (PR #117781)

2024-12-09 Thread Zhengxing li via cfe-commits
https://github.com/lizhengxing updated https://github.com/llvm/llvm-project/pull/117781 >From 2941d87dbaf091aa443ad57ce55e98e7bab83d2b Mon Sep 17 00:00:00 2001 From: Zhengxing Li Date: Wed, 13 Nov 2024 10:54:16 -0800 Subject: [PATCH 1/4] [HLSL] Implement SV_GroupThreadId semantic Support SV_Gr

[clang] [llvm] [HLSL] Implement SV_GroupThreadId semantic (PR #117781)

2024-12-09 Thread Zhengxing li via cfe-commits
@@ -3606,6 +3613,32 @@ bool SPIRVInstructionSelector::selectSpvThreadId(Register ResVReg, return Result && MIB.constrainAllUses(TII, TRI, RBI); } +bool SPIRVInstructionSelector::selectSpvThreadId(Register ResVReg, + const SPIR

[clang] [llvm] [HLSL] Implement SV_GroupThreadId semantic (PR #117781)

2024-12-09 Thread Zhengxing li via cfe-commits
@@ -3606,6 +3613,32 @@ bool SPIRVInstructionSelector::selectSpvThreadId(Register ResVReg, return Result && MIB.constrainAllUses(TII, TRI, RBI); } +bool SPIRVInstructionSelector::selectSpvThreadId(Register ResVReg, + const SPIR

[clang] [llvm] [HLSL] Implement `WaveActiveAllTrue` Intrinsic (PR #117245)

2024-12-09 Thread Ashley Coleman via cfe-commits
@@ -0,0 +1,21 @@ +; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s +; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} + +; CHECK-DAG: %[[#bool:]] = OpTypeBool +; CHECK-DAG: %[[#uint:]]

[clang] [llvm] [WebAssembly] Add `-i128:128` to the `datalayout` string. (PR #119204)

2024-12-09 Thread Derek Schuff via cfe-commits
@@ -524,9 +524,7 @@ define i64 @utest_f64i64(double %x) { ; CHECK-NEXT:local.get 0 ; CHECK-NEXT:call __fixunsdfti ; CHECK-NEXT:local.get 1 -; CHECK-NEXT:i32.const 8 -; CHECK-NEXT:i32.add -; CHECK-NEXT:i64.load 0 +; CHECK-NEXT:i64.load 8 -

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx @llvm/pr-subscribers-clang Author: Zibi Sarbinowski (zibi2) Changes This PR is necessary to resolve name collisions between locale functions defined within libc++ and macros used in z/OS system header, `locale.h`. Those macros cannot be change

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/119241 This PR is necessary to resolve name collisions between locale functions defined within libc++ and macros used in z/OS system header, `locale.h`. Those macros cannot be changed since they are visible and out in

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-09 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab updated https://github.com/llvm/llvm-project/pull/115993 >From b072008a5b1a3bd697e3f9efc091bcddfbcc3547 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Wed, 13 Nov 2024 13:09:59 +0800 Subject: [PATCH] [Darwin][Driver][clang] Prioritise command line flags over `DE

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-09 Thread Carlo Cabrera via cfe-commits
carlocab wrote: Dropped the `--sysroot=""` flag from the test. > Changing the test itself (to e.g. locally set that env var) is a good > regression test that should be added for this pr anyway. Sorry, which env var are you referring to? https://github.com/llvm/llvm-project/pull/115993 ___

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Louis Dionne via cfe-commits
https://github.com/ldionne requested changes to this pull request. Instead, can't you `#undef` these macros? We're trying to move away from defining names with `__libcpp`. https://github.com/llvm/llvm-project/pull/119241 ___ cfe-commits mailing list c

[clang] [llvm] Reapply "[AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (#94647)" (PR #118907)

2024-12-09 Thread Jun Wang via cfe-commits
jwanggit86 wrote: @arsenm @kzhuravl If there are no more comments, I'm going to merge this PR. https://github.com/llvm/llvm-project/pull/118907 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Sean Perry via cfe-commits
perry-ca wrote: These macros can't be undef'ed as they are used to implement the functions like islower(int) by the headers like ctype.h. Any name other than __X will work for these inline functions in libc++. https://github.com/llvm/llvm-project/pull/119241 __

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 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 788d5a5f1e1263657f0a281545e095769f6b375b d3ee5e960bbf20286d726135423eb632ae45eafb --e

[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)

2024-12-09 Thread Amy Kwan via cfe-commits
https://github.com/amy-kwan approved this pull request. Thanks for clarifying my earlier comment. LGTM. https://github.com/llvm/llvm-project/pull/118004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] Thread Safety Analysis: Support passing scoped locks between functions with appropriate annotations (PR #110523)

2024-12-09 Thread Malek Ben Slimane via cfe-commits
https://github.com/malek203 updated https://github.com/llvm/llvm-project/pull/110523 >From f5b5d4262318c4a2048c145aea923c1108ba65f2 Mon Sep 17 00:00:00 2001 From: Malek Ben Slimane Date: Wed, 11 Sep 2024 22:07:45 +0200 Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee

[clang] [clang-cl][flang][dxc] Fix opts exposed to clang-cl/dxc by mistake (PR #118640)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/118640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Disallow named struct types as parameters in target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/115971 >From 7413ceb21a6e0ac9212ef6317763ee0eff559612 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Tue, 12 Nov 2024 16:44:00 -0800 Subject: [PATCH 01/10] print struct body within target ext ty context --- ...

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread Youngsuk Kim via cfe-commits
https://github.com/JOE1994 created https://github.com/llvm/llvm-project/pull/119246 A necessary AddrSpaceCast was wrongfully deleted in 5c91b2886f6bf400b60ca7839069839ac3980f8f . Recover the AddrSpaceCast. This fixes #86791 . >From 9dbcf65775a979553bee2c95b16e3e2328e957a1 Mon Sep 17 00:00:00

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Youngsuk Kim (JOE1994) Changes A necessary AddrSpaceCast was wrongfully deleted in 5c91b2886f6bf400b60ca7839069839ac3980f8f . Recover the AddrSpaceCast. This fixes #86791 . --- Full diff: https://github.com/llvm/llvm-project/pull/119246.

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Youngsuk Kim (JOE1994) Changes A necessary AddrSpaceCast was wrongfully deleted in 5c91b2886f6bf400b60ca7839069839ac3980f8f . Recover the AddrSpaceCast. This fixes #86791 . --- Full diff: https://github.com/llvm/llvm-project/pul

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Youngsuk Kim (JOE1994) Changes A necessary AddrSpaceCast was wrongfully deleted in 5c91b2886f6bf400b60ca7839069839ac3980f8f . Recover the AddrSpaceCast. This fixes #86791 . --- Full diff: https://github.com/llvm/llvm-project/pull

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread Sergei Barannikov via cfe-commits
https://github.com/s-barannikov edited https://github.com/llvm/llvm-project/pull/119246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread Sergei Barannikov via cfe-commits
https://github.com/s-barannikov commented: May it be possible that the wrapper function's return type is invalid and the cast isn't needed? https://github.com/llvm/llvm-project/pull/119246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-09 Thread Sergei Barannikov via cfe-commits
@@ -3302,6 +3302,9 @@ void ItaniumCXXABI::EmitThreadLocalInitFuncs( CharUnits Align = CGM.getContext().getDeclAlign(VD); Val = Builder.CreateAlignedLoad(Var->getValueType(), Val, Align); } +if (Val->getType() != Wrapper->getReturnType()) { + Val = Build

[clang] [clang][docs] fix rendering of `$`-prefixed options (PR #119249)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Carlo Cabrera (carlocab) Changes This was added in #117573 but the options were not being rendered correctly due to the missing newline after `::`. --- Full diff: https://github.com/llvm/llvm-project/pull/119249.diff 1 Files Affected:

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-09 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,47 @@ +//===--- UseIntegerSignComparisonCheck.h - clang-tidy ---*- 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

[clang] [llvm] Support for dispatch construct (Sema & Codegen) support. (PR #117904)

2024-12-09 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/117904 >From 1703aa62cfe35538aedbacb28e907535e838248c Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Fri, 20 Sep 2024 01:41:29 -0500 Subject: [PATCH 1/2] Support for dispatch construct (Sema & Codegen)

[clang] [clang][docs] fix rendering of `$`-prefixed options (PR #119249)

2024-12-09 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab created https://github.com/llvm/llvm-project/pull/119249 This was added in #117573 but the options were not being rendered correctly due to the missing newline after `::`. >From ed70bf358357a5b54599db4a89e61588fd96aca7 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera D

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/4] Rename __ prefix to __libcpp_ for locale related functi

[clang] [llvm] [HLSL] Disallow named struct types as parameters in target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/115971 >From 7413ceb21a6e0ac9212ef6317763ee0eff559612 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Tue, 12 Nov 2024 16:44:00 -0800 Subject: [PATCH 01/11] print struct body within target ext ty context --- ...

[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/115971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >