[clang] [lldb] [ASTImporter][lldb] Avoid implicit imports in VisitFieldDecl (PR #107828)

2024-09-10 Thread Michael Buch via cfe-commits
Michael137 wrote: > As I understand it, minimal import is used in LLDB for performance reasons, > so we don't waste time parsing and loading AST elements that we don't need. > It sounds like a fine idea in general. Implicit imports of external sources > in Clang, however, turn import process i

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-10 Thread Jun Zhang via cfe-commits
@@ -0,0 +1,400 @@ +//===--- InterpreterValuePrinter.cpp - Value printing utils -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Lex] Avoid repeated hash lookups (NFC) (PR #107963)

2024-09-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Format] Avoid repeated hash lookups (NFC) (PR #107962)

2024-09-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tablegen] Avoid repeated hash lookps (NFC) (PR #107961)

2024-09-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-09-10 Thread via cfe-commits
https://github.com/bigb4ng updated https://github.com/llvm/llvm-project/pull/100937 >From 7f45c4233607bb5208f4c7123f38fe21c8b8f10e Mon Sep 17 00:00:00 2001 From: bigb4ng Date: Sun, 28 Jul 2024 18:26:38 +0300 Subject: [PATCH] [sanitizer] Document sanitizers security considerations Follow-up to

[clang] [PowerPC] Support set_flt_rounds builtin (PR #73750)

2024-09-10 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/73750 >From db3bd53b27ee5fcb0572e0a43ca4cd4ed1376e65 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Tue, 10 Sep 2024 15:25:37 +0800 Subject: [PATCH] [PowerPC] Support set_flt_rounds builtin --- clang/docs/Languag

[clang] [PowerPC] Support set_flt_rounds builtin (PR #73750)

2024-09-10 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises ready_for_review https://github.com/llvm/llvm-project/pull/73750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107959)

2024-09-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support set_flt_rounds builtin (PR #73750)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiu Chaofan (ecnelises) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/73750.diff 3 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+3-3) - (modified) clang/lib/Sema/SemaChecking.cpp (+3-1) - (modifi

[clang] [llvm] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-09-10 Thread via cfe-commits
bigb4ng wrote: @vitalybuka Done. @fmayer If you have any other nits (especially for GWP-ASan section) I'd be glad to hear them. https://github.com/llvm/llvm-project/pull/100937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [Tablegen] Avoid repeated hash lookps (NFC) (PR #107961)

2024-09-10 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh approved this pull request. https://github.com/llvm/llvm-project/pull/107961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko created https://github.com/llvm/llvm-project/pull/107982 This commit adds code completion for C++20 keywords. 1. complete `concept` in template context - [x] `template conce^` -> `concept` - [ ] `conce^` 2. complete `requires` - [x] constraints in te

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: ykiko (16bit-ykiko) Changes This commit adds code completion for C++20 keywords. 1. complete `concept` in template context - [x] `template conce^` -> `concept` - [ ] `conce^` 2. complete `requires` - [x] constrain

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko edited https://github.com/llvm/llvm-project/pull/107982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] correct argument offset for function template partial ordering (PR #107972)

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

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 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 1c334debecd70bd28e61a36c40c3f96cf5467331 9a1a85c1c98a7e1826a3836028ddf7d37fdecd90 --e

[clang-tools-extra] [clang-tidy] Add user-defined functions to `bugprone-unsafe-functions` check (PR #106350)

2024-09-10 Thread via cfe-commits
Discookie wrote: Internal was the wrong word there, the distinction is only about whether AnnexK is available or not, in the context of the checked code. We certainly could eliminate `CustomAnnexKFunctions`, but that would mean that it's the user's responsibility to check whether AnnexK is ava

[clang] [Format] Avoid repeated hash lookups (NFC) (PR #107962)

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

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/107982 >From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 10 Sep 2024 14:59:10 +0800 Subject: [PATCH 1/3] add co_return, co_await, co_yield, consteval, constinit, concep

[clang-tools-extra] [clang-tidy] add default error message for performance-avoid-endl (PR #107867)

2024-09-10 Thread Danny Mösch via cfe-commits
@@ -225,3 +225,14 @@ void bad_custom_stream() { // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] // CHECK-FIXES: logger << '\n'; } + +namespace gh107859 { + +#define ENDL std::endl; + +void bad_macr

[clang] [clang-tools-extra] [Clang] Add __type_list_dedup builtin to deduplicate types in template arguments (PR #106730)

2024-09-10 Thread Ilya Biryukov via cfe-commits
@@ -309,7 +309,10 @@ enum BuiltinTemplateKind : int { BTK__make_integer_seq, /// This names the __type_pack_element BuiltinTemplateDecl. - BTK__type_pack_element + BTK__type_pack_element, + + /// This names the __type_list_dedup BuiltinTemplateDecl. + BTK__type_list_de

[clang] [Format] Avoid repeated hash lookups (NFC) (PR #107962)

2024-09-10 Thread Owen Pan via cfe-commits
@@ -86,9 +86,7 @@ void ObjCPropertyAttributeOrderFixer::sortPropertyAttributes( Value = Tok->TokenText; } -auto It = SortOrderMap.find(Attribute); -if (It == SortOrderMap.end()) - It = SortOrderMap.insert({Attribute, SortOrderMap.size()}).first; +aut

[clang] [clang-tools-extra] [Clang] Add __type_list_dedup builtin to deduplicate types in template arguments (PR #106730)

2024-09-10 Thread Ilya Biryukov via cfe-commits
@@ -309,7 +309,10 @@ enum BuiltinTemplateKind : int { BTK__make_integer_seq, /// This names the __type_pack_element BuiltinTemplateDecl. - BTK__type_pack_element + BTK__type_pack_element, + + /// This names the __type_list_dedup BuiltinTemplateDecl. + BTK__type_list_de

[clang] [clang-tools-extra] [Clang] Add __type_list_dedup builtin to deduplicate types in template arguments (PR #106730)

2024-09-10 Thread via cfe-commits
cor3ntin wrote: (This is in my list of PR/RFC to review, I'll try to get to it this week) https://github.com/llvm/llvm-project/pull/106730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [clang-tools-extra] [Clang] Add __type_list_dedup builtin to deduplicate types in template arguments (PR #106730)

2024-09-10 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov updated https://github.com/llvm/llvm-project/pull/106730 >From a46885df62ff64f355abb010f778d84309acd10f Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Fri, 23 Aug 2024 17:27:26 +0200 Subject: [PATCH 1/5] [Clang] Add __type_list_dedup builtin to deduplicate

[clang] [clang-tools-extra] [Clang] Add __type_list_dedup builtin to deduplicate types in template arguments (PR #106730)

2024-09-10 Thread Ilya Biryukov via cfe-commits
@@ -38,9 +40,11 @@ #include "clang/Sema/Template.h" #include "clang/Sema/TemplateDeduction.h" #include "llvm/ADT/BitVector.h" +#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallBitVector.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" +#include "

[clang] [llvm] [AArch64] Attempt to further split the arch default and implied exts. (PR #106304)

2024-09-10 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: Are you planning to follow through with this? https://github.com/llvm/llvm-project/pull/106304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/107982 >From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 10 Sep 2024 14:59:10 +0800 Subject: [PATCH 1/4] add co_return, co_await, co_yield, consteval, constinit, concep

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/107982 >From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 10 Sep 2024 14:59:10 +0800 Subject: [PATCH 1/5] add co_return, co_await, co_yield, consteval, constinit, concep

[clang] [clang][bytecode] Fix lookup in source locations in implicit ctors (PR #107992)

2024-09-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/107992 Implicit functions may still have a body. The !hasBody() check is enough. >From 336d735f9c40987b3c31d3422747d403dd6d6165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 10 Sep 2024 11:3

[clang] [clang][bytecode] Fix lookup in source locations in implicit ctors (PR #107992)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Implicit functions may still have a body. The !hasBody() check is enough. --- Full diff: https://github.com/llvm/llvm-project/pull/107992.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpFr

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-10 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM as a base patch (znver4 + extra isas) - we should hold off from cherry picking into 19.x until we see the scope of the follow up patches. https://github.com/llvm/llvm-project/pull/107964 ___

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-10 Thread via cfe-commits
CarolineConcatto wrote: The ACLE was merged so we can merge this patch when approved. Therefore the ping. https://github.com/llvm/llvm-project/pull/97602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

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

2024-09-10 Thread via cfe-commits
CarolineConcatto wrote: The ACLE was merged so we can merge this patch when approved. Therefore the ping. https://github.com/llvm/llvm-project/pull/97755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [Clang] Introduce FunctionParmPackDecl for expanded lambda captures (PR #107995)

2024-09-10 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/107995 This patch continues the effort of #86265, fixing another issue involving expanded captures that were not able to held off in the process of the inner lambda's transformation. Similar to FunctionParmPackExpr,

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,35 @@ +const char8_t x = 1; + +template requires true +const int y = requires { typename T::type; requires T::value; }; + +int f(){ co_await 1; } + +// RUN: %clang_cc1 -std=c++20 -code-completion-at=%s:1:3 %s | FileCheck --check-prefix=CHECK-TOP-LEVEL %s +// CHECK-TOP-

[clang] [RISCV] Allow -mcmodel= to accept large for RV64 (PR #107817)

2024-09-10 Thread Alex Bradbury via cfe-commits
asb wrote: I think we want to set a define for this as well, for consistency with medany and medlow (as tested in test/Preprocessor/riscv-cmodel.c). I submitted a trivial PR to riscv-c-api-doc to add this https://github.com/riscv-non-isa/riscv-c-api-doc/pull/86 which I'd hope lands quickly.

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/107982 >From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001 From: ykiko Date: Tue, 10 Sep 2024 14:59:10 +0800 Subject: [PATCH 1/6] add co_return, co_await, co_yield, consteval, constinit, concep

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
@@ -0,0 +1,35 @@ +const char8_t x = 1; + +template requires true +const int y = requires { typename T::type; requires T::value; }; + +int f(){ co_await 1; } + +// RUN: %clang_cc1 -std=c++20 -code-completion-at=%s:1:3 %s | FileCheck --check-prefix=CHECK-TOP-LEVEL %s +// CHECK-TOP-

[clang] [NFC][Clang][SVE] Refactor AArch64SVEACLETypes.def to enabled more uses. (PR #107599)

2024-09-10 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm updated https://github.com/llvm/llvm-project/pull/107599 >From 05670ea720be07ff8c1645ca90fff00460029de7 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 6 Sep 2024 12:10:19 +0100 Subject: [PATCH] [NFC][Clang][SVE] Refactor AArch64SVEACLETypes.def to enable

[clang] Add code completion for C++20 keywords. (PR #107982)

2024-09-10 Thread via cfe-commits
16bit-ykiko wrote: Also test with clangd, it work well. ![image](https://github.com/user-attachments/assets/e988b77b-25d9-4ec8-9d16-3123d5bcae83) ![image](https://github.com/user-attachments/assets/a738e0cf-311e-44fb-b75a-38be35e6277e) ![image](https://github.com/user-attachments/assets/feceeb96

[clang] [RISCV] Add testcase for -mcmodel= (PR #107816)

2024-09-10 Thread Alex Bradbury via cfe-commits
https://github.com/asb approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/107816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 created https://github.com/llvm/llvm-project/pull/107997 HIPAMDToolChain and AMDGPUToolChain both depends on the "shouldSkipSanitizeOption" api to sanitize/not sanitize device code. >From 4a9c7b7412f4f8f03d69b255ce1e7b46877db4fd Mon Sep 17 00:00:00 2001 From: A

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Amit Kumar Pandey (ampandey-1995) Changes HIPAMDToolChain and AMDGPUToolChain both depends on the "shouldSkipSanitizeOption" api to sanitize/not sanitize device code. --- Full diff: https://github.com/llv

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 updated https://github.com/llvm/llvm-project/pull/107997 >From 01e86b92efbb311ddc1a4383d0c63c23f757e33f Mon Sep 17 00:00:00 2001 From: Amit Pandey Date: Tue, 10 Sep 2024 15:53:28 +0530 Subject: [PATCH] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' API to

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 updated https://github.com/llvm/llvm-project/pull/107997 >From 4c6b015445e5820d8b09db0d3b4dba23f1413c77 Mon Sep 17 00:00:00 2001 From: Amit Pandey Date: Tue, 10 Sep 2024 15:53:28 +0530 Subject: [PATCH] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utilit

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 edited https://github.com/llvm/llvm-project/pull/107997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-10 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/3] [clang-repl] Simplify the value printing logic to enable

[clang] [clang][bytecode] Fix lookup in source locations in implicit ctors (PR #107992)

2024-09-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/107992 >From 8b5a1fbba508c4e88fd00f2ee6b310dae762855e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 10 Sep 2024 11:39:38 +0200 Subject: [PATCH] [clang][bytecode] Fix lookup in source location

[clang] [RISCV] Allow -mcmodel= to accept large for RV64 (PR #107817)

2024-09-10 Thread Christoph Müllner via cfe-commits
https://github.com/cmuellner commented: What I am missing is: * adjustments in `clang/lib/Basic/Targets/RISCV.cpp` to emit the macro `__riscv_cmodel_large` * new tests in `clang/test/Preprocessor/riscv-cmodel.c` Related PRs: * https://github.com/riscv-non-isa/riscv-c-api-doc/pull/86 * https://g

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-10 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/4] [clang-repl] Simplify the value printing logic to enable

[clang] 4687017 - [clang][bytecode][NFC] Fix CallBI function signature

2024-09-10 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-09-10T13:32:25+02:00 New Revision: 46870175c5425997154245cfa5b1bc31c29bdba4 URL: https://github.com/llvm/llvm-project/commit/46870175c5425997154245cfa5b1bc31c29bdba4 DIFF: https://github.com/llvm/llvm-project/commit/46870175c5425997154245cfa5b1bc31c29bdba4.diff LO

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-10 Thread via cfe-commits
https://github.com/MK-Alias created https://github.com/llvm/llvm-project/pull/108005 This is a small Quality of Life patch. It adds more configurability to `--function-arg-placeholders`. The current issue for this is: [63565](https://github.com/llvm/llvm-project/issues/63565). I say current,

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-10 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-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (MK-Alias) Changes This is a small Quality of Life patch. It adds more configurability to `--function-arg-placeholders`. The current issue for this is: [63565](https://github.com/llvm/llvm-project/issues/63565). I say c

[clang] [Clang][SVE] Change LLVM representation of ACLE tuple types to be struct based. (PR #108008)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Paul Walker (paulwalker-arm) Changes This implements our original design now that LLVM is comfortable with structs and arrays of scalable vector types. All SVE ACLE intrinsics already use struct types s

[clang] [Clang][SVE] Change LLVM representation of ACLE tuple types to be struct based. (PR #108008)

2024-09-10 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/108008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE] Change LLVM representation of ACLE tuple types to be struct based. (PR #108008)

2024-09-10 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/108008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE] Change LLVM representation of ACLE tuple types to be struct based. (PR #108008)

2024-09-10 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/108008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-10 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/107906 >From 758745c955471b0ad65cd3a33381f753e2b63797 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Mon, 9 Sep 2024 15:32:09 -0400 Subject: [PATCH 1/2] Propagate IsText parameter to openFileForRead f

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107959)

2024-09-10 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/107959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6a56f15 - [clang][bytecode][NFC] Fix a commented-out test

2024-09-10 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-09-10T14:05:46+02:00 New Revision: 6a56f15211f034ad668d24dfec5d7f722e33a7a2 URL: https://github.com/llvm/llvm-project/commit/6a56f15211f034ad668d24dfec5d7f722e33a7a2 DIFF: https://github.com/llvm/llvm-project/commit/6a56f15211f034ad668d24dfec5d7f722e33a7a2.diff LO

[clang] [Clang] Introduce FunctionParmPackDecl for expanded lambda captures (PR #107995)

2024-09-10 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/107995 >From c97f213bc412dd2a4d6ee5c8e58a82f04dbbd03b Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Tue, 10 Sep 2024 17:23:55 +0800 Subject: [PATCH 1/2] [Clang] Introduce FunctionParmPackDecl for expanded lambda c

[clang] [clang-tools-extra] [libcxx] [C++17] Support __GCC_[CON|DE]STRUCTIVE_SIZE (PR #89446)

2024-09-10 Thread Levi Zim via cfe-commits
kxxt wrote: > Here are the values that I found for GCC that don't match the defaults. > Platform ConstructiveDestructive Link > ARM64 64 256 https://godbolt.org/z/G7arf9nPP > AVR 32 32 https://godbolt.org/z/Yq64f9Koj > BPF 32 32 https://godbol

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/107997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [C++17] Support __GCC_[CON|DE]STRUCTIVE_SIZE (PR #89446)

2024-09-10 Thread Andrew Pinski via cfe-commits
pinskia wrote: https://github.com/itanium-cxx-abi/cxx-abi/issues/74 https://github.com/llvm/llvm-project/pull/89446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-09-10 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: I am abandoning this PR in favor of https://github.com/ARM-software/acle/pull/346 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/

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

2024-09-10 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] [llvm] [ARM][AArch64] Split FEAT_SHA1 from FEAT_SHA256. (PR #99816)

2024-09-10 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: I am abandoning this PR in favor of https://github.com/ARM-software/acle/pull/346 https://github.com/llvm/llvm-project/pull/99816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-09-10 Thread Timothy Akintilo via cfe-commits
@@ -876,6 +876,11 @@ class Sema; /// function pointer or reference (C++ [over.call.object]). FunctionDecl *Function; +/// LambdaName - When the OverloadCandidate is for a +/// lambda's operator(), points to the declaration of +/// the lambda variable. +

[clang] [llvm] [ARM][AArch64] Split FEAT_SHA1 from FEAT_SHA256. (PR #99816)

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

[clang] [Clang][HIP] Target-dependent overload resolution in declarators and specifiers (PR #103031)

2024-09-10 Thread Yaxun Liu via cfe-commits
@@ -0,0 +1,703 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -verify=expected,onhost %s +// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fsyntax-only -fcuda-is-device -verify=expected,ondevice %s + + +// Tests to ensure that functions with host and device

[clang] [clang][Sema] Fix wrong assumption in `tryDiagnoseOverloadedCast` (PR #108021)

2024-09-10 Thread Alejandro Álvarez Ayllón via cfe-commits
https://github.com/alejandro-alvarez-sonarsource created https://github.com/llvm/llvm-project/pull/108021 A constructor may have failed to be used due to a broken templated dependent parameter. The `InitializationSequence` itself can succeed. Due to the assumption that it is in a failed state,

[clang] [clang][Sema] Fix assertion in `tryDiagnoseOverloadedCast` (PR #108021)

2024-09-10 Thread Alejandro Álvarez Ayllón via cfe-commits
https://github.com/alejandro-alvarez-sonarsource edited https://github.com/llvm/llvm-project/pull/108021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix assertion in `tryDiagnoseOverloadedCast` (PR #108021)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alejandro Álvarez Ayllón (alejandro-alvarez-sonarsource) Changes A constructor may have failed to be used due to a broken templated dependent parameter. The `InitializationSequence` itself can succeed. Due to the assumption that it is in

[clang] [clang] Resolve FIXME in altivec.h (PR #78905)

2024-09-10 Thread Rose Silicon via cfe-commits
https://github.com/RSilicon closed https://github.com/llvm/llvm-project/pull/78905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][SVE] Refactor AArch64SVEACLETypes.def to enabled more uses. (PR #107599)

2024-09-10 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. Looks like a nice improvement to the code. https://github.com/llvm/llvm-project/pull/107599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)

2024-09-10 Thread Rose Silicon via cfe-commits
https://github.com/RSilicon closed https://github.com/llvm/llvm-project/pull/85465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ObjC] Defer to the LLVM backend for unaligned atomic load and stores (PR #79191)

2024-09-10 Thread Rose Silicon via cfe-commits
https://github.com/RSilicon closed https://github.com/llvm/llvm-project/pull/79191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Move 'alpha.core.PointerSub' checker into 'core.PointerSub' (PR #107596)

2024-09-10 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. > > I'm not satisfied with the quality of the reports. The report refers to > > `Subtraction of two pointers that do not point into the same array is > > undefined behavior` without pointing out where the two pointers point to > > (and/or

[clang] [clang] Compute switch capacity based on number of branch-afters and fixups (PR #86815)

2024-09-10 Thread Rose Silicon via cfe-commits
https://github.com/RSilicon closed https://github.com/llvm/llvm-project/pull/86815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ObjC] Set visibility of IvarOffsetGV when it is created in ObjCIvarOffsetVariable (PR #83726)

2024-09-10 Thread Rose Silicon via cfe-commits
https://github.com/RSilicon closed https://github.com/llvm/llvm-project/pull/83726 ___ 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] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-10 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea created https://github.com/llvm/llvm-project/pull/108024 Originally I tried spliting these features in the compiler with https://github.com/llvm/llvm-project/pull/101712, but I realized that there's no way to preserve backwards compatibility, therefore we decided to

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alexandros Lamprineas (labrinea) Changes Originally I tried spliting these features in the compiler with https://github.com/llvm/llvm-project/pull/101712, but I realized that there's no way to preserve backwards compatibility, therefore w

[clang-tools-extra] [Docs][clang-tidy] disclose Windows linetab bug on clang-query tab auto-complete (PR #107956)

2024-09-10 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/107956 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Docs][clang-tidy] disclose Windows linetab bug on clang-query tab auto-complete (PR #107956)

2024-09-10 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for the improvements! https://github.com/llvm/llvm-project/pull/107956 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Docs][clang-tidy] disclose Windows linetab bug on clang-query tab auto-complete (PR #107956)

2024-09-10 Thread Aaron Ballman via cfe-commits
@@ -346,13 +346,13 @@ matching expressions to simplify your matcher. Alternatively, pressing the tab key after a previous matcher's open parentheses would also show which matchers can be chained with the previous matcher, though some matchers that work -may not be listed.

[clang-tools-extra] [Docs][clang-tidy] disclose Windows linetab bug on clang-query tab auto-complete (PR #107956)

2024-09-10 Thread Aaron Ballman via cfe-commits
@@ -346,13 +346,13 @@ matching expressions to simplify your matcher. Alternatively, pressing the tab key after a previous matcher's open parentheses would also show which matchers can be chained with the previous matcher, though some matchers that work -may not be listed.

[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

2024-09-10 Thread Aaron Ballman via cfe-commits
@@ -6784,6 +6784,10 @@ def warn_arc_lifetime_result_type : Warning< "ARC %select{unused|__unsafe_unretained|__strong|__weak|__autoreleasing}0 " "lifetime qualifier on return type is ignored">, InGroup; +def warn_next_larger_fp_type_same_size_than_fp : Warning< + "higher

[clang] 5dd1c82 - [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (#107997)

2024-09-10 Thread via cfe-commits
Author: Amit Kumar Pandey Date: 2024-09-10T19:11:51+05:30 New Revision: 5dd1c82778f418b3de832dc4af3cf5449f2f18ed URL: https://github.com/llvm/llvm-project/commit/5dd1c82778f418b3de832dc4af3cf5449f2f18ed DIFF: https://github.com/llvm/llvm-project/commit/5dd1c82778f418b3de832dc4af3cf5449f2f18ed.d

[clang] [NFC][AMDGPU][Driver] Move 'shouldSkipSanitizeOption' utility to AMDGPU. (PR #107997)

2024-09-10 Thread Amit Kumar Pandey via cfe-commits
https://github.com/ampandey-1995 closed https://github.com/llvm/llvm-project/pull/107997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-09-10 Thread Erich Keane via cfe-commits
@@ -876,6 +876,11 @@ class Sema; /// function pointer or reference (C++ [over.call.object]). FunctionDecl *Function; +/// LambdaName - When the OverloadCandidate is for a +/// lambda's operator(), points to the declaration of +/// the lambda variable. +

[clang] [clang][TableGen] Migrate clang-tblgen to use const RecordKeeper (PR #107533)

2024-09-10 Thread Rahul Joshi via cfe-commits
jurahul wrote: @AaronBallman can you please help find appropriate folks to review this PR? https://github.com/llvm/llvm-project/pull/107533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [HLSL] Allow truncation to scalar (PR #104844)

2024-09-10 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/104844 >From 1a1a92aff834aa2f6f12d3de001714d8338dd274 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 13 Aug 2024 15:51:34 -0500 Subject: [PATCH 1/4] [HLSL] Allow truncation to scalar HLSL allows implicit

[clang] [HLSL] Allow truncation to scalar (PR #104844)

2024-09-10 Thread Chris B via cfe-commits
llvm-beanz wrote: > ExprConstant.cpp currently assumes that an CK_HLSLVectorTruncation can't > return a scalar type. Thank you for catching this! I've updated the PR and included a test that constant evaluates some vector truncations in static asserts. https://github.com/llvm/llvm-project/pul

[clang] [Clang] Introduce FunctionParmPackDecl for expanded lambda captures (PR #107995)

2024-09-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: This seems reasonable to me, and the code itself is fine. I wouldn't mind a few of the others getting a chance to make a comment on it, and for me myself to consider the implications of it. So this just needs time to bake in my head. https://github.co

[clang-tools-extra] [clang-tidy] Add user-defined functions to `bugprone-unsafe-functions` check (PR #106350)

2024-09-10 Thread via cfe-commits
@@ -127,57 +138,159 @@ static bool isAnnexKAvailable(std::optional &CacheVar, Preprocessor *PP, return CacheVar.value(); } +static std::vector +parseCheckedFunctions(StringRef Option, StringRef OptionName, + ClangTidyContext *Context) { + std::vector F

[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

2024-09-10 Thread Zahira Ammarguellat via cfe-commits
@@ -6784,6 +6784,10 @@ def warn_arc_lifetime_result_type : Warning< "ARC %select{unused|__unsafe_unretained|__strong|__weak|__autoreleasing}0 " "lifetime qualifier on return type is ignored">, InGroup; +def warn_next_larger_fp_type_same_size_than_fp : Warning< + "higher

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

2024-09-10 Thread via cfe-commits
@@ -152,22 +152,91 @@ static bool hasLiveDefs(const MachineInstr &MI, const TargetRegisterInfo *TRI) { return false; } -void BPFMIPreEmitChecking::processAtomicInsts() { +bool BPFMIPreEmitChecking::processAtomicInsts() { + if (!MF->getSubtarget().getHasJmp32()) { +// O

  1   2   3   4   >