[libunwind] [libunwind][Haiku] Improve support (PR #115462)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Jérôme Duval (korli) Changes * Signal frame unwinding on x86_64 from X512 * Header search for commpage_defs.h on non-standard paths Unwind supported tests pass on Haiku x86_64 --- Full diff: https://github.com/llvm/llvm-project/pull/1

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Marco Elver via cfe-commits
https://github.com/melver requested changes to this pull request. https://github.com/llvm/llvm-project/pull/115094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Marco Elver via cfe-commits
@@ -8710,3 +8710,103 @@ Declares that a function potentially allocates heap memory, and prevents any pot of ``nonallocating`` by the compiler. }]; } + +def WrapsDocs : Documentation { + let Category = DocCatField; + let Content = [{ +The ``wraps`` attribute can be used wit

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Marco Elver via cfe-commits
@@ -8710,3 +8710,103 @@ Declares that a function potentially allocates heap memory, and prevents any pot of ``nonallocating`` by the compiler. }]; } + +def WrapsDocs : Documentation { + let Category = DocCatField; + let Content = [{ +The ``wraps`` attribute can be used wit

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Marco Elver via cfe-commits
@@ -0,0 +1,48 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only -triple x86_64-pc-linux-gnu +typedef int __attribute__((wraps)) wrapping_int; melver wrote: Can we test more types? Can the attributes be applied to pointers? Both the pointer itself and the pointee?

[libunwind] [libunwind][Haiku] Improve support (PR #115462)

2024-11-08 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 d74127e78aa7f8ab07b0926d25920444dde6c73c faa99ee1a06a8139995bba31e6d783df164fb45d --e

[clang] f02b1cc - [ASTWriter] Detect more non-affecting FileIDs to reduce source location duplication (#112015)

2024-11-08 Thread via cfe-commits
Author: Ilya Biryukov Date: 2024-11-08T09:10:37+01:00 New Revision: f02b1cc99e12ac0147d5c334f130a305d85e477a URL: https://github.com/llvm/llvm-project/commit/f02b1cc99e12ac0147d5c334f130a305d85e477a DIFF: https://github.com/llvm/llvm-project/commit/f02b1cc99e12ac0147d5c334f130a305d85e477a.diff

[clang] [ASTWriter] Detect more non-affecting FileIDs to reduce source location duplication (PR #112015)

2024-11-08 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov closed https://github.com/llvm/llvm-project/pull/112015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-11-08 Thread Boaz Brickner via cfe-commits
bricknerb wrote: Unit tests cover the code and Clang integration tests are useful to test a feature end-to-end. The compiler logic that handles the code until it reaches this point might break the assumptions we have in the specific code (especially if we thin

[clang] [Clang] skip default argument instantiation for non-defining friend declarations without specialization info to meet [dcl.fct.default] p4 (PR #113777)

2024-11-08 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Further reduced to: ```cpp struct CacheRequestImpl { friend void LoadOrRun(CacheRequestImpl, int = 42) {} }; void CacheRequestTests_MakesCacheKey_TestTestBody() { CacheRequestImpl req; LoadOrRun(req); } ``` There is no template in this case, so obviously, `FDecl->getMember

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

2024-11-08 Thread AR Visions via cfe-commits
ar-visions wrote: I should note that this patch is useful for providing security context to parsers that use formatting. Users that rely on Clang to provide info on the C functions REQUIRE this security validation context. A parser that does no processing on this but relies on user hard codi

[clang] [C2y] Implement WG14 N3344 (PR #115313)

2024-11-08 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: This change broke building Wine, which bundles the lcms2 library. The case there, which broke, seems to be somewhat different than what the paper talks about though. The paper talks about rejecting `int func(register void);`, but the case in lcms2 is `int func(register void *pt

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-11-08 Thread Boaz Brickner via cfe-commits
@@ -477,6 +486,136 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, setSeverity(Diag, Map, Loc); } +namespace { +// FIXME: We should isolate the parser from SpecialCaseList and just use it +// here. +class WarningsSpecialCaseList : public llvm::SpecialC

[clang] [llvm] [X86][AMX] Support AMX-AVX512 (PR #114070)

2024-11-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/3564 Here is the re

[clang] [clang] [NFC] Split checkAttributesAfterMerging() to multiple functions (PR #115464)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Boaz Brickner (bricknerb) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/115464.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (+29-5) ``diff diff --git a/clang/lib/Sema/SemaDecl.cpp b/clan

[clang] [clang] [NFC] Split checkAttributesAfterMerging() to multiple functions (PR #115464)

2024-11-08 Thread Boaz Brickner via cfe-commits
https://github.com/bricknerb created https://github.com/llvm/llvm-project/pull/115464 None >From 01200ae10a21ad408b08eda542e759f9d3d76cbb Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Fri, 8 Nov 2024 12:18:21 +0100 Subject: [PATCH] [clang] [NFC] Split checkAttributesAfterMerging() to mult

[clang] [llvm] [AArch64][v8.7-A] Fix inconsistency in SPE_EEF feature (PR #115296)

2024-11-08 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,llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/8244 Here is the relevant

[clang] [llvm] [FMV][AArch64] Expand feature dependencies using AArch64::ExtensionSet. (PR #113281)

2024-11-08 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/113281 >From 2b416dd0071d45be3f92671f0cb238091689a9dd Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Mon, 21 Oct 2024 17:15:47 +0100 Subject: [PATCH 1/2] [FMV][AArch64] Expand feature dependencies using A

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

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

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Marco Elver via cfe-commits
@@ -433,6 +433,26 @@ Attribute Changes in Clang - Fix a bug where clang doesn't automatically apply the ``[[gsl::Owner]]`` or ``[[gsl::Pointer]]`` to STL explicit template specialization decls. (#GH109442) +- Introduced ``__attribute__((wraps))`` which can be added to type

[clang] [lldb] [llvm] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2 (PR #114293)

2024-11-08 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/114293 >From 9798e21e38dfba285550d8c2b1738f08da197e80 Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Wed, 30 Oct 2024 18:06:15 + Subject: [PATCH 1/8] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2

[clang] [llvm] [X86] LowerBITREVERSE - use AND+CMPEQ+MOVMSK trick to lower scalar types (PR #92236)

2024-11-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/92236 >From 37fcf8300243fa6236e119743fd6d7067ac515ca Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Nov 2024 17:25:49 + Subject: [PATCH 1/2] [clang][x86] _mm_movpi64_epi64 - convert to shufflevector pat

[clang] [clang] Catch missing format attributes (PR #105479)

2024-11-08 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From 33135f737faf2a39f9f9b102414aba268544691e Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-11-08 Thread Boaz Brickner via cfe-commits
@@ -477,6 +486,136 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, setSeverity(Diag, Map, Loc); } +namespace { +// FIXME: We should isolate the parser from SpecialCaseList and just use it +// here. +class WarningsSpecialCaseList : public llvm::SpecialC

[clang] [llvm] Add ifunc support for Windows on AArch64. (PR #111962)

2024-11-08 Thread Daniel Kiss via cfe-commits
@@ -5796,12 +5796,18 @@ declared entity. The entity must not have weak linkage; for example, in C++, it cannot be applied to a declaration if a definition at that location would be considered inline. -Not all targets support this attribute. ELF target support depends on both

[clang] [llvm] Reland [clang][AArch64] Add getHostCPUFeatures to query for enabled f… (PR #115467)

2024-11-08 Thread Elvina Yakubova via cfe-commits
https://github.com/ElvinaYakubova created https://github.com/llvm/llvm-project/pull/115467 …eatures in cpu info >From 8453bd11fa366b4865dce64b55d2a548c8b74a42 Mon Sep 17 00:00:00 2001 From: Elvina Yakubova Date: Fri, 8 Nov 2024 03:11:44 -0800 Subject: [PATCH] Reland [clang][AArch64] Add getHos

[clang] [clang] Catch missing format attributes (PR #105479)

2024-11-08 Thread Budimir Aranđelović via cfe-commits
@@ -5335,6 +5335,217 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) PreferredTypeAttr(S.Context, AL, ParmTSI)); } +// This function is called only if function call is not inside template body. +// TODO: Add call

[libunwind] [libunwind][Haiku] Improve support (PR #115462)

2024-11-08 Thread Jérôme Duval via cfe-commits
https://github.com/korli updated https://github.com/llvm/llvm-project/pull/115462 From c88a3b1f8c8db4b222c0fdc306088a00bee54938 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Thu, 7 Jul 2022 22:19:34 +0700 Subject: [PATCH] [libunwind][Haiku] Improve support * Signal frame unwinding on x86_6

[clang] [llvm] Reland [clang][AArch64] Add getHostCPUFeatures to query for enabled f… (PR #115467)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Elvina Yakubova (ElvinaYakubova) Changes …eatures in cpu info --- Patch is 20.86 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115467.diff 9 Files Affected: - (modified) clang/lib/Dr

[clang] [clang] Catch missing format attributes (PR #105479)

2024-11-08 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From e4faa018599270ff8ac94e2ff74adfc6a79a4dd2 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-11-08 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: Update: we've found a failure with `"function X has different bodies"` but my suspicion is that it's surfacing an existing issue rather than introducing a new one. I've managed to workaround it in our codebase by modularizing a bit more of the codebase. Sadly, because thi

[clang] [llvm] [FMV][AArch64] Expand feature dependencies using AArch64::ExtensionSet. (PR #113281)

2024-11-08 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/113281 >From 2b416dd0071d45be3f92671f0cb238091689a9dd Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Mon, 21 Oct 2024 17:15:47 +0100 Subject: [PATCH 1/3] [FMV][AArch64] Expand feature dependencies using A

[clang] [llvm] [FMV][AArch64] Expand feature dependencies using AArch64::ExtensionSet. (PR #113281)

2024-11-08 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea ready_for_review https://github.com/llvm/llvm-project/pull/113281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] LowerBITREVERSE - use AND+CMPEQ+MOVMSK trick to lower scalar types (PR #92236)

2024-11-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/92236 >From 37fcf8300243fa6236e119743fd6d7067ac515ca Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 7 Nov 2024 17:25:49 + Subject: [PATCH 1/2] [clang][x86] _mm_movpi64_epi64 - convert to shufflevector pat

[clang] [llvm] [AArch64][v8.7-A] Fix inconsistency in SPE_EEF feature (PR #115296)

2024-11-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/3566 Here is the re

[clang] [clang] Permit lifetimebound in all language modes (PR #115482)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Horváth (Xazax-hun) Changes Lifetimebound annotations can help diagnose common cases of dangling including escaping the address of a stack variable from a function. This is useful in all C family languages, restricting these diagnos

[clang] [clang] Permit lifetimebound in all language modes (PR #115482)

2024-11-08 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun created https://github.com/llvm/llvm-project/pull/115482 Lifetimebound annotations can help diagnose common cases of dangling including escaping the address of a stack variable from a function. This is useful in all C family languages, restricting these diagnostics

[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

2024-11-08 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/114715 >From 2508ede979f4061fd752d64967096fee1f4a6127 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Thu, 7 Nov 2024 01:58:21 +0100 Subject: [PATCH] [analyzer] Port alpha.core.IdenticalExpr to Tidy checks and

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -316,36 +294,205 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -124,10 +164,34 @@ struct ModuleFile { llvm::sys::fs::remove(ModuleFilePath); } + StringRef getModuleName() const { return ModuleName; } + + StringRef getModuleFilePath() const { return ModuleFilePath; } + +private: std::string ModuleName; std::string Module

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -316,36 +294,205 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet requested changes to this pull request. https://github.com/llvm/llvm-project/pull/106683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -316,36 +309,221 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

2024-11-08 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/114715 >From 8f80764dd43013d9f6fbd1bb45642a1bfa4eab9e Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Thu, 7 Nov 2024 01:58:21 +0100 Subject: [PATCH] [analyzer] Port alpha.core.IdenticalExpr to Tidy checks and

[clang] [llvm] [TLI] Add support for reallocarray (PR #114818)

2024-11-08 Thread Nikita Popov via cfe-commits
@@ -577,6 +577,21 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F, Changed |= setDoesNotCapture(F, 0); Changed |= setArgNoUndef(F, 1); break; + case LibFunc_reallocarray: +Changed |= setAllocFamily(F, "malloc"); +Changed |= setAllocKind(F, AllocFnKi

[clang] [OpenACC] Implement `loop` restrictions on `for` loops. (PR #115370)

2024-11-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/115370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

2024-11-08 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 0daca808ce111f21db8c0ee9ea5d2509d6034557 8f80764dd43013d9f6fbd1bb45642a1bfa4eab9e --e

[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

2024-11-08 Thread via cfe-commits
vabridgers wrote: I've reworked the test port in a "scaffolded" way so reviewers may see how the cases were considered one by one, and the existing tidy checkers improved to address cases IdenticalExpr was detecting and the tidy checkers were not. I needed to weaken the misc-redundant-expressi

[clang] [clang][CIR] Move CIRGen types into clang::CIRGen (PR #115385)

2024-11-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/115385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -316,36 +309,221 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang] [clang][CIR] Move CIRGen types into clang::CIRGen (PR #115385)

2024-11-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/115385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

2024-11-08 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/114715 >From 2834ec4708bfd54bafd28e5d55f5610bcd8593c8 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Thu, 7 Nov 2024 01:58:21 +0100 Subject: [PATCH] [analyzer] Port alpha.core.IdenticalExpr to Tidy checks and

[clang] [clang] Catch missing format attributes (PR #105479)

2024-11-08 Thread Budimir Aranđelović via cfe-commits
@@ -5335,6 +5335,217 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) PreferredTypeAttr(S.Context, AL, ParmTSI)); } +// This function is called only if function call is not inside template body. +// TODO: Add call

[clang] [llvm] Add ifunc support for Windows on AArch64. (PR #111962)

2024-11-08 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss updated https://github.com/llvm/llvm-project/pull/111962 >From 122864160f098392c4afd1728eb924e7e26e70d9 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Tue, 8 Oct 2024 22:58:37 +0200 Subject: [PATCH 1/6] Add ifuncs support for Windows. --- clang/include/c

[clang] [llvm] Reland [clang][AArch64] Add getHostCPUFeatures to query for enabled f… (PR #115467)

2024-11-08 Thread Elvina Yakubova via cfe-commits
https://github.com/ElvinaYakubova edited https://github.com/llvm/llvm-project/pull/115467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3344 (PR #115313)

2024-11-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Thank you for letting me know I broke this -- that was not intentional, and I'll get on a fix or revert this morning. https://github.com/llvm/llvm-project/pull/115313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

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

2024-11-08 Thread Vladislav Belov via cfe-commits
vbe-sc wrote: @sdkrystian, please, could you take a look? https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0daca80 - Fix issues with WG14 N3344 changes

2024-11-08 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-11-08T07:46:01-05:00 New Revision: 0daca808ce111f21db8c0ee9ea5d2509d6034557 URL: https://github.com/llvm/llvm-project/commit/0daca808ce111f21db8c0ee9ea5d2509d6034557 DIFF: https://github.com/llvm/llvm-project/commit/0daca808ce111f21db8c0ee9ea5d2509d6034557.diff

[clang] [C2y] Implement WG14 N3344 (PR #115313)

2024-11-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: This should be addressed now with 0daca808ce111f21db8c0ee9ea5d2509d6034557, sorry for the trouble! https://github.com/llvm/llvm-project/pull/115313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] 724b432 - [z/OS] Make sure __alignas_is_defined and __alignof_is_defined are defined on z/OS. (#115368)

2024-11-08 Thread via cfe-commits
Author: Zibi Sarbinowski Date: 2024-11-08T07:55:23-05:00 New Revision: 724b432410fd59c63cc313d41824eda5ec84052f URL: https://github.com/llvm/llvm-project/commit/724b432410fd59c63cc313d41824eda5ec84052f DIFF: https://github.com/llvm/llvm-project/commit/724b432410fd59c63cc313d41824eda5ec84052f.di

[clang] [z/OS] Make sure __alignas_is_defined and __alignof_is_defined are defined on z/OS. (PR #115368)

2024-11-08 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/115368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Add test coverage and documentation for WG14 N3341 (PR #115478)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This paper made empty structures and unions implementation-defined. We have always supported this as a GNU extension, so now we're documenting our behavior and removing the extension warning in C2y mod

[clang] [C2y] Add test coverage and documentation for WG14 N3341 (PR #115478)

2024-11-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/115478 This paper made empty structures and unions implementation-defined. We have always supported this as a GNU extension, so now we're documenting our behavior and removing the extension warning in C2y mode.

[clang] [C2y] Add test coverage and documentation for WG14 N3341 (PR #115478)

2024-11-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/115478 >From 5a9ac5588527cf76b1933a3efbc2285c7670126b Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 8 Nov 2024 08:18:18 -0500 Subject: [PATCH 1/2] [C2y] Add test coverage and documentation for WG14 N3341

[clang] [clang][ExprConst] Reject field access with nullptr base (PR #113885)

2024-11-08 Thread Timm Baeder via cfe-commits
tbaederr wrote: @zygoloid Do you approve too? https://github.com/llvm/llvm-project/pull/113885 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e5c6d1f - [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (#112849)

2024-11-08 Thread via cfe-commits
Author: Fabian Ritter Date: 2024-11-08T14:24:34+01:00 New Revision: e5c6d1f4e6d6c8709f92b47717cffc486947ff1b URL: https://github.com/llvm/llvm-project/commit/e5c6d1f4e6d6c8709f92b47717cffc486947ff1b DIFF: https://github.com/llvm/llvm-project/commit/e5c6d1f4e6d6c8709f92b47717cffc486947ff1b.diff

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

2024-11-08 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a closed https://github.com/llvm/llvm-project/pull/112849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [FMV][AArch64] Expand feature dependencies using AArch64::ExtensionSet. (PR #113281)

2024-11-08 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea edited https://github.com/llvm/llvm-project/pull/113281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Use StringSwitch instead of array for parsing attribute scope (PR #115414)

2024-11-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/115414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Use StringSwitch instead of array for parsing attribute scope (PR #115414)

2024-11-08 Thread Erich Keane via cfe-commits
@@ -155,26 +156,23 @@ std::string AttributeCommonInfo::getNormalizedFullName() const { normalizeName(getAttrName(), getScopeName(), getSyntax())); } -// Sorted list of attribute scope names -static constexpr std::pair ScopeList[] = -{{"", AttributeCommonInfo::Scope:

[clang] [NFC][Clang] Use StringSwitch instead of array for parsing attribute scope (PR #115414)

2024-11-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: 1 nit, else LGTM. https://github.com/llvm/llvm-project/pull/115414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [Modules] Support Reusable Modules Builder (PR #106683)

2024-11-08 Thread kadir çetinkaya via cfe-commits
@@ -316,36 +287,169 @@ llvm::Error buildModuleFile(llvm::StringRef ModuleName, if (Clang->getDiagnostics().hasErrorOccurred()) return llvm::createStringError("Compilation failed"); - BuiltModuleFiles.addModuleFile(ModuleName, Inputs.CompileCommand.Output); - return llv

[clang] [clang] Permit lifetimebound in all language modes (PR #115482)

2024-11-08 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan approved this pull request. This seems totally reasonable. https://github.com/llvm/llvm-project/pull/115482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2024-11-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Doesn't that impact whether a header is found via `""` or `<>` syntax? > > e.g., if something went from a user header to a system header, I thought > > that meant the search order would then change depending on which include > > syntax you used? > > No, those are ortho

[clang] [RISCV][Clang] Add RequiredFeatures to zvfh intrinsics (PR #115436)

2024-11-08 Thread Jim Lin via cfe-commits
https://github.com/tclin914 edited https://github.com/llvm/llvm-project/pull/115436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one. (PR #83108)

2024-11-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/83108 >From 0d8de5186b065a256f9afbc08faf775916591403 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 7 Jan 2018 15:16:11 +0200 Subject: [PATCH] D41416: [modules] [pch] Do not deserialize all lazy template

[clang] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one. (PR #83108)

2024-11-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/83108 >From 6e0716367fc369f6e57ffd2b20b7a4c49230bac2 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 8 Nov 2024 10:56:44 +0800 Subject: [PATCH 1/2] [Serialization] Downgrade inconsistent flags from erros to wa

[clang] [RISCV][Clang] Add RequiredFeatures to zvfh intrinsics (PR #115436)

2024-11-08 Thread Jianjian Guan via cfe-commits
https://github.com/jacquesguan approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/115436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-08 Thread via cfe-commits
@@ -47,6 +78,58 @@ static llvm::cl::opt OptHostSupportsJit("host-supports-jit", static llvm::cl::list OptInputs(llvm::cl::Positional, llvm::cl::desc("[code to run]")); +static llvm::Error sanitizeOopArguments(const char *ArgV0) { +

[clang] [llvm] [AArch64][v8.7-A] Fix inconsistency in SPE_EEF feature (PR #115296)

2024-11-08 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard approved this pull request. https://github.com/llvm/llvm-project/pull/115296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4bcd4d8 - Revert "clang/AMDGPU: Restore O3 checks in default-attributes.hip (#115238)"

2024-11-08 Thread via cfe-commits
Author: Weaver Date: 2024-11-08T10:26:47Z New Revision: 4bcd4d843f660c1a435159a2964f0c4cf4564ab1 URL: https://github.com/llvm/llvm-project/commit/4bcd4d843f660c1a435159a2964f0c4cf4564ab1 DIFF: https://github.com/llvm/llvm-project/commit/4bcd4d843f660c1a435159a2964f0c4cf4564ab1.diff LOG: Revert

[clang] clang/AMDGPU: Restore O3 checks in default-attributes.hip (PR #115238)

2024-11-08 Thread Tom Weaver via cfe-commits
TomWeaver18 wrote: Hello and greetings from the UK. My apologies but I've had to revert this change as it has turned several build-bots red for a good many hours this morning. https://lab.llvm.org/buildbot/#/builders/144/builds/11132 https://lab.llvm.org/buildbot/#/builders/46/builds/7541 http

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-11-08 Thread kadir çetinkaya via cfe-commits
kadircet wrote: thanks for the review! @AaronBallman i'd like to land this early next week and start testing/polishing. It'd be great if you can give some explicit LGTM. https://github.com/llvm/llvm-project/pull/112517 ___ cfe-commits mailing list cf

[clang] [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-11-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/115487 Fixes #113324 --- https://github.com/llvm/llvm-project/pull/113777#issuecomment-2463960195 https://github.com/llvm/llvm-project/pull/113777#issuecomment-2464234180 >From 5e24d212f797b5fa1b6da1526c807046373

[clang] [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-11-08 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: /cc @zyn0217 @mizvekov @alanzhao1 @aeubanks https://github.com/llvm/llvm-project/pull/115487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIR-V] DRAFT: ext_builtin_input/ext_builtin_output (PR #115187)

2024-11-08 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/115187 From 357f8e613e030967f6a95ccbeffe03c0f5f8c186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Wed, 6 Nov 2024 17:48:13 +0100 Subject: [PATCH] [SPIR-V] DRAFT: ext_builtin_input/ext_builtin_ou

[clang] [clang] Permit lifetimebound in all language modes (PR #115482)

2024-11-08 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/115482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 53e6f62 - [clang][x86] _mm_movpi64_epi64 - convert to shufflevector pattern instead of bitcasting to i64

2024-11-08 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-11-08T14:38:33Z New Revision: 53e6f627d7e81633b2e159675884bfcce11bdc00 URL: https://github.com/llvm/llvm-project/commit/53e6f627d7e81633b2e159675884bfcce11bdc00 DIFF: https://github.com/llvm/llvm-project/commit/53e6f627d7e81633b2e159675884bfcce11bdc00.diff LOG:

[clang] 0f04043 - [clang][x86] Update MMX intrinsic tests for both C/C++

2024-11-08 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-11-08T14:38:34Z New Revision: 0f040433d325aa68ec6840aa179f3f314c26153a URL: https://github.com/llvm/llvm-project/commit/0f040433d325aa68ec6840aa179f3f314c26153a DIFF: https://github.com/llvm/llvm-project/commit/0f040433d325aa68ec6840aa179f3f314c26153a.diff LOG:

[clang] [C2y] Add test coverage and documentation for WG14 N3342 (PR #115494)

2024-11-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/115494 This paper made qualified function types implementation-defined. We have always supported this as an extension, so now we're documenting our behavior. Note, we still warn about this by default even in C2y

[clang] [C2y] Add test coverage and documentation for WG14 N3342 (PR #115494)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This paper made qualified function types implementation-defined. We have always supported this as an extension, so now we're documenting our behavior. Note, we still warn about this by default even in

[clang] [C2y] Add test coverage and documentation for WG14 N3342 (PR #115494)

2024-11-08 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/115494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8b29c05 - [clang] Permit lifetimebound in all language modes (#115482)

2024-11-08 Thread via cfe-commits
Author: Gábor Horváth Date: 2024-11-08T15:05:11Z New Revision: 8b29c05b73310bba3d7abd007dbbd839c46b0ab4 URL: https://github.com/llvm/llvm-project/commit/8b29c05b73310bba3d7abd007dbbd839c46b0ab4 DIFF: https://github.com/llvm/llvm-project/commit/8b29c05b73310bba3d7abd007dbbd839c46b0ab4.diff LOG:

[clang] [clang][CIR] Change buildX functions to emitX (PR #115568)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Shoaib Meenai (smeenai) Changes The buildX naming convention originated when the CIRGen implementation was planned to be substantially different from original CodeGen. CIRGen is now a much closer adaption of CodeGen, and the emitX to buil

[clang] [clang][CIR] Change buildX functions to emitX (PR #115568)

2024-11-08 Thread Shoaib Meenai via cfe-commits
https://github.com/smeenai created https://github.com/llvm/llvm-project/pull/115568 The buildX naming convention originated when the CIRGen implementation was planned to be substantially different from original CodeGen. CIRGen is now a much closer adaption of CodeGen, and the emitX to buildX ren

[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)

2024-11-08 Thread Nico Weber via cfe-commits
@@ -0,0 +1,111 @@ +// REQUIRES: amdgpu-registered-target +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-host-only -pedantic -nogpuinc -nogpulib -nobuiltininc -fsyntax-only -Xclang -verify %s +// RUN: %clang -xhip --offload-arch=gfx1030 --offload-device-only -pedantic -no

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2024-11-08 Thread Justin Stitt via cfe-commits
@@ -6536,6 +6536,30 @@ static void HandleBTFTypeTagAttribute(QualType &Type, const ParsedAttr &Attr, ::new (Ctx) BTFTypeTagAttr(Ctx, Attr, BTFTypeTag), Type); } +static void handleWrapsAttr(QualType &Type, const ParsedAttr &Attr, +TypeProcess

[clang] [compiler-rt] [libc] [lld] [lldb] [llvm] [mlir] [BOLT] Match blocks with pseudo probes (PR #99891)

2024-11-08 Thread Lei Wang via cfe-commits
wlei-llvm wrote: > > > > > > Ping @wlei-llvm > > > > > > > > > > > > > > > Sorry for the delay. The new version addressed my last comment (with > > > > > just minor nits). However, I didn't fully follow the new features > > > > > related to `ProbeMatchSpecs` stuffs. Could you add more descrip

[clang] [NFC][Clang] Refactor ClangDiagnosticEmitter to use more StringRef (PR #115212)

2024-11-08 Thread Rahul Joshi via cfe-commits
jurahul wrote: > Is there any way you could split up into several patches? It's hard to follow > when you do multiple things in one patch. Thanks! Let me try to do it. May be a PR for just range based for loops to start with https://github.com/llvm/llvm-project/pull/115212

[clang] [NFC][Clang] Use range for loops in ClangDiagnosticsEmitter (PR #115573)

2024-11-08 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/115573 Use range based for loops in Clang diagnostics emitter. >From af56060f8d27bb84ce642f6fd53de14ad8765bef Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Fri, 8 Nov 2024 16:04:53 -0800 Subject: [PATCH] [NFC][Clan

<    1   2   3   4   5   >