[clang] [flang] [flang][Driver] Add -masm option to flang (PR #81490)

2024-02-13 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/81490 >From 6cc1f2073033c13fa45f888553ea3b3c384dd508 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Mon, 12 Feb 2024 14:56:33 + Subject: [PATCH 1/2] [flang][Driver] Add -masm option to flang The

[clang] Multilib support for libraries with exceptions (PR #75031)

2024-02-13 Thread via cfe-commits
https://github.com/amilendra approved this pull request. https://github.com/llvm/llvm-project/pull/75031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] ebe77cc - [clang-tidy] ignore local variable with [maybe_unused] attribute in bugprone-unused-local-non-trivial-variable (#81563)

2024-02-13 Thread via cfe-commits
Author: Congcong Cai Date: 2024-02-13T18:00:11+08:00 New Revision: ebe77cc320a1bcc8e2cec44f4f388fb43b72016d URL: https://github.com/llvm/llvm-project/commit/ebe77cc320a1bcc8e2cec44f4f388fb43b72016d DIFF: https://github.com/llvm/llvm-project/commit/ebe77cc320a1bcc8e2cec44f4f388fb43b72016d.diff

[clang-tools-extra] [clang-tidy] ignore local variable with [maybe_unused] attribute in bugprone-unused-local-non-trivial-variable (PR #81563)

2024-02-13 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/81563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang --target=aarch64-none-linux-gnu -march=armv9-a+sme -O3 -S -Xclang -verify %s sdesmalen-arm wrote: You can remove `-O3` because clang doesn't do any codegen when it has `-verify`. https://github.com/llvm/llvm-project/pull/77936

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -0,0 +1,6 @@ +// RUN: %clang --target=aarch64-none-linux-gnu -march=armv9-a+sme -O3 -S -Xclang -verify %s sdesmalen-arm wrote: Can you merge all these tests into a single file? https://github.com/llvm/llvm-project/pull/77936

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -279,6 +279,12 @@ def err_builtin_needs_feature : Error<"%0 needs target feature %1">; def err_function_needs_feature : Error< "always_inline function %1 requires target feature '%2', but would " "be inlined into function %0 that is compiled without support for '%2'">;

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -814,6 +820,49 @@ Address AArch64ABIInfo::EmitMSVAArg(CodeGenFunction , Address VAListAddr, /*allowHigherAlign*/ false); } +class SMEAttributes { +public: + bool IsStreaming = false; + bool IsStreamingCompatible = false; + bool HasNewZA =

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang --target=aarch64-none-linux-gnu -march=armv9-a+sme -O3 -S -Xclang -verify %s + +// Conflicting attributes when using always_inline +__attribute__((always_inline)) sdesmalen-arm wrote: nit: To simplify the test, could you do

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-13 Thread Sander de Smalen via cfe-commits
@@ -814,6 +820,49 @@ Address AArch64ABIInfo::EmitMSVAArg(CodeGenFunction , Address VAListAddr, /*allowHigherAlign*/ false); } +class SMEAttributes { sdesmalen-arm wrote: I'd like to avoid adding another `SMEAttributes class`. Could

[clang] [llvm] [HLSL] Implementation of dot intrinsic (PR #81190)

2024-02-13 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/81190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::initializeFieldsWithValues()`. (PR #81239)

2024-02-13 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/81239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 270f2c5 - [clang][dataflow] Add `Environment::initializeFieldsWithValues()`. (#81239)

2024-02-13 Thread via cfe-commits
Author: martinboehme Date: 2024-02-13T10:01:25+01:00 New Revision: 270f2c5575dc5dd001e91ddc2c71b0f2d23f567c URL: https://github.com/llvm/llvm-project/commit/270f2c5575dc5dd001e91ddc2c71b0f2d23f567c DIFF: https://github.com/llvm/llvm-project/commit/270f2c5575dc5dd001e91ddc2c71b0f2d23f567c.diff

[clang] [clang][dataflow] Add `Environment::initializeFieldsWithValues()`. (PR #81239)

2024-02-13 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/81239 >From 387e33a59aaf30eae26642cf7e1e9be38d9baf33 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Fri, 9 Feb 2024 10:05:18 + Subject: [PATCH] [clang][dataflow] Add

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/81580 >From 24fc75756094d36e72c69805c9d476d8144ed869 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Tue, 13 Feb 2024 00:35:36 -0800 Subject: [PATCH] [alpha.webkit.UncountedCallArgsChecker] Detect a return value of

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
@@ -1717,6 +1717,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, tok::kw___is_fundamental, tok::kw___is_integral, tok::kw___is_interface_class, + tok::kw___is_layout_compatible, Endilll wrote: Done

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/81506 >From 52b239153b2fc4f52e889ad2044daa6ed5cbc836 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Mon, 12 Feb 2024 17:44:38 +0300 Subject: [PATCH 1/6] Initial implementation ---

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/81580 >From 478c7d2c0bb902b829d522fc483e68b8e36489ea Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Tue, 13 Feb 2024 00:35:36 -0800 Subject: [PATCH] [alpha.webkit.UncountedCallArgsChecker] Detect a return value of

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/81580 >From 51fb3aa575c4509d4b4199d16d10e05281f911ac Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Tue, 13 Feb 2024 00:35:36 -0800 Subject: [PATCH] [alpha.webkit.UncountedCallArgsChecker] Detect a return value of

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 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 535da10842c7309e9eeaf9828cf6bb034fecaf16 a781c46e5db132e31816efd7bd475d6af157f256 --

[clang-tools-extra] [clang-tidy] ignore local variable with [maybe_unused] attribute in bugprone-unused-local-non-trivial-variable (PR #81563)

2024-02-13 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/81563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MC/DC] Refactor: Introduce `MCDCTypes.h` for `coverage::mcdc` (PR #81459)

2024-02-13 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni closed https://github.com/llvm/llvm-project/pull/81459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f0db35b - [MC/DC] Refactor: Introduce `MCDCTypes.h` for `coverage::mcdc` (#81459)

2024-02-13 Thread via cfe-commits
Author: NAKAMURA Takumi Date: 2024-02-13T17:40:51+09:00 New Revision: f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b URL: https://github.com/llvm/llvm-project/commit/f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b DIFF:

[clang] [llvm] [MC/DC] Refactor: Introduce `MCDCTypes.h` for `coverage::mcdc` (PR #81459)

2024-02-13 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/81459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR makes the checker not emit warning when a function is called with a return value of another function when the return value is of type RefT or RefPtrT. --- Full diff:

[clang] Detect a return value of Ref & RefPtr (PR #81580)

2024-02-13 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/81580 This PR makes the checker not emit warning when a function is called with a return value of another function when the return value is of type Ref or RefPtr. >From 52b6e959d69a96704ec2a403131627049a782352 Mon Sep

[clang] clangCodeGen: Introduce `mcdc::State` with `MCDCState.h` (PR #81497)

2024-02-13 Thread Jessica Paquette via cfe-commits
@@ -0,0 +1,33 @@ +//=== MCDCState.h - MC/DC-related types for PGO -*- 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:

[clang] [llvm] [MC/DC] Refactor: Introduce `MCDCTypes.h` for `coverage::mcdc` (PR #81459)

2024-02-13 Thread Jessica Paquette via cfe-commits
https://github.com/ornata approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/81459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MC/DC] Refactor: Make `MCDCParams` as `std::variant` (PR #81227)

2024-02-13 Thread Jessica Paquette via cfe-commits
https://github.com/ornata approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/81227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add some CodeGen tests for CWG 2xx issues (PR #80823)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/80823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 346e7c7 - [clang] Add some CodeGen tests for CWG 2xx issues (#80823)

2024-02-13 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2024-02-13T12:17:46+04:00 New Revision: 346e7c7f6881afaade5a71ad97475d70639dadcf URL: https://github.com/llvm/llvm-project/commit/346e7c7f6881afaade5a71ad97475d70639dadcf DIFF:

[clang] [clang][dataflow] Add `Environment::initializeFieldsWithValues()`. (PR #81239)

2024-02-13 Thread via cfe-commits
@@ -943,6 +919,50 @@ Environment::createLocAndMaybeValue(QualType Ty, return Loc; } +void Environment::initializeFieldsWithValues(RecordStorageLocation , + llvm::DenseSet , + int Depth,

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
@@ -14040,6 +14040,8 @@ class Sema final { bool SemaValueIsRunOfOnes(CallExpr *TheCall, unsigned ArgNum); public: + bool SemaIsLayoutCompatible(QualType T1, QualType T2); Endilll wrote: Done https://github.com/llvm/llvm-project/pull/81506

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/81506 >From 52b239153b2fc4f52e889ad2044daa6ed5cbc836 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Mon, 12 Feb 2024 17:44:38 +0300 Subject: [PATCH 1/5] Initial implementation ---

[clang] [clang][analyzer] Change default value of checker option in unix.StdCLibraryFunctions. (PR #80457)

2024-02-13 Thread Balázs Kéri via cfe-commits
balazske wrote: The new appeared bug reports should be similar to the ones that were observed when `StdCLibraryFunctionsChecker` was made non-alpha (and probably were checked already one time) (because the option was turned on in those tests). A different solution can be to add a Linux-mode

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread via cfe-commits
@@ -14040,6 +14040,8 @@ class Sema final { bool SemaValueIsRunOfOnes(CallExpr *TheCall, unsigned ArgNum); public: + bool SemaIsLayoutCompatible(QualType T1, QualType T2); cor3ntin wrote: Agreed, this should be renamed IsLayoutCompatible (and be const)

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread via cfe-commits
https://github.com/cor3ntin commented: This looks good generally. Can you add a changelog entry? Can you add some doc in LanguageExtension.rst? Thanks https://github.com/llvm/llvm-project/pull/81506 ___ cfe-commits mailing list

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread via cfe-commits
@@ -1717,6 +1717,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, tok::kw___is_fundamental, tok::kw___is_integral, tok::kw___is_interface_class, + tok::kw___is_layout_compatible, cor3ntin wrote: I don't

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-13 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/81506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Always insert a space between #if and l_paren (PR #81578)

2024-02-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #81569. --- Full diff: https://github.com/llvm/llvm-project/pull/81578.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+2) - (modified)

[clang] [clang] Do less advertising for unresolved issues in `cxx_dr_status.html` (PR #78836)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
@@ -159,21 +165,37 @@ def availability(issue): if status == 'unknown': avail = 'Unknown' avail_style = ' class="unknown"' - elif re.match('^[0-9]+\.?[0-9]*', status): -avail = 'Clang %s' % status -if float(status) > latest_release: - avail_style = '

[clang] [clang] Do less advertising for unresolved issues in `cxx_dr_status.html` (PR #78836)

2024-02-13 Thread Vlad Serebrennikov via cfe-commits
@@ -159,21 +165,37 @@ def availability(issue): if status == 'unknown': avail = 'Unknown' avail_style = ' class="unknown"' - elif re.match('^[0-9]+\.?[0-9]*', status): -avail = 'Clang %s' % status -if float(status) > latest_release: - avail_style = '

[clang] [clang-format] Always insert a space between #if and l_paren (PR #81578)

2024-02-13 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/81578 Fixes #81569. >From 2292ccb78839a90a15215b11c473fcbfc47aa00c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 13 Feb 2024 00:03:19 -0800 Subject: [PATCH] [clang-format] Always insert a space between #if and

[clang] [clang][CodeGen] Emit atomic IR in place of optimized libcalls. (PR #73176)

2024-02-13 Thread Rainer Orth via cfe-commits
rorth wrote: I'm pretty certain this patch broke the [Solaris/sparcv9 buildbot](https://lab.llvm.org/buildbot/#/builders/72/builds/2541). https://github.com/llvm/llvm-project/pull/73176 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

<    1   2   3   4   5