[clang] [llvm] [libunwind] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

2023-11-11 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 d3d49bca3ed968226ab9dc22f27d779eeb973c22 b58e039dd132518a3a62590d32775c2bc5928499 --

[libunwind] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel updated https://github.com/llvm/llvm-project/pull/72040 >From cd42165f8b3c74f58632ee12d60aa5cfc6a14b4a Mon Sep 17 00:00:00 2001 From: Michael Kenzel Date: Sat, 11 Nov 2023 22:09:05 +0100 Subject: [PATCH] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL --- l

[clang] aebd232 - [Driver][FreeBSD][NFC] A bit of clean up

2023-11-11 Thread Brad Smith via cfe-commits
Author: Brad Smith Date: 2023-11-11T20:42:37-05:00 New Revision: aebd23204b305c86e8e8d2cd0a072f9df4dc55d5 URL: https://github.com/llvm/llvm-project/commit/aebd23204b305c86e8e8d2cd0a072f9df4dc55d5 DIFF: https://github.com/llvm/llvm-project/commit/aebd23204b305c86e8e8d2cd0a072f9df4dc55d5.diff LO

[libunwind] [libunwind] remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel created https://github.com/llvm/llvm-project/pull/72043 libunwind uses a minimum set of necessary standard library functions, basically just `memset` and `memcpy`. There is a single use of `strcpy` to copy the bytes `"CLNGUNW"` into a `uint64_t` object. This i

[libunwind] [libunwind] remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Michael Kenzel (michael-kenzel) Changes libunwind uses a minimum set of necessary standard library functions, basically just `memset` and `memcpy`. There is a single use of `strcpy` to copy the bytes `"CLNGUNW"` into a `uint64_t` obje

[libunwind] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel updated https://github.com/llvm/llvm-project/pull/72040 >From 00742101facde57594384727de3359d1d85554a4 Mon Sep 17 00:00:00 2001 From: Michael Kenzel Date: Sat, 11 Nov 2023 22:09:05 +0100 Subject: [PATCH] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL --- l

[clang] 1eaf926 - [clang][CGObjCGNU] Remove no-op ptr-to-ptr bitcasts (NFC)

2023-11-11 Thread via cfe-commits
Author: Youngsuk Kim Date: 2023-11-11T21:21:16-05:00 New Revision: 1eaf926f2c61b4a5cd35cca551246c020a60ad78 URL: https://github.com/llvm/llvm-project/commit/1eaf926f2c61b4a5cd35cca551246c020a60ad78 DIFF: https://github.com/llvm/llvm-project/commit/1eaf926f2c61b4a5cd35cca551246c020a60ad78.diff

[libunwind] [libunwind] remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel edited https://github.com/llvm/llvm-project/pull/72043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel updated https://github.com/llvm/llvm-project/pull/72043 >From c423c5bd51bd7aa093025b2892706b1968eba09d Mon Sep 17 00:00:00 2001 From: Michael Kenzel Date: Sun, 12 Nov 2023 02:46:15 +0100 Subject: [PATCH] [libunwind] Remove unnecessary strcpy dependency --- li

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel edited https://github.com/llvm/llvm-project/pull/72043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel updated https://github.com/llvm/llvm-project/pull/72040 >From 7e285a5121be99e41097e4615cab7568e1f4b7d0 Mon Sep 17 00:00:00 2001 From: Michael Kenzel Date: Sat, 11 Nov 2023 22:09:05 +0100 Subject: [PATCH] [libunwind] Introduce _LIBUNWIND_TRACE_DWARF_EVAL --- l

[libunwind] [libunwind] Introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

2023-11-11 Thread Michael Kenzel via cfe-commits
https://github.com/michael-kenzel edited https://github.com/llvm/llvm-project/pull/72040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-11-11 Thread via cfe-commits
HaohaiWen wrote: > Your original example does not verify: https://alive2.llvm.org/ce/z/Bkd89Z > Can you please provide a correct example of what you're trying to do? As I said in previous comments: > This requires first optimize > %sly = shl nuw i32 %zext.y, 8 > %yx = or i32 %zext.x, %sly >

