[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm approved this pull request. Makes sense to me. https://github.com/llvm/llvm-project/pull/120753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/120753 >From 519bcca2359ee9c89b12bac6e58eb955c79cd7bc Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Fri, 20 Dec 2024 14:50:37 + Subject: [PATCH 1/2] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A

[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: Actually this is being added as a mandatory dependency of 9.4, should it not be added as one of the default features instead? https://github.com/llvm/llvm-project/pull/120753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
https://github.com/llvm-beanz requested changes to this pull request. https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
@@ -54,78 +54,108 @@ void addDxilValVersion(StringRef ValVersionStr, llvm::Module &M) { auto *DXILValMD = M.getOrInsertNamedMetadata(DXILValKey); DXILValMD->addOperand(Val); } + void addDisableOptimizations(llvm::Module &M) { StringRef Key = "dx.disable_optimizations";

[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Jonathan Thackray via cfe-commits
jthackray wrote: > Actually this is being added as a mandatory dependency of 9.4, should it not > be added as one of the default features instead? Good point. I'll amend. https://github.com/llvm/llvm-project/pull/120753 ___ cfe-commits mailing list c

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
@@ -54,78 +54,108 @@ void addDxilValVersion(StringRef ValVersionStr, llvm::Module &M) { auto *DXILValMD = M.getOrInsertNamedMetadata(DXILValKey); DXILValMD->addOperand(Val); } + void addDisableOptimizations(llvm::Module &M) { StringRef Key = "dx.disable_optimizations";

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
@@ -54,78 +54,108 @@ void addDxilValVersion(StringRef ValVersionStr, llvm::Module &M) { auto *DXILValMD = M.getOrInsertNamedMetadata(DXILValKey); DXILValMD->addOperand(Val); } + void addDisableOptimizations(llvm::Module &M) { StringRef Key = "dx.disable_optimizations";

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
@@ -164,18 +164,18 @@ Decl *SemaHLSL::ActOnStartBuffer(Scope *BufferScope, bool CBuffer, return Result; } -// Calculate the size of a legacy cbuffer type based on +// Calculate the size of a legacy cbuffer type in bytes based on // https://learn.microsoft.com/en-us/window

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-20 Thread Chris B via cfe-commits
@@ -890,6 +890,10 @@ CodeGenModule::EmitCXXGlobalInitFunc() { ModuleInits.push_back(Fn); } + if (getLangOpts().HLSL && getHLSLRuntime().needsResourceBindingInitFn()) { +CXXGlobalInits.push_back(getHLSLRuntime().createResourceBindingInitFn()); + } --

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar created https://github.com/llvm/llvm-project/pull/120773 This patch introduces support for the Hexagon V75 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. >From 1d3ac02da5bfb00d86b123334e3a75628e47ef

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V75 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. --- Patch is 74.75 KiB, trunca

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V75 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. --- Patch is 74.75 KiB, truncated to 20.

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-objectyaml @llvm/pr-subscribers-clang-driver Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V75 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. --

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 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 7739380643718bc912bc05b969e4be525a85c0d2 1d3ac02da5bfb00d86b123334e3a75628e47ef42 --e

[clang] [clang][ObjectiveC] Fix Parsing Types with the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Gentle ping for review. Thanks so much! https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-20 Thread Hubert Tong via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: hubert-reinterpretcast wrote: > LLVM patch releases cannot break API or ABI compatibility Thanks @nikic for the explanation. I thought you meant ABI compatibility in the "user program" sense. https://github.com/llvm/llvm-project/pul

[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm approved this pull request. https://github.com/llvm/llvm-project/pull/120753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mikołaj Piróg (mikolaj-pirog) Changes As in title. I will create a sibling pr with comments to the 512 in a separate PR. --- Patch is 111.62 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/1207

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-20 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 d5fe6332c9f25590b9878ad31d6461ea581e0fa5 b069337d461da42883093aedeb00c019131d3559 --e

[clang-tools-extra] [clang-tidy][NFC] extract options verify to sperately function (PR #120768)

2024-12-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/120768 None >From 0543d52cd0af5ff645bfef0f41d4c1ffcd4b4962 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 21 Dec 2024 00:25:00 +0800 Subject: [PATCH] [clang-tidy][NFC] extract options verify to sperately

[clang-tools-extra] [clang-tidy][NFC] extract options verify to sperately function (PR #120768)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120768.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/ClangTidy.cpp (+4-4) - (modified) clang-tools-extra/clang-

[clang-tools-extra] [clang-tidy][NFC] extract options verify to sperately function (PR #120768)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120768.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/ClangTidy.cpp (+4-4) - (modified) clang-tools-extra/clang-tidy/Cl

[clang] [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Don't assume third iteration in loops (PR #119388)

2024-12-20 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > > [...] To fix this problem, it would be sufficient to e.g. ensure that > > evalEagerlyAssumeBifurcation sets LastEagerlyAssumeBifurcationAt to nullptr > > [...] > > Sounds good to me. Let's zero it out after it's "used"/"consumed". I took a different approach (which was al

[clang-tools-extra] [clang-tidy][NFC] extract options verify to separately function (PR #120768)

2024-12-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/120768 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/119908 >From 63c424414c1814ec9b4c3c5a459bfe1be684586d Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Fri, 13 Dec 2024 09:41:41 -0800 Subject: [PATCH 1/4] Fix parsing :: in method parameter type. --- clang/lib/Pars

[clang-tools-extra] [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector` in C++20 (PR #120774)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120774.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst (+3) ``diff diff

[clang-tools-extra] [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector` in C++20 (PR #120774)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/120774.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst (+3) ``dif

[clang-tools-extra] [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector` in C++20 (PR #120774)

2024-12-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/120774 None >From b8f686aa8fa45ab50c45c16d6b4eeea99de64bcb Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 21 Dec 2024 01:01:14 +0800 Subject: [PATCH] [clang-tidy][NFC][doc] mention some range algorithms do

[clang] [Clang] Re-write codegen for atomic_test_and_set and atomic_clear (PR #120449)

2024-12-20 Thread Mikhail Goncharov via cfe-commits
metaflow wrote: @ostannard :christmas_tree: :santa: happy holidays https://github.com/llvm/llvm-project/pull/120449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a nullptr deference. (PR #120702)

2024-12-20 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/120702 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2024-12-20 Thread via cfe-commits
h-vetinari wrote: I've [tested](https://github.com/conda-forge/clangdev-feedstock/pull/333) this PR (as of 2bcc4e5f7043dab1ef673dd20b38009363db51db) in our infrastructure and can confirm that things run fine with VS2019 again. Thanks a lot for reworking this! 🙏 https://github.com/llvm/llvm-p

[clang] cf7b3f8 - Fix double-quotes in diagnostic when attempting to access a ext_vector of bools (#118186)

2024-12-20 Thread via cfe-commits
Author: William Tran-Viet Date: 2024-12-20T13:40:17+01:00 New Revision: cf7b3f8d827abba49930202e51702714349c716d URL: https://github.com/llvm/llvm-project/commit/cf7b3f8d827abba49930202e51702714349c716d DIFF: https://github.com/llvm/llvm-project/commit/cf7b3f8d827abba49930202e51702714349c716d.d

[clang] Fix double-quotes in diagnostic when attempting to access a ext_vector of bools (PR #118186)

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

[clang] [llvm] [ConstantRange] Estimate tighter lower (upper) bounds for masked binary and (or) (PR #120352)

2024-12-20 Thread Yingwei Zheng via cfe-commits
@@ -1520,15 +1520,101 @@ ConstantRange ConstantRange::binaryNot() const { return ConstantRange(APInt::getAllOnes(getBitWidth())).sub(*this); } +/// Estimate the 'bit-masked AND' operation's lower bound. +/// +/// E.g., given two ranges as follows (single quotes are separator

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis requested changes to this pull request. Thank you, mostly looks good, I think the tests can be made simpler. And I think adding release notes would benefit users. You can add a new point to "New Compiler Flags" in the clang release notes that clang-cl and clang-dxc n

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis edited https://github.com/llvm/llvm-project/pull/120644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Mészáros Gergely via cfe-commits
@@ -0,0 +1,8 @@ +// The test doesn't run in a PTY, so "auto" defaults to off. Maetveis wrote: Similarly here I think its enough to check that the option is accepted, no real need to verify what it does. ```c // RUN: %clang_dxc \ // RUN: -fcolor-diagnostics \ //

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Mészáros Gergely via cfe-commits
@@ -664,6 +664,15 @@ // RUN: not %clang_cl /guard:foo -### -- %s 2>&1 | FileCheck -check-prefix=CFGUARDINVALID %s // CFGUARDINVALID: invalid value 'foo' in '/guard:' +// The test doesn't run in a PTY, so "auto" defaults to off. +// RUN: %clang_cl -fdiagnostics-color=auto -###

[clang] [Clang] Adjust pointer-overflow sanitizer for N3322 (PR #120719)

2024-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/120719 >From bd7a8273d07725d898188df00c708b5a52d68ac7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 20 Dec 2024 12:41:01 +0100 Subject: [PATCH 1/2] [Clang] Adjust pointer-overflow sanitizer for N3322 N3322 make

[clang] [lld] [llvm] Remove `urllib2` and `SocketServer` (PR #120723)

2024-12-20 Thread Vinay Deshmukh via cfe-commits
@@ -39,7 +36,6 @@ def url_is_up(url): def start_browser(port, options): -import webbrowser vinay-deshmukh wrote: Due to this import, the import on L17 is unused. let me know if keeping this one and removing the import from L17 is more preferable. http

[clang] [lld] [llvm] Remove `urllib2` and `SocketServer` (PR #120723)

2024-12-20 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] [Clang] Adjust pointer-overflow sanitizer for N3322 (PR #120719)

2024-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/120719 >From bd7a8273d07725d898188df00c708b5a52d68ac7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 20 Dec 2024 12:41:01 +0100 Subject: [PATCH 1/3] [Clang] Adjust pointer-overflow sanitizer for N3322 N3322 make

[clang] [lld] [llvm] Remove `urllib2` and `SocketServer` (PR #120723)

2024-12-20 Thread Vinay Deshmukh via cfe-commits
https://github.com/vinay-deshmukh created https://github.com/llvm/llvm-project/pull/120723 Resolves #120299 1. Testing in CI >From 5f7a46d117053b582b8ee4c91a46e5edd84fbad2 Mon Sep 17 00:00:00 2001 From: Vinay Deshmukh <32487576+vinay-deshm...@users.noreply.github.com> Date: Fri, 20 Dec 2024 1

[clang] [llvm] [AMDGPU][True16][MC] true16 for v_alignbyte_b32 (PR #119750)

2024-12-20 Thread Matt Arsenault via cfe-commits
@@ -2353,8 +2353,8 @@ def int_amdgcn_writelane : [IntrNoMem, IntrConvergent, IntrWillReturn, IntrNoCallback, IntrNoFree] >; -def int_amdgcn_alignbyte : ClangBuiltin<"__builtin_amdgcn_alignbyte">, - DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty]

[clang] [llvm] [AMDGPU][True16][MC] true16 for v_alignbyte_b32 (PR #119750)

2024-12-20 Thread Matt Arsenault via cfe-commits
@@ -2353,8 +2353,8 @@ def int_amdgcn_writelane : [IntrNoMem, IntrConvergent, IntrWillReturn, IntrNoCallback, IntrNoFree] >; -def int_amdgcn_alignbyte : ClangBuiltin<"__builtin_amdgcn_alignbyte">, - DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty]

[clang] [compiler-rt] [Clang] Adjust pointer-overflow sanitizer for N3322 (PR #120719)

2024-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/120719 >From bd7a8273d07725d898188df00c708b5a52d68ac7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 20 Dec 2024 12:41:01 +0100 Subject: [PATCH 1/4] [Clang] Adjust pointer-overflow sanitizer for N3322 N3322 make

[clang] [compiler-rt] [Clang] Adjust pointer-overflow sanitizer for N3322 (PR #120719)

2024-12-20 Thread Nikita Popov via cfe-commits
nikic wrote: @vitalybuka Should I also be dropping checks like https://github.com/llvm/llvm-project/blob/5f0db7c11264fa235d73730b2b93a31407dfbef3/compiler-rt/lib/ubsan/ubsan_handlers.cpp#L817-L818 from the ubsan runtime? (Not sure whether the runtime is supposed to also be compatible with olde

[clang] [llvm] [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (PR #120753)

2024-12-20 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray closed https://github.com/llvm/llvm-project/pull/120753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 952c8d3 - [AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (#120753)

2024-12-20 Thread via cfe-commits
Author: Jonathan Thackray Date: 2024-12-20T17:27:08Z New Revision: 952c8d305459d3f1218d1ce12c7f20b6a10ba046 URL: https://github.com/llvm/llvm-project/commit/952c8d305459d3f1218d1ce12c7f20b6a10ba046 DIFF: https://github.com/llvm/llvm-project/commit/952c8d305459d3f1218d1ce12c7f20b6a10ba046.diff

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/120249 >From c526263a7accc434dbf6e93c2995ceb2f95873b8 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Tue, 17 Dec 2024 15:38:19 + Subject: [PATCH] [clang][dataflow] Use smart pointer caching in unchecked optional ac

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-20 Thread Vitaly Buka via cfe-commits
@@ -1208,6 +1202,11 @@ Sanitizers - Implemented ``-f[no-]sanitize-trap=local-bounds``, and ``-f[no-]sanitize-recover=local-bounds``. +- ``-fsanitize-merge`` (default) and ``-fno-sanitize-merge`` have been added for + fine-grained, unified control of which UBSan checks can

[clang] 1418018 - [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (#119908)

2024-12-20 Thread via cfe-commits
Author: Qiongsi Wu Date: 2024-12-20T09:47:26-08:00 New Revision: 14180185026b8ed793cc7dfd037620e5150ccc35 URL: https://github.com/llvm/llvm-project/commit/14180185026b8ed793cc7dfd037620e5150ccc35 DIFF: https://github.com/llvm/llvm-project/commit/14180185026b8ed793cc7dfd037620e5150ccc35.diff LO

[clang] [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-20 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (PR #119908)

2024-12-20 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/119908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] extract options verify to separately function (PR #120768)

2024-12-20 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/120768 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Fix the static assertion in 4797437 (PR #120643)

2024-12-20 Thread Jon Roelofs via cfe-commits
jroelofs wrote: may as well address @nikic's post-commit suggestion to move this out of the header, and into a source file, while you're here: https://github.com/llvm/llvm-project/pull/120341#discussion_r1893822845 https://github.com/llvm/llvm-project/pull/120643 __

[clang] [clang][dataflow] Use smart pointer caching in unchecked optional accessor (PR #120249)

2024-12-20 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/120249 >From c526263a7accc434dbf6e93c2995ceb2f95873b8 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Tue, 17 Dec 2024 15:38:19 + Subject: [PATCH 1/2] [clang][dataflow] Use smart pointer caching in unchecked optiona

[clang] [llvm] [LLVM][Clang][AArch64] Implement AArch64 build attributes (PR #118771)

2024-12-20 Thread via cfe-commits
sivan-shani wrote: - Fixed according to comments above - Fixed some errors - Ability to add attributes numerically added - Tests for pauthabi platform/version in codegen - Tests for assembly parser errors - Not added: Tests for attributes with NTBS values - currently all attributes takes only UL

[clang] Fix a cmake error when using the Xcode generator. (PR #119403)

2024-12-20 Thread Thomas Fransham via cfe-commits
fsfod wrote: I guess I must of broke build for the MSVC MSBuild/vcxproj CMake generator as well, maybe it can use the same kind checks as earlier code like this ``` cmake if(NOT XCODE AND NOT MSVC_IDE) target_compile_definitions("obj.${name}" PUBLIC CLANG_EXPORTS) else() target_compile_defin

[clang] [AArch64] Fix argument passing for SVE tuples (PR #118961)

2024-12-20 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM I somehow thought you could use arm_sve_vector_bits with tuples, but I guess not. https://github.com/llvm/llvm-project/pull/118961 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-20 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/120682 >From ee51ed7bd68df7b2dae3f1426471b34d0388a42f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 04:11:36 + Subject: [PATCH 1/5] Remove -bounds-checking-unique-traps (replace with -fno-s

[clang] 5bb6503 - Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (#120682)

2024-12-20 Thread via cfe-commits
Author: Thurston Dang Date: 2024-12-20T10:07:44-08:00 New Revision: 5bb650345d83669434713146aaa431c1f7ad43d6 URL: https://github.com/llvm/llvm-project/commit/5bb650345d83669434713146aaa431c1f7ad43d6 DIFF: https://github.com/llvm/llvm-project/commit/5bb650345d83669434713146aaa431c1f7ad43d6.diff

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

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

[clang] [AArch64] Fix argument passing for SVE tuples (PR #118961)

2024-12-20 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Thanks! https://github.com/llvm/llvm-project/pull/118961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread Brian Cain via cfe-commits
androm3da wrote: LGTM (after the `clang-format` fix) https://github.com/llvm/llvm-project/pull/120773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5162fde - [webkit.UncountedLambdaCapturesChecker] Fix a nullptr deference. (#120702)

2024-12-20 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-20T10:18:08-08:00 New Revision: 5162fde6ee6565d39511e451c04865e7b53bcdcc URL: https://github.com/llvm/llvm-project/commit/5162fde6ee6565d39511e451c04865e7b53bcdcc DIFF: https://github.com/llvm/llvm-project/commit/5162fde6ee6565d39511e451c04865e7b53bcdcc.diff

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a nullptr deference. (PR #120702)

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

[clang] [clang] Return larger CXX records in memory (PR #120670)

2024-12-20 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Missing regression test in clang/test/CodeGen. We probably want a release note for this (clang/docs/ReleaseNotes.rst). (If you're interested, there's another x86-64 ABI bug which nobody got around to fixing: #76017.) https://github.com/llvm/llvm-project/pull/120670 __

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-20 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/111719 >From 05eab970b59c61b22e8afa1ed9381906ae925c03 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 9 Oct 2024 10:16:58 -0700 Subject: [PATCH 1/4] [clang] Introduce a new UEFI target predefine. --- clang/lib/Bas

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-20 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/111719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-20 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/111719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-20 Thread via cfe-commits
@@ -259,6 +259,7 @@ static void addVisualCDefines(const LangOptions &Opts, MacroBuilder &Builder) { void addWindowsDefines(const llvm::Triple &Triple, const LangOptions &Opts, MacroBuilder &Builder) { + Builder.defineMacro("__UEFI__");

[clang] [llvm] [Hexagon] Add V75 support to compiler and assembler (PR #120773)

2024-12-20 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar updated https://github.com/llvm/llvm-project/pull/120773 >From a57f928e545e4bd398fe0ae3fca8702c83a79516 Mon Sep 17 00:00:00 2001 From: Ikhlas Ajbar Date: Fri, 13 Dec 2024 14:54:44 -0800 Subject: [PATCH] [Hexagon] Add V75 support to compiler and assembler This patch in

[clang] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)

2024-12-20 Thread Ian Anderson via cfe-commits
@@ -1018,13 +1018,19 @@ bool Darwin::hasBlocksRuntime() const { } } -void Darwin::AddCudaIncludeArgs(const ArgList &DriverArgs, -ArgStringList &CC1Args) const { +void MachO::AddCudaIncludeArgs(const ArgList &DriverArgs, +

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-20 Thread Bruno Cardoso Lopes via cfe-commits
@@ -18,6 +21,87 @@ mlir::MLIRContext &CIRGenTypes::getMLIRContext() const { return *builder.getContext(); } +/// Return true if the specified type in a function parameter or result position +/// can be converted to a CIR type at this point. This boils down to being +/// whe

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-20 Thread Erich Keane via cfe-commits
@@ -18,6 +21,87 @@ mlir::MLIRContext &CIRGenTypes::getMLIRContext() const { return *builder.getContext(); } +/// Return true if the specified type in a function parameter or result position +/// can be converted to a CIR type at this point. This boils down to being +/// whe

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-20 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Approve, conditional on isFuncParamTypeConvertible change being pulled from the incubator. https://github.com/llvm/llvm-project/pull/120484 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-20 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/120689 >From 1da99c0d32e996219a4b4dcad67b0321cab753e3 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Dec 2024 21:35:57 -0500 Subject: [PATCH] [clang][Sema] Fixes for %b printf extension handling The %b printf e

[clang] Fix double-quotes in diagnostic when attempting to access a ext_vector of bools (PR #118186)

2024-12-20 Thread Timm Baeder via cfe-commits
tbaederr wrote: Do you need someone to push this? https://github.com/llvm/llvm-project/pull/118186 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2024-12-20 Thread via cfe-commits
dyung wrote: > @dyung -- Could you try out > https://github.com/chandlerc/llvm-project/tree/shard-loongarch and see if > that works? > > Notably, it includes one additional patch on top of this series: > [chandlerc@2d59328](https://github.com/chandlerc/llvm-project/commit/2d593288dc18c5530777

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a nullptr deference. (PR #120702)

2024-12-20 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/120702 Added a nullptr check. >From 527fd23a6bd58cada036fe4a47c13ca93eabf507 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 20 Dec 2024 01:32:40 -0800 Subject: [PATCH] [webkit.UncountedLambdaCapturesChecker] Fix

[clang-tools-extra] [clang-tidy] Mention std::forward_list in container-size-empty doc (PR #120701)

2024-12-20 Thread Niels Dekker via cfe-commits
https://github.com/N-Dekker created https://github.com/llvm/llvm-project/pull/120701 Mentioned `std::forward_list` as example of a container without `size()`. >From e58124c491f46238538bb06f14de31f4d5f25d2a Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Fri, 20 Dec 2024 10:30:54 +0100 Subjec

[clang] [clang][CodeGen][SPIRV] Translate `amdgpu_flat_work_group_size` into `reqd_work_group_size`. (PR #116820)

2024-12-20 Thread Alex Voicu via cfe-commits
@@ -245,6 +247,41 @@ SPIRVTargetCodeGenInfo::getGlobalVarAddressSpace(CodeGenModule &CGM, return DefaultGlobalAS; } +void SPIRVTargetCodeGenInfo::setTargetAttributes( +const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const { + if (!M.getLangOpts().HIP |

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a nullptr deference. (PR #120702)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes Added a nullptr check. --- Full diff: https://github.com/llvm/llvm-project/pull/120702.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebK

[clang-tools-extra] [clang-tidy] Mention std::forward_list in container-size-empty doc (PR #120701)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Niels Dekker (N-Dekker) Changes Mentioned `std::forward_list` as example of a container without `size()`. --- Full diff: https://github.com/llvm/llvm-project/pull/120701.diff 2 Files Affected: - (modified) clang-tools-extra/clang-t

[clang-tools-extra] [clang-tidy] Mention std::forward_list in container-size-empty doc (PR #120701)

2024-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Niels Dekker (N-Dekker) Changes Mentioned `std::forward_list` as example of a container without `size()`. --- Full diff: https://github.com/llvm/llvm-project/pull/120701.diff 2 Files Affected: - (modified) clang-tools-extra/

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2024-12-20 Thread Chandler Carruth via cfe-commits
chandlerc wrote: No worries about delay, this gives me a credible target to resolve the rest of the issues. I'll update this PR both to address review comments but also to try and address the rest of the failures. Appreciate runs to validate these updates. =] https://github.com/llvm/llvm-proj

[clang-tools-extra] [clang-tidy] Mention std::forward_list in container-size-empty doc (PR #120701)

2024-12-20 Thread Niels Dekker via cfe-commits
https://github.com/N-Dekker ready_for_review https://github.com/llvm/llvm-project/pull/120701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-20 Thread Nikita Popov via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: nikic wrote: @hubert-reinterpretcast This patch modifies structure layout in exported headers, changing the libclang-cpp ABI. LLVM patch releases cannot break API or ABI compatibility, see the last point in https://llvm.org/docs/How

[clang] [clang] Fix dangling false positives for conditional operators. (PR #120233)

2024-12-20 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/120233 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a6d26c5 - [clang] Fix dangling false positives for conditional operators. (#120233)

2024-12-20 Thread via cfe-commits
Author: Haojian Wu Date: 2024-12-20T09:26:38+01:00 New Revision: a6d26c56ff066c8e8f92f4ca169fcf40ae0db537 URL: https://github.com/llvm/llvm-project/commit/a6d26c56ff066c8e8f92f4ca169fcf40ae0db537 DIFF: https://github.com/llvm/llvm-project/commit/a6d26c56ff066c8e8f92f4ca169fcf40ae0db537.diff LO

[clang] [clang] Fix dangling false positives for conditional operators. (PR #120233)

2024-12-20 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/120233 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix dangling false positives for conditional operators. (PR #120233)

2024-12-20 Thread Haojian Wu via cfe-commits
hokein wrote: > Please add more details to the summary, especially a note that there > theoretically could be false negatives but it fixes the overall issue and the > tradeoff good. Done. https://github.com/llvm/llvm-project/pull/120233 ___ cfe-comm

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-20 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/120689 >From 3c205ebace308c6d37dff289fab38f93bcb76309 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Dec 2024 21:35:57 -0500 Subject: [PATCH] [clang][Sema] Fixes for %b printf extension handling The %b printf e

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-20 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/120689 >From 67a87a492c0b84f4d76ae4818658969cd11a379e Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Dec 2024 21:35:57 -0500 Subject: [PATCH] [clang][Sema] Fixes for %b printf extension handling The %b printf e

[clang] [llvm] [TargetLibraryInfo] Add libmvec support for risc-v (PR #119844)

2024-12-20 Thread Mark Goncharov via cfe-commits
@@ -236,6 +236,79 @@ TLI_DEFINE_VECFUNC("llvm.log.f64", "_ZGVdN4v_log", FIXED(4), "_ZGV_LLVM_N4v") TLI_DEFINE_VECFUNC("llvm.log.f32", "_ZGVbN4v_logf", FIXED(4), "_ZGV_LLVM_N4v") TLI_DEFINE_VECFUNC("llvm.log.f32", "_ZGVdN8v_logf", FIXED(8), "_ZGV_LLVM_N8v") +#elif defined(TLI_

  1   2   3   >