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

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: hev (heiher) Changes This adds a per-global code model attribute, which can override the target's code model to access global variables. Link: https://discourse.llvm.org/t/how-to-best-implement-code-model-overriding-for-certain-values/71

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

2023-11-12 Thread via cfe-commits
https://github.com/heiher converted_to_draft https://github.com/llvm/llvm-project/pull/72078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-12 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 18415c8365047841c4671798e0129ca9bbd03c40 29c89161a55c2d7355a0d0b544044ea72348c086 --

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

2023-11-12 Thread via cfe-commits
heiher wrote: Part 1: #72077 Part 3: #72079 https://github.com/llvm/llvm-project/pull/72078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-12 Thread via cfe-commits
https://github.com/heiher updated https://github.com/llvm/llvm-project/pull/72078 >From 323a8f851acb085a9464b3edca1206481f2aee23 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Fri, 10 Nov 2023 21:07:48 -0600 Subject: [PATCH] [clang] Add per-global code model attribute This adds a per-global cod

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

2023-11-12 Thread via cfe-commits
heiher wrote: cc @xen0n @xry111 https://github.com/llvm/llvm-project/pull/72078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-tools-extra] [CodeGen][DebugInfo] Add missing debug info for jump table BB (PR #71021)

2023-11-12 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/71021 >From 1be56cf6541d34e4e2ead3f4b3d3ce482d69f68f Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 2 Nov 2023 12:14:15 +0800 Subject: [PATCH 1/4] [DebugInfo] Add debug info test for jump table Test whether ju

