[clang] 0767027 - [clang][TableGen] Change Opcode Emitter to use const RecordKeeper (#108211)

2024-09-11 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-09-11T10:51:23-07:00 New Revision: 0767027f363f81157657549a5db9ff9daf9198a5 URL: https://github.com/llvm/llvm-project/commit/0767027f363f81157657549a5db9ff9daf9198a5 DIFF: https://github.com/llvm/llvm-project/commit/0767027f363f81157657549a5db9ff9daf9198a5.diff L

[clang] [clang][TableGen] Change Opcode Emitter to use const RecordKeeper (PR #108211)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/108211 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7c53a7a - [clang][TableGen] Change OpenCL emitter to use const RecordKeeper (#108213)

2024-09-11 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-09-11T10:51:48-07:00 New Revision: 7c53a7aae7947bd3a400d6b5713fe31dcfb46648 URL: https://github.com/llvm/llvm-project/commit/7c53a7aae7947bd3a400d6b5713fe31dcfb46648 DIFF: https://github.com/llvm/llvm-project/commit/7c53a7aae7947bd3a400d6b5713fe31dcfb46648.diff L

[clang] [clang][TableGen] Change OpenCL emitter to use const RecordKeeper (PR #108213)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/108213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8625eb0 - [clang][TableGen] Change OptionDoc Emitter to use const RecordKeeper (#108216)

2024-09-11 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-09-11T10:52:15-07:00 New Revision: 8625eb0b87c86d3ef42a365d7593eed664b379e8 URL: https://github.com/llvm/llvm-project/commit/8625eb0b87c86d3ef42a365d7593eed664b379e8 DIFF: https://github.com/llvm/llvm-project/commit/8625eb0b87c86d3ef42a365d7593eed664b379e8.diff L

[clang] [clang][TableGen] Change OptionDoc Emitter to use const RecordKeeper (PR #108216)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/108216 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ edited https://github.com/llvm/llvm-project/pull/108184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clangl[TableGen] Change Diagnostic Emitter to use const RecordKeeper (PR #108209)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul updated https://github.com/llvm/llvm-project/pull/108209 >From df228c650d4816eacc5b20771d8be294ab8ee134 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Wed, 11 Sep 2024 05:28:22 -0700 Subject: [PATCH] [clangl[TableGen] Change Diagnostic Emitter to use const RecordKe

[clang] [clangl[TableGen] Change Diagnostic Emitter to use const RecordKeeper (PR #108209)

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

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-11 Thread via cfe-commits
joaosaffran wrote: After discussing with @bogner and @farzonl, we decided the following: - Using `static_assert` for the errors makes the user experience inconsistent, since we expect the type checking to happen in `SemaHLSL.cpp`, as other builtins. - The 16 bit casts don't have this problem

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-11 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/106588 >From 12253818bd47aa8c324f6222586965f356b11c90 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Wed, 24 Jul 2024 16:49:19 -0600 Subject: [PATCH 01/11] [HLSL] set alwaysinline on HLSL functions HLSL inlines all it

[clang] [clang-tools-extra] Remove ^^ as a token in OpenCL (PR #108224)

2024-09-11 Thread Anastasia Stulova via cfe-commits
AnastasiaStulova wrote: I think that the diagnostic change is reasonable. Clang doesn't support OpenCL C++ at present so we won't need to worry about it. However the mission of C++ for OpenCL is to track C++ and track OpenCL i.e. we may want to update to C++ with reflection. So it would be goo

[clang] [HLSL] fix elementwise bitreverse test (PR #108128)

2024-09-11 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/108128 >From 8146b03b49a94532335f9bb238c6c41c9a800034 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Wed, 11 Sep 2024 01:22:37 + Subject: [PATCH] fix elementwise bitreverse test --- clang/test/Sema/builtins-eleme

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ edited https://github.com/llvm/llvm-project/pull/108184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ approved this pull request. Aha ok LGTM! https://github.com/llvm/llvm-project/pull/108184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Artem Dergachev via cfe-commits
@@ -143,6 +143,16 @@ bool isReturnValueRefCounted(const clang::FunctionDecl *F) { return false; } +std::optional isUncounted(const QualType T) { + if (auto *Subst = dyn_cast(T)) { +if (auto *Decl = Subst->getAssociatedDecl()) { + if (isRefType(safeGetName(Decl)))

[clang] [clang][TableGen] Change AttrEmitter to use const RecordKeeper (PR #108269)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/108269 Change AttrEmitter to use const RecordKeeper. >From 5c7d69a1595af72b48dc417f8d3aa89404fbf265 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Wed, 11 Sep 2024 11:32:36 -0700 Subject: [PATCH] [clang][TableGen] C

[clang] [CGData] Clang Options (PR #90304)

2024-09-11 Thread Ellis Hoag via cfe-commits
@@ -1894,6 +1894,18 @@ def fprofile_selected_function_group : Visibility<[ClangOption, CC1Option]>, MetaVarName<"">, HelpText<"Partition functions into N groups using -fprofile-function-groups and select only functions in group i to be instrumented. The valid range is 0 to

[clang] [clang][TableGen] Change AttrEmitter to use const RecordKeeper (PR #108269)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement elementwise popcount (PR #108121)

2024-09-11 Thread Sarah Spall via cfe-commits
spall wrote: > > This pull request is missing the appropriate text in 'ReleaseNotes.rst'. I > > am looking for advice on what is appropriate to put in that file, and where. > > Here's a PR with ReleaseNotes.rst change > [57f879c#diff-ec770381d76c859f5f572db789175fe44410a72608f58ad5dbb14335ba56

[clang] [clang][TableGen] Change ASTProperties Emitter to use const RecordKeeper (PR #108274)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/108274 Change ASTProperties Emitter to use const RecordKeeper. >From d5396fdc12a6a24960b42ec9f50556b00e42e08e Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Wed, 11 Sep 2024 11:51:51 -0700 Subject: [PATCH] [clang][T

[clang] [clang][TableGen] Change ASTProperties Emitter to use const RecordKeeper (PR #108274)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul edited https://github.com/llvm/llvm-project/pull/108274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,34 @@ +// RUN: %check_clang_tidy -std=c++20-or-later %s bugprone-bit-cast-pointers %t + +namespace std +{ +template +To bit_cast(From from) +{ + // Dummy implementation for the purpose of the check. 5chmidti wrote: nit: `check` -> `test`. `check` is

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,34 @@ +//===--- BitCastPointersCheck.h - clang-tidy *- 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: Apa

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,40 @@ +.. title:: clang-tidy - bugprone-bit-cast-pointers + +bugprone-bit-cast-pointers +== + +Warns about usage of ``std::bit_cast`` when the input and output types are +pointers. + +The motivation is that ``std::bit_cast`` is advertised as the

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,32 @@ +//===--- BitCastPointersCheck.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,32 @@ +//===--- BitCastPointersCheck.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

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

2024-09-11 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,32 @@ +//===--- BitCastPointersCheck.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [WebKit Checkers] Allow "singleton" suffix to be camelCased. (PR #108257)

2024-09-11 Thread Artem Dergachev via cfe-commits
https://github.com/haoNoQ approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/108257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement elementwise popcount (PR #108121)

2024-09-11 Thread Xiang Li via cfe-commits
python3kgae wrote: > > > This pull request is missing the appropriate text in 'ReleaseNotes.rst'. > > > I am looking for advice on what is appropriate to put in that file, and > > > where. > > > > > > Here's a PR with ReleaseNotes.rst change > > [57f879c#diff-ec770381d76c859f5f572db789175fe4

[clang] [clang][Sema] Improve `collectViableConversionCandidates` (PR #97908)

2024-09-11 Thread via cfe-commits
https://github.com/MagentaTreehouse updated https://github.com/llvm/llvm-project/pull/97908 >From def9d161e4ea79ee1b24a8d662a5c0dd17c2dd8f Mon Sep 17 00:00:00 2001 From: Mingyi Chen Date: Sat, 6 Jul 2024 15:41:08 -0400 Subject: [PATCH 1/3] [clang][Sema] Improve `collectViableConversionCandidate

[clang] [clang][TableGen] Change ASTProperties Emitter to use const RecordKeeper (PR #108274)

2024-09-11 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 e3f936eb755d9ae37019ffcc7f53d71d2d58d188 d5396fdc12a6a24960b42ec9f50556b00e42e08e --e

[clang] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter` class (PR #108275)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/108275 None >From 340f6e2f06a210ae733e6cbbc8babf218d12ded6 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Wed, 11 Sep 2024 11:58:45 -0700 Subject: [PATCH] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter`

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-11 Thread Craig Topper via cfe-commits
@@ -63,9 +63,53 @@ class RISCVABIInfo : public DefaultABIInfo { CharUnits Field2Off) const; ABIArgInfo coerceVLSVector(QualType Ty) const; + + using ABIInfo::appendAttributeMangling; + void appendAttributeMangling(TargetClones

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-11 Thread Craig Topper via cfe-commits
@@ -63,9 +63,53 @@ class RISCVABIInfo : public DefaultABIInfo { CharUnits Field2Off) const; ABIArgInfo coerceVLSVector(QualType Ty) const; + + using ABIInfo::appendAttributeMangling; + void appendAttributeMangling(TargetClones

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-11 Thread Craig Topper via cfe-commits
@@ -378,4 +378,8 @@ def warn_missing_symbol_graph_dir : Warning< def err_ast_action_on_llvm_ir : Error< "cannot apply AST actions to LLVM IR file '%0'">, DefaultFatal; + +def err_os_unsupport_riscv_fmv : Error< + "fmv is currently only supported on Linux">; ---

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-11 Thread Craig Topper via cfe-commits
@@ -2877,10 +2877,142 @@ void CodeGenFunction::EmitMultiVersionResolver( case llvm::Triple::aarch64: EmitAArch64MultiVersionResolver(Resolver, Options); return; + case llvm::Triple::riscv32: + case llvm::Triple::riscv64: +EmitRISCVMultiVersionResolver(Resolver,

[clang] [RISCV][FMV] Support target_clones (PR #85786)

2024-09-11 Thread Craig Topper via cfe-commits
@@ -2877,10 +2877,142 @@ void CodeGenFunction::EmitMultiVersionResolver( case llvm::Triple::aarch64: EmitAArch64MultiVersionResolver(Resolver, Options); return; + case llvm::Triple::riscv32: + case llvm::Triple::riscv64: +EmitRISCVMultiVersionResolver(Resolver,

[clang] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter` class (PR #108275)

2024-09-11 Thread Rahul Joshi via cfe-commits
jurahul wrote: This is in preparation of https://github.com/llvm/llvm-project/pull/108274 which touches this class and end up reformatting a bunch of untouched code in the process. https://github.com/llvm/llvm-project/pull/108275 ___ cfe-commits mail

[clang] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter` class (PR #108275)

2024-09-11 Thread Rahul Joshi via cfe-commits
jurahul wrote: I just left indented the code in that class and then ran `git clang-format HEAD^^`. https://github.com/llvm/llvm-project/pull/108275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] 882f21e - [WebKit Checkers] Allow "singleton" suffix to be camelCased. (#108257)

2024-09-11 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-09-11T12:03:23-07:00 New Revision: 882f21ec87abd960b7ce3e10225f2bfeda3e1f74 URL: https://github.com/llvm/llvm-project/commit/882f21ec87abd960b7ce3e10225f2bfeda3e1f74 DIFF: https://github.com/llvm/llvm-project/commit/882f21ec87abd960b7ce3e10225f2bfeda3e1f74.diff

[clang] [WebKit Checkers] Allow "singleton" suffix to be camelCased. (PR #108257)

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

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-11 Thread Thomas Fransham via cfe-commits
https://github.com/fsfod created https://github.com/llvm/llvm-project/pull/108276 This is part of the effort to support for enabling plugins on windows by adding better support for building llvm and clang as a DLL. These macros are similar to the ones i added in #96630, but are for clang. Add

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Ryosuke Niwa via cfe-commits
@@ -143,6 +143,16 @@ bool isReturnValueRefCounted(const clang::FunctionDecl *F) { return false; } +std::optional isUncounted(const QualType T) { + if (auto *Subst = dyn_cast(T)) { +if (auto *Decl = Subst->getAssociatedDecl()) { + if (isRefType(safeGetName(Decl)))

[clang] b06954a - [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (#108184)

2024-09-11 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-09-11T12:06:04-07:00 New Revision: b06954a5d02a41a38b72f7914c791428ccd95318 URL: https://github.com/llvm/llvm-project/commit/b06954a5d02a41a38b72f7914c791428ccd95318 DIFF: https://github.com/llvm/llvm-project/commit/b06954a5d02a41a38b72f7914c791428ccd95318.diff

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

2024-09-11 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/108184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UncountedCallArgsChecker] Allow protector functions in Objective-C++ (PR #108184)

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

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-11 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a88a4eda4ce2ad32ee2ec02549b25c9f08aa14e9 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-11 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a88a4eda4ce2ad32ee2ec02549b25c9f08aa14e9 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang-tools-extra] [clang-tidy] fix false positive in modernize-min-max-use-initializer-list (PR #107649)

2024-09-11 Thread Danny Mösch via cfe-commits
https://github.com/SimplyDanny approved this pull request. https://github.com/llvm/llvm-project/pull/107649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-11 Thread Saleem Abdulrasool via cfe-commits
@@ -166,7 +166,7 @@ if(ENABLE_SHARED) set_target_properties(libclang PROPERTIES VERSION ${LIBCLANG_LIBRARY_VERSION} - DEFINE_SYMBOL _CINDEX_LIB_) + DEFINE_SYMBOL _CINDEX_LIB_ DEFINE_SYMBOL CLANG_EXPORTS) compnerd wrote: This will ove

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-11 Thread Saleem Abdulrasool via cfe-commits
@@ -108,6 +108,10 @@ macro(add_clang_library name) endif() llvm_add_library(${name} ${LIBTYPE} ${ARG_UNPARSED_ARGUMENTS} ${srcs}) + if(NOT ARG_SHARED AND NOT ARG_STATIC) +target_compile_definitions("obj.${name}" PRIVATE CLANG_EXPORTS) compnerd wrote:

[clang] [clang] Don't emit bogus dangling diagnostics when `[[gsl::Owner]]` and `[[clang::lifetimebound]]` are used together. (PR #108280)

2024-09-11 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/108280 Fixes #108272 >From 0ee0f4660c8f9352c758ff80b0fa149bf9b5bd57 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 11 Sep 2024 21:45:40 +0200 Subject: [PATCH] [clang] Don't emit bogus dangling diagnostics when

[clang] [clang] Don't emit bogus dangling diagnostics when `[[gsl::Owner]]` and `[[clang::lifetimebound]]` are used together. (PR #108280)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fixes #108272 --- Full diff: https://github.com/llvm/llvm-project/pull/108280.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/lib/Sema/CheckExprLifetime.cpp (+2-1) -

[clang] [clang] Don't emit bogus dangling diagnostics when `[[gsl::Owner]]` and `[[clang::lifetimebound]]` are used together. (PR #108280)

2024-09-11 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 e50131aa068f74daa70d4135c92020aadae3af33 0ee0f4660c8f9352c758ff80b0fa149bf9b5bd57 --e

[clang] [llvm] [clang][hlsl] Add atan2 intrinsic part 1 (PR #107923)

2024-09-11 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/107923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b8239e1 - [HLSL] Add StructuredBuffer to external sema source (#106316)

2024-09-11 Thread via cfe-commits
Author: Joshua Batista Date: 2024-09-11T13:03:00-07:00 New Revision: b8239e1201f5871bed5b633b76fa9536672f287f URL: https://github.com/llvm/llvm-project/commit/b8239e1201f5871bed5b633b76fa9536672f287f DIFF: https://github.com/llvm/llvm-project/commit/b8239e1201f5871bed5b633b76fa9536672f287f.diff

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

2024-09-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 closed https://github.com/llvm/llvm-project/pull/106316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter` class (PR #108275)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/108275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Reformat ClangASTPropertiesEmitter `ASTPropsEmitter` class (PR #108275)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/108275.diff 1 Files Affected: - (modified) clang/utils/TableGen/ClangASTPropertiesEmitter.cpp (+45-49) ``diff diff --git a/clang/utils/Ta

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-11 Thread via cfe-commits
=?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0J

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

2024-09-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/5538 Here is the

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] generate hlsl.wavesize attribute (PR #107176)

2024-09-11 Thread Xiang Li via cfe-commits
https://github.com/python3kgae updated https://github.com/llvm/llvm-project/pull/107176 >From 3b4ba1436220d6eef11bce713618aefb272ea74f Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 3 Sep 2024 22:56:21 -0400 Subject: [PATCH 1/2] [HLSL] generate hlsl.wavesize attribute Generate function att

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

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

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

2024-09-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/368

[clang] [HLSL] Add StructuredBuffer to external sema source (PR #106316)

2024-09-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 7 "test-build-stage1-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/bu

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-11 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a88a4eda4ce2ad32ee2ec02549b25c9f08aa14e9 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang] [analyzer] Model overflow builtins (PR #102602)

2024-09-11 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: Hello! Is there anything else that stops this PR? Thanks! https://github.com/llvm/llvm-project/pull/102602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b3f3c0c - [clang][AArch64] Put soft-float ABI checks under isSoftFloat(). NFC

2024-09-11 Thread Jon Roelofs via cfe-commits
Author: Jon Roelofs Date: 2024-09-11T13:37:45-07:00 New Revision: b3f3c0c63358b412348022d10308b97332d02bcd URL: https://github.com/llvm/llvm-project/commit/b3f3c0c63358b412348022d10308b97332d02bcd DIFF: https://github.com/llvm/llvm-project/commit/b3f3c0c63358b412348022d10308b97332d02bcd.diff L

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-11 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a48e8ef405604b0c74364351ef32d0b05aee1098 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang] Update StructuredBuffer-AST test after removal of HLSLResourceClassAttr (PR #108292)

2024-09-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 created https://github.com/llvm/llvm-project/pull/108292 In a previous PR, the `HLSLResourceClassAttr` attribute was removed from the AST, in favor of using an attributed type that stores the same information instead. This PR fixes test failures that assumed that `H

[clang] Update StructuredBuffer-AST test after removal of HLSLResourceClassAttr (PR #108292)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Joshua Batista (bob80905) Changes In a previous PR, the `HLSLResourceClassAttr` attribute was removed from the AST, in favor of using an attributed type that stores the same information instead. This PR fixes test failures that assumed tha

[clang] Update StructuredBuffer-AST test after removal of HLSLResourceClassAttr (PR #108292)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joshua Batista (bob80905) Changes In a previous PR, the `HLSLResourceClassAttr` attribute was removed from the AST, in favor of using an attributed type that stores the same information instead. This PR fixes test failures that assumed th

[clang] [llvm] [HLSL] Implement elementwise popcount (PR #108121)

2024-09-11 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: I'd recommend you add it to the "C++ Language Changes" section. https://github.com/llvm/llvm-project/pull/108121 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement elementwise popcount (PR #108121)

2024-09-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon commented: Please can you fix the clang-format warnings? https://github.com/llvm/llvm-project/pull/108121 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Update StructuredBuffer-AST test after removal of HLSLResourceClassAttr (PR #108292)

2024-09-11 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/108292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Update StructuredBuffer-AST test after removal of HLSLResourceClassAttr (PR #108292)

2024-09-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/108292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-09-11 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/107786 >From b50e49be3765c31b1c555384c41e1f528d529a88 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 9 Sep 2024 02:30:35 +0300 Subject: [PATCH] [Clang] prevent recovery call expression from proceeding with e

[clang] 60efbe9 - [NFC][rtsan] Docs of how to disable rtsan (#107707)

2024-09-11 Thread via cfe-commits
Author: Chris Apple Date: 2024-09-11T15:33:22-06:00 New Revision: 60efbe99cb2ad19373d07de4806472094258508e URL: https://github.com/llvm/llvm-project/commit/60efbe99cb2ad19373d07de4806472094258508e DIFF: https://github.com/llvm/llvm-project/commit/60efbe99cb2ad19373d07de4806472094258508e.diff L

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-11 Thread Chris Apple via cfe-commits
https://github.com/cjappl closed https://github.com/llvm/llvm-project/pull/107707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] fix elementwise bitreverse test (PR #108128)

2024-09-11 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/108128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DebugInfo] Correct the line attribution for IF branches (PR #108300)

2024-09-11 Thread Paul T Robinson via cfe-commits
https://github.com/pogo59 created https://github.com/llvm/llvm-project/pull/108300 An 'if' statement introduces a scope, but in some cases the conditional branch to the then/else blocks had a debug-info attribution that did not include the scope. This led to some inefficiency in the DWARF line

[clang] [DebugInfo] Correct the line attribution for IF branches (PR #108300)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Paul T Robinson (pogo59) Changes An 'if' statement introduces a scope, but in some cases the conditional branch to the then/else blocks had a debug-info attribution that did not include the scope. This led to some inefficiency in

[clang] [DebugInfo] Correct the line attribution for IF branches (PR #108300)

2024-09-11 Thread Paul T Robinson via cfe-commits
pogo59 wrote: This fixes the problem I describe in https://discourse.llvm.org/t/wrong-scope-in-dbg-on-a-branch-or-how-to-find-branchinst-create/81112 https://github.com/llvm/llvm-project/pull/108300 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)

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

[clang] [HLSL] fix elementwise bitreverse test (PR #108128)

2024-09-11 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/108128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Reland [asan][windows] Eliminate the static asan runtime on windows (PR #107899)

2024-09-11 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: This PR seems to have broken ASAN in mingw configurations. The symptoms seem to be that the ASAN DLL just locks up, hard, when the process is loaded. (Or more precisely, has entered some infinite loop.) I tried attaching to such a hung process with windbg, and it's showing this

[clang] [HLSL] fix elementwise bitreverse test (PR #108128)

2024-09-11 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/108128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a858836 - [clangl[TableGen] Change Diagnostic Emitter to use const RecordKeeper (#108209)

2024-09-11 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-09-11T15:18:58-07:00 New Revision: a85883662ad1904844b1bd5a34bf93d9b383e3b8 URL: https://github.com/llvm/llvm-project/commit/a85883662ad1904844b1bd5a34bf93d9b383e3b8 DIFF: https://github.com/llvm/llvm-project/commit/a85883662ad1904844b1bd5a34bf93d9b383e3b8.diff L

[clang] [clangl[TableGen] Change Diagnostic Emitter to use const RecordKeeper (PR #108209)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/108209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change AST Nodes Emitter to use const RecordKeeper (PR #108270)

2024-09-11 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/108270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Change AST Nodes Emitter to use const RecordKeeper (PR #108270)

2024-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes Change AST Nodes Emitter to use const RecordKeeper. This is a part of effort to have better const correctness in TableGen backends: https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderivedde

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

2024-09-11 Thread via cfe-commits
Author: Chris B Date: 2024-09-11T17:27:09-05:00 New Revision: a29afb754fb445a2361c556d4e072604b3be URL: https://github.com/llvm/llvm-project/commit/a29afb754fb445a2361c556d4e072604b3be DIFF: https://github.com/llvm/llvm-project/commit/a29afb754fb445a2361c556d4e072604b3be.diff LOG:

<    1   2   3   4   5   6   >