[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-28 Thread Stephen Tozer via cfe-commits
SLTozer wrote: Looks like the fix commit is passing everywhere, marking this one closed by [4424c44c](https://github.com/llvm/llvm-project/commit/4424c44c8c4ec8e071f5c5999fba216d36fb92c9) and [8ad9e1e](https://github.com/llvm/llvm-project/commit/8ad9e1ecb7e565c2f99b4ef67517d1f37d1c80d0). http

[clang] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode" linking. (PR #123922)

2025-01-28 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 updated https://github.com/llvm/llvm-project/pull/123922 >From 5ec4303eb089038db1965b844b8b3bec136207bf Mon Sep 17 00:00:00 2001 From: Amit Pandey Date: Wed, 22 Jan 2025 15:41:41 +0530 Subject: [PATCH 1/2] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode"

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. This LGTM and I think it does the behavior we want. Aaron to confirm? https://github.com/llvm/llvm-project/pull/120734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [llvm] Expose format (attribute) info for function declarations in Clang Index API (PR #113754)

2025-01-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for your patience while I considered this. I'm not certain this is quite the correct design because it's very limited to just the format attribute. I would expect we'd rather want `clang_Cursor_getNumArguments` to return the number of argume

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2025-01-28 Thread Carlo Cabrera via cfe-commits
carlocab wrote: Yep, was just trying to ping @Bo98 for an update here. https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] call HandleImmediateInvocation before checking for immediate escacalating expressions (reland) (PR #124708)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/124708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard created https://github.com/llvm/llvm-project/pull/124762 For C++ (but not C), empty structs should be passed to functions as if they are a 1 byte object with 1 byte alignment. This is defined in Arm's CPPABI32: https://github.com/ARM-software/abi-aa/blob/main/cpp

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm @llvm/pr-subscribers-clang Author: Oliver Stannard (ostannard) Changes For C++ (but not C), empty structs should be passed to functions as if they are a 1 byte object with 1 byte alignment. This is defined in Arm's CPPABI32: https://githu

[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Oliver Stannard (ostannard) Changes For C++ (but not C), empty structs should be passed to functions as if they are a 1 byte object with 1 byte alignment. This is defined in Arm's CPPABI32: https://github.com/ARM-software/abi-aa

[libclc] [libclc] Optimize isfpclass-like CLC builtins (PR #124145)

2025-01-28 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. I remember debugging inconsistent behavior on different platforms in treatment of signaling nans and denormal flushing with these queries. I think these days we emit them as is.fpclass anyway, and then instcombine turns them into fcmp when

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

2025-01-28 Thread Zibi Sarbinowski via cfe-commits
zibi2 wrote: Louis, are you still in position of not accepting the rename proposal in this PR? I was able to resolve the `__locale_t` name collision with a wrapper, but unfortunately, as Sean pointed out, we cannot undefine other macros conflicting with the inline functions in `libc++`. If

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang] [clang] improve print / dump of anonymous declarations (PR #124605)

2025-01-28 Thread Dmitri Gribenko via cfe-commits
gribozavr wrote: @mizvekov It looks like this PR introduces a crash, I'm going to revert it. Here is a reproducer: ``` $ cat parser_test-42bc8e.cpp enum a : char; class b { public: static b c; friend bool operator==(b, b) = default; a d; }; void e() { b f; f == b::c; } $ clang "-cc1"

[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)

2025-01-28 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: > I think for `clspv`, we would need to invert the condition to skip > user-facing functions. By that I mean that `clspv` will need all the > `convert_*` functions, and not the `__clc_convert_*_rte`. Then we will need > to update `clspv` to support natively the function with

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/124319 >From 581cc0eda9d42458ff71f2c913a2e03d2de0b5f2 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Fri, 19 Jul 2024 14:26:23 -0700 Subject: [PATCH 01/13] This commit is to resolve the issue #24841

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang-tools-extra] [clang-tidy] Replace /* ... */ single-line comments with // ... comments (PR #124319)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as

[clang] [TySan] Add initial documentation for Type Sanitizer (PR #123595)

2025-01-28 Thread via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/123595 >From 807c2c8be0517cbb1b9db890f48baeb6f226ba2f Mon Sep 17 00:00:00 2001 From: gbMattN Date: Mon, 20 Jan 2025 11:02:06 + Subject: [PATCH 01/12] [TySan] Add initial documentation --- clang/docs/TypeSanitizer

[clang] [OpenMP][ASan] Enable ASan Instrumentation for AMDGPUOpenMPToolChain. (PR #124754)

2025-01-28 Thread Joseph Huber via cfe-commits
@@ -37,6 +37,16 @@ AMDGPUOpenMPToolChain::AMDGPUOpenMPToolChain(const Driver &D, // Lookup binaries into the driver directory, this is used to // discover the 'amdgpu-arch' executable. getProgramPaths().push_back(getDriver().Dir); + // Diagnose unsupported sanitizer opti

[clang] [CodeGen] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124771)

2025-01-28 Thread Mats Jun Larsen via cfe-commits
https://github.com/junlarsen converted_to_draft https://github.com/llvm/llvm-project/pull/124771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e38f4f6 - Revert "[clang] improve print / dump of anonymous declarations (#124605)"

2025-01-28 Thread Dmitri Gribenko via cfe-commits
Author: Dmitri Gribenko Date: 2025-01-28T17:07:26+01:00 New Revision: e38f4f6904b774dfdd90d78c3fb282f8cc9d07c1 URL: https://github.com/llvm/llvm-project/commit/e38f4f6904b774dfdd90d78c3fb282f8cc9d07c1 DIFF: https://github.com/llvm/llvm-project/commit/e38f4f6904b774dfdd90d78c3fb282f8cc9d07c1.dif

[clang] [TySan] Add initial documentation for Type Sanitizer (PR #123595)

2025-01-28 Thread via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/123595 >From 807c2c8be0517cbb1b9db890f48baeb6f226ba2f Mon Sep 17 00:00:00 2001 From: gbMattN Date: Mon, 20 Jan 2025 11:02:06 + Subject: [PATCH 01/12] [TySan] Add initial documentation --- clang/docs/TypeSanitizer

[clang] [clang-format] Simplify ConfigParseTest for int/unsigned options (PR #124704)

2025-01-28 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/124704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,41 @@ +//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// +// +// 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] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
Sirraide wrote: Also, CI is currently failing on some codegen tests on windows, but that seems unrelated https://github.com/llvm/llvm-project/pull/124821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [HLSL][RootSignature] Implement Lexing of DescriptorTables (PR #122981)

2025-01-28 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/122981 >From 98deff6a407b912852e70b2bdc3618aaec8a1931 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 24 Jan 2025 22:23:39 + Subject: [PATCH 1/5] [HLSL][RootSignature] Initial Lexer Definition with puncuato

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > I don't think `.template` is incorrect. Maybe you hit #96364 or somethink > > @sdkrystian > > Yeah, at first I thought it was required, apparently it’s not. GCC and Clang > accept both, but I also don’t think it’s incorrect, so... I’m still somewhat > confused about th

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
Sirraide wrote: > Well, at worst > > ```c++ > using Base = RecursiveASTVisitor>; // and you can put that at > class level > return Base::Function(...); > ``` It’d have to be `Impl::Base::Function(...)` because RAV is only a base class of `Impl` not of DRAV; that would still have a dependent N

[clang] [NFC][docs][HIP] Update HIP docs around `hipstdpar` and SPIR-V (PR #124803)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12605 Here is the r

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk deleted https://github.com/llvm/llvm-project/pull/120734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][AMDGPU] Add Intrinsic and Builtin for ds_bpermute_fi_b32 (PR #124616)

2025-01-28 Thread Acim Maravic via cfe-commits
@@ -504,6 +504,8 @@ TARGET_BUILTIN(__builtin_amdgcn_global_load_tr_b128_v4i16, "V4sV4s*1", "nc", "gf TARGET_BUILTIN(__builtin_amdgcn_global_load_tr_b128_v4f16, "V4hV4h*1", "nc", "gfx12-insts,wavefrontsize64") TARGET_BUILTIN(__builtin_amdgcn_global_load_tr_b128_v4bf16, "V4yV4y*

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
Sirraide wrote: > I don't think `.template` is incorrect. Maybe you hit #96364 or somethink > @sdkrystian Yeah, at first I thought it was required, apparently it’s not. GCC and Clang accept both, but I also don’t think it’s incorrect, so... I’m still somewhat confused about this https://gith

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-28 Thread Stephen Tozer via cfe-commits
SLTozer wrote: > Commented on the commit but I'm not sure if that sends notifications. I saw it, thanks - I'll likely update the tests afterwards, though for now I'm keeping an eye on the bots/merge to make sure things turn/stay green. https://github.com/llvm/llvm-project/pull/110102 ___

[clang] [llvm] [LLVM][AMDGPU] Add Intrinsic and Builtin for ds_bpermute_fi_b32 (PR #124616)

2025-01-28 Thread Acim Maravic via cfe-commits
@@ -699,7 +699,8 @@ def DS_PERMUTE_B32 : DS_1A1D_PERMUTE <"ds_permute_b32", int_amdgcn_ds_permute>; def DS_BPERMUTE_B32 : DS_1A1D_PERMUTE <"ds_bpermute_b32", int_amdgcn_ds_bpermute>; -def DS_BPERMUTE

[clang] 964565c - [NFC][docs][HIP] Update HIP docs around `hipstdpar` and SPIR-V (#124803)

2025-01-28 Thread via cfe-commits
Author: Alex Voicu Date: 2025-01-28T20:03:05Z New Revision: 964565c868c4a255f8ebdf412b307beeb390a6bc URL: https://github.com/llvm/llvm-project/commit/964565c868c4a255f8ebdf412b307beeb390a6bc DIFF: https://github.com/llvm/llvm-project/commit/964565c868c4a255f8ebdf412b307beeb390a6bc.diff LOG: [N

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
Sirraide wrote: > I really hope we're not in a situation where we need the `template` for some > bots and can't have it for other bots. Yeah, that’s what I’m a bit worried about too... https://github.com/llvm/llvm-project/pull/124821 ___ cfe-commits

[clang] [StrTable] Mechanically convert NVPTX builtins to use TableGen (PR #122873)

2025-01-28 Thread Artem Belevich via cfe-commits
@@ -104,9 +104,39 @@ class PrototypeParser { void ParseType(StringRef T) { T = T.trim(); + +auto ConsumeAddrSpace = [&]() -> std::optional { + T = T.trim(); + if (!T.consume_back(">")) +return std::nullopt; + + auto Open = T.find_last_of('<');

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/122754 >From b6c576fb90362640b2fd4e41bd7f13dfee95d04d Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 13 Jan 2025 11:53:39 -0500 Subject: [PATCH 01/18] initial template arg fix push --- .../clang/Basic/Diagnost

[clang] [StrTable] Mechanically convert NVPTX builtins to use TableGen (PR #122873)

2025-01-28 Thread Artem Belevich via cfe-commits
@@ -0,0 +1,1078 @@ +//===--- BuiltinsNVPTX.td - NVPTX Builtin function defs -*- 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: A

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Aidan Goldfarb via cfe-commits
@@ -649,15 +649,15 @@ namespace cwg241 { // cwg241: 9 A::g<3>(b); C::f<3>(b); // expected-error@-1 {{no matching function for call to 'f'}} -// expected-note@#cwg241-C-f {{candidate template ignored: invalid explicitly-specified argument for template paramete

[clang] [HLSL][RootSignature] Implement Lexing of DescriptorTables (PR #122981)

2025-01-28 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,96 @@ +//===--- ParseHLSLRootSignature.h ---*- 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] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
cor3ntin wrote: > > I really hope we're not in a situation where we need the `template` for > > some bots and can't have it for other bots. > > Yeah, that’s what I’m a bit worried about too... Well, at worst ```cpp using Base = RecursiveASTVisitor>; // and you can put that at class level ret

[clang] [CUDA] Make target intrinsics work with ptx 8.7 (PR #124818)

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

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Nathan Lanza via cfe-commits
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer { const clang::CodeGenOptions &codeGenOpts; protected: - std::unique_ptr mlirContext; + std::shared_ptr mlirContext; lanza wrote: > Could CIRGenerator own this and just share it with lowerFr

[clang] [NFC][docs][HIP] Update HIP docs around `hipstdpar` and SPIR-V (PR #124803)

2025-01-28 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > LLVM Buildbot has detected a new failure on builder > `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building > `clang` at step 7 "Add check check-offload". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/73/builds/12605 >

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk closed https://github.com/llvm/llvm-project/pull/120734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 310f558 - [CUDA] Make target intrinsics work with ptx 8.7 (#124818)

2025-01-28 Thread via cfe-commits
Author: Artem Belevich Date: 2025-01-28T12:14:46-08:00 New Revision: 310f55875f2fc69af310b6259e65136f0de4404a URL: https://github.com/llvm/llvm-project/commit/310f55875f2fc69af310b6259e65136f0de4404a DIFF: https://github.com/llvm/llvm-project/commit/310f55875f2fc69af310b6259e65136f0de4404a.diff

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Matheus Izvekov via cfe-commits
@@ -4870,9 +4870,21 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">; -

[clang] [NFC][docs][HIP] Update HIP docs around `hipstdpar` and SPIR-V (PR #124803)

2025-01-28 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx closed https://github.com/llvm/llvm-project/pull/124803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/122754 >From b6c576fb90362640b2fd4e41bd7f13dfee95d04d Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 13 Jan 2025 11:53:39 -0500 Subject: [PATCH 01/20] initial template arg fix push --- .../clang/Basic/Diagnost

[clang] [clang] fix template argument conversion (PR #124386)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/124386 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b197268 - [clang] fix template argument conversion (#124386)

2025-01-28 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-01-28T17:25:05-03:00 New Revision: b1972689a43175451f27098b8fd6f58cf7275229 URL: https://github.com/llvm/llvm-project/commit/b1972689a43175451f27098b8fd6f58cf7275229 DIFF: https://github.com/llvm/llvm-project/commit/b1972689a43175451f27098b8fd6f58cf7275229.dif

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,41 @@ +//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// +// +// 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] [HLSL][RootSignature] Implement Lexing of DescriptorTables (PR #122981)

2025-01-28 Thread Finn Plummer via cfe-commits
inbelic wrote: Updated to include diagnostics output and the relevant testing. I have rebased to split the pr into smaller incremental changes. But I have taken care to address all previous comments. https://github.com/llvm/llvm-project/pull/122981 _

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/122754 >From b6c576fb90362640b2fd4e41bd7f13dfee95d04d Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 13 Jan 2025 11:53:39 -0500 Subject: [PATCH 01/19] initial template arg fix push --- .../clang/Basic/Diagnost

[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

2025-01-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120896 >From 295df258043ef5a87ae603eedd308b863bad7b59 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 22 Dec 2024 15:14:30 +0200 Subject: [PATCH] [Clang] allow restrict qualifier for array types with pointer

[clang] [clang] fix nondeduced mismatch with nullptr template arguments (PR #124498)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/124498 >From 0e3246e46820df6d13ea623e20c8226c571d4f9a Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 27 Jan 2025 00:04:59 -0300 Subject: [PATCH] [clang] fix nondeduced mismatch with nullptr template argume

[clang] 5dab5bf - [Clang] handle [[warn_unused]] attribute for unused private fields (#120734)

2025-01-28 Thread via cfe-commits
Author: Oleksandr T. Date: 2025-01-28T22:19:12+02:00 New Revision: 5dab5bf0851f523602944355a2c1c17e7f78ef36 URL: https://github.com/llvm/llvm-project/commit/5dab5bf0851f523602944355a2c1c17e7f78ef36 DIFF: https://github.com/llvm/llvm-project/commit/5dab5bf0851f523602944355a2c1c17e7f78ef36.diff

[clang] [clang-cl]: generate debug info when `novtable` is specified (PR #124643)

2025-01-28 Thread via cfe-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/124643 >From 1082c242c297ae510d3e5c192f1620dff724cdf6 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 27 Jan 2025 23:08:05 +0100 Subject: [PATCH] [clang-cl]: generate debug info when `novtable` is specified --- cla

[clang] [clang] fix nondeduced mismatch with nullptr template arguments (PR #124498)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/124498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TBAA] Don't emit pointer-tbaa for void pointers. (PR #122116)

2025-01-28 Thread Florian Hahn via cfe-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/122116 >From 9a637043f00ad388971cd6d4247510510fca31c8 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Wed, 8 Jan 2025 13:07:01 + Subject: [PATCH 1/6] [TBAA] Don't emit pointer-tbaa for void pointers. While there a

[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12607 Here is the r

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-01-28 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks created https://github.com/llvm/llvm-project/pull/124834 Following up #72078, on x86-64 this allows a global to be considered small or large regardless of the code model. For example, x86-64's medium code model by default classifies globals as small or large dependi

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Arthur Eubanks (aeubanks) Changes Following up #72078, on x86-64 this allows a global to be considered small or large regardless of the code model. For example, x86-64's medium code model by default classifies globals as small or large de

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Andy Kaylor via cfe-commits
@@ -7,42 +7,56 @@ //===--===// #include "clang/CIR/FrontendAction/CIRGenAction.h" -#include "clang/CIR/CIRGenerator.h" -#include "clang/Frontend/CompilerInstance.h" - #include "mlir/IR/MLIRContext.h" #inclu

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread via cfe-commits
@@ -4870,9 +4870,21 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">; -

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread via cfe-commits
@@ -4870,9 +4870,21 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">; -

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/122754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Matheus Izvekov via cfe-commits
@@ -4870,9 +4870,21 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">; -

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
cor3ntin wrote: > It’d have to be `Impl::Base::Function(...)` because RAV is only a base > class of `Impl` not of DRAV; that would still have a dependent NNS, wouldn’t > it? In the same function then, a statement above https://github.com/llvm/llvm-project/pull/124821 _

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
Sirraide wrote: > In the same function then, a statement above That would be an option yeah; I’m hoping it’ll accept it without the `template`, if not, er, then I’ll try that because I’m out of ideas otherwise. https://github.com/llvm/llvm-project/pull/124821 __

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2cbf279 - [clang] fix nondeduced mismatch with nullptr template arguments (#124498)

2025-01-28 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-01-28T18:08:14-03:00 New Revision: 2cbf2798ae55ddc36aac130df21353fc82891bcf URL: https://github.com/llvm/llvm-project/commit/2cbf2798ae55ddc36aac130df21353fc82891bcf DIFF: https://github.com/llvm/llvm-project/commit/2cbf2798ae55ddc36aac130df21353fc82891bcf.dif

[clang] [clang] fix nondeduced mismatch with nullptr template arguments (PR #124498)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/124498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose default arguments defined in different scopes (PR #124844)

2025-01-28 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/124844 >From da30f708caee020677675277673e0b7c6f9c644f Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 24 Jan 2025 15:15:17 +0400 Subject: [PATCH 01/14] [clang] Diagnose default arguments defined in differe

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Owen Pan via cfe-commits
@@ -2633,12 +2633,20 @@ class AnnotatingParser { PreviousNotConst->MatchingParen->Previous->isNot(tok::kw_template); } -if ((PreviousNotConst->is(tok::r_paren) && - PreviousNotConst->is(TT_TypeDeclarationParen)) || -PreviousNotConst->is(TT

[clang] b28e879 - [clang-format] Simplify ConfigParseTest for int/unsigned options (#124704)

2025-01-28 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-28T21:04:41-08:00 New Revision: b28e879a8323189ee05733a0ef3779a6768a9ea3 URL: https://github.com/llvm/llvm-project/commit/b28e879a8323189ee05733a0ef3779a6768a9ea3 DIFF: https://github.com/llvm/llvm-project/commit/b28e879a8323189ee05733a0ef3779a6768a9ea3.diff LOG:

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124883)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This p

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread Jason Rice via cfe-commits
@@ -4213,8 +4226,35 @@ class DecompositionDecl final static DecompositionDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID, unsigned NumBindings); - ArrayRef bindings() const { -return llvm::ArrayRef(getTrailingObject

[clang] [clang] Diagnose default arguments defined in different scopes (PR #124844)

2025-01-28 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/124844 >From da30f708caee020677675277673e0b7c6f9c644f Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 24 Jan 2025 15:15:17 +0400 Subject: [PATCH 01/13] [clang] Diagnose default arguments defined in differe

[clang] [clang-format] Simplify ConfigParseTest for int/unsigned options (PR #124704)

2025-01-28 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/124704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add a generic OOO CPU (PR #120712)

2025-01-28 Thread Yingwei Zheng via cfe-commits
@@ -0,0 +1,494 @@ +//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [RISCV] Add a generic OOO CPU (PR #120712)

2025-01-28 Thread Yingwei Zheng via cfe-commits
@@ -0,0 +1,494 @@ +//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From 9879eb1e68c7799f14ddef37cf43f43e65ce735e Mon Sep 17 00:00:00 2001 From: Michael Park Date: Fri, 27 Dec 2024 17:52:19 -0800 Subject: [PATCH] Delay marking pending incomplete decl chains until the end of `fin

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From f8d317ce75e51e467487cb10a89e44b73e6b386a Mon Sep 17 00:00:00 2001 From: Michael Park Date: Tue, 28 Jan 2025 22:01:37 -0800 Subject: [PATCH 1/2] [C++20][Modules][Serialization] Add a unit test for #121245.

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124882)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124882 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124882)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [HLSL][NFC] Checks store instructions in resource binding test (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124883)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124883 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This patch migrat

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/124866.diff 1 Files Affected: - (modified) clang/test/CodeGenHLSL/resource-bindings.hlsl (+4) ``diff diff --git

[clang] [clang][bytecode] Fix dummy handling for p2280r4 (PR #124396)

2025-01-28 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/124396 >From 6a7c6ff71b7dce7ad57d5ca0203537800bfa303f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 22 Jan 2025 11:57:10 +0100 Subject: [PATCH] [clang][bytecode] Fix dummy handling for p2280r

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Now that the Clang 20 branch has happened, I think we should go ahead with that PR - It would be great to explore merging ResolvedUnexpandedPackExpr and FunctionParmPackExpr in a separate PR. Is that something you would be interested in

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/124821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread via cfe-commits
cor3ntin wrote: @ricejasonf let us know if you want us to merge on your behalf https://github.com/llvm/llvm-project/pull/121417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Owen Pan via cfe-commits
@@ -2633,12 +2633,20 @@ class AnnotatingParser { PreviousNotConst->MatchingParen->Previous->isNot(tok::kw_template); } -if ((PreviousNotConst->is(tok::r_paren) && - PreviousNotConst->is(TT_TypeDeclarationParen)) || -PreviousNotConst->is(TT

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
mpark wrote: Okay folks, I've finally managed to get a reasonable repro as a unit test! The new unit test, with `Debug` build fails like this: ``` FAIL: Clang :: Modules/pr121245.cpp (8522 of 22154) TEST 'Clang :: Modules/pr121245.cpp' FAILED Exit Code:

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From f8d317ce75e51e467487cb10a89e44b73e6b386a Mon Sep 17 00:00:00 2001 From: Michael Park Date: Tue, 28 Jan 2025 22:01:37 -0800 Subject: [PATCH 1/2] [C++20][Modules][Serialization] Add a unit test for #121245.

<    1   2   3   4   5   6   >