[clang] 868007a - [clang][Sema] Avoid non-empty unexpanded pack assertion for FunctionParmPackExpr (#69224)

2023-11-12 Thread via cfe-commits
Author: Younan Zhang Date: 2023-11-13T12:44:17+08:00 New Revision: 868007a03c74f7c718e0e74c8bdac677eb3f09ba URL: https://github.com/llvm/llvm-project/commit/868007a03c74f7c718e0e74c8bdac677eb3f09ba DIFF: https://github.com/llvm/llvm-project/commit/868007a03c74f7c718e0e74c8bdac677eb3f09ba.diff

[compiler-rt] [clang] [clang-tools-extra] [llvm] [InferAddressSpaces] Fix constant replace to avoid modifying other functions (PR #70611)

2023-11-12 Thread via cfe-commits
https://github.com/yubingex007-a11y closed https://github.com/llvm/llvm-project/pull/70611 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 638a839 - Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (#71780)

2023-11-12 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-13T06:04:27Z New Revision: 638a8393615e911b729d5662096f60ef49f1c65e URL: https://github.com/llvm/llvm-project/commit/638a8393615e911b729d5662096f60ef49f1c65e DIFF: https://github.com/llvm/llvm-project/commit/638a8393615e911b729d5662096f60ef49f1c65e.diff LOG:

[llvm] [lldb] [mlir] [clang-tools-extra] [clang] [CodeGen][DebugInfo] Add missing debug info for jump table BB (PR #71021)

2023-11-12 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/71021 >From 1be56cf6541d34e4e2ead3f4b3d3ce482d69f68f Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 2 Nov 2023 12:14:15 +0800 Subject: [PATCH 1/4] [DebugInfo] Add debug info test for jump table Test whether ju

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

2023-11-12 Thread via cfe-commits
https://github.com/ls-Mou created https://github.com/llvm/llvm-project/pull/72089 -rdynamic option should not use with -static, as shown in the following code https://github.com/llvm/llvm-project/blob/f86770aa073ac9c17d9ccb6409254e879dca2de6/clang/lib/Driver/ToolChains/Gnu.cpp#L460-L472 So I th

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

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: None (ls-Mou) Changes -rdynamic option should not use with -static, as shown in the following code https://github.com/llvm/llvm-project/blob/f86770aa073ac9c17d9ccb6409254e879dca2de6/clang/lib/Driver/ToolCha

[clang] 4d5a8cc - [Driver] Add LTO support for Haiku and OpenBSD (#72047)

2023-11-12 Thread via cfe-commits
Author: Brad Smith Date: 2023-11-13T02:42:14-05:00 New Revision: 4d5a8ccf25a6c43930c332e75ecead287778af6b URL: https://github.com/llvm/llvm-project/commit/4d5a8ccf25a6c43930c332e75ecead287778af6b DIFF: https://github.com/llvm/llvm-project/commit/4d5a8ccf25a6c43930c332e75ecead287778af6b.diff LO

[clang-tools-extra] [clang] [llvm] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-11-12 Thread via cfe-commits
HaohaiWen wrote: > Thanks for the updated example! > > To explain what I meant in first comment using this example: We would perform > the transform https://alive2.llvm.org/ce/z/nllcB_, which does not depend at > all on how `%yx` is constructed, and whether there is any way to form the > `fsh

[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 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] -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 -

[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 __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 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 --

[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] [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] [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-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-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

[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] [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-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

[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

[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] [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/

[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] [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] e6eda66 - Recommit changes to global checks (#71171)

2023-11-13 Thread via cfe-commits
Author: Henrik G. Olsson Date: 2023-11-13T14:45:27+01:00 New Revision: e6eda66cbc5ebf424b184506fc6bb27bee3d293f URL: https://github.com/llvm/llvm-project/commit/e6eda66cbc5ebf424b184506fc6bb27bee3d293f DIFF: https://github.com/llvm/llvm-project/commit/e6eda66cbc5ebf424b184506fc6bb27bee3d293f.di

[llvm] [clang] [clang-tools-extra] [AMDGPU] Revert "Preliminary patch for divergence driven instruction selection. Operands Folding 1." (PR #71710)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-llvm-globalisel Author: Jay Foad (jayfoad) Changes This reverts commit 201f892b3b597f24287ab6a712a286e25a45a7d9. --- Patch is 1.27 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-projec

[llvm] [clang] [flang] [DebugInfo] Move jump table test to X86 directory (PR #72118)

2023-11-13 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/72118 >From c8ec022408593c4bc44510e4be3d8095680c03d9 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Mon, 13 Nov 2023 22:02:36 +0800 Subject: [PATCH] [DebugInfo] Move jump table test to X86 directory --- llvm/test/

[llvm] [clang] [flang] [DebugInfo] Move jump table test to X86 directory (PR #72118)

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

[clang-tools-extra] [clangd] Do not offer extraction to variable for decl init expression (PR #69477)

2023-11-13 Thread via cfe-commits
ckandeler wrote: ping https://github.com/llvm/llvm-project/pull/69477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [Bolt] Solving pie support issue (PR #65494)

2023-11-13 Thread via cfe-commits
https://github.com/JohnLee1243 updated https://github.com/llvm/llvm-project/pull/65494 >From 8d0b2089e00d3cae74f4ba30a0e8c5464678ead0 Mon Sep 17 00:00:00 2001 From: JohnLee1243 Date: Wed, 6 Sep 2023 23:27:18 +0800 Subject: [PATCH] [Bolt] Solving pie support issue Offering: BiSheng Now PIE is

[clang-tools-extra] [clangd] Allow "move function body out-of-line" in non-header files (PR #69704)

2023-11-13 Thread via cfe-commits
ckandeler wrote: ping https://github.com/llvm/llvm-project/pull/69704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang] Add depdendent-lib option to flang -fc1 on Windows (PR #72121)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Truby (DavidTruby) Changes This patch adds a --depdendent-lib option to flang -fc1 on Windows to embed library link options into the object file. This is needed to properly select the Windows CRT to link against. --- Full diff: https

[clang-tools-extra] [clangd] Improve sys header mapping (PR #72122)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: kadir çetinkaya (kadircet) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72122.diff 1 Files Affected: - (modified) clang-tools-extra/clangd/index/CanonicalIncludes.cpp (+2) ``diff diff --git a/clang-tools

[llvm] [clang] [clang-tools-extra] [AMDGPU] Generic lowering for rint and nearbyint (PR #69596)

2023-11-13 Thread via cfe-commits
https://github.com/Acim-Maravic updated https://github.com/llvm/llvm-project/pull/69596 >From af211dc797ead570ce28ccdb1248f588b15d07bd Mon Sep 17 00:00:00 2001 From: Acim Maravic Date: Mon, 13 Nov 2023 13:56:10 +0100 Subject: [PATCH] [AMDGPU] Generic lowering for rint and nearbyint There are t

[clang] 2a47f4a - [clang][CGExprScalar] Remove no-op ptr-to-ptr bitcast (NFC) (#72072)

2023-11-13 Thread via cfe-commits
Author: Youngsuk Kim Date: 2023-11-13T10:06:39-05:00 New Revision: 2a47f4ae457b80475058db356d4c0014d5f7f68c URL: https://github.com/llvm/llvm-project/commit/2a47f4ae457b80475058db356d4c0014d5f7f68c DIFF: https://github.com/llvm/llvm-project/commit/2a47f4ae457b80475058db356d4c0014d5f7f68c.diff

[clang] [X86][AVX10] Fix a bug when using -march with no-evex512 attribute (PR #72126)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes failed to clear EVEX512 feature for intended intrinsics. Fixes #72106 --- Full diff: https://github.com/llvm/llvm-project/pull/72126.diff 2 Files Affected: - (modified)

[clang-tools-extra] [include-cleaner] Add handling for FriendDecls (PR #72125)

2023-11-13 Thread via cfe-commits
https://github.com/VitaNuo approved this pull request. https://github.com/llvm/llvm-project/pull/72125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 379e890 - [include-cleaner] Add handling for FriendDecls (#72125)

2023-11-13 Thread via cfe-commits
Author: kadir çetinkaya Date: 2023-11-13T16:35:52+01:00 New Revision: 379e890bd88573c66499de1e9e8d63954e3b6c31 URL: https://github.com/llvm/llvm-project/commit/379e890bd88573c66499de1e9e8d63954e3b6c31 DIFF: https://github.com/llvm/llvm-project/commit/379e890bd88573c66499de1e9e8d63954e3b6c31.dif

[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/7] Added an option to ignore macro definitions. --- clang/i

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

2023-11-13 Thread via cfe-commits
@@ -24153,6 +24153,23 @@ TEST_F(FormatTest, WhitespaceSensitiveMacros) { verifyNoChange("FOO(String-ized&Messy+But: :Still=Intentional);", Style); } +TEST_F(FormatTest, IgnorePPDefinitions) { tomekpaszek wrote: Good idea. Added cases to cover that https://

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

2023-11-13 Thread via cfe-commits
@@ -4648,6 +4648,10 @@ struct FormatStyle { /// \version 11 std::vector WhitespaceSensitiveMacros; + /// Ignore formatting in preprocessor definitions. tomekpaszek wrote: thanks for the tip! https://github.com/llvm/llvm-project/pull/70338 __

[clang] 96ef623 - [AArch64] Cast predicate operand of SVE gather loads/scater stores to the parameter type of the intrinsic (NFC) (#71289)

2023-11-13 Thread via cfe-commits
Author: Momchil Velikov Date: 2023-11-13T16:01:07Z New Revision: 96ef623a7525f71184b6111f8389e45260ef13ff URL: https://github.com/llvm/llvm-project/commit/96ef623a7525f71184b6111f8389e45260ef13ff DIFF: https://github.com/llvm/llvm-project/commit/96ef623a7525f71184b6111f8389e45260ef13ff.diff LO

[clang-tools-extra] 9aefa5c - [clangd] Improve sys header mapping (#72122)

2023-11-13 Thread via cfe-commits
Author: kadir çetinkaya Date: 2023-11-13T17:08:19+01:00 New Revision: 9aefa5cb679a6f42a0d343c93a25a66b0374b3c6 URL: https://github.com/llvm/llvm-project/commit/9aefa5cb679a6f42a0d343c93a25a66b0374b3c6 DIFF: https://github.com/llvm/llvm-project/commit/9aefa5cb679a6f42a0d343c93a25a66b0374b3c6.dif

[clang] [clang] fix test PR69717.cpp (PR #72134)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: antoine moynault (antmox) Changes Test still fail on ARM machine (no float_control support) --- Full diff: https://github.com/llvm/llvm-project/pull/72134.diff 1 Files Affected: - (modified) clang/test/Sema/PR69717.cpp (+1-1) ```

[mlir] [clang] [flang] [Flang][Driver][MLIR] Add support for fomit-frame-pointer (PR #72135)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang Author: Radu Salavat (Radu2k) Changes Made appropriate changes in Flang and MLIR to support 'fomit-frame-pointer' and 'fno-omit-frame-pointer'. --- Patch is 33.79 KiB, truncated to 20.00 KiB below, full version:

[clang] [flang] [mlir] [Flang][Driver][MLIR] Add support for fomit-frame-pointer (PR #72135)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-tensor Author: Radu Salavat (Radu2k) Changes Made appropriate changes in Flang and MLIR to support 'fomit-frame-pointer' and 'fno-omit-frame-pointer'. --- Patch is 33.79 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/ll

[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)

2023-11-13 Thread via cfe-commits
https://github.com/elizabethandrews updated https://github.com/llvm/llvm-project/pull/70224 >From 4ea6d62dab962eba6e52a9fdf7e61b6aac0714fa Mon Sep 17 00:00:00 2001 From: Elizabeth Andrews Date: Mon, 30 Oct 2023 13:07:48 -0700 Subject: [PATCH] [Clang] Fix a crash when using ast-dump=json CXXDed

[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)

2023-11-13 Thread via cfe-commits
@@ -697,6 +697,8 @@ Miscellaneous Clang Crashes Fixed `Issue 64564 `_ - Fixed a crash when an ObjC ivar has an invalid type. See (`#68001 `_) +- Fixed a crash when ``-ast-dum

[mlir] [clang] [flang] [Flang][Driver][MLIR] Add support for fomit-frame-pointer (PR #72135)

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 0e42df4031e8b2fec357e07ca5ca3b81adf0b5ad cd5cbb9ebd0f075b436b5b00b9b43e28551f5a07 --

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

2023-11-13 Thread via cfe-commits
serge-sans-paille wrote: @aganea I submitted a different approach that will work with any SSE2 - powered machine, and it doesn't have the same stack usage issue as the previous one. https://github.com/llvm/llvm-project/pull/71865 ___ cfe-commits mail

[clang] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-11-13 Thread via cfe-commits
elizabethandrews wrote: ping https://github.com/llvm/llvm-project/pull/71706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Parameter modifier parsing and AST (PR #72139)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chris B (llvm-beanz) Changes This change implements parsing for HLSL's parameter modifier keywords `in`, `out` and `inout`. Because HLSL doesn't support references or pointers, these keywords are used to allow parameters to be passed in a

[clang] [HLSL] Parameter modifier parsing and AST (PR #72139)

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 0e42df4031e8b2fec357e07ca5ca3b81adf0b5ad b99d291f99805bc090b8e51b8f8ad176a7cdd642 --

[clang] 5fdb70b - [clang] fix test PR69717.cpp (#72134)

2023-11-13 Thread via cfe-commits
Author: antoine moynault Date: 2023-11-13T18:39:25+01:00 New Revision: 5fdb70be7b0a1340a7ebdeb94ab073e466fc4aa6 URL: https://github.com/llvm/llvm-project/commit/5fdb70be7b0a1340a7ebdeb94ab073e466fc4aa6 DIFF: https://github.com/llvm/llvm-project/commit/5fdb70be7b0a1340a7ebdeb94ab073e466fc4aa6.di

[clang-tools-extra] [compiler-rt] [clang] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/12] [clang] Add support for new loop attribute [[clang::code

[compiler-rt] [llvm] [clang-tools-extra] [flang] [clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/12] [clang] Add support for new loop attribute [[clang::code

[compiler-rt] [clang-tools-extra] [clang] [llvm] [flang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
@@ -10025,6 +10025,11 @@ def err_duplicate_case_differing_expr : Error< def warn_case_empty_range : Warning<"empty case range specified">; def warn_missing_case_for_condition : Warning<"no case matching constant switch condition '%0'">; +def err_loop_attr_duplication : Error<

[flang] [clang] [Flang][Clang] Add support for frame pointers in Flang (PR #72146)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Radu Salavat (Radu2k) Changes Add support for frame pointers in Flang. --- Patch is 22.74 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/72146.diff 13 Files Affected: - (modified) clang/incl

[flang] [clang] [Flang][Clang] Add support for frame pointers in Flang (PR #72146)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Radu Salavat (Radu2k) Changes Add support for frame pointers in Flang. --- Patch is 22.74 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/72146.diff 13 Files Affected: - (modified) cla

[clang] [flang] [Flang][Clang] Add support for frame pointers in Flang (PR #72146)

2023-11-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Radu Salavat (Radu2k) Changes Add support for frame pointers in Flang. --- Patch is 22.74 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/72146.diff 13 Files Affected: - (modified) cla

[flang] [clang] [Flang][Clang] Add support for frame pointers in Flang (PR #72146)

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 ad20a9e1a15d1694f7ab3d878bcfaab3d52c5abf 0b0f02eab4dc02adf79461bc865be6f7580938cf --

[clang] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-11-13 Thread via cfe-commits
@@ -4098,8 +4098,26 @@ void CodeGenModule::emitMultiVersionFunctions() { } llvm::Constant *ResolverConstant = GetOrCreateMultiVersionResolver(GD); -if (auto *IFunc = dyn_cast(ResolverConstant)) +if (auto *IFunc = dyn_cast(ResolverConstant)) { ResolverCon

[clang-tools-extra] [clang] [compiler-rt] [flang] [llvm] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/13] [clang] Add support for new loop attribute [[clang::code

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-11-13 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/65815 >From 21ba98fbed6ef3b9bbbef96feb6dfeb0679f7ce8 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Tue, 5 Sep 2023 15:46:34 -0700 Subject: [PATCH 1/6] [llvm-objcopy] Add --gap-fill and --pad-to options `-

[llvm] [clang-tools-extra] [clang] [llvm-objcopy] Check for missing argument values (PR #70710)

2023-11-13 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/70710 >From 09e0f68c9402fa275b9706c96caf3c8bccbd8f52 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Mon, 30 Oct 2023 11:50:00 -0700 Subject: [PATCH 1/3] [llvm-objcopy] Check for missing argument values Rep

[clang] [llvm] [clang-tools-extra] [llvm-objcopy] Check for missing argument values (PR #70710)

2023-11-13 Thread via cfe-commits
@@ -1,4 +1,6 @@ ## An error must be reported if a required argument value is missing. -# RUN: not llvm-objcopy --only-section 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE %s -# RUN: not llvm-objcopy -O 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE %s -# CHECK-NO-VALUE: error:

[llvm] [clang-tools-extra] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-11-13 Thread via cfe-commits
quic-akaryaki wrote: @MaskRay please share your opinion. Thank you. https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 41021e8 - [APINotes] Upstream APINotes YAML compiler

2023-11-13 Thread via cfe-commits
Author: Egor Zhdan Date: 2023-11-13T19:36:36Z New Revision: 41021e8ef8bb0c81f45f60f7ea7242b57d6bb1d8 URL: https://github.com/llvm/llvm-project/commit/41021e8ef8bb0c81f45f60f7ea7242b57d6bb1d8 DIFF: https://github.com/llvm/llvm-project/commit/41021e8ef8bb0c81f45f60f7ea7242b57d6bb1d8.diff LOG: [A

[compiler-rt] [clang-tools-extra] [flang] [llvm] [clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/14] [clang] Add support for new loop attribute [[clang::code

[compiler-rt] [clang-tools-extra] [flang] [llvm] [clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
@@ -4297,3 +4297,19 @@ def PreferredType: InheritableAttr { let Args = [TypeArgument<"Type", 1>]; let Documentation = [PreferredTypeDocumentation]; } + +def CodeAlign: StmtAttr { + let Spellings = [Clang<"code_align">]; + let Subjects = SubjectList<[ForStmt, CXXForRangeSt

[compiler-rt] [clang-tools-extra] [flang] [llvm] [clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-13 Thread via cfe-commits
@@ -334,11 +334,12 @@ CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, // This attribute requires an integer argument which is a constant power of // two between 1 and 4096 inclusive. int AlignValue = ArgVal.getSExtValue(); -if (AlignValue

[clang] [X86][AVX10] Fix a bug when using -march with no-evex512 attribute (PR #72126)

2023-11-13 Thread via cfe-commits
ronlieb wrote: i applied the proposed patch on top of latest and the build issues are gone. https://github.com/llvm/llvm-project/pull/72126 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

<    3   4   5   6   7   8   9   10   11   12   >