[clang] f7dc1d0 - Revert "[Clang] Fix name lookup for dependent bases (#114978)" (#117727)

2024-11-26 Thread via cfe-commits
Author: Anton Sidorenko Date: 2024-11-26T18:42:01+03:00 New Revision: f7dc1d0ac83b7c6b691167d8d02561ba0837b631 URL: https://github.com/llvm/llvm-project/commit/f7dc1d0ac83b7c6b691167d8d02561ba0837b631 DIFF: https://github.com/llvm/llvm-project/commit/f7dc1d0ac83b7c6b691167d8d02561ba0837b631.dif

[clang] Revert "[Clang] Fix name lookup for dependent bases (#114978)" (PR #117727)

2024-11-26 Thread Anton Sidorenko via cfe-commits
https://github.com/asi-sc closed https://github.com/llvm/llvm-project/pull/117727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Fix name lookup for dependent bases (#114978)" (PR #117727)

2024-11-26 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 b214ca82daeece1568268ebc0fbcc2eaa649425b 7501e1cb92371d7082aa4e98ebe990d8f86bafe2 --e

[clang] [SYCL] Change SYCL version according to standard (PR #114790)

2024-11-26 Thread Alexey Bader via cfe-commits
https://github.com/bader edited https://github.com/llvm/llvm-project/pull/114790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SYCL] Change SYCL version according to standard (PR #114790)

2024-11-26 Thread Alexey Bader via cfe-commits
https://github.com/bader approved this pull request. https://github.com/llvm/llvm-project/pull/114790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

2024-11-26 Thread Anton Sidorenko via cfe-commits
asi-sc wrote: @vbe-sc , reverted as you asked me offline https://github.com/llvm/llvm-project/pull/117727 . Feel free to create a new PR which includes the original commit and the fix for problem. https://github.com/llvm/llvm-project/pull/114978 ___

[clang] [AArch64] Add support for the __{inc|add}x18{byte|word|dword|qword intrinsics (PR #117752)

2024-11-26 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello created https://github.com/llvm/llvm-project/pull/117752 Adds support for the following MSVC intrinsics: * `__addx18byte` * `__addx18word` * `__addx18dword` * `__addx18qword` * `__incx18byte` * `__incx18word` * `__incx18dword` * `__incx18qword` These are documented

[clang] [llvm] [AArch64] Implement intrinsics for F1CVTL/F2CVTL and BF1CVTL/BF2CVTL (PR #116959)

2024-11-26 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/116959 >From 296492155525985942e1a0fc56b6f0db34e8a7a4 Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Wed, 20 Nov 2024 10:57:49 + Subject: [PATCH 1/6] [AArch64] Add intrinsics for F1CVTL/F2CVTL and BF1CVTL

[clang] [AArch64] Add support for the __{inc|add}x18{byte|word|dword|qword intrinsics (PR #117752)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 Author: Daniel Paoliello (dpaoliello) Changes Adds support for the following MSVC intrinsics: * `__addx18byte` * `__addx18word` * `__addx18dword` * `__addx18qword` * `__incx18byte` * `__incx18word` * `__incx

[clang] [clang] Avoid re-evaluating field bitwidth (PR #117732)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: Wouldn't wrapping the value in a ConstantExpr achieve the same outcome? https://github.com/llvm/llvm-project/pull/117732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang-tools-extra] Covrt issue (PR #117769)

2024-11-26 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/117769 None >From 27925c327d9f3164e3ba966ffaed5715681480fd Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 21 Nov 2024 07:03:46 -0800 Subject: [PATCH 1/3] [NFC] Fix uninitialized pointer field. --- cl

[clang-tools-extra] Covrt issue (PR #117769)

2024-11-26 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/117769 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Miguel Ojeda via cfe-commits
ojeda wrote: > looks like rust is already tracking and willing to support it? > [Rust-for-Linux/linux#1132](https://github.com/Rust-for-Linux/linux/issues/1132) > (thanks @ojeda) You're welcome! Just in case: if the question is about the entry I added today, then that entry is intended to tra

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

2024-11-26 Thread via cfe-commits
https://github.com/circl-lastname created https://github.com/llvm/llvm-project/pull/117770 Fixes #107869 Due to the other FIXMEs in `#embed` code, this doesn't yet handle offsets, prefixes, and if_empty, however I feel it's a good start, and preferable to crashing. ![Screenshot_20241126_1926

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

2024-11-26 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

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

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: circl (circl-lastname) Changes Fixes #107869 Due to the other FIXMEs in `#embed` code, this doesn't yet handle offsets, prefixes, and if_empty, however I feel it's a good start, and preferable to crashing. ![Screenshot_20241126_192631](

[clang] [clang][dataflow] Add captured parameters to ReferencedDecls for lamb… (PR #117771)

2024-11-26 Thread Samira Bazuzi via cfe-commits
https://github.com/bazuzi created https://github.com/llvm/llvm-project/pull/117771 …da call operators. This doesn't require that they be used in the operator's body, unlike other ReferencedDecls. This is most obviously different from captured local variables, which can be captured but will no

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-26 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/117651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add captured parameters to ReferencedDecls for lamb… (PR #117771)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-analysis Author: Samira Bazuzi (bazuzi) Changes …da call operators. This doesn't require that they be used in the operator's body, unlike other ReferencedDecls. This is most obviously different from captured local vari

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-26 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/117651 >From f24a87de48c42f310ee73ecf480ea2dcf631881f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Tue, 26 Nov 2024 00:33:09 + Subject: [PATCH 1/8] [ubsan] Change ubsan-unique-traps to use nomerge instead

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-26 Thread Vitaly Buka via cfe-commits
@@ -3919,18 +3919,16 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, Builder.CreateCondBr(Checked, Cont, TrapBB); EmitBlock(TrapBB); -llvm::CallInst *TrapCall = Builder.CreateCall( -CGM.getIntrinsic(llvm::Intrinsic::ubsantrap), -llvm::

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Matthew Maurer via cfe-commits
maurer wrote: Flag guarding this feature seems like it would also be good for any existing C users - for example, if trying to build a kernel module intended to load against a kernel image built with an older `clang`, you need to select the same type ID projection that the kernel did. https:/

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-11-26 Thread via cfe-commits
@@ -10615,6 +10615,40 @@ bool clang::isBetterOverloadCandidate( auto *Guide1 = dyn_cast_or_null(Cand1.Function); auto *Guide2 = dyn_cast_or_null(Cand2.Function); if (Guide1 && Guide2) { + // -- F1 and F2 are generated from class template argument deduction +

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

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

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

2024-11-26 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/117730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

2024-11-26 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/117730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6c7b988 - [clang-format] Add mjs to default_extensions in git-clang-format (#117730)

2024-11-26 Thread via cfe-commits
Author: 루밀LuMir Date: 2024-11-26T22:56:25-08:00 New Revision: 6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6 URL: https://github.com/llvm/llvm-project/commit/6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6 DIFF: https://github.com/llvm/llvm-project/commit/6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6.diff LOG:

[clang-tools-extra] [clang-tidy] Enhance modernize-use-starts-ends-with to handle substr patterns (PR #116033)

2024-11-26 Thread Helmut Januschka via cfe-commits
hjanuschka wrote: awesome! thanks to everyone involved for the patience with me and the great guidance! https://github.com/llvm/llvm-project/pull/116033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang] Format bitfield width diagnostics with thousands-separators (PR #117763)

2024-11-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117763 >From 07b326b59bf9a8e385840a590c5162b9d1914650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 26 Nov 2024 19:26:32 +0100 Subject: [PATCH] [clang] Format bitfield width diagnostics with

[clang] [flang] [flang] Preserve fixed form in fc1 -x value (PR #117563)

2024-11-26 Thread David Truby via cfe-commits
DavidTruby wrote: `-save-temps` doesn't appear to work for me at all, I get the following error: ``` "S:\\llvm-project\\build\\bin\\flang.exe" -cc1as -triple x86_64-pc-windows-msvc19.41.34123 -filetype obj -main-file-name test.f90 -target-cpu x86-64 "-fdebug-compilation-dir=S:\\llvm-project\\b

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117747 >From dfbc9e972c079db142962f6c2ba0bcfc3a705e52 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 05:29:12 -0400 Subject: [PATCH] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}

[clang] 0f4fcca - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (#117745)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:26:07-05:00 New Revision: 0f4fcca546a489f50535086a313f8c054ea41791 URL: https://github.com/llvm/llvm-project/commit/0f4fcca546a489f50535086a313f8c054ea41791 DIFF: https://github.com/llvm/llvm-project/commit/0f4fcca546a489f50535086a313f8c054ea41791.diff

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)

2024-11-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. https://github.com/llvm/llvm-project/pull/117017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2024-11-26 Thread Oliver Hunt via cfe-commits
@@ -19213,6 +19213,29 @@ void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl, if (Record && FD->getType().isVolatileQualified()) Record->setHasVolatileMember(true); +auto IsNonDependentBitField = [](const FieldDecl *FD) { + if (!FD->

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2024-11-26 Thread Oliver Hunt via cfe-commits
@@ -6418,6 +6418,12 @@ def warn_signed_bitfield_enum_conversion : Warning< InGroup, DefaultIgnore; def note_change_bitfield_sign : Note< "consider making the bitfield type %select{unsigned|signed}0">; +def warn_ms_bitfield_mismatched_storage_packing : Warning< + "bit-field

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: MC support for v_cvt_sr_{f16|bf16}_f32 instructions (PR #117796)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 065dc93 - AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (#117793)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:35:18-05:00 New Revision: 065dc93d9626930b48f8e88b1e0a18c746951ce0 URL: https://github.com/llvm/llvm-project/commit/065dc93d9626930b48f8e88b1e0a18c746951ce0 DIFF: https://github.com/llvm/llvm-project/commit/065dc93d9626930b48f8e88b1e0a18c746951ce0.diff

[clang] [llvm] AMDGPU: MC support for v_cvt_scalef32_sr_{bf8|fp8}_{f16|bf16|f32} (PR #117797)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
@@ -8119,6 +8119,14 @@ void Parser::ParseParameterDeclarationClause( } if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { + if (getLangOpts().CPlusPlus26) { +// C++26 [dcl.dcl.fct]p3: +// A parameter-declaration-clause of the form +// p

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117798 >From 89f06d11a4c3a75d02667a223da6e65187b39654 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Mon, 3 Jun 2024 09:44:01 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 inst

[clang] [CMake] Add a cache file for building a highly-optimized LLVM toolchain (PR #117802)

2024-11-26 Thread Shoaib Meenai via cfe-commits
https://github.com/smeenai commented: The runtimes build already builds the toolchain and then builds the runtimes with the just-built toolchain. Can we build the LTO-optimized libc++ as part of stage1 and have stage2 be what the current stage3 is, to avoid any redundancy? I really like the di

[clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-26 Thread Bill Wendling via cfe-commits
@@ -14690,6 +14690,13 @@ void Sema::FinalizeDeclaration(Decl *ThisDecl) { } } + // The result of __builtin_counted_by_ref cannot be assigned to a variable. + // It allows leaking and modification of bounds safety information. + if (IsBuiltinCountedByRef(VD->getInit())

[clang] [CMake] Add a cache file for building a highly-optimized LLVM toolchain (PR #117802)

2024-11-26 Thread Petr Hosek via cfe-commits
petrhosek wrote: > The runtimes build already builds the toolchain and then builds the runtimes > with the just-built toolchain. Can we build the LTO-optimized libc++ as part > of stage1 and have stage2 be what the current stage3 is, to avoid any > redundancy? I really like the direction here

[clang] eeb7688 - AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (#117744)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:23:15-05:00 New Revision: eeb76880f3489f1e7e6224a26ec4abc7f6da4e34 URL: https://github.com/llvm/llvm-project/commit/eeb76880f3489f1e7e6224a26ec4abc7f6da4e34 DIFF: https://github.com/llvm/llvm-project/commit/eeb76880f3489f1e7e6224a26ec4abc7f6da4e34.diff

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117744 >From 1204ea8880659bd3fbb3f33b1343e3ca6615b011 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 01:58:18 -0400 Subject: [PATCH] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}1

[clang] 991dcbc - AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (#117747)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:30:04-05:00 New Revision: 991dcbc468763953f4b4e65fa3448e147cba5bba URL: https://github.com/llvm/llvm-project/commit/991dcbc468763953f4b4e65fa3448e147cba5bba DIFF: https://github.com/llvm/llvm-project/commit/991dcbc468763953f4b4e65fa3448e147cba5bba.diff

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 7:08 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117741). https://github.com/llvm/llvm-project/pull/117741 _

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117793 >From d8b5c66d4bd23cda72b898b6ef33cb9e85b2b440 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Tue, 23 Apr 2024 03:41:27 -0400 Subject: [PATCH] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}1

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117794 >From efa35c5c0eb3601db795b43f23a011ebb11377d7 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 27 May 2024 01:18:46 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|b

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Ramon de C Valle via cfe-commits
rcvalle wrote: This all too architecture specific and isn't the level that LLVM CFI and KCFI originally work. The arity test should be at the language level. E.g.: void foo(void) is arity zero void bar(int) is arity 1 int baz(int) is arity 2 int qux(int, int) is arity 3 And so on. If we tried

[clang] c8ee1ee - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (#117794)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:38:23-05:00 New Revision: c8ee1ee0571c5e49bee42983a8b9d8db0243c001 URL: https://github.com/llvm/llvm-project/commit/c8ee1ee0571c5e49bee42983a8b9d8db0243c001 DIFF: https://github.com/llvm/llvm-project/commit/c8ee1ee0571c5e49bee42983a8b9d8db0243c001.diff

[clang] [llvm] AMDGPU: MC support for V_CVT_SCALE_SR_FP4 instructions (PR #117795)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)

2024-11-26 Thread Justin Bogner via cfe-commits
@@ -6,14 +6,17 @@ RasterizerOrderedStructuredBuffer Out2; [numthreads(1,1,1)] void main(unsigned GI : SV_GroupIndex) { + // CHECK: define void @main() + + // CHECK: %[[INPTR:.*]] = call noundef nonnull align 4 dereferenceable(4) ptr @llvm.dx.resource.getpointer.p0.tdx.RawB

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117745 >From d832fd47f43bc4f83522cdd9e7d2ae444afc2b2a Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 04:45:35 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[f

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2b9e947 - AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (#117743)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:20:09-05:00 New Revision: 2b9e947d4346ad03328a31f90b9056837c042d1b URL: https://github.com/llvm/llvm-project/commit/2b9e947d4346ad03328a31f90b9056837c042d1b DIFF: https://github.com/llvm/llvm-project/commit/2b9e947d4346ad03328a31f90b9056837c042d1b.diff

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
https://github.com/sbc100 updated https://github.com/llvm/llvm-project/pull/117817 >From 9578cf12c95d2511975b9ede6edb3bddc5f5da74 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 26 Nov 2024 16:38:00 -0800 Subject: [PATCH] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC We can s

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
sbc100 wrote: > > Generally LGTM; maybe we also want to add a test for > > `__builtin_thread_pointer` to clang/test/CodeGen/builtins-wasm.c > > I only see that testing in clang/test/CodeGen/builtins-arm64.c, most > platforms don't seem to test this. Done! https://github.com/llvm/llvm-project

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
https://github.com/sbc100 updated https://github.com/llvm/llvm-project/pull/117817 >From 933be68425babeefba6415f5aebc31b0f2d34265 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 26 Nov 2024 16:38:00 -0800 Subject: [PATCH] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC We can s

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/8111 Here is the relevant piece of

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix minor mistake in error message (PR #116132)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Incorporated in #116033. https://github.com/llvm/llvm-project/pull/116132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix minor mistake in error message (PR #116132)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/116132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative (PR #117837)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nicolas van Kempen (nicovank) Changes In C++20, `operator!=` can be rewritten by negating `operator==`. This is the case for `std::string`, where `operator!=` is not provided hence relying on this rewriting. Cover this case

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative (PR #117837)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/117837 In C++20, `operator!=` can be rewritten by negating `operator==`. This is the case for `std::string`, where `operator!=` is not provided hence relying on this rewriting. Cover this case by matching `binaryOp

[clang] [Clang] prevent errors for deduction guides using deduced type aliases (PR #117450)

2024-11-26 Thread via cfe-commits
https://github.com/antangelo approved this pull request. https://github.com/llvm/llvm-project/pull/117450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin requested changes to this pull request. I don't think the discussion here has run its course https://github.com/llvm/llvm-project/pull/115416 In particular, I agree with @boris-kolpackov that this is likely to lead to hard-to understand ODR violations issues, which i

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/117840 >From 1f9c2a9c32f3f3883478d96c716a58c8d6e8e27a Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 27 Nov 2024 10:53:03 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warn

[clang] [clang] Allow delayed function instantiation at TU end if initial instantiation fails (PR #117167)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: Wait @erichkeane, I think this is just another case of "lambda call operators get instantiated too soon"... The change is almost certainly not the right solution, but the right solution is... a lot of work... https://github.com/llvm/llvm-project/pull/117167

[clang] [Clang] [NFC] Refactor more AST visitors (PR #116823)

2024-11-26 Thread via cfe-commits
@@ -266,7 +265,7 @@ class RenameLocFinder : public RecursiveASTVisitor { return true; } - bool VisitDeclRefExpr(const DeclRefExpr *Expr) { cor3ntin wrote: Why are we removing const here (and other places)? https://github.com/llvm/llvm-project/pull/11

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/117108 >From 32e04b6538486006c98c6b805b1057110c3a2c1a Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Wed, 20 Nov 2024 17:30:43 +0800 Subject: [PATCH 1/4] [Flang] LoongArch64 support for BIND(C) derived types. This pat

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From 9a90e74d3c0d851a140368d7c7969bde10b52d0e Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From 0b0d6946d385a341f766d1a3e333962682b8479b Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 11:16 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117820). https://github.com/llvm/llvm-project/pull/117820

[clang] [clang] Compute accurate begin location for CallExpr with explicit object parameter (PR #117841)

2024-11-26 Thread Yanzuo Liu via cfe-commits
@@ -1639,6 +1639,13 @@ SourceLocation CallExpr::getBeginLoc() const { if (const auto *OCE = dyn_cast(this)) return OCE->getBeginLoc(); + if (const CXXMethodDecl *Method = + dyn_cast_or_null(getCalleeDecl()); zwuis wrote: ```suggestion

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/117840 >From 8b1794945e984b8527d234b13796ecf3e94ded77 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 27 Nov 2024 10:53:03 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warn

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-26 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/117651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0d15d46 - [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (#117651)

2024-11-26 Thread via cfe-commits
Author: Thurston Dang Date: 2024-11-26T21:13:00-08:00 New Revision: 0d15d46362bd6ab5a9a2165805adaab13a7689f4 URL: https://github.com/llvm/llvm-project/commit/0d15d46362bd6ab5a9a2165805adaab13a7689f4 DIFF: https://github.com/llvm/llvm-project/commit/0d15d46362bd6ab5a9a2165805adaab13a7689f4.diff

[clang] [clang] Avoid re-evaluating field bitwidth (PR #117732)

2024-11-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117732 >From f766ba7fdfef40adc304b3bd54ccf48db8288576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 27 Nov 2024 08:54:51 +0100 Subject: [PATCH] Save FieldDecl BitWidth as a ConstantExpr ---

[clang] [Serialization] Downgrade error to warning for inconsistent language flags (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: CC @mathstuf @mizvekov https://github.com/llvm/llvm-project/pull/117840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/117524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 7:57 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117798). https://github.com/llvm/llvm-project/pull/117798 _

[clang] 7671578 - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (#117798)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:59:14-05:00 New Revision: 76715787f4c1e23a618bccdb81049456526f7b42 URL: https://github.com/llvm/llvm-project/commit/76715787f4c1e23a618bccdb81049456526f7b42 DIFF: https://github.com/llvm/llvm-project/commit/76715787f4c1e23a618bccdb81049456526f7b42.diff

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From ce8c1687eee9bfa527a4b995dd1f1a39d70f2b62 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117742 >From eb0e34ab5c455678a7e501d3e3863744a00723d8 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Fri, 19 Apr 2024 03:09:43 -0400 Subject: [PATCH] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}

<    1   2   3   4   5   6   >