[clang] [clang] Add bitint classification for __builtin_classify_type (PR #72036)

2023-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/72036 >From f3cd338335dbbaf89248b6d207379d325166977e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 11 Nov 2023 18:44:13 +0100 Subject: [PATCH] [clang] Add bitint classification for __builtin_

[clang] [clang] Add bitint classification for __builtin_classify_type (PR #72036)

2023-11-11 Thread Timm Baeder via cfe-commits
@@ -1060,7 +1060,7 @@ if (UNIX AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9 - append("-fdiagnostics-color" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + append("-fdiagnostics-col

[clang] [clang] Add bitint classification for __builtin_classify_type (PR #72036)

2023-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/72036 >From c7210706c0f45d3f4693e796970c73e3ef6dd48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 11 Nov 2023 18:44:13 +0100 Subject: [PATCH] [clang] Add bitint classification for __builtin_

[clang] 190b917 - [clang][Interp] Handle SizeOfPackExprs (#71929)

2023-11-11 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-12T05:34:16+01:00 New Revision: 190b9179a5def1db3483617286d5a8f4a8dde1f3 URL: https://github.com/llvm/llvm-project/commit/190b9179a5def1db3483617286d5a8f4a8dde1f3 DIFF: https://github.com/llvm/llvm-project/commit/190b9179a5def1db3483617286d5a8f4a8dde1f3.diff L

[clang] [clang][Interp] Handle SizeOfPackExprs (PR #71929)

2023-11-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/71929 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-tools-extra] [LLVM] Add IRNormalizer Pass (PR #68176)

2023-11-11 Thread Justin Fargnoli via cfe-commits
@@ -0,0 +1,637 @@ +//===--- IRNormalizer.cpp - IR Normalizer ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.

[clang] [llvm] [clang-tools-extra] [LLVM] Add IRNormalizer Pass (PR #68176)

2023-11-11 Thread Justin Fargnoli via cfe-commits
https://github.com/justinfargnoli edited https://github.com/llvm/llvm-project/pull/68176 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Simplify parseBracedList() (PR #72010)

2023-11-11 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/72010 >From f3f303d80a40b9ce8a13721cfa108b4094b8b2c3 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 10 Nov 2023 17:34:06 -0800 Subject: [PATCH 1/2] [clang-format][NFC] Simplify parseBracedList() --- clang/lib/Form

[clang] [llvm] [InstCombine] Use zext's nneg flag for icmp folding (PR #70845)

2023-11-11 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. LGTM. Thank you! Do you have the access to merge PR? https://github.com/llvm/llvm-project/pull/70845 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] 8ff81de - [clang][Interp][NFC] Remove some redundant code

2023-11-11 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-11-12T06:37:51+01:00 New Revision: 8ff81deeaa71ec5792c480c9b962f7c48753e0a6 URL: https://github.com/llvm/llvm-project/commit/8ff81deeaa71ec5792c480c9b962f7c48753e0a6 DIFF: https://github.com/llvm/llvm-project/commit/8ff81deeaa71ec5792c480c9b962f7c48753e0a6.diff LO

[clang] 78a05b9 - [DependencyScanning] Include DenseMap.h instead of DenseSet.h (NFC)

2023-11-11 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2023-11-11T21:40:59-08:00 New Revision: 78a05b92a87cfa22263499492cc80c8c9cadcecc URL: https://github.com/llvm/llvm-project/commit/78a05b92a87cfa22263499492cc80c8c9cadcecc DIFF: https://github.com/llvm/llvm-project/commit/78a05b92a87cfa22263499492cc80c8c9cadcecc.diff L

[clang] [clang] Fixes compile error that double colon operator cannot resolve macro with parentheses. (PR #68618)

2023-11-11 Thread Yonggang Luo via cfe-commits
https://github.com/lygstate updated https://github.com/llvm/llvm-project/pull/68618 >From 6a8fd54ed41974052940194515742cb73924aff1 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Tue, 10 Oct 2023 02:23:34 +0800 Subject: [PATCH] [clang] Fixes compile error that double colon operator cannot re

[clang-tools-extra] [clangd] Correctly identify the next token after the completion point (PR #69153)

2023-11-11 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/69153 >From 26861317e73e0e1a1d118688472ad0f0fc9af134 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 16 Oct 2023 03:51:48 -0400 Subject: [PATCH] [clangd] Correctly identify the next token after the compl

[clang-tools-extra] [clangd] Correctly identify the next token after the completion point (PR #69153)

2023-11-11 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Rebased https://github.com/llvm/llvm-project/pull/69153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Correctly identify the next token after the completion point (PR #69153)

2023-11-11 Thread Nathan Ridge via cfe-commits
@@ -1491,6 +1491,46 @@ FuzzyFindRequest speculativeFuzzyFindRequestForCompletion( return CachedReq; } +// This function is similar to Lexer::findNextToken(), but assumes +// that the input SourceLocation is the completion point (which is +// a case findNextToken() does not

[clang] 651c502 - [clang] Stop including llvm/ADT/DenseSet.h (NFC)

2023-11-11 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2023-11-11T22:25:48-08:00 New Revision: 651c502fc8e6e1dfac4c3701e57da7bece6e637e URL: https://github.com/llvm/llvm-project/commit/651c502fc8e6e1dfac4c3701e57da7bece6e637e DIFF: https://github.com/llvm/llvm-project/commit/651c502fc8e6e1dfac4c3701e57da7bece6e637e.diff L

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson edited https://github.com/llvm/llvm-project/pull/72043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson approved this pull request. I would assume this is already transformed to memcpy but I guess it won't be for -O0 https://github.com/llvm/llvm-project/pull/72043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[libunwind] [libunwind] Remove unnecessary strcpy dependency (PR #72043)

2023-11-11 Thread Alexander Richardson via cfe-commits
@@ -143,7 +143,7 @@ _Unwind_Backtrace(_Unwind_Trace_Fn callback, void *ref) { // Create a mock exception object for force unwinding. _Unwind_Exception ex; memset(&ex, '\0', sizeof(ex)); - strcpy((char *)&ex.exception_class, "CLNGUNW"); + memcpy(&ex.exception_class, "CLN

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-11-11 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang-tools-extra] [clangd] Correctly identify the next token after the completion point (PR #69153)

2023-11-11 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thank you @zyn0217 for the review! https://github.com/llvm/llvm-project/pull/69153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] cee5987 - [clangd] Correctly identify the next token after the completion point (#69153)

2023-11-11 Thread via cfe-commits
Author: Nathan Ridge Date: 2023-11-12T02:13:22-05:00 New Revision: cee598720f51071cb2ab9ba4f29a0005d60be80e URL: https://github.com/llvm/llvm-project/commit/cee598720f51071cb2ab9ba4f29a0005d60be80e DIFF: https://github.com/llvm/llvm-project/commit/cee598720f51071cb2ab9ba4f29a0005d60be80e.diff

[clang-tools-extra] [clangd] Correctly identify the next token after the completion point (PR #69153)

2023-11-11 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/69153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-11-11 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-11-11 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

<    1   2