[clang] 4b7d400 - [analyzer] Fix broken testcase (#75216)

2023-12-12 Thread via cfe-commits
Author: DonatNagyE Date: 2023-12-12T12:15:33-05:00 New Revision: 4b7d4008e21e9da9a189523ff90389a044b37ea4 URL: https://github.com/llvm/llvm-project/commit/4b7d4008e21e9da9a189523ff90389a044b37ea4 DIFF: https://github.com/llvm/llvm-project/commit/4b7d4008e21e9da9a189523ff90389a044b37ea4.diff LO

[llvm] [clang] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/75224 We only allow for assembly code in naked function, and PGO instrumentation (esp. temporal instrumentation that introduces a function call) can wreak havoc in this. Fix #74573 >From 08c69a8c2c8b813130

[clang] [llvm] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-pgo Author: None (serge-sans-paille) Changes We only allow for assembly code in naked function, and PGO instrumentation (esp. temporal instrumentation that introduces a function call) can wreak havoc in this. Fix #74

[llvm] [clang] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (serge-sans-paille) Changes We only allow for assembly code in naked function, and PGO instrumentation (esp. temporal instrumentation that introduces a function call) can wreak havoc in this. Fix #74573 --- Full diff: https://githu

[libcxx] [clang] [PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (PR #75226)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx @llvm/pr-subscribers-clang-codegen Author: Lei Huang (lei137) Changes On Linux PPC call lib func ``frexpl`` for calls to ``frexp()`` for input of type PPCDoubleDouble. Fixes bug: https://github.com/llvm/llvm-project/issues/64426 --- Full diff:

[clang] [libcxx] [PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (PR #75226)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Lei Huang (lei137) Changes On Linux PPC call lib func ``frexpl`` for calls to ``frexp()`` for input of type PPCDoubleDouble. Fixes bug: https://github.com/llvm/llvm-project/issues/64426 --- Full diff: https://github.com/llvm/llvm-project

[clang] [libcxx] [PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (PR #75226)

2023-12-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 142e567cf00815f7d1b3d72aaf298212a3f83ab2 b815b9b0a369f308cf24406fa9606cb6e3b1c7e3 --

[clang] 831484e - [DebugInfo] Fix duplicate DIFile when main file is preprocessed (#75022)

2023-12-12 Thread via cfe-commits
Author: Fangrui Song Date: 2023-12-12T10:13:42-08:00 New Revision: 831484efa06bee798e218813cb1890ef108ed519 URL: https://github.com/llvm/llvm-project/commit/831484efa06bee798e218813cb1890ef108ed519 DIFF: https://github.com/llvm/llvm-project/commit/831484efa06bee798e218813cb1890ef108ed519.diff

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

2023-12-12 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 01/10] [llvm-objcopy] Add --gap-fill and --pad-to options

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

2023-12-12 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 01/11] [llvm-objcopy] Add --gap-fill and --pad-to options

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

2023-12-12 Thread via cfe-commits
@@ -0,0 +1,198 @@ +# RUN: yaml2obj --docnum=1 %s -o %t + +# RUN: not llvm-objcopy --gap-fill 1 %t 2>&1 | FileCheck %s --check-prefix=NOT-BINARY +# NOT-BINARY: error: '--gap-fill' is only supported for binary output + +# RUN: not llvm-objcopy -O binary --gap-fill= %t %t.bin 2>&1 |

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

2023-12-12 Thread via cfe-commits
@@ -738,6 +739,36 @@ objcopy::parseObjcopyOptions(ArrayRef RawArgsArr, if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition)) Config.ExtractPartition = Arg->getValue(); + if (const auto *A = InputArgs.getLastArg(OBJCOPY_gap_fill)) { +if (Config.OutputForma

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

2023-12-12 Thread via cfe-commits
@@ -234,11 +234,11 @@ defm update_section defm gap_fill : Eq<"gap-fill", "Fill the gaps between sections with instead of zero. " " must be an unsigned 8-bit integer. " - "This option is only supported for ELF inputs and binary out

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

2023-12-12 Thread via cfe-commits
@@ -234,11 +234,11 @@ defm update_section defm gap_fill : Eq<"gap-fill", "Fill the gaps between sections with instead of zero. " " must be an unsigned 8-bit integer. " - "This option is only supported for ELF inputs and binary out

[clang] [llvm] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
@@ -892,6 +892,10 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, } } + if (FD->hasAttr()) { serge-sans-paille wrote: not at all, that was a leftover, sorry about that. https://github.com/llvm/llvm-project/pull/75224 ___

[clang] [llvm] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/75224 >From 08c69a8c2c8b813130dcd68ac6d616ec7e0dc474 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Tue, 12 Dec 2023 18:23:23 +0100 Subject: [PATCH 1/2] Disable PGO instrumentation on naked function

[compiler-rt] [flang] [libcxx] [clang] [openmp] [libc] [clang-tools-extra] [lldb] [mlir] [lld] [llvm] fix issue 73559. (PR #74926)

2023-12-12 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/5] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[compiler-rt] [flang] [libcxx] [clang] [openmp] [libc] [clang-tools-extra] [lldb] [mlir] [lld] [llvm] fix issue 73559. (PR #74926)

2023-12-12 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/6] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[llvm] [clang] [clang-tools-extra] In compilation databases, add support for relative directories (PR #69856)

2023-12-12 Thread via cfe-commits
https://github.com/Overhatted updated https://github.com/llvm/llvm-project/pull/69856 >From 5d4642378e6f74da0b15d8524aeb1ed1fa257568 Mon Sep 17 00:00:00 2001 From: Overhatted <15021741+overhat...@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:16:38 +0100 Subject: [PATCH] In compilation data

[lld] [openmp] [flang] [compiler-rt] [clang] [libc] [lldb] [mlir] [libcxx] [llvm] [clang-tools-extra] fix issue 73559. (PR #74926)

2023-12-12 Thread via cfe-commits
ChipsSpectre wrote: The tests also pass after the review comments, I just validated on my machine. https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [NFC][clang][test] Make `instantiation-depth-default.cpp` a valid test case under `asan` and `ubsan` configs (PR #75254)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Duo Wang (wdunicornpro) Changes Clang test `instantiation-depth-default.cpp` fails on Windows when built with `ubsan` due to extra warnings printed by the compiler: ```console File instantiation-depth-default.cpp Line 11: stack nearly exha

[clang] [clang][sema] make sure arguments of __atomic_exchange complete type (PR #75135)

2023-12-12 Thread via cfe-commits
knightXun wrote: > Why only `__atomic_exchange`? Presumably we need to be doing the same with > every other of the atomic builtins as well (unless they already have this > check and we only missed it on exchange?) I agree! I will do this check on every other of the atomic builtins. https://gi

[llvm] [lldb] [compiler-rt] [libcxx] [clang-tools-extra] [clang] [mlir] [libc] [libcxxabi] [lld] [libunwind] [flang] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/19] [libc++] Implement ranges::contains Differential Revision

[llvm] [lldb] [compiler-rt] [libcxx] [clang-tools-extra] [clang] [mlir] [libc] [libcxxabi] [lld] [libunwind] [flang] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/20] [libc++] Implement ranges::contains Differential Revision

[mlir] [clang-tools-extra] [lldb] [llvm] [libc] [libcxx] [clang] [libcxxabi] [libunwind] [compiler-rt] [flang] [lld] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/65148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [lldb] [compiler-rt] [libcxx] [clang-tools-extra] [clang] [mlir] [libc] [libcxxabi] [lld] [libunwind] [flang] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/65148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [compiler-rt] [lldb] [libcxx] [libunwind] [lld] [libcxxabi] [clang] [libc] [flang] [llvm] [mlir] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/65148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [lldb] [compiler-rt] [libcxx] [clang-tools-extra] [clang] [mlir] [libc] [libcxxabi] [lld] [libunwind] [flang] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/65148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [compiler-rt] [lldb] [libcxx] [libunwind] [lld] [libcxxabi] [clang] [libc] [flang] [llvm] [mlir] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/65148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [compiler-rt] [lldb] [libcxx] [libunwind] [lld] [libcxxabi] [clang] [libc] [flang] [llvm] [mlir] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
@@ -0,0 +1,49 @@ +//===--===// ZijunZhaoCCK wrote: Done! already add here: https://github.com/llvm/llvm-project/pull/65148#issue-1876098703 Thank you for helping review! https://github.com/llv

[clang] Remove the builtin_headers_in_system_modules feature (PR #75262)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ian Anderson (ian-twilightcoder) Changes __has_feature(builtin_headers_in_system_modules) was added in https://reviews.llvm.org/D159483 to be used in the stdarg/stddef implementation headers. It ended up being unnecessary, but I forgot to

[clang] [clang][Sema] Resolving Inconsistent Arguments Panic in Variadic Template Variables (PR #70280)

2023-12-12 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/70280 >From 95180e1765fea3ec6de822d0b9926056d0d12404 Mon Sep 17 00:00:00 2001 From: knightXun Date: Thu, 26 Oct 2023 09:25:58 +0800 Subject: [PATCH 1/2] [clang][Sema] Resolving Panic Caused by Inconsistent Arguments

[clang-tools-extra] [lldb] [compiler-rt] [libcxx] [lld] [clang] [llvm] [mlir] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 5a2c930770cf548c5e3f3451e76b48cb067e6762 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 1/6] [libc++] Implement ranges::contains_subrange --- libcxx/i

[mlir] [clang-tools-extra] [lldb] [llvm] [libc] [libcxx] [clang] [libcxxabi] [libunwind] [compiler-rt] [flang] [lld] [libc++] Implement ranges::contains (PR #65148)

2023-12-12 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/21] [libc++] Implement ranges::contains Differential Revision

[clang] [clang-format] Fix a bug in git-clang-format.bat (PR #75268)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Pass the fully-qualified path name (less the file extension) of git-clang-format.bat to py so that it can be run from anywhere. Fixes #75265. --- Full diff: https://github.com/llvm/llvm-project/pull/75268.

[clang] 0523bf1 - [RISCV] Reduce the size of the index used for RVV intrinsics. NFC (#74906)

2023-12-12 Thread via cfe-commits
Author: Craig Topper Date: 2023-12-12T17:40:54-08:00 New Revision: 0523bf1eca4475edafc8aab830c2ce48b01900c3 URL: https://github.com/llvm/llvm-project/commit/0523bf1eca4475edafc8aab830c2ce48b01900c3 DIFF: https://github.com/llvm/llvm-project/commit/0523bf1eca4475edafc8aab830c2ce48b01900c3.diff

[clang] [clang-format] Fix parsing of `operator<() {}` (PR #75144)

2023-12-12 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/75144 >From dddc20d967498c739baedb8d67303a28596f09e0 Mon Sep 17 00:00:00 2001 From: XDeme Date: Tue, 12 Dec 2023 03:06:56 -0300 Subject: [PATCH 1/2] Fix operator<() parsing --- clang/lib/Format/TokenAnnotator.cpp

[clang] [llvm] [ValueTracking] Add dominating condition support in computeKnownBits() (PR #73662)

2023-12-12 Thread via cfe-commits
eddyz87 wrote: Some additional details on BPF verifier failure. Consider the following example: ```llvm @a = global i32 0, align 4 @g = global i32 0, align 4 define i64 @foo() { entry: %a = load i32, ptr @a %a.cmp = icmp ugt i32 %a, 32 br i1 %a.cmp, label %end, label %l1 ; establish %a in

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-12 Thread via cfe-commits
https://github.com/lipracer created https://github.com/llvm/llvm-project/pull/75279 None >From bd1182b28ac62bddabe7b31e1913295ba169 Mon Sep 17 00:00:00 2001 From: lipracer Date: Wed, 13 Dec 2023 11:37:12 +0800 Subject: [PATCH] [NFC][clang] add a clang tool for mlir refactor --- clang-too

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

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

[clang-tools-extra] 04580ed - [clangd] Add test for GH75115 (#75116)

2023-12-12 Thread via cfe-commits
Author: Matheus Izvekov Date: 2023-12-13T05:50:05+01:00 New Revision: 04580edd8a394dc2ccee7363c8a41ee05b1a6b98 URL: https://github.com/llvm/llvm-project/commit/04580edd8a394dc2ccee7363c8a41ee05b1a6b98 DIFF: https://github.com/llvm/llvm-project/commit/04580edd8a394dc2ccee7363c8a41ee05b1a6b98.dif

[libunwind] [libunwind][WebAssembly] Omit unused parts of libunwind.cpp for Wasm (PR #73196)

2023-12-12 Thread via cfe-commits
trcrsired wrote: ![image](https://github.com/llvm/llvm-project/assets/100043421/fef1a590-37cd-4fc0-803d-01ff18890439) Not working https://github.com/llvm/llvm-project/pull/73196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[llvm] [clang] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
https://github.com/serge-sans-paille closed https://github.com/llvm/llvm-project/pull/75224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] Disable PGO instrumentation on naked function (PR #75224)

2023-12-12 Thread via cfe-commits
serge-sans-paille wrote: Thanks @MaskRay & @teresajohnson for the quick review o/ https://github.com/llvm/llvm-project/pull/75224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6095e21 - [RISCV] Bump zicfilp to 0.4 (#75134)

2023-12-12 Thread via cfe-commits
Author: Yeting Kuo Date: 2023-12-13T14:50:24+08:00 New Revision: 6095e211303d1c9b8bc2eb184c919d0b56bfe7e0 URL: https://github.com/llvm/llvm-project/commit/6095e211303d1c9b8bc2eb184c919d0b56bfe7e0 DIFF: https://github.com/llvm/llvm-project/commit/6095e211303d1c9b8bc2eb184c919d0b56bfe7e0.diff LO

[clang] [clang] Parse attribute [[gnu::no_stack_protector]] (PR #75289)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sirui Mu (Lancern) Changes This commit adds relative TableGen definitions to parse the `[[gnu::no_stack_protector]]` attribute. This PR addresses issue #75235. --- Full diff: https://github.com/llvm/llvm-project/pull/75289.diff 1 Files

[clang] a01307a - [clang] Fix false positive -Wmissing-field-initializer for anonymous unions (#70829)

2023-12-12 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2023-12-13T08:48:32+01:00 New Revision: a01307a6ee788fc6ac2e09e58f0f52e5666def86 URL: https://github.com/llvm/llvm-project/commit/a01307a6ee788fc6ac2e09e58f0f52e5666def86 DIFF: https://github.com/llvm/llvm-project/commit/a01307a6ee788fc6ac2e09e58f0f52e5666def

[clang] dbf67ea - [clang] Substitute alias templates from correct context (#75069)

2023-12-12 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2023-12-13T08:50:43+01:00 New Revision: dbf67ea1d334d2114fe49701a8f4b8afd536e39f URL: https://github.com/llvm/llvm-project/commit/dbf67ea1d334d2114fe49701a8f4b8afd536e39f DIFF: https://github.com/llvm/llvm-project/commit/dbf67ea1d334d2114fe49701a8f4b8afd536e3

[clang] [CMake] Include opt-viewer in Fuchsia toolchain (PR #75296)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Petr Hosek (petrhosek) Changes This is necessary for visualization of optimization remarks. --- Full diff: https://github.com/llvm/llvm-project/pull/75296.diff 1 Files Affected: - (modified) clang/cmake/caches/Fuchsia-stage2.cmake (+1)

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

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

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

2023-12-13 Thread via cfe-commits
@@ -3408,6 +3408,8 @@ def warn_objc_redundant_literal_use : Warning< def err_attr_tlsmodel_arg : Error<"tls_model must be \"global-dynamic\", " "\"local-dynamic\", \"initial-exec\" or \"local-exec\"">; +def err_attr_codemodel_arg : Error<"code_model '%0' is not yet supported

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

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

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

2023-12-13 Thread via cfe-commits
@@ -3408,6 +3408,8 @@ def warn_objc_redundant_literal_use : Warning< def err_attr_tlsmodel_arg : Error<"tls_model must be \"global-dynamic\", " "\"local-dynamic\", \"initial-exec\" or \"local-exec\"">; +def err_attr_codemodel_arg : Error<"code_model '%0' is not supported on

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

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

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-13 Thread via cfe-commits
@@ -1950,19 +1950,17 @@ let TargetGuard = "sve2p1|sme2" in { //FIXME: Replace IsStreamingCompatible with IsStreamingOrHasSVE2p1 when available def SVPEXT_SINGLE : SInst<"svpext_lane_{d}", "P}i", "QcQsQiQl", MergeNone, "aarch64_sve_pext", [IsStreamingCompatible], [ImmCheck<1, I

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

2023-12-13 Thread via cfe-commits
heiher wrote: > Overall this seems fine, thanks! > > But I'm not sure if reporting a more generic "the model attribute is not > supported on this target" for non-LoongArch would be better: it doesn't give > the false impression that the target doesn't support the specified code model. In my o

[clang] ed2d497 - [Clang][AArch64] Add fix vector types to header into SVE (#73258)

2023-12-13 Thread via cfe-commits
Author: CarolineConcatto Date: 2023-12-13T08:59:41Z New Revision: ed2d497291f0de330e27109ce21375b41597b4a4 URL: https://github.com/llvm/llvm-project/commit/ed2d497291f0de330e27109ce21375b41597b4a4 DIFF: https://github.com/llvm/llvm-project/commit/ed2d497291f0de330e27109ce21375b41597b4a4.diff L

[clang] [llvm] [clang-tools-extra] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

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

[clang] [clang][Interp] Don't diagnose undefined functions when checking... (PR #75051)

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

[clang] [clang][Interp] Don't diagnose undefined functions when checking... (PR #75051)

2023-12-13 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM modulo typo https://github.com/llvm/llvm-project/pull/75051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Don't diagnose undefined functions when checking... (PR #75051)

2023-12-13 Thread via cfe-commits
@@ -371,13 +366,21 @@ bool CheckCallable(InterpState &S, CodePtr OpPC, const Function *F) { // FIXME: If DiagDecl is an implicitly-declared special member function // or an inheriting constructor, we should be much more explicit about why // it's not constex

[clang] [clang][ASTImporter] Import AlignValueAttr correctly. (PR #75308)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes Expression of attribute `align_value` was not imported. Import of the attribute is corrected, a test for it is added, other related tests with FIXME are updated. Fixes #75054. --- Full diff: https://github.

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-13 Thread via cfe-commits
@@ -69,6 +69,29 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) { .Default(OpenACCDirectiveKindEx::Invalid); } +// Translate single-token string representations to the OpenCC Clause Kind. +OpenACCClauseKind getOpenACCClauseKind(Token Tok) { + // auto is a k

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-13 Thread via cfe-commits
@@ -208,6 +233,10 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { // introspect on the spelling before then. if (FirstTok.isNot(tok::identifier)) { P.Diag(FirstTok, diag::err_acc_missing_directive); + +if (!FirstTok.isAnnotation()) + P.ConsumeAny

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-13 Thread via cfe-commits
@@ -262,12 +291,52 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ParseOpenACCClause(Parser &P) { cor3ntin wrote: Can you add a description of the grammar? https://github.com/llvm/llvm-project/pull/75052 ___

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-13 Thread via cfe-commits
@@ -69,6 +69,29 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) { .Default(OpenACCDirectiveKindEx::Invalid); } +// Translate single-token string representations to the OpenCC Clause Kind. +OpenACCClauseKind getOpenACCClauseKind(Token Tok) {

[clang] [llvm] [lld] [mlir] [libcxx] [compiler-rt] [lldb] [libc] [clang-tools-extra] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)

2023-12-13 Thread via cfe-commits
https://github.com/muneebkhan85 updated https://github.com/llvm/llvm-project/pull/71555 >From 7bb2f9793b2a2cccbaa401f6e2ac850b587f2b59 Mon Sep 17 00:00:00 2001 From: Muneeb Khan Date: Tue, 7 Nov 2023 23:52:17 +0800 Subject: [PATCH 1/7] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-13 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/75170 >From 32fe6eb51c43e423e50178509a8020d392cd3a42 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 13 Dec 2023 10:46:43 + Subject: [PATCH 1/2] [clang][dataflow] Strengthen pointer comparison. - In

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-13 Thread via cfe-commits
@@ -3893,6 +3893,66 @@ TEST(TransferTest, BooleanInequality) { }); } +TEST(TransferTest, PointerEquality) { martinboehme wrote: Good point -- done. https://github.com/llvm/llvm-project/pull/75170 ___ cfe-comm

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-13 Thread via cfe-commits
@@ -152,6 +153,47 @@ TEST_F(EnvironmentTest, JoinRecords) { } } +TEST_F(EnvironmentTest, DifferentReferenceLocInJoin) { martinboehme wrote: Agree. The original test case was minimized from a failing assertion, but it would likely be fiddly to try and recre

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-13 Thread via cfe-commits
martinboehme wrote: > An alternative approach would be to do [hash > consing](https://en.wikipedia.org/wiki/Hash_consing). Since pointer values > are completely determined by the pointee (for some definition of the pointee, > e.g., we might have `void*` and `int*` pointers pointing to the same

[clang] [llvm] [clang-tools-extra] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-13 Thread via cfe-commits
@@ -0,0 +1,134 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 3 + +// RUN: %clang_cc1 -DSVE_HEADER -triple aarch64 -target-feature +sve -emit-llvm -O2 -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s +// RUN: %clang_cc1

[lld] [clang-tools-extra] [lldb] [libcxx] [mlir] [openmp] [flang] [libcxxabi] [clang] [llvm] [libc] [compiler-rt] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

2023-12-13 Thread via cfe-commits
huixie90 wrote: Hi, could you please apply clang-format to the lines you changed and I am going to merge it after that https://github.com/llvm/llvm-project/pull/74655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] a897700 - [clang][Interp] Don't diagnose undefined functions when checking... (#75051)

2023-12-13 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-13T12:14:53+01:00 New Revision: a8977005b64986139e92b5a43e44cfac2bf81677 URL: https://github.com/llvm/llvm-project/commit/a8977005b64986139e92b5a43e44cfac2bf81677 DIFF: https://github.com/llvm/llvm-project/commit/a8977005b64986139e92b5a43e44cfac2bf81677.diff L

[llvm] [clang] [ValueTracking] Add dominating condition support in computeKnownBits() (PR #73662)

2023-12-13 Thread via cfe-commits
joanahalili wrote: heads-up, we are seeing some performance regressions due to this patch 8about 6-7%! We will add more details about this soon. https://github.com/llvm/llvm-project/pull/73662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [AArch64][SME2] Add SQRSHRN, UQRSHRN, SQRSHRUN builtins for SME2, SVE2p1 (PR #75325)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Add SQRSHRN, UQRSHRN, SQRSHRUN builtins for SME2, SVE2p1. --- Full diff: https://github.com/llvm/llvm-project/pull/75325.diff 2 Files Affected: - (modified) clang/include/clang/Basic/arm_sve.td

[clang] [AArch64][SME2] Add builtins for SQDMULH (PR #75326)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Patch by: Kerry McLaughlin --- Patch is 66.51 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/75326.diff 2 Files Affected:

[clang] [clang-format] Fix parsing of `operator<() {}` (PR #75144)

2023-12-13 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/75144 >From dddc20d967498c739baedb8d67303a28596f09e0 Mon Sep 17 00:00:00 2001 From: XDeme Date: Tue, 12 Dec 2023 03:06:56 -0300 Subject: [PATCH 1/3] Fix operator<() parsing --- clang/lib/Format/TokenAnnotator.cpp

[clang] [clang] Report narrowing conversions with const references (PR #75332)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Fixes https://github.com/llvm/llvm-project/issues/63151 --- Full diff: https://github.com/llvm/llvm-project/pull/75332.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+3) - (mo

[clang] ab380c2 - [SystemZ][z/OS] Complete EBCDIC I/O support (#75212)

2023-12-13 Thread via cfe-commits
Author: Abhina Sree Date: 2023-12-13T07:46:02-05:00 New Revision: ab380c287a42c0701cd86ae2932c0cb125b9a294 URL: https://github.com/llvm/llvm-project/commit/ab380c287a42c0701cd86ae2932c0cb125b9a294 DIFF: https://github.com/llvm/llvm-project/commit/ab380c287a42c0701cd86ae2932c0cb125b9a294.diff L

[clang] [clang] Report narrowing conversions with const references (PR #75332)

2023-12-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 e418988175c2dee9d7c7976cf822b41aaf321c26 d0a7276eb8014693656d3d931616d56ffe46730c --

[clang] [libcxx] [llvm] [openmp] [libcxxabi] [compiler-rt] [flang] [mlir] [lldb] [clang-tools-extra] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace sub register (

2023-12-13 Thread via cfe-commits
DianQK wrote: > I'll try and take a look at the patch. Perhaps you are right that we need a > new method for the debug info to use. Based on https://github.com/llvm/llvm-project/blob/fd8fa31c55a3413f643443ecf3301441428ce513/llvm/docs/InstrRefDebugInfo.md?plain=1#L125-L127, perhaps we could ad

[lld] [libc] [clang] [llvm] [lldb] [mlir] [clang-tools-extra] [libcxx] [compiler-rt] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)

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

[clang] [llvm] [SystemZ][z/OS] Add missing strnlen function for z/OS to fix build failures (PR #75339)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhina Sree (abhina-sree) Changes This patch adds strnlen to the zOSSupport.h file to fix build failures in multiple files. --- Full diff: https://github.com/llvm/llvm-project/pull/75339.diff 11 Files Affected: - (modified) clang/lib/L

[clang] [llvm] [SystemZ][z/OS] Add missing strnlen function for z/OS to fix build failures (PR #75339)

2023-12-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 c2d3188d5dcb8158d9b8fa2a85f984fc621c7044 1b234e926dc6396fe4053f3c3463ed36e5d58778 --

[clang] [AArch64][SME2] Add SQRSHRN, UQRSHRN, SQRSHRUN builtins for SME2, SVE2p1 (PR #75325)

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

[clang] [clang-format] Fix parsing of `operator<() {}` (PR #75144)

2023-12-13 Thread via cfe-commits
XDeme wrote: Thanks for reviewing. If the patch is ok, could you land this patch for me? I don't have commit access. https://github.com/llvm/llvm-project/pull/75144 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

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

2023-12-13 Thread via cfe-commits
https://github.com/jeanPerier commented: Described logic in your comment looks good to me. I have two comments regarding the implementation. https://github.com/llvm/llvm-project/pull/74628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

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

2023-12-13 Thread via cfe-commits
@@ -6,6 +6,37 @@ // //===--===// +// Defines a utility function for copying and padding characters +#ifndef CHARACTER_H +#define CHARACTER_H jeanPerier wrote: Did you intend to place this co

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

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

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

2023-12-13 Thread via cfe-commits
@@ -10,13 +10,29 @@ // extensions that will eventually be implemented in Fortran. #include "flang/Runtime/extensions.h" +#include "flang/Runtime/character.h" #include "flang/Runtime/command.h" #include "flang/Runtime/descriptor.h" #include "flang/Runtime/io-api.h" +#if _R

[clang-tools-extra] [llvm] [openmp] [lldb] [libcxx] [compiler-rt] [libcxxabi] [flang] [clang] [mlir] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace sub register (

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

[flang] [clang] [flang][Driver] Let the linker fail on multiple definitions of main() (PR #73124)

2023-12-13 Thread via cfe-commits
JasonWoodArm wrote: We are also seeing the same issue when linking on Mac regarding the ld: unknown options: --whole-archive https://github.com/llvm/llvm-project/pull/73124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang-tools-extra] [llvm] [openmp] [lldb] [libcxx] [compiler-rt] [libcxxabi] [flang] [clang] [mlir] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace sub register (

2023-12-13 Thread via cfe-commits
DianQK wrote: I tried adding `isCopyLikeInstr` to #75184. All known test cases have passed. https://github.com/llvm/llvm-project/pull/74682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [flang] [llvm] [libcxx] [compiler-rt] [clang-tools-extra] [libc] [RISCV][MC] Add support for experimental Zimop extension (PR #75182)

2023-12-13 Thread via cfe-commits
https://github.com/ln8-8 updated https://github.com/llvm/llvm-project/pull/75182 >From e6bf0819c96fcfbd73d711acc951065e2ed22d8c Mon Sep 17 00:00:00 2001 From: ln8-8 Date: Tue, 12 Dec 2023 12:47:32 +0400 Subject: [PATCH 1/3] [RISCV][MC] Add support for experimental Zimop extension This implement

[clang] ae2f816 - [CMake] Include opt-viewer in Fuchsia toolchain (#75296)

2023-12-13 Thread via cfe-commits
Author: Petr Hosek Date: 2023-12-13T07:37:12-08:00 New Revision: ae2f8167eefbc78c6b6408c9ee3b7c7965ed596a URL: https://github.com/llvm/llvm-project/commit/ae2f8167eefbc78c6b6408c9ee3b7c7965ed596a DIFF: https://github.com/llvm/llvm-project/commit/ae2f8167eefbc78c6b6408c9ee3b7c7965ed596a.diff LO

[clang] f2464ca - [SVE2.1][Clang][LLVM]Int/FP reduce builtin in Clang and LLVM intrinsic (#69926)

2023-12-13 Thread via cfe-commits
Author: CarolineConcatto Date: 2023-12-13T15:45:59Z New Revision: f2464ca317bfeeedddb7cbdea3c2c8ec487890bb URL: https://github.com/llvm/llvm-project/commit/f2464ca317bfeeedddb7cbdea3c2c8ec487890bb DIFF: https://github.com/llvm/llvm-project/commit/f2464ca317bfeeedddb7cbdea3c2c8ec487890bb.diff L

[libc] [libcxx] [clang] [mlir] [lldb] [clang-tools-extra] [lld] [llvm] [SVE2.1][Clang][LLVM]Int/FP reduce builtin in Clang and LLVM intrinsic (PR #69926)

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

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via cfe-commits
https://github.com/knightXun created https://github.com/llvm/llvm-project/pull/75350 fix issue: https://github.com/llvm/llvm-project/issues/75301 >From b4fcae6b7f80a9888d361ba24ce8fb5ecf1e2df3 Mon Sep 17 00:00:00 2001 From: knightXun Date: Wed, 13 Dec 2023 23:45:47 +0800 Subject: [PATCH] [clan

[clang] [clang][sema] forbid vector_size attr when specify `-mgeneral-regs-only` on x86 (PR #75350)

2023-12-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: flyingcat (knightXun) Changes fix issue: https://github.com/llvm/llvm-project/issues/75301 --- Full diff: https://github.com/llvm/llvm-project/pull/75350.diff 2 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds

<    25   26   27   28   29   30   31   32   33   34   >