[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Joshua Batista via cfe-commits
@@ -437,7 +460,206 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct register_binding_flags { + bool resource = false; + bool udt = false; + bool other = false; + bool basic = false; + + bool srv = false; + bool uav =

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp requested changes to this pull request. I'm a bit confused by this change. It seems that some tweaks have been made to the diagnostics, and something code around register_binding_flags has been added, but doesn't seem to be tested at all. It seems it should be possi

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Damyan Pepper via cfe-commits
@@ -437,7 +460,206 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct register_binding_flags { + bool resource = false; + bool udt = false; + bool other = false; + bool basic = false; + + bool srv = false; + bool uav =

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-07-01 Thread Damyan Pepper via cfe-commits
@@ -12303,7 +12303,10 @@ def err_hlsl_missing_semantic_annotation : Error< def err_hlsl_init_priority_unsupported : Error< "initializer priorities are not supported in HLSL">; -def err_hlsl_unsupported_register_type : Error<"invalid resource class specifier '%0' used; expec

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-01 Thread Ameer J via cfe-commits
https://github.com/ameerj updated https://github.com/llvm/llvm-project/pull/95013 >From a50f3d4395efd09eea8ba2e750bb785857f9a550 Mon Sep 17 00:00:00 2001 From: ameerj Date: Mon, 10 Jun 2024 12:09:40 -0400 Subject: [PATCH 01/10] Add BinPackBinaryOperations --- clang/include/clang/Format/Format

[clang] [libc] [llvm] [libc] Implement (v|f)printf on the GPU (PR #96369)

2024-07-01 Thread Jon Chesterfield via cfe-commits
@@ -116,8 +116,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXTargetInfo : public TargetInfo { } BuiltinVaListKind getBuiltinVaListKind() const override { -// FIXME: implement -return TargetInfo::CharPtrBuiltinVaList; +return TargetInfo::VoidPtrBuiltinVaList; ---

[clang] 8477ca6 - [HIP][Clang][Sema] Fix crash when calling builtins with pointer arguments (#95957)

2024-07-01 Thread via cfe-commits
Author: Raymond Tian Date: 2024-07-01T14:54:04-04:00 New Revision: 8477ca6e8e2a2c5adcfd600780a5eecb2ca0b153 URL: https://github.com/llvm/llvm-project/commit/8477ca6e8e2a2c5adcfd600780a5eecb2ca0b153 DIFF: https://github.com/llvm/llvm-project/commit/8477ca6e8e2a2c5adcfd600780a5eecb2ca0b153.diff

[clang] [HIP][Clang][Sema] Fix crash when calling builtins with pointer arguments (PR #95957)

2024-07-01 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/95957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][Clang][Sema] Fix crash when calling builtins with pointer arguments (PR #95957)

2024-07-01 Thread Shilei Tian via cfe-commits
shiltian wrote: > cc @shiltian for review/merge, thanks Done. Thanks! https://github.com/llvm/llvm-project/pull/95957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][Clang][Sema] Fix crash when calling builtins with pointer arguments (PR #95957)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: @rymdtian Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang] [libc] [llvm] [NVPTX] Implement variadic functions using IR lowering (PR #96015)

2024-07-01 Thread Joseph Huber via cfe-commits
@@ -116,8 +116,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXTargetInfo : public TargetInfo { } BuiltinVaListKind getBuiltinVaListKind() const override { -// FIXME: implement -return TargetInfo::CharPtrBuiltinVaList; +return TargetInfo::VoidPtrBuiltinVaList; ---

[clang] [libc] [llvm] [NVPTX] Implement variadic functions using IR lowering (PR #96015)

2024-07-01 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/96015 >From 8bd49caa9fa93fd3d0812e0a4315f8ff4956056a Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 17 Jun 2024 15:32:31 -0500 Subject: [PATCH 1/2] [NVPTX] Implement variadic functions using IR lowering Summar

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-01 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 1/6] [libc]: add missing aarch64 headers --- libc/confi

[clang-tools-extra] 95e823e - [clang-tidy]: Use correct term for user-provided constructor (#96617)

2024-07-01 Thread via cfe-commits
Author: Anders Schau Knatten Date: 2024-07-01T21:08:04+02:00 New Revision: 95e823e88982127666eec76e79143f2857daa2ad URL: https://github.com/llvm/llvm-project/commit/95e823e88982127666eec76e79143f2857daa2ad DIFF: https://github.com/llvm/llvm-project/commit/95e823e88982127666eec76e79143f2857daa2a

[clang-tools-extra] [clang-tidy]: Use correct term for user-provided constructor (PR #96617)

2024-07-01 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/96617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy]: Use correct term for user-provided constructor (PR #96617)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: @knatten Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang-tools-extra] [clang-tidy] Clarify diagnostics of bugprone-sizeof-expression (PR #95550)

2024-07-01 Thread Piotr Zegar via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/PiotrZSL approved this pull request. Release notes entry would be welcome https://github.com/llvm/llvm-project/pull/95550 ___ cfe-commits mailing l

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-01 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 038bc1c18c786e14cc306401b00144265f8860f5 3865e451c5ac1e3122acaedecae9c277825bd5fc --

[clang-tools-extra] [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (PR #93827)

2024-07-01 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL updated https://github.com/llvm/llvm-project/pull/93827 >From abe862b84fd6915edb281a21e49f1be2aac3a626 Mon Sep 17 00:00:00 2001 From: Pascal Jungblut Date: Thu, 30 May 2024 14:28:50 +0200 Subject: [PATCH] Add option to ignore anonymous namespaces in avoid-non-const-

[clang-tools-extra] 7c50187 - [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (#93827)

2024-07-01 Thread via cfe-commits
Author: Pascal Jungblut Date: 2024-07-01T21:12:42+02:00 New Revision: 7c50187b7d7a977144372ceff306d21d71e22e26 URL: https://github.com/llvm/llvm-project/commit/7c50187b7d7a977144372ceff306d21d71e22e26 DIFF: https://github.com/llvm/llvm-project/commit/7c50187b7d7a977144372ceff306d21d71e22e26.dif

[clang-tools-extra] [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (PR #93827)

2024-07-01 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/93827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (PR #93827)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: @pascalj Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-01 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 1/6] [libc]: add missing aarch64 headers --- libc/confi

[clang] [clang][Sema] Improve `Sema::CheckCXXDefaultArguments` (PR #97338)

2024-07-01 Thread via cfe-commits
https://github.com/MagentaTreehouse created https://github.com/llvm/llvm-project/pull/97338 In the second loop in `Sema::CheckCXXDefaultArguments`, we don't need to re-examine the first parameter with a default argument. Dropped the first iteration of that loop. In addition, use the preferred

[clang] [clang][Sema] Improve `Sema::CheckCXXDefaultArguments` (PR #97338)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (MagentaTreehouse) Changes In the second loop in `Sema::CheckCXXDefaultArguments`, we don't need to re-examine the first parameter with a default argument. Dropped the first iteration of that loop. In addition, use the preferred ear

[clang] [clang][Sema] Improve `Sema::CheckCXXDefaultArguments` (PR #97338)

2024-07-01 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 658c03d5879fb78c8d6e0e43b97bc0e0027826d5 a5b2046e2ac1fc69d9dbb0e7b387ac0317b9d3f4 --

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-01 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/95904 >From 6d6619f8f7a37906ac45791487a4d63b51a48ad1 Mon Sep 17 00:00:00 2001 From: mahesh-attarde Date: Wed, 12 Jun 2024 06:15:51 -0700 Subject: [PATCH 1/9] added regcall strct by reg support --- clang/lib/Co

[clang] 668ee3f - [clang] Default to -fno-sized-deallocation for AIX (#97076)

2024-07-01 Thread via cfe-commits
Author: Xing Xue Date: 2024-07-01T15:37:52-04:00 New Revision: 668ee3f5478c1e1b549923667cf1b8704b1a0bd0 URL: https://github.com/llvm/llvm-project/commit/668ee3f5478c1e1b549923667cf1b8704b1a0bd0 DIFF: https://github.com/llvm/llvm-project/commit/668ee3f5478c1e1b549923667cf1b8704b1a0bd0.diff LOG:

[clang] [clang] Default to -fno-sized-deallocation for AIX (PR #97076)

2024-07-01 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/97076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-01 Thread via cfe-commits
@@ -0,0 +1,243 @@ +//=== X86FixupStackProtector.cpp Fix Stack Protector Call --===// +// +// 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: Apache

[clang] [llvm] [X86][CodeGen] security check cookie execute only when needed (PR #95904)

2024-07-01 Thread via cfe-commits
@@ -0,0 +1,243 @@ +//=== X86FixupStackProtector.cpp Fix Stack Protector Call --===// mahesh-attarde wrote: done. https://github.com/llvm/llvm-project/pull/95904 ___ cfe-commits mailing list cfe-commits@list

[clang] [Bounds-Safety] Add sized_by, counted_by_or_null & sized_by_or_null (PR #93231)

2024-07-01 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: @delcypher @rapidsna updated __sized_by(_or_null) to only allow types with unknown size if incomplete https://github.com/llvm/llvm-project/pull/93231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [clang][Sema] Improve `Sema::CheckCXXDefaultArguments` (PR #97338)

2024-07-01 Thread via cfe-commits
https://github.com/MagentaTreehouse updated https://github.com/llvm/llvm-project/pull/97338 >From 87c77b32ac2d13f738ec9b94b3c683e3fc4e3885 Mon Sep 17 00:00:00 2001 From: Mingyi Chen Date: Mon, 1 Jul 2024 15:27:11 -0400 Subject: [PATCH] [clang][Sema] Improve `Sema::CheckCXXDefaultArguments` In

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
trcrsired wrote: > > > I've read half the patch so far, but wanted to ask before continuing: > > > would it be possible (and simpler) to extend the /winsysroot support > > > somehow to also handle --sysroot? > > > (It would also be easier to review if the unrelated formatting changes > > > wer

[clang] [NFC] Add assertion to ensure that FiniteMathOnly toggles with (PR #97342)

2024-07-01 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/97342 the values of HonorINFs and HonorNANs. >From aea6519809340024226d587303e26c800c1a3756 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Mon, 1 Jul 2024 12:56:07 -0700 Subject: [PATCH] [NFC] Add assertion

[clang] [llvm] [APFloat] Add support for f8E4M3 IEEE 754 type (PR #97179)

2024-07-01 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97179 >From 42cfec8242442119df7f64e3bcfbdc4de66cc13d Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 21:09:33 + Subject: [PATCH] [APFloat] Add support for f8E4M3 IEEE 754 type --- cla

[clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)

2024-07-01 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97118 >From 42cfec8242442119df7f64e3bcfbdc4de66cc13d Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 21:09:33 + Subject: [PATCH 1/2] [APFloat] Add support for f8E4M3 IEEE 754 type ---

[clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)

2024-07-01 Thread Alexander Pivovarov via cfe-commits
apivovarov wrote: > Hey @apivovarov I think this needs a rebase on top #97179? Just rebased https://github.com/llvm/llvm-project/pull/97118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
trcrsired wrote: @zmodem Looks like clang-formatting makes you harder to review the code, I will try to use the upstream code and avoiding formatting. https://github.com/llvm/llvm-project/pull/96417 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [clang][OpenMP] Implement `isOpenMPCapturingDirective` (PR #97090)

2024-07-01 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/97090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [libunwind] [WIP] Enough to get `libc` to build `clang` on `aarch64` (PR #97231)

2024-07-01 Thread Izaak Schroeder via cfe-commits
https://github.com/izaakschroeder updated https://github.com/llvm/llvm-project/pull/97231 >From 31dc769c1866a4a0100dde0a3743c215a9a5f5eb Mon Sep 17 00:00:00 2001 From: Izaak Schroeder Date: Sun, 30 Jun 2024 13:33:16 -0700 Subject: [PATCH 1/8] [libc]: add missing aarch64 headers --- libc/confi

[clang] [clang] Disable C++14 sized deallocation by default for MinGW targets (PR #97232)

2024-07-01 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo updated https://github.com/llvm/llvm-project/pull/97232 From a70379a45f2701afbf05631b86cb14708f43243f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 11 Jun 2024 15:50:26 +0300 Subject: [PATCH] [clang] Disable C++14 sized deallocation by d

[clang] deda50f - [clang][OpenMP] Implement `isOpenMPCapturingDirective` (#97090)

2024-07-01 Thread via cfe-commits
Author: Krzysztof Parzyszek Date: 2024-07-01T15:46:04-05:00 New Revision: deda50fd7942014d9e51b2e12aaa5362b147befa URL: https://github.com/llvm/llvm-project/commit/deda50fd7942014d9e51b2e12aaa5362b147befa DIFF: https://github.com/llvm/llvm-project/commit/deda50fd7942014d9e51b2e12aaa5362b147befa

[clang] [clang][OpenMP] Implement `isOpenMPCapturingDirective` (PR #97090)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz closed https://github.com/llvm/llvm-project/pull/97090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/97110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Alexey Bataev via cfe-commits
@@ -747,105 +747,79 @@ void clang::getOpenMPCaptureRegions( assert(unsigned(DKind) < llvm::omp::Directive_enumSize); assert(isOpenMPCapturingDirective(DKind) && "Expecting capturing directive"); - switch (DKind) { - case OMPD_metadirective: -CaptureRegions.push_back(

[clang] [HLSL] Implement `export` keyword (PR #96823)

2024-07-01 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,56 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s -verify + +export void f1(); + +export void f1() {} + +namespace { // expected-note {{anonymous namespace begins here}} +export void f2(); // expected-error {{export declaration appear

[clang] 938cbdb - [HLSL] Implement `export` keyword (#96823)

2024-07-01 Thread via cfe-commits
Author: Helena Kotas Date: 2024-07-01T13:55:25-07:00 New Revision: 938cbdb4cf428bf08558c24d845aeac9174c7022 URL: https://github.com/llvm/llvm-project/commit/938cbdb4cf428bf08558c24d845aeac9174c7022 DIFF: https://github.com/llvm/llvm-project/commit/938cbdb4cf428bf08558c24d845aeac9174c7022.diff

[clang] [HLSL] Implement `export` keyword (PR #96823)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/96823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
@@ -747,105 +747,79 @@ void clang::getOpenMPCaptureRegions( assert(unsigned(DKind) < llvm::omp::Directive_enumSize); assert(isOpenMPCapturingDirective(DKind) && "Expecting capturing directive"); - switch (DKind) { - case OMPD_metadirective: -CaptureRegions.push_back(

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 0447f72cdda1e1f5235ff03585180eeca65b5991 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
@@ -747,105 +747,79 @@ void clang::getOpenMPCaptureRegions( assert(unsigned(DKind) < llvm::omp::Directive_enumSize); assert(isOpenMPCapturingDirective(DKind) && "Expecting capturing directive"); - switch (DKind) { - case OMPD_metadirective: -CaptureRegions.push_back(

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/97110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 45b360d - [clang] Disable C++14 sized deallocation by default for MinGW targets (#97232)

2024-07-01 Thread via cfe-commits
Author: Martin Storsjö Date: 2024-07-02T00:03:15+03:00 New Revision: 45b360d4a2c751dd5afa0c676e2badf46cd29f01 URL: https://github.com/llvm/llvm-project/commit/45b360d4a2c751dd5afa0c676e2badf46cd29f01 DIFF: https://github.com/llvm/llvm-project/commit/45b360d4a2c751dd5afa0c676e2badf46cd29f01.diff

[clang] [clang] Disable C++14 sized deallocation by default for MinGW targets (PR #97232)

2024-07-01 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/97232 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Alexey Bataev via cfe-commits
@@ -709,139 +709,125 @@ bool clang::isOpenMPExecutableDirective(OpenMPDirectiveKind DKind) { return Cat == Category::Executable || Cat == Category::Subsidiary; } -void clang::getOpenMPCaptureRegions( -SmallVectorImpl &CaptureRegions, -OpenMPDirectiveKind DKind) { -

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Alexey Bataev via cfe-commits
@@ -709,139 +709,125 @@ bool clang::isOpenMPExecutableDirective(OpenMPDirectiveKind DKind) { return Cat == Category::Executable || Cat == Category::Subsidiary; } -void clang::getOpenMPCaptureRegions( -SmallVectorImpl &CaptureRegions, -OpenMPDirectiveKind DKind) { -

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Alexey Bataev via cfe-commits
@@ -709,139 +709,125 @@ bool clang::isOpenMPExecutableDirective(OpenMPDirectiveKind DKind) { return Cat == Category::Executable || Cat == Category::Subsidiary; } -void clang::getOpenMPCaptureRegions( -SmallVectorImpl &CaptureRegions, -OpenMPDirectiveKind DKind) { -

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97110 >From 789ec614d285e3fe632aae6280f6c4cf01746cdf Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 28 Jun 2024 12:27:10 -0500 Subject: [PATCH 1/8] [clang][OpenMP] Implement `isOpenMPExecutableDirective

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From afb48cbab026cf30f6af59ab7d7b0a70de48d2e0 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97110 >From 789ec614d285e3fe632aae6280f6c4cf01746cdf Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 28 Jun 2024 12:27:10 -0500 Subject: [PATCH 1/9] [clang][OpenMP] Implement `isOpenMPExecutableDirective

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97110 >From 789ec614d285e3fe632aae6280f6c4cf01746cdf Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 28 Jun 2024 12:27:10 -0500 Subject: [PATCH 01/10] [clang][OpenMP] Implement `isOpenMPExecutableDirecti

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From d996bcf3989ffb17da34727d66d989e307545aec Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 3bfe79952d0c6b724468a2602066490b96260fe1 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 534932b87d473f3cbbfd6044397e759fedeb8668 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang] Disable C++14 sized deallocation by default for MinGW targets (PR #97232)

2024-07-01 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/1360 H

[clang] [RISCV] Handle empty structs/unions passing in C++ (PR #97315)

2024-07-01 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Please add a test for `struct X { int x[0]; };`. https://github.com/llvm/llvm-project/pull/97315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From d716838a4ee56db874ad5621f480dfa6bfb4c819 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From e3f96dafde1235de931b8aaf338792b6bdb98939 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97110 >From 789ec614d285e3fe632aae6280f6c4cf01746cdf Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 28 Jun 2024 12:27:10 -0500 Subject: [PATCH 01/11] [clang][OpenMP] Implement `isOpenMPExecutableDirecti

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
trcrsired wrote: @zmodem Can you review it again? I have removed the formatting part here. Although I disagree with -stdlib=msstl thing. Can you check any other part that is problematic first? https://github.com/llvm/llvm-project/pull/96417 ___ cfe-c

[clang] [clang][OpenMP] Rewrite `getOpenMPCaptureRegions` in terms of leafs (PR #97110)

2024-07-01 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/97110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 0bea3321bacda13a40cd61e4d9d7db32c90db5e3 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/97352 Implements availability diagnostic on `export` functions. For shader libraries the HLSL availability diagnostic should run on all entry points and export functions. Now that the `export` keyword is implemented,

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Implements availability diagnostic on `export` functions. For shader libraries the HLSL availability diagnostic should run on all entry points and export functions. Now that the `export` keyword is implemente

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/97352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 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 938cbdb4cf428bf08558c24d845aeac9174c7022 c8c6b5084bd1bb5f01d3e4edd2d8c932ff9ea0ad --

[clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)

2024-07-01 Thread Maksim Levental via cfe-commits
makslevental wrote: > Just rebased and changed the commit message to match new PR title - `[MLIR] > Add f8E4M3 IEEE 754 type` Ah I forgot you need actually change the base but just rebase to get the commits in the other PR to disappear (which is what I wanted for ease of review). No big deal

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/97352 >From b67ecd20cc2c11f4f99c2d90c95fdbd988659947 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 26 Jun 2024 12:31:39 -0700 Subject: [PATCH 1/5] [HLSL] Implement `export` keyword Fixes #92812 --- .../clang/

[clang] [llvm] [Hashing] Use a non-deterministic seed if LLVM_ENABLE_ABI_BREAKING_CHECKS (PR #96282)

2024-07-01 Thread Fangrui Song via cfe-commits
MaskRay wrote: > The premerge config seems broken because of this PR. > > [lab.llvm.org/buildbot](https://lab.llvm.org/buildbot/#/builders/153/builds/1490) (The two `lld/test/MachO` failures did not reliably reproduce. Fixed ~3 days ago.) ` BOLT::reader-stale-yaml-std.test` relied on particul

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread Xiang Li via cfe-commits
@@ -129,6 +129,55 @@ class MyClass } }; +// Exported function without body - not used +export void exportedFunctionUnused(float f); python3kgae wrote: Will there be an error if has export when declare like ``` export void export_mismatch(float f); ``` But w

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-07-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 014fc73adfccac9f0fc3c29b22c6b7105098182b Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [llvm] [PAC][Driver] Implement `-mbranch-protection=pauthabi` option (PR #97237)

2024-07-01 Thread Fangrui Song via cfe-commits
@@ -1484,6 +1484,39 @@ void AddUnalignedAccessWarning(ArgStringList &CmdArgs) { } } +static void handlePAuthABIOption(const ArgList &DriverArgs, + ArgStringList &CC1Args, const Driver &D) { + if (!DriverArgs.hasArg(options::OPT_fptrauth_intrins

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov created https://github.com/llvm/llvm-project/pull/97359 Enable nsan instrumentation pass >From 6b7f292ba467beb973099ca0e4994563ef5db381 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 22:20:29 + Subject: [PATCH] [Clang]

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Alexander Shaposhnikov (alexander-shaposhnikov) Changes Enable nsan instrumentation pass --- Full diff: https://github.com/llvm/llvm-project/pull/97359.diff 4 Files Affected: - (modified) clang/lib/Cod

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

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

[clang] ffca4ef - [clang] Remove a pointer union from the lifetime bound analysis (#97327)

2024-07-01 Thread via cfe-commits
Author: Gábor Horváth Date: 2024-07-01T23:56:59+01:00 New Revision: ffca4ef5b1a8eff6097454df4b0f212e2393e41e URL: https://github.com/llvm/llvm-project/commit/ffca4ef5b1a8eff6097454df4b0f212e2393e41e DIFF: https://github.com/llvm/llvm-project/commit/ffca4ef5b1a8eff6097454df4b0f212e2393e41e.diff

[clang] [HLSL] Run availability diagnostic on exported functions (PR #97352)

2024-07-01 Thread Helena Kotas via cfe-commits
@@ -129,6 +129,55 @@ class MyClass } }; +// Exported function without body - not used +export void exportedFunctionUnused(float f); hekota wrote: Good catch! This is currently not reporting an error and the redeclaration is not recognized as exported funct

[clang] [clang] Remove a pointer union from the lifetime bound analysis (PR #97327)

2024-07-01 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun closed https://github.com/llvm/llvm-project/pull/97327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [HLSL] Intangible AST type (PR #97362)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/97362 llvm/llvm-project#90631 >From a07ea8d187cbba5717b89f5c54138f12993b3ee8 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 6 Jun 2024 11:44:56 -0700 Subject: [PATCH 1/4] wip: Stub out adding an HLSLResource

[clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)

2024-07-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/97362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cbd3f25 - [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (#97113)

2024-07-01 Thread via cfe-commits
Author: Chengjunp Date: 2024-07-01T16:30:33-07:00 New Revision: cbd3f252e3ff2115497c771590f69f1c989b402e URL: https://github.com/llvm/llvm-project/commit/cbd3f252e3ff2115497c771590f69f1c989b402e DIFF: https://github.com/llvm/llvm-project/commit/cbd3f252e3ff2115497c771590f69f1c989b402e.diff LOG

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-07-01 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean closed https://github.com/llvm/llvm-project/pull/97113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-07-01 Thread via cfe-commits
github-actions[bot] wrote: @Chengjunp Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a buil

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-01 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov created https://github.com/llvm/llvm-project/pull/97364 Link nsan runtime. >From ac52e1dc1ceabdefb6230173c42181f2c098dc58 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 23:29:57 + Subject: [PATCH] [Clang][Driver] Link n

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Alexander Shaposhnikov (alexander-shaposhnikov) Changes Link nsan runtime. --- Full diff: https://github.com/llvm/llvm-project/pull/97364.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/CommonArgs.cpp (+2) - (mod

[clang] [Clang][Driver] Link nsan runtime (PR #97364)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alexander Shaposhnikov (alexander-shaposhnikov) Changes Link nsan runtime. --- Full diff: https://github.com/llvm/llvm-project/pull/97364.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/CommonArgs.cpp (+2) - (modified)

[clang] [clang][Sema] Add support for OpenBSD's syslog format attribute (PR #97366)

2024-07-01 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/97366 None >From 5608a96ea25273e7907e5550d9d37c456e65b679 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 1 Jul 2024 19:41:57 -0400 Subject: [PATCH] [clang][Sema] Add support for OpenBSD's syslog format attribute

[clang] [clang][Sema] Add support for OpenBSD's syslog format attribute (PR #97366)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/97366.diff 4 Files Affected: - (modified) clang/include/clang/Sema/Sema.h (+1) - (modified) clang/lib/Sema/SemaChecking.cpp (+3-2) - (modified) clang

<    1   2   3   4   5   >