[mlir] [clang] [llvm] [llvm] Improve implementation of StringRef::find_last_of and cie (PR #71865)

2023-11-13 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71865 >From 65e931aa7bde6fffe3dfeee1a2147c8fcd73f0af Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Mon, 13 Nov 2023 08:59:29 +0100 Subject: [PATCH 1/2] Replace usage of StringRef::find_last_of with a

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/70646 >From 7882ea746ecf8721356fc6afbd7798b8db4e185d Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Mon, 30 Oct 2023 14:38:50 +0700 Subject: [PATCH 1/2] [clang] Do not clear FP pragma stack when instantiating func

[clang-tools-extra] [clangd] Don't show inlay hints for __builtin_dump_struct (PR #71366)

2023-11-13 Thread Younan Zhang via cfe-commits
zyn0217 wrote: > Is it not possible to tell based on the `CallExpr` only (rather than checking > an ancestor of it during traversal of the tree) that "this `CallExpr` is not > explicitly written in the source"? I'm not quite sure - Looking into the construction process for a `__builtin_dump_s

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-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 6d30bc00858941043ea7d45938192adfd1020922 44b096810d88da1d1331be12802c68cdf8e1785b --

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/70646 >From 7882ea746ecf8721356fc6afbd7798b8db4e185d Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Mon, 30 Oct 2023 14:38:50 +0700 Subject: [PATCH 1/3] [clang] Do not clear FP pragma stack when instantiating func

[clang] [clang] -rdynamic option (PR #72089)

2023-11-13 Thread via cfe-commits
https://github.com/ls-Mou updated https://github.com/llvm/llvm-project/pull/72089 >From 1c43cf22a623e89f9f3d486818a56132fedf7b24 Mon Sep 17 00:00:00 2001 From: ls-Mou Date: Mon, 13 Nov 2023 15:01:16 +0800 Subject: [PATCH] [clang] -rdynamic option -rdynamic option should not use with -static -

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-13 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/70817 >From 7fbc229ee7316d826517480ee7896c91dad941f3 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 31 Oct 2023 17:09:04 +0200 Subject: [PATCH 01/11] Add \/../include/c++/v1 to include path On macOS, when clan

[mlir] [llvm] [flang] [clang-tools-extra] [compiler-rt] [clang] [mlir][memref] Detect negative `offset` or `size` for `subview` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer updated https://github.com/llvm/llvm-project/pull/72059 >From 8f90ae9113229faf5ab4b859e5c70f23853f4db8 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sat, 11 Nov 2023 20:43:31 +0100 Subject: [PATCH 1/8] [mlir][memref] Verify subview offsets and sizes --- mlir/l

[mlir] [llvm] [clang-tools-extra] [compiler-rt] [clang] [mlir][tensor] Document `dest` operand (PR #71726)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer updated https://github.com/llvm/llvm-project/pull/71726 >From 3f34a440abef46c5c6280fdcdf0c29e05dda4565 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Wed, 8 Nov 2023 20:10:41 +0100 Subject: [PATCH 1/4] [mlir][tensor] Document `dest` operand --- .../mlir/Dialect

[mlir] [llvm] [clang] [llvm] Improve implementation of StringRef::find_last_of and cie (PR #71865)

2023-11-13 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71865 >From 65e931aa7bde6fffe3dfeee1a2147c8fcd73f0af Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Mon, 13 Nov 2023 08:59:29 +0100 Subject: [PATCH 1/2] Replace usage of StringRef::find_last_of with a

[clang] clang: Add pragma clang fp reciprocal (PR #68267)

2023-11-13 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/68267 >From f09d8efdcbb5ffb9cd39d686205a120b6a82a01b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 31 Aug 2023 17:33:35 -0400 Subject: [PATCH] clang: Add pragma clang fp reciprocal Just follow along with the

[clang] [Clang] Add __datasizeof (PR #67805)

2023-11-13 Thread via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/67805 >From 71742243aeab0e51238eaa6df9487a0c37e97087 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 29 Sep 2023 15:45:56 +0200 Subject: [PATCH] [Clang] Add __datasizeof --- clang/docs/LanguageExtensions

[clang] Ignore template parameter visibility (PR #72092)

2023-11-13 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/72092 When computing the visibility of a template specialization/instantiation, GCC considers template arguments and ignores type template parameters. We currently consider non-type template parameters, which adds a lo

[clang] Ignore template parameter visibility (PR #72092)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes When computing the visibility of a template specialization/instantiation, GCC considers template arguments and ignores type template parameters. We currently consider non-type template parameters, which adds

[clang] Ignore template parameter visibility (PR #72092)

2023-11-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 e734bc53de8173a1b54493f3e0c8f70575341a9e 401af7b4eabe92c8264c722a3f1181875da18438 --

[PATCH] D154774: [Sema] Respect instantiated-from template's VisibilityAttr for two implicit/explicit instantiation cases

2023-11-13 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/lib/AST/Decl.cpp:380 +->getTemplatedDecl() +->hasAttr(); } rjmccall wrote: > Okay, this change seems wrong. A visibi

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/70646 >From e1623db8f86a8584d17729f000a455f5672adad4 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Mon, 30 Oct 2023 14:38:50 +0700 Subject: [PATCH 1/3] [clang] Do not clear FP pragma stack when instantiating func

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/71945 >From 89a2d60fc012742a74a008fb77213bcd47734503 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 10 Nov 2023 15:10:44 +0100 Subject: [PATCH 1/3] [coroutines] Introduce [[clang::coro_return_type]] and [[clang

[clang] [clang] Enable --gcc-install-dir for RISCV baremetal toolchains (PR #71803)

2023-11-13 Thread via cfe-commits
mihailo-stojanovic wrote: Perhaps @asb could also weigh in as the initial contributor of RISCVToolchain. https://github.com/llvm/llvm-project/pull/71803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/71945 >From 89a2d60fc012742a74a008fb77213bcd47734503 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 10 Nov 2023 15:10:44 +0100 Subject: [PATCH 1/4] [coroutines] Introduce [[clang::coro_return_type]] and [[clang

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-13 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/70817 >From 7fbc229ee7316d826517480ee7896c91dad941f3 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 31 Oct 2023 17:09:04 +0200 Subject: [PATCH 01/12] Add \/../include/c++/v1 to include path On macOS, when clan

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-11-13 Thread via cfe-commits
@@ -2,10 +2,15 @@ // REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s +/

[clang] [llvm] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-11-13 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Ping? https://github.com/llvm/llvm-project/pull/68993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2023-11-13 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @sam-mccall ping~ https://github.com/llvm/llvm-project/pull/66462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-11-13 Thread via cfe-commits
@@ -1992,3 +1986,12 @@ let TargetGuard = "sme2" in { def SVADD_SINGLE_X2 : SInst<"svadd[_single_{d}_x2]", "22d", "cUcsUsiUilUl", MergeNone, "aarch64_sve_add_single_x2", [IsStreaming], []>; def SVADD_SINGLE_X4 : SInst<"svadd[_single_{d}_x4]", "44d", "cUcsUsiUilUl", MergeNon

[clang] [llvm] [AArch64] Stack probing for function prologues (PR #66524)

2023-11-13 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: In the last update: - do not set the `FrameSetup` flag for dynamic allocations - avoid back to back probing loops for allocation of SVE locals and non-SVE locals - fold the allocations together and emit a single loop (or no loop) https://github.com/llvm/llvm-project/pul

[clang-tools-extra] [clangd] Let DefineOutline tweak create a definition from scratch (PR #71950)

2023-11-13 Thread via cfe-commits
ckandeler wrote: > This implements > [clangd/clangd#445](https://github.com/clangd/clangd/issues/445) Aha, so this implementation does not work, because it relies on the AST only for figuring out whether an implementation exists. And querying the index is considered too expensive during the p

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-13 Thread via cfe-commits
https://github.com/tomekpaszek updated https://github.com/llvm/llvm-project/pull/70338 >From b5ba0b3fde2c6662e19dfdf96a787621ec767460 Mon Sep 17 00:00:00 2001 From: Tomek Paszek Date: Sat, 11 Nov 2023 19:38:00 +0100 Subject: [PATCH 1/4] Added an option to ignore macro definitions. --- clang/i

[clang] [Clang][SME2] Add outer product and accumulate/subtract builtins (PR #71176)

2023-11-13 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm updated https://github.com/llvm/llvm-project/pull/71176 >From 7ff0f13bdf5f81681145d63843c66a27e77ecc3b Mon Sep 17 00:00:00 2001 From: Kerry McLaughlin Date: Thu, 2 Nov 2023 17:02:32 + Subject: [PATCH] [Clang][SME2] Add outer product and accumulate/subtract

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tomek (tomekpaszek) Changes Sometimes macro definitions contain a layout we don't want to change in any context. This PR adds a new style option `IgnorePPDefinitions` that prevents clang-format from touching PP directives. This PR addres

[clang] 4cc791b - [Clang] Add __datasizeof (#67805)

2023-11-13 Thread via cfe-commits
Author: philnik777 Date: 2023-11-13T11:00:07+01:00 New Revision: 4cc791bc98e075879f8c379f17e0b0369d57a40d URL: https://github.com/llvm/llvm-project/commit/4cc791bc98e075879f8c379f17e0b0369d57a40d DIFF: https://github.com/llvm/llvm-project/commit/4cc791bc98e075879f8c379f17e0b0369d57a40d.diff LO

[clang] [Clang] Add __datasizeof (PR #67805)

2023-11-13 Thread via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/67805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a207e63 - [flang] add fveclib flag (#71734)

2023-11-13 Thread via cfe-commits
Author: Tom Eccles Date: 2023-11-13T10:04:50Z New Revision: a207e6307a589d482fd11c1aac17507c6eabc802 URL: https://github.com/llvm/llvm-project/commit/a207e6307a589d482fd11c1aac17507c6eabc802 DIFF: https://github.com/llvm/llvm-project/commit/a207e6307a589d482fd11c1aac17507c6eabc802.diff LOG: [f

[flang] [clang] [llvm] [flang] add fveclib flag (PR #71734)

2023-11-13 Thread Tom Eccles via cfe-commits
https://github.com/tblah closed https://github.com/llvm/llvm-project/pull/71734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-13 Thread via cfe-commits
https://github.com/tomekpaszek updated https://github.com/llvm/llvm-project/pull/70338 >From b5ba0b3fde2c6662e19dfdf96a787621ec767460 Mon Sep 17 00:00:00 2001 From: Tomek Paszek Date: Sat, 11 Nov 2023 19:38:00 +0100 Subject: [PATCH 1/5] Added an option to ignore macro definitions. --- clang/i

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
@@ -710,9 +710,11 @@ class Sema final { return result; } + // Saves the current floating-point pragma stack and clear it in this Sema. class FpPragmaStackSaveRAII { public: -FpPragmaStackSaveRAII(Sema &S) : S(S), SavedStack(S.FpPragmaStack) {} +FpPragmaSta

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/71945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a699ab5 - [clang-format][NFC] Remove redundant Block/Line Comment in is()

2023-11-13 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-11-13T02:14:37-08:00 New Revision: a699ab5adbefc4fa0d63edac8a137b0073576018 URL: https://github.com/llvm/llvm-project/commit/a699ab5adbefc4fa0d63edac8a137b0073576018 DIFF: https://github.com/llvm/llvm-project/commit/a699ab5adbefc4fa0d63edac8a137b0073576018.diff LOG:

[clang] [llvm] [mlir] [llvm] Improve implementation of StringRef::find_last_of and cie (PR #71865)

2023-11-13 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71865 >From 65e931aa7bde6fffe3dfeee1a2147c8fcd73f0af Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Mon, 13 Nov 2023 08:59:29 +0100 Subject: [PATCH 1/2] Replace usage of StringRef::find_last_of with a

[clang] f6f625f - [clang] Do not clear FP pragma stack when instantiating functions (#70646)

2023-11-13 Thread via cfe-commits
Author: Serge Pavlov Date: 2023-11-13T17:24:46+07:00 New Revision: f6f625f4c6c3cbeb8cf6b889cdafc848dd4cb117 URL: https://github.com/llvm/llvm-project/commit/f6f625f4c6c3cbeb8cf6b889cdafc848dd4cb117 DIFF: https://github.com/llvm/llvm-project/commit/f6f625f4c6c3cbeb8cf6b889cdafc848dd4cb117.diff

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff closed https://github.com/llvm/llvm-project/pull/70646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME2] Add outer product and accumulate/subtract builtins (PR #71176)

2023-11-13 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm updated https://github.com/llvm/llvm-project/pull/71176 >From 7ff0f13bdf5f81681145d63843c66a27e77ecc3b Mon Sep 17 00:00:00 2001 From: Kerry McLaughlin Date: Thu, 2 Nov 2023 17:02:32 + Subject: [PATCH 1/2] [Clang][SME2] Add outer product and accumulate/subt

[clang] [clang-format] Fix a bug in aligning comments in vector of structs (PR #72099)

2023-11-13 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/72099 Fixed #71825. >From eab0253833b7a5910cec573cabf86bb6a1abf6ef Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 13 Nov 2023 02:37:30 -0800 Subject: [PATCH] [clang-format] Fix a bug in aligning comments in vector

[clang] [clang-format] Fix a bug in aligning comments in vector of structs (PR #72099)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #71825. --- Full diff: https://github.com/llvm/llvm-project/pull/72099.diff 2 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+1-1) - (modified) clang/unittests/Format/FormatT

[flang] [clang] [clang-tools-extra] [mlir] [compiler-rt] [llvm] [mlir][memref] Detect negative `offset` or `size` for `subview` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer updated https://github.com/llvm/llvm-project/pull/72059 >From 8f90ae9113229faf5ab4b859e5c70f23853f4db8 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sat, 11 Nov 2023 20:43:31 +0100 Subject: [PATCH 1/9] [mlir][memref] Verify subview offsets and sizes --- mlir/l

[clang] [clang-tools-extra] [flang] [llvm] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)

2023-11-13 Thread Yi Wu via cfe-commits
https://github.com/PAX-12-WU updated https://github.com/llvm/llvm-project/pull/70917 >From 0e98aa7ca15b05b91813eaeeb6ae1305e5f5384d Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 6 Nov 2023 19:49:13 + Subject: [PATCH 1/4] GETLOG runtime and extension implementation: get login username Ge

[flang] [clang] [clang-tools-extra] [mlir] [compiler-rt] [llvm] [mlir][memref] Detect negative `offset` or `size` for `subview` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
@@ -2621,6 +2621,15 @@ Type SubViewOp::inferResultType(MemRefType sourceMemRefType, dispatchIndexOpFoldResults(offsets, dynamicOffsets, staticOffsets); dispatchIndexOpFoldResults(sizes, dynamicSizes, staticSizes); dispatchIndexOpFoldResults(strides, dynamicStrides, stati

[llvm] [flang] [clang] [clang-tools-extra] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2023-11-13 Thread Yi Wu via cfe-commits
https://github.com/PAX-12-WU updated https://github.com/llvm/llvm-project/pull/71222 >From e0d99fb5baa4231ab351f7fd5abf0a1ffe589547 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 6 Nov 2023 19:55:06 + Subject: [PATCH 1/4] FDATE extension implementation: get date and time in ctime format

[clang] [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (PR #72015)

2023-11-13 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/72015 >From 3667d7646db255890d7e29209581e5b12909bd90 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 10 Nov 2023 20:51:12 -0500 Subject: [PATCH] [Clang] Differentiate between partial/explicit speciali

[compiler-rt] [llvm] [mlir] [clang] [flang] [clang-tools-extra] [mlir][memref] Detect negative `offset` or `size` for `subview` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
@@ -2842,8 +2851,18 @@ static LogicalResult produceSubViewErrorMsg(SliceVerificationResult result, llvm_unreachable("unexpected subview verification result"); } -/// Verifier for SubViewOp. LogicalResult SubViewOp::verify() { + for (int64_t offset : getStaticOffsets()) {

[compiler-rt] [llvm] [mlir] [clang] [flang] [clang-tools-extra] [mlir][memref] Detect negative `offset` or `size` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer edited https://github.com/llvm/llvm-project/pull/72059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [llvm] [mlir] [clang] [flang] [clang-tools-extra] [mlir] Verify non-negative `offset` or `size` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer edited https://github.com/llvm/llvm-project/pull/72059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [clang-tools-extra] [mlir] [compiler-rt] [llvm] [mlir] Verify non-negative `offset` or `size` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer edited https://github.com/llvm/llvm-project/pull/72059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [clang-tools-extra] [mlir] [compiler-rt] [llvm] [mlir] Verify non-negative `offset` and `size` (PR #72059)

2023-11-13 Thread Rik Huijzer via cfe-commits
https://github.com/rikhuijzer edited https://github.com/llvm/llvm-project/pull/72059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [clang-tools-extra] [mlir] [compiler-rt] [llvm] [mlir] Verify non-negative `offset` and `size` (PR #72059)

2023-11-13 Thread Mehdi Amini via cfe-commits
joker-eph wrote: > > This looks like a good fix for the verifier, but we should also fix the > > canonicalization to **not** create invalid IR! > > Then I think that I'll implement the suggestions from Matthias in this PR and > leave the canonicalization for a future PR. For that future PR, co

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/71945 >From 89a2d60fc012742a74a008fb77213bcd47734503 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 10 Nov 2023 15:10:44 +0100 Subject: [PATCH 1/5] [coroutines] Introduce [[clang::coro_return_type]] and [[clang

[clang] 1b36a9f - [clang] Use clang_cc1 in test (NFC)

2023-11-13 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2023-11-13T12:37:14+01:00 New Revision: 1b36a9f0b71abbf02b9bccc3c2d4fd668a68d59d URL: https://github.com/llvm/llvm-project/commit/1b36a9f0b71abbf02b9bccc3c2d4fd668a68d59d DIFF: https://github.com/llvm/llvm-project/commit/1b36a9f0b71abbf02b9bccc3c2d4fd668a68d59d.diff

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/71945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10] Permit AVX512 options/features used together with AVX10 (PR #71318)

2023-11-13 Thread via cfe-commits
ronlieb wrote: smallest example and used latest upstream llvm build from this morning #include void log_d_scalar(double a_input) { __m128d va, ve; ve = _mm_getexp_sd(va, va); } clang++ -march=haswell t.cpp t.cpp:8:10: error: always_inline function '_mm_getexp_sd' requires target

[PATCH] D123235: [OpenMP] atomic compare fail : Parser & AST support

2023-11-13 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: clang/include/clang/AST/OpenMPClause.h:2554 + break; +case llvm::omp::OMPC_adjust_args: +case llvm::omp::OMPC_affinity: I think all these cases are unexpected and must be terminated with llvm_unreachable

[clang] [X86][AVX10] Permit AVX512 options/features used together with AVX10 (PR #71318)

2023-11-13 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > Hi Phoebe, starting seeing this error on rather old codes after this patch > landed . is there a particular flag you recommend i should compile with to > get previous behavior ? > > error: always_inline function '_mm_setzero_pd' requires target feature > 'evex512', but would

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-13 Thread via cfe-commits
https://github.com/DonatNagyE created https://github.com/llvm/llvm-project/pull/72107 ...instead of the currently used, more abstract Location callback. The main advantage of this change is that after it the checker will check `array[index].field` while the previous implementation ignored this

[clang] [OpenMP][Clang] Force use of `num_teams` and `thread_limit` for bare kernel (PR #68373)

2023-11-13 Thread Alexey Bataev via cfe-commits
@@ -14633,6 +14633,26 @@ StmtResult Sema::ActOnOpenMPTargetTeamsDirective(ArrayRef Clauses, } setFunctionHasBranchProtectedScope(); + bool HasBareClause = false; + bool HasThreadLimitClause = false; + bool HasNumTeamsClause = false; + OMPClause *BareClause = nullptr;

[clang] [OpenMP][Clang] Force use of `num_teams` and `thread_limit` for bare kernel (PR #68373)

2023-11-13 Thread Alexey Bataev via cfe-commits
@@ -14633,6 +14633,26 @@ StmtResult Sema::ActOnOpenMPTargetTeamsDirective(ArrayRef Clauses, } setFunctionHasBranchProtectedScope(); + bool HasBareClause = false; + bool HasThreadLimitClause = false; + bool HasNumTeamsClause = false; + OMPClause *BareClause = nullptr;

[llvm] [clang-tools-extra] [clang] [SimplifyCFG] Prevent merging cbranch to cbranch if the branch probability from the first to second is too low. (PR #69375)

2023-11-13 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin updated https://github.com/llvm/llvm-project/pull/69375 >From fc1457d4856b3f4ae0a080a451669e344b0b1354 Mon Sep 17 00:00:00 2001 From: Valery Pykhtin Date: Tue, 17 Oct 2023 20:50:48 +0200 Subject: [PATCH 1/4] [SimplifyCFG] Add test on prevent merging cbranch to cbran

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (DonatNagyE) Changes ...instead of the currently used, more abstract Location callback. The main advantage of this change is that after it the checker will check `array[index].field` while the previous implementatio

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (DonatNagyE) Changes ...instead of the currently used, more abstract Location callback. The main advantage of this change is that after it the checker will check `array[index].field` while the previous implementation ignored this sit

[clang] [analyzer] Switch to PostStmt callbacks in ArrayBoundV2 (PR #72107)

2023-11-13 Thread via cfe-commits
https://github.com/DonatNagyE edited https://github.com/llvm/llvm-project/pull/72107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Let DefineOutline tweak create a definition from scratch (PR #71950)

2023-11-13 Thread via cfe-commits
https://github.com/ckandeler updated https://github.com/llvm/llvm-project/pull/71950 >From 2d7d6c9b0939bc4b300c53d2d49c20b549a561dd Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 10 Nov 2023 16:01:18 +0100 Subject: [PATCH] [clangd] Let DefineOutline tweak create a definition from

[clang-tools-extra] [clangd] Let DefineOutline tweak create a definition from scratch (PR #71950)

2023-11-13 Thread via cfe-commits
ckandeler wrote: The new patch set properly considers "external" definitions (using the frowned-upon index lookup). https://github.com/llvm/llvm-project/pull/71950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[PATCH] D144006: [DebugMetadata][DwarfDebug] Support function-local types in lexical block scopes (4/7)

2023-11-13 Thread Jeremy Morse via Phabricator via cfe-commits
jmorse added subscribers: StephenTozer, jmorse. jmorse added a comment. Hi, Just to note that we've been seeing LTO crashes as a result of rG3b449bd46a11a (now reverted on trunk), which @StephenTozer has kindly reduced down t

[clang] [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (PR #72015)

2023-11-13 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian edited https://github.com/llvm/llvm-project/pull/72015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add information about lld presence in RISCVToolchain. (PR #68904)

2023-11-13 Thread Bushev Dmitry via cfe-commits
https://github.com/dybv-sc updated https://github.com/llvm/llvm-project/pull/68904 >From 3c33c4b902a41a414769be7079e8847e41fb5912 Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Mon, 9 Oct 2023 19:49:09 +0300 Subject: [PATCH] [clang] Add information about lld presence in RISCVToolchain. ---

[clang] [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (PR #72015)

2023-11-13 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian edited https://github.com/llvm/llvm-project/pull/72015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (PR #72015)

2023-11-13 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: Ping @erichkeane https://github.com/llvm/llvm-project/pull/72015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 93ae263 - [clang] Run test on x86 only

2023-11-13 Thread Serge Pavlov via cfe-commits
Author: Serge Pavlov Date: 2023-11-13T19:20:34+07:00 New Revision: 93ae26331592f41bf2b1d10b048743d80c468385 URL: https://github.com/llvm/llvm-project/commit/93ae26331592f41bf2b1d10b048743d80c468385 DIFF: https://github.com/llvm/llvm-project/commit/93ae26331592f41bf2b1d10b048743d80c468385.diff

[clang] b025864 - [AMDGPU] - Add clang builtins for tied WMMA intrinsics (#70669)

2023-11-13 Thread via cfe-commits
Author: Jessica Del Date: 2023-11-13T13:23:26+01:00 New Revision: b025864af8897bcc5791d93f5004cc1acbb397de URL: https://github.com/llvm/llvm-project/commit/b025864af8897bcc5791d93f5004cc1acbb397de DIFF: https://github.com/llvm/llvm-project/commit/b025864af8897bcc5791d93f5004cc1acbb397de.diff L

[clang] [AMDGPU] - Add clang builtins for tied WMMA intrinsics (PR #70669)

2023-11-13 Thread Jessica Del via cfe-commits
https://github.com/OutOfCache closed https://github.com/llvm/llvm-project/pull/70669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not clear FP pragma stack when instantiating functions (PR #70646)

2023-11-13 Thread Serge Pavlov via cfe-commits
spavloff wrote: Added commit: https://github.com/llvm/llvm-project/commit/93ae26331592f41bf2b1d10b048743d80c468385 to run the test on x86 only. https://github.com/llvm/llvm-project/pull/70646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

Re: [clang] 8569465 - Add a Clang NATVIS visualizer for StringLiteral

2023-11-13 Thread Aaron Ballman via cfe-commits
On Sun, Nov 12, 2023 at 11:42 PM David Blaikie wrote: > > Any chance this could/should reference the length by name, rather than by > casts and pointer math? (so it's resilient to at least some changes to > StringLiteral/StringRef?) Or is this the preferred way to write Natvis > visualizers, so

[compiler-rt] [clang] [llvm] [mlir] [clang-tools-extra] [mlir][tensor] Document `dest` operand (PR #71726)

2023-11-13 Thread Mehdi Amini via cfe-commits
@@ -18,31 +18,34 @@ def Tensor_Dialect : Dialect { let description = [{ The `tensor` dialect is intended to hold core tensor creation and manipulation ops, which are not strongly associated with any particular -other dialect or domain abstraction. The primary smok

[compiler-rt] [clang] [llvm] [mlir] [clang-tools-extra] [mlir][tensor] Document `dest` operand (PR #71726)

2023-11-13 Thread Mehdi Amini via cfe-commits
https://github.com/joker-eph approved this pull request. LG (with one edit) https://github.com/llvm/llvm-project/pull/71726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -11591,6 +11591,10 @@ def err_conflicting_aligned_options : Error < def err_coro_invalid_addr_of_label : Error< "the GNU address of label extension is not allowed in coroutines." >; +def err_coroutine_return_type : Error< + "function returns a coroutine return type %0 but

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -0,0 +1,99 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -std=c++20 -fsyntax-only -verify -Wall -Wextra +#include "Inputs/std-coroutine.h" + +using std::suspend_always; +using std::suspend_never; + + +template struct [[clang::coro_return_type]] Gen { + struct promis

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -11183,6 +11183,7 @@ class Sema final { bool buildCoroutineParameterMoves(SourceLocation Loc); VarDecl *buildCoroutinePromise(SourceLocation Loc); void CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body); + void CheckCoroutineWrapper(FunctionDecl *FD);

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -15811,6 +15813,32 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) { << FixItHint::CreateInsertion(P.first, "self->"); } +// Return whether FD is `promise_type::get_return_object`. +bool isGetReturnObject(FunctionDecl *FD) { + if (!FD->getDeclName().isIden

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -11591,6 +11591,10 @@ def err_conflicting_aligned_options : Error < def err_coro_invalid_addr_of_label : Error< "the GNU address of label extension is not allowed in coroutines." >; +def err_coroutine_return_type : Error< ilya-biryukov wrote: Are there re

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -15811,6 +15813,32 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) { << FixItHint::CreateInsertion(P.first, "self->"); } +// Return whether FD is `promise_type::get_return_object`. +bool isGetReturnObject(FunctionDecl *FD) { + if (!FD->getDeclName().isIden

[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)

2023-11-13 Thread Ilya Biryukov via cfe-commits
@@ -7482,3 +7482,51 @@ generation of the other destruction cases, optimizing the above `foo.destroy` to }]; } + + +def CoroReturnTypeAndWrapperDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``coro_return_type`` attribute should be marked on a C

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-13 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/70817 >From 7fbc229ee7316d826517480ee7896c91dad941f3 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 31 Oct 2023 17:09:04 +0200 Subject: [PATCH 01/13] Add \/../include/c++/v1 to include path On macOS, when clan

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -755,6 +755,75 @@ security Security related checkers. +.. _security-cert-env-InvalidPtr: + +security.cert.env.InvalidPtr +"" + +Corresponds to SEI CERT Rules ENV31-C and ENV34-C. + +ENV31-C: +Rule is about the possible problem with `main` fu

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -1,12 +1,12 @@ // RUN: %clang_analyze_cc1 \ -// RUN: -analyzer-checker=alpha.security.cert.env.InvalidPtr \ -// RUN: -analyzer-config alpha.security.cert.env.InvalidPtr:InvalidatingGetEnv=false \ +// RUN: -analyzer-checker=security.cert.env.InvalidPtr \ wh

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -1,18 +1,18 @@ // Default options. // RUN: %clang_analyze_cc1 \ -// RUN: -analyzer-checker=core,alpha.security.cert.env.InvalidPtr \ +// RUN: -analyzer-checker=core,security.cert.env.InvalidPtr \ whisperity wrote: `\

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -1009,11 +1002,20 @@ let ParentPackage = ENV in { "standard), which can lead to false positives depending on " "implementation.", "false", - InAlpha>, + Released>, ]>, Documentation

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -1009,11 +1002,20 @@ let ParentPackage = ENV in { "standard), which can lead to false positives depending on " "implementation.", "false", - InAlpha>, + Released>, ]>, Documentation

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-13 Thread via cfe-commits
@@ -1,25 +1,25 @@ // RUN: %clang_analyze_cc1 -analyzer-output=text -Wno-unused %s \ -// RUN: -analyzer-checker=core,alpha.security.cert.env.InvalidPtr \ +// RUN: -analyzer-checker=core,security.cert.env.InvalidPtr \ whisperity wrote: Style nit: format `\

[clang] [clang][analyzer] Move `security.cert.env.InvalidPtr` out of `alpha` (PR #71912)

2023-11-13 Thread via cfe-commits
https://github.com/whisperity edited https://github.com/llvm/llvm-project/pull/71912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Move `security.cert.env.InvalidPtr` out of `alpha` (PR #71912)

2023-11-13 Thread via cfe-commits
whisperity wrote: Why is the `clang:dataflow` label on this patch? I don't see where dataflow is used. Or is it used plain internally inside the otherwise unmodified checker? https://github.com/llvm/llvm-project/pull/71912 ___ cfe-commits mailing list

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-11-13 Thread via cfe-commits
@@ -3369,6 +3369,23 @@ static void handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) { } } +static void handleCodeModelAttr(Sema &S, Decl *D, const ParsedAttr &AL) { + StringRef Model; + SourceLocation LiteralLoc; + // Check that it is a string. + if (!S.checkSt

[clang] [llvm] Recommit changes to global checks (PR #71171)

2023-11-13 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: >I'd run ./llvm/utils/update_any_test_checks.py once and see if the tests pass >afterwards. Then do it again to ensure the nasty ordering and duplication issues are gone for good. All tests that fail after running update_any_test_checks.py also fail when running it without thi

  1   2   3   4   5   >