[clang] [NVPTX] Add a clang builtin for the `warpsize` intrinsic (PR #110316)

2024-09-27 Thread Justin Lebar via cfe-commits
https://github.com/jlebar approved this pull request. sgtm https://github.com/llvm/llvm-project/pull/110316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi commented: I think we still have a ways to go. There's quite a few comments that haven't been addressed, and I think there's still a need to describe the algorithms in the parser and rendering. Some of the code has gotten quite long/large, which is often fine, but I

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
@@ -39,20 +41,27 @@ class Token { Comment, }; - Token(std::string Str); + Token(StringRef Str); - Token(std::string Str, char Identifier); + Token(StringRef RawBody, StringRef Str, char Identifier); - std::string getTokenBody() const { return TokenBody; }; + St

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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] [llvm] [llvm] add support for mustache templating language (PR #105893)

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

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-09-27 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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] [Clang] prevent recovery call expression from proceeding with explicit attributes and undeclared templates (PR #107786)

2024-09-27 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/107786 >From e9948a1004cc2b486a0422d83e88392754e9f7e9 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 23 Sep 2024 17:17:30 +0300 Subject: [PATCH 1/2] [Clang] prevent recovery call expression from proceeding w

[clang] [clang] Allow `pragma float_control(precise, *)` to... (PR #105912)

2024-09-27 Thread Andy Kaylor via cfe-commits
@@ -4210,26 +4210,45 @@ class AbstractConditionalOperator : public Expr { /// ConditionalOperator - The ?: ternary operator. The GNU "missing /// middle" extension is a BinaryConditionalOperator. -class ConditionalOperator : public AbstractConditionalOperator { +class Conditi

[clang] [flang] [flang][preprocessor] Don't expand INCLUDE under -E by default (PR #110333)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-flang-driver Author: Peter Klausler (klausler) Changes Fortran INCLUDE lines have (until now) been treated like #include directives. This isn't how things work with other Fortran compilers when running under the -E option fo

[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

2024-09-27 Thread Damyan Pepper via cfe-commits
@@ -29,19 +29,48 @@ class DirectXTargetCodeGenInfo : public TargetCodeGenInfo { llvm::Type *DirectXTargetCodeGenInfo::getHLSLType(CodeGenModule &CGM, const Type *Ty) const { - auto *BuiltinTy = dyn_cast(Ty); - if (!BuiltinTy

[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

2024-09-27 Thread Damyan Pepper via cfe-commits
@@ -4488,6 +4488,30 @@ void CXXNameMangler::mangleType(const ArrayParameterType *T) { mangleType(cast(T)); } +void CXXNameMangler::mangleType(const HLSLAttributedResourceType *T) { + mangleType(T->getWrappedType()); + const HLSLAttributedResourceType::Attributes &Attrs =

[clang] [flang] [flang][preprocessor] Don't expand INCLUDE under -E by default (PR #110333)

2024-09-27 Thread Peter Klausler via cfe-commits
https://github.com/klausler created https://github.com/llvm/llvm-project/pull/110333 Fortran INCLUDE lines have (until now) been treated like #include directives. This isn't how things work with other Fortran compilers when running under the -E option for preprocessing only, so stop doing it

[clang] [HLSL] Implement `asint` casting using `bit_cast` (PR #110027)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/4443 Here is the relevant piece of the

[clang] [llvm] [BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-27 Thread via cfe-commits
eddyz87 wrote: @yonghong-song , @uweigand , the fix is available in #110332 https://github.com/llvm/llvm-project/pull/107343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[clang][CodeGen] Zero init unspecified fields in initializers in C" (#109898) (PR #110051)

2024-09-27 Thread via cfe-commits
https://github.com/yabinc updated https://github.com/llvm/llvm-project/pull/110051 >From 112b018d3cac542757fcc399efa9fa5a9caac9b8 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 25 Sep 2024 10:05:27 -0700 Subject: [PATCH 1/2] Reapply "[clang][CodeGen] Zero init unspecified fields in initia

[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

2024-09-27 Thread Damyan Pepper via cfe-commits
@@ -29,19 +29,48 @@ class DirectXTargetCodeGenInfo : public TargetCodeGenInfo { llvm::Type *DirectXTargetCodeGenInfo::getHLSLType(CodeGenModule &CGM, const Type *Ty) const { - auto *BuiltinTy = dyn_cast(Ty); - if (!BuiltinTy

[clang] Reapply "[clang][CodeGen] Zero init unspecified fields in initializers in C" (#109898) (PR #110051)

2024-09-27 Thread via cfe-commits
@@ -1748,6 +1771,26 @@ void AggExprEmitter::VisitCXXParenListOrInitListExpr( CGF.getTypes().isZeroInitializable(ExprToVisit->getType())) break; +if (ZeroInitPadding) { + uint64_t StartBitOffset = Layout.getFieldOffset(field->getFieldIndex()); + Char

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-27 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,45 @@ +//===--- BitCastPointersCheck.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: Apa

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-09-27 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard updated https://github.com/llvm/llvm-project/pull/109943 >From f16d6e6156c2e7e5e0ea45b1d7b9f7a3ce8c8298 Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Thu, 9 May 2024 12:58:41 +0100 Subject: [PATCH 1/9] [ARM] Re-generate a test --- llvm/test/CodeGen/ARM/fp-a

[clang] [llvm] [alpha.webkit.NoUncheckedPtrMemberChecker] Introduce member variable checker for CheckedPtr/CheckedRef (PR #108352)

2024-09-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/108352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-debian` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/6089 Here is t

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-27 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm approved this pull request. https://github.com/llvm/llvm-project/pull/108383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Fix example code for memberPointerType() AST matcher (PR #109404)

2024-09-27 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Great! https://github.com/llvm/llvm-project/pull/109404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] add testing for the AST matcher reference (PR #110258)

2024-09-27 Thread Julian Schmidt via cfe-commits
5chmidti wrote: This is an attempt to reland this PR, which created buildbot failures because of the python version not supporting subscripted types, and because previously, the test generation script would try to compile the code with a `clang` from `PATH`. Removed the type-hints that didn't

[clang] [HLSL] Vector Usual Arithmetic Conversions (PR #110195)

2024-09-27 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/110195 >From 4226fd6d3788396bc7515d20d46cf6f358489d3e Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 26 Sep 2024 20:06:20 -0500 Subject: [PATCH] HLSL has a different set of usual arithmetic conversions for

[libunwind] [libunwind][CMake] Remove LIBUNWIND_BUILD_32_BITS which has been an error for 3 years (PR #110175)

2024-09-27 Thread Louis Dionne via cfe-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/110175 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Utkarsh Saxena via cfe-commits
@@ -58,19 +58,19 @@ namespace test2 { // CHECK: call {{.*}}@_ZN5test21AIiEF1fEzQ4TrueIT_E( // CLANG17: call {{.*}}@_ZN5test21fEz( f(ai); -// CHECK: call {{.*}}@_ZN5test2F1gIvEEvzQaa4TrueIT_E4TrueITL0__E( +// CHECK: call {{.*}}@_ZN5test21AIiEF1gIvEEvzQaa4True

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/110247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Utkarsh Saxena via cfe-commits
@@ -2270,6 +2270,14 @@ void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD, mangleTemplateParameter(TTP->getDepth(), TTP->getIndex()); } else { const DeclContext *DC = Context.getEffectiveDeclContext(ND); +if (const auto *FD = dyn_cast(GD.getDecl())) { ---

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 commented: Thanks for catching and fixing this. Please also add release notes in clang/docs/ReleaseNotes.rst https://github.com/llvm/llvm-project/pull/110247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [ItaniumMangle] Use mangleType instead of mangleNameOrStandardSubstitution in mangleCXXCtorVTable function (PR #109970)

2024-09-27 Thread Younan Zhang via cfe-commits
@@ -1,4 +1,8 @@ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 -fclang-abi-compat=19 | FileCheck %s --check-prefix=CHECK-CLANG-19 + +//CHECK: @_ZTCN16MangleCtorVTable4InstE0_N

[libunwind] [libunwind] Introduce LIBUNWIND_LIBRARY_VERSION and drop outdated Apple flags (PR #110178)

2024-09-27 Thread Louis Dionne via cfe-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/110178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix static analyzer concerns (PR #110243)

2024-09-27 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/110243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] 3527e83 - [libunwind] Introduce LIBUNWIND_LIBRARY_VERSION and drop outdated Apple flags (#110178)

2024-09-27 Thread via cfe-commits
Author: Louis Dionne Date: 2024-09-27T09:17:15-04:00 New Revision: 3527e8379edb4ccd3bdbf71cfe688874cf199295 URL: https://github.com/llvm/llvm-project/commit/3527e8379edb4ccd3bdbf71cfe688874cf199295 DIFF: https://github.com/llvm/llvm-project/commit/3527e8379edb4ccd3bdbf71cfe688874cf199295.diff

[libunwind] 49d9334 - [libunwind][CMake] Remove LIBUNWIND_BUILD_32_BITS which has been an error for 3 years (#110175)

2024-09-27 Thread via cfe-commits
Author: Louis Dionne Date: 2024-09-27T09:11:51-04:00 New Revision: 49d933479342f53c3cb690368862366c5b0a51c8 URL: https://github.com/llvm/llvm-project/commit/49d933479342f53c3cb690368862366c5b0a51c8 DIFF: https://github.com/llvm/llvm-project/commit/49d933479342f53c3cb690368862366c5b0a51c8.diff

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-09-27 Thread Pavel Skripkin via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: pskrgag wrote: I didn't have a chance to look into details, but I'd like to share that FP rate is MUCH lower with this patch applied. On real (proprietary) code base I see about 95% less `ArrayBoundV2` reports and, I hope, we will be able to

[clang] [clang][bytecode] Implement fixed point negation (PR #110237)

2024-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/110237 None >From 232b8a42f922b1f325734cc7feadd4108c58a5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 27 Sep 2024 12:21:32 +0200 Subject: [PATCH] [clang][bytecode] Implement fixed point n

[clang] [clang][bytecode] Implement fixed point negation (PR #110237)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110237.diff 5 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+2-2) - (modified) clang/lib/AST/ByteCode/FixedPoint.h (+13-3) -

[clang] [Clang] GH93099 (PR #110238)

2024-09-27 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/110238 Fixes #93099 >From 23a765ac6d8e455121346405332d2066dcc0861e Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 27 Sep 2024 18:23:47 +0800 Subject: [PATCH] [Clang] GH93099 --- clang/include/clang/Sema/Sem

[clang] [compiler-rt] [llvm] [AArch64] Split FeatureMTE to FEAT_MTE and FEAT_MTE2. (PR #109299)

2024-09-27 Thread Tomas Matheson via cfe-commits
@@ -1059,7 +1059,7 @@ bool AArch64TargetInfo::handleTargetFeatures(std::vector &Features, HasFullFP16 = true; HasFP16FML = true; } -if (Feature == "+mte") +if (Feature == "+mte2") tmatheson-arm wrote: This breaks backwards compatibilit

[clang] [clang][Sema] Bad register variable type error should point to the type (PR #110239)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Spickett (DavidSpickett) Changes ...not the register keyword. Fixes #109776. Until now the error was only tested in clang/test/Sema/asm.c, where you can't check for the "^" character. I've added a new caret test file as I see has be

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/5631 Here is the

[clang] [clang][test] remove unused `run` overload in `BoundNodesCallback` (PR #105935)

2024-09-27 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/105935 >From 388be9e2448e1fd6796daa92c8c1d15cecc2dd72 Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Sat, 1 Jun 2024 17:49:13 +0200 Subject: [PATCH] [clang][test] remove unused `run` overload in `BoundNodesCallb

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/8114

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang` at step 6 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/7609 Here is t

[clang] [clang][test][NFC] fix for python version requirements (PR #110250)

2024-09-27 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti created https://github.com/llvm/llvm-project/pull/110250 Fix for the buildbot failure due to lower python versions not supporting some types to be subscripted. Tested with python3.8. >From ca9fbe036f3f0a57c9b64b77841b883807909d17 Mon Sep 17 00:00:00 2001 From: Julia

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/6729 Here is the relevant piece of the build log for th

[clang] [clang][test][NFC] fix for python version requirements (PR #110250)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Julian Schmidt (5chmidti) Changes Fix for the buildbot failure due to lower python versions not supporting some types to be subscripted. Tested with python3.8. --- Full diff: https://github.com/llvm/llvm-project/pull/110250.diff 1 Files

[clang] [clang][test][NFC] fix for python version requirements (PR #110250)

2024-09-27 Thread Julian Schmidt via cfe-commits
5chmidti wrote: Fix for 097ada2fcb607be09da94a0d11f627a3759a10de https://github.com/llvm/llvm-project/pull/110250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/5922 Here is the relevan

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/4366 Here is the relevant pie

[clang] [clang][test][NFC] fix for python version requirements (PR #110250)

2024-09-27 Thread Julian Schmidt via cfe-commits
5chmidti wrote: I reverted the original commit and will open a new pr https://github.com/llvm/llvm-project/pull/110250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test][NFC] fix for python version requirements (PR #110250)

2024-09-27 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/110250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 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-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/6253 Here is the rele

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-27 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: Fix here -> https://github.com/llvm/llvm-project/pull/110291 https://github.com/llvm/llvm-project/pull/108383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3c09843 - [alpha.webkit.NoUncheckedPtrMemberChecker] Introduce member variable checker for CheckedPtr/CheckedRef (#108352)

2024-09-27 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-09-27T00:42:18-07:00 New Revision: 3c0984309ed338560f902a918d6f99959b4c7c33 URL: https://github.com/llvm/llvm-project/commit/3c0984309ed338560f902a918d6f99959b4c7c33 DIFF: https://github.com/llvm/llvm-project/commit/3c0984309ed338560f902a918d6f99959b4c7c33.diff

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-27 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/108083 >From 467b454a07e22437958832d306ae2c4b67c372ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Tue, 10 Sep 2024 13:46:51 + Subject: [PATCH] [clang-tidy] Create bugprone-bit-cast-p

[clang] [clang][bytecode] Start implementing fixed point types (PR #110216)

2024-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/110216 >From 0b599fcfe648f46e9421621a23726f784f2ac1ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 27 Sep 2024 09:44:30 +0200 Subject: [PATCH] [clang][bytecode] Start implementing fixed poin

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-27 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/108083 >From c107a956e8fc27fd35f9a840e59ea748aac03586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Tue, 10 Sep 2024 13:46:51 + Subject: [PATCH] [clang-tidy] Create bugprone-bit-cast-p

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (#97755) (PR #109953)

2024-09-27 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/109953 >From bef293187f32e4e197035eda299f73a5fd8f8684 Mon Sep 17 00:00:00 2001 From: CarolineConcatto Date: Wed, 25 Sep 2024 09:53:23 +0100 Subject: [PATCH 1/2] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 S

[clang] [llvm] [clang][ci] Move libc++ testing into the main PR pipeline (PR #93318)

2024-09-27 Thread Mehdi Amini via cfe-commits
@@ -231,6 +245,10 @@ linux_projects_to_test=$(exclude-linux $(compute-projects-to-test ${modified_pro linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq) linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq) +linux_runtimes_to_tes

[clang] [compiler-rt] [llvm] [AArch64] Split FeatureMTE to FEAT_MTE and FEAT_MTE2. (PR #109299)

2024-09-27 Thread Tomas Matheson via cfe-commits
@@ -1059,7 +1059,7 @@ bool AArch64TargetInfo::handleTargetFeatures(std::vector &Features, HasFullFP16 = true; HasFP16FML = true; } -if (Feature == "+mte") +if (Feature == "+mte2") tmatheson-arm wrote: Won't this break existing IR with

[clang] [llvm] [clang][ci] Move libc++ testing into the main PR pipeline (PR #93318)

2024-09-27 Thread Vlad Serebrennikov via cfe-commits
@@ -231,6 +245,10 @@ linux_projects_to_test=$(exclude-linux $(compute-projects-to-test ${modified_pro linux_check_targets=$(check-targets ${linux_projects_to_test} | sort | uniq) linux_projects=$(add-dependencies ${linux_projects_to_test} | sort | uniq) +linux_runtimes_to_tes

[clang] [clang][NFC] Fix example code for memberPointerType() AST matcher (PR #109404)

2024-09-27 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/109404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement zero-init for fixed point types (PR #110257)

2024-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/110257 None >From 7f5e19784e83f28f54191377cf7b476e93453753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 27 Sep 2024 14:51:12 +0200 Subject: [PATCH] [clang][bytecode] Implement zero-init for

[clang] [clang][test] add testing for the AST matcher reference (PR #94248)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/5342 Here is the relevant piece of

[clang] [clang] Fix static analyzer concerns (PR #110243)

2024-09-27 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/110243 >From 314a8f4d4f8e003881bed0c320f9ee80ba0b8f8c Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Fri, 27 Sep 2024 04:00:31 -0700 Subject: [PATCH] [clang] Fix static analyzer concerns It seems in c

[clang-tools-extra] [clang-tidy][NFC] optimize unused using decls performance (PR #110200)

2024-09-27 Thread via cfe-commits
@@ -25,6 +25,13 @@ AST_MATCHER_P(DeducedTemplateSpecializationType, refsToTemplatedDecl, return false; } +AST_MATCHER_P(Type, getTagDecl, clang::ast_matchers::internal::Matcher, + DeclMatcher) { + if (const auto *ND = Node.getAsTagDecl()) Eug

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-09-27 Thread via cfe-commits
@@ -0,0 +1,36 @@ +.. title:: clang-tidy - portability-template-virtual-member-function + +portability-template-virtual-member-function + + +Upon instantiating a template class, non-virtual member functions don't have to be

[clang] [clang] Fix static analyzer concerns (PR #110243)

2024-09-27 Thread Alexey Bataev via cfe-commits
@@ -9195,7 +9195,7 @@ static bool checkOpenMPIterationSpace( SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(), diag::note_omp_collapse_ordered_expr) << 0 << CollapseLoopCountExpr->getSourceRange(); - else + else if (OrderedLoop

[clang] [clang][test] add testing for the AST matcher reference (PR #110258)

2024-09-27 Thread Julian Schmidt via cfe-commits
5chmidti wrote: Original PR: #94248 https://github.com/llvm/llvm-project/pull/110258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)

2024-09-27 Thread J. Ryan Stinnett via cfe-commits
@@ -22,6 +23,67 @@ namespace llvm { class LLVMContext; class raw_ostream; class DILocation; + class Function; + +#if ENABLE_DEBUGLOC_COVERAGE_TRACKING + // Used to represent different "kinds" of DebugLoc, expressing that a DebugLoc + // is either ordinary, containing

[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110275)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Steven Perron (s-perron) Changes - Fix the calling convention used for the call in the entry point wrapper. No calling convention is currently set. I can easily use the calling convention of the function that is being called. - Use the

[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110275)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Steven Perron (s-perron) Changes - Fix the calling convention used for the call in the entry point wrapper. No calling convention is currently set. I can easily use the calling convention of the function that is being called. -

[clang] [WIP][clang] Fix std::tm etc. mangling on Solaris (PR #106353)

2024-09-27 Thread Rainer Orth via cfe-commits
rorth wrote: Incorporate review comments. However, I still have a mis-mangling of the code that triggered this patch. I've now been able to create a reduced example: ``` namespace std { extern "C" { struct tm { int tm_sec; }; } } using std::tm; void func (std::tm tm, const

[clang-tools-extra] [include-cleaner] Attach Header to AnalysisResults for misisng headers (PR #110272)

2024-09-27 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo approved this pull request. https://github.com/llvm/llvm-project/pull/110272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110275)

2024-09-27 Thread Steven Perron via cfe-commits
https://github.com/s-perron created https://github.com/llvm/llvm-project/pull/110275 - Fix the calling convention used for the call in the entry point wrapper. No calling convention is currently set. I can easily use the calling convention of the function that is being called. - Use the Mic

[clang] [Clang] prevent recovery call expression from proceeding with explicit attributes and undeclared templates (PR #107786)

2024-09-27 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/107786 >From e9948a1004cc2b486a0422d83e88392754e9f7e9 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 23 Sep 2024 17:17:30 +0300 Subject: [PATCH 1/2] [Clang] prevent recovery call expression from proceeding w

[clang] [WIP][clang] Fix std::tm etc. mangling on Solaris (PR #106353)

2024-09-27 Thread Rainer Orth via cfe-commits
https://github.com/rorth updated https://github.com/llvm/llvm-project/pull/106353 >From 646c6ad032fe9c15faee03246496958f7592ea75 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 28 Aug 2024 11:24:29 +0200 Subject: [PATCH 1/2] [WIP][clang] Fix std::tm etc. mangling on Solaris Recently, Sol

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #110188)

2024-09-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/110188 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix static analyzer concerns (PR #110243)

2024-09-27 Thread Alexey Bataev via cfe-commits
@@ -9195,7 +9195,7 @@ static bool checkOpenMPIterationSpace( SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(), diag::note_omp_collapse_ordered_expr) << 0 << CollapseLoopCountExpr->getSourceRange(); - else + else if (OrderedLoop

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-09-27 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm created https://github.com/llvm/llvm-project/pull/110281 Affected intrinsics: llvm.aarch64.sve.fcvt.bf16f32 llvm.aarch64.sve.fcvtnt.bf16f32 The named intrinsics took a predicate based on the smallest element type when it should be based on the largest.

[clang] [llvm] [HLSL] Replace `element_type*` handles in HLSLExternalSemaSource with `__hlsl_resource_t` builtin type (PR #110079)

2024-09-27 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/110079 >From 970aab0a930e38dfd266c01065112602bb274a5e Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 25 Sep 2024 15:48:18 -0700 Subject: [PATCH 1/5] [HLSL] Allow resource type attributes only on __hlsl_resource

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-aarch64 Author: Paul Walker (paulwalker-arm) Changes Affected intrinsics: llvm.aarch64.sve.fcvt.bf16f32 llvm.aarch64.sve.fcvtnt.bf16f32 The named intrinsics took a predicate

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Paul Walker (paulwalker-arm) Changes Affected intrinsics: llvm.aarch64.sve.fcvt.bf16f32 llvm.aarch64.sve.fcvtnt.bf16f32 The named intrinsics took a predicate based on the smallest element type when it should be based on the larg

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo updated https://github.com/llvm/llvm-project/pull/110247 >From f8d897f5f3a89a5664e95a45948f9725101aa36f Mon Sep 17 00:00:00 2001 From: Viktoriia Bakalova Date: Fri, 27 Sep 2024 11:33:17 + Subject: [PATCH 1/3] [clang][ItaniumMangle] Mangle friend function templates

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo updated https://github.com/llvm/llvm-project/pull/110247 >From f8d897f5f3a89a5664e95a45948f9725101aa36f Mon Sep 17 00:00:00 2001 From: Viktoriia Bakalova Date: Fri, 27 Sep 2024 11:33:17 + Subject: [PATCH 1/4] [clang][ItaniumMangle] Mangle friend function templates

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Viktoriia Bakalova via cfe-commits
@@ -2270,6 +2270,14 @@ void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD, mangleTemplateParameter(TTP->getDepth(), TTP->getIndex()); } else { const DeclContext *DC = Context.getEffectiveDeclContext(ND); +if (const auto *FD = dyn_cast(GD.getDecl())) { ---

[clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)

2024-09-27 Thread Viktoriia Bakalova via cfe-commits
@@ -58,19 +58,19 @@ namespace test2 { // CHECK: call {{.*}}@_ZN5test21AIiEF1fEzQ4TrueIT_E( // CLANG17: call {{.*}}@_ZN5test21fEz( f(ai); -// CHECK: call {{.*}}@_ZN5test2F1gIvEEvzQaa4TrueIT_E4TrueITL0__E( +// CHECK: call {{.*}}@_ZN5test21AIiEF1gIvEEvzQaa4True

[clang] [HLSL][clang] Add elementwise builtin for atan2 (p3) (PR #110187)

2024-09-27 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. Code LGTM; didn't look at the tests too closely. https://github.com/llvm/llvm-project/pull/110187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] e2cc63d - [FMV][AArch64] Remove feature sha1 from FMV. (#108383)

2024-09-27 Thread via cfe-commits
Author: Alexandros Lamprineas Date: 2024-09-27T16:30:54+01:00 New Revision: e2cc63d80ce374fa04067c105a45ca7f0abba329 URL: https://github.com/llvm/llvm-project/commit/e2cc63d80ce374fa04067c105a45ca7f0abba329 DIFF: https://github.com/llvm/llvm-project/commit/e2cc63d80ce374fa04067c105a45ca7f0abba3

[clang] [llvm] [AArch64] Split FeatureLS64 to LS64_ACCDATA and LS64_V. (PR #101712)

2024-09-27 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea closed https://github.com/llvm/llvm-project/pull/101712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [cuda][[HIP] `__constant__` should imply constant (PR #110182)

2024-09-27 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > It has nothing to do with writing to those arrays while the kernel is > running. That would indeed be UB. > > > both would still work just the same even with this change, > > No, they will not. Here's the demonstration of the behavior change that > `const` brings to the tabl

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-27 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea closed https://github.com/llvm/llvm-project/pull/108383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Array by-value assignment (PR #109323)

2024-09-27 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/109323 >From f4d72ce6faca5498f184069b7c5d22841a449e74 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Wed, 18 Sep 2024 22:19:07 + Subject: [PATCH 1/3] enable array by value assignment --- clang/include/clang/AST/C

[clang] d9b377d - [clang][bytecode] Don't produce a null type when checking new exprs (#110252)

2024-09-27 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-27T17:48:43+02:00 New Revision: d9b377d8b12aaa3345eaa0d1b93dc3915baba013 URL: https://github.com/llvm/llvm-project/commit/d9b377d8b12aaa3345eaa0d1b93dc3915baba013 DIFF: https://github.com/llvm/llvm-project/commit/d9b377d8b12aaa3345eaa0d1b93dc3915baba013.diff L

[clang] [clang][bytecode] Don't produce a null type when checking new exprs (PR #110252)

2024-09-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/110252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang,compiler-rt,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/5749 Here

<    1   2   3   4   5   >