[clang] [CUDA][HIP] allow trivial ctor/dtor in device var init (PR #73140)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes Treat ctor/dtor in device var init as host device function so that they can be used to initialize file-scope device variables to match nvcc behavior. If they are non-trivial they will be diagnosed. We can

[clang-tools-extra] [clang] [llvm] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

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

[llvm] [lldb] [clang] [BOLT] Extend calculateEmittedSize for Block Size Calculation (PR #73076)

2023-11-22 Thread via cfe-commits
https://github.com/ShatianWang updated https://github.com/llvm/llvm-project/pull/73076 >From 322c9ed213a0aa674d822a01e8b809eb1be628a5 Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Tue, 1 Jun 2021 11:37:41 -0700 Subject: [PATCH 1/3] Rebase: [Facebook] Add clang driver options to test debug i

[llvm] [lldb] [clang] [BOLT] Extend calculateEmittedSize for Block Size Calculation (PR #73076)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-mc @llvm/pr-subscribers-lldb Author: ShatianWang (ShatianWang) Changes This commit modifies BinaryContext::calculateEmittedSize to update the BinaryBasicBlock::OutputAddressRange for each basic block in the input BF. Th

[llvm] [lldb] [clang] [BOLT] Extend calculateEmittedSize for Block Size Calculation (PR #73076)

2023-11-22 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r e07fec10ac208c2868a24c5c0be88e45778b297e..98e1f4c3b15f677e5dbfa85dace75e4c092bb99f cross-

[clang] [OpenACC] Implement 'routine' construct parsing (PR #73143)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes The 'routine' construct applies either to a function directly, or, when provided a name, applies to the function named (and is visible in the current scope). This patch implements the parsing for this. The

[clang] [clang] Fix sorting module headers (PR #73146)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Tulio Magno Quites Machado Filho (tuliom) Changes Struct Module::Header is not a POD type. As such, qsort() and llvm::array_pod_sort() must not be used to sort it. This became an issue with the new imple

[clang] [clang] Fix sorting module headers (PR #73146)

2023-11-22 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 1dd387e10624ece478759ec95c18545d051b7dbe d0a86b80256a45bfdee790a7aec5a48d2d71e6bb --

[clang-tools-extra] [clang-tidy] Add new performance-use-starts-ends-with check (PR #72385)

2023-11-22 Thread via cfe-commits
EugeneZelenko wrote: Historically, `modernize` was separate binary which was merged with `Clang-tidy`. Its intend was to simplify migration to features added in newer versions of C++. Even if performance/readability are affected, code migration to newer standards is primary advantage. https:/

[clang] [Clang] Coroutines code gen check for member call noexcept nested in a temp expr (PR #73160)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yuxuan Chen (yuxuanchen1997) Changes Previously we were not properly skipping the generation of the `try { }` block around the `init_suspend.await_resume()` if the `await_resume` is not returning void. The reason being that the re

[llvm] [flang] [clang] [flang][OpenMP] Add semantic check for declare target (PR #72770)

2023-11-22 Thread via cfe-commits
https://github.com/shraiysh updated https://github.com/llvm/llvm-project/pull/72770 >From 96b9d9e756cae219e903889ef3af83d774f93516 Mon Sep 17 00:00:00 2001 From: Shraiysh Vaishay Date: Sat, 18 Nov 2023 20:02:30 -0600 Subject: [PATCH] [flang][OpenMP] Add semantic check for declare target This p

[flang] [clang] [flang] Enable alias tags pass by default (PR #73111)

2023-11-22 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 fbfd2c9972695bc74a646bfa5e3e2d00477dabe2 b5b0aa7c97dcdd723ca53c71b77382e834ec1938 --

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 Thread via cfe-commits
https://github.com/Logikable created https://github.com/llvm/llvm-project/pull/73176 …inters. Calling __atomic_fetch_op_n is undefined for misaligned pointers. Since the backend can handle atomic IR on misaligned pointers, emit that instead. To keep things simple, we make this change for all

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: None (Logikable) Changes …inters. Calling __atomic_fetch_op_n is undefined for misaligned pointers. Since the backend can handle atomic IR on misaligned pointers, emit

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 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 07fdc084fe75f971688d4140a5bd2dcb1d60eba2 51423d866934f1507b64f8049d7cfcedf9727e43 --

[llvm] [clang] [CUDA][HIP] Improve variable registration with the new driver (PR #73177)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: This patch adds support for registering texture / surface variables from CUDA / HIP. Additionally, we now properly track the `extern` and `const` flags that are also used in these runtime funct

[llvm] [clang] [CUDA][HIP] Improve variable registration with the new driver (PR #73177)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: This patch adds support for registering texture / surface variables from CUDA / HIP. Additionally, we now properly track the `exter

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 Thread via cfe-commits
https://github.com/Logikable updated https://github.com/llvm/llvm-project/pull/73176 >From cba04d497b09aa932b9f515b353d00794abac011 Mon Sep 17 00:00:00 2001 From: Sean Luchen Date: Fri, 17 Nov 2023 17:29:52 + Subject: [PATCH] [clang][CodeGen] Emit atomic IR instead of libcalls for misalign

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 Thread via cfe-commits
https://github.com/Logikable updated https://github.com/llvm/llvm-project/pull/73176 >From d0f164da6b75d5698da45d863f7d955cecd94f20 Mon Sep 17 00:00:00 2001 From: Sean Luchen Date: Fri, 17 Nov 2023 17:29:52 + Subject: [PATCH] [clang][CodeGen] Emit atomic IR instead of libcalls for misalign

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-11-22 Thread via cfe-commits
https://github.com/Logikable updated https://github.com/llvm/llvm-project/pull/73176 >From dd6964d9108cf16fb062c1c809abbd75dae7ff65 Mon Sep 17 00:00:00 2001 From: Sean Luchen Date: Fri, 17 Nov 2023 17:29:52 + Subject: [PATCH] [clang][CodeGen] Emit atomic IR instead of libcalls for misalign

[clang] [llvm] [flang] [flang][OpenMP] Add semantic check for declare target (PR #72770)

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

[clang] 8840eb3 - [flang][OpenMP] Add semantic check for declare target (#72770)

2023-11-22 Thread via cfe-commits
Author: Shraiysh Date: 2023-11-22T16:13:14-06:00 New Revision: 8840eb3fb535bc44704bb61515ca90dceaae35a7 URL: https://github.com/llvm/llvm-project/commit/8840eb3fb535bc44704bb61515ca90dceaae35a7 DIFF: https://github.com/llvm/llvm-project/commit/8840eb3fb535bc44704bb61515ca90dceaae35a7.diff LOG:

[compiler-rt] [clang] [llvm] [lld] [flang] [libc] [libcxx] Fix ISel crash when lowering BUILD_VECTOR (PR #73186)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: David Li (david-xl) Changes 512bit vpbroadcastw is available only with AVX512BW. Avoid lowering BUILD_VEC into vbroard_cast node when the condition is not met. This fixed a crash (see the added new test). --- Full diff: https://git

[clang] [AArch64][SME2] Add multi-vector SEL (x2, x4) ACLE builtins & intrinsics (PR #73188)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Add multi-vector SEL (x2, x4) ACLE builtins & intrinsics Patch by: David Sherwood --- Patch is 114.68 KiB, truncated to 20.00 KiB below, full version: https://github.com

[clang] b14f651 - [Driver] Default Generic_GCC aarch64_be to -fasynchronous-unwind-tables (#72971)

2023-11-22 Thread via cfe-commits
Author: dong jianqiang Date: 2023-11-23T09:30:51+08:00 New Revision: b14f651caf4bb507753ffc94db8911bb2e2a7995 URL: https://github.com/llvm/llvm-project/commit/b14f651caf4bb507753ffc94db8911bb2e2a7995 DIFF: https://github.com/llvm/llvm-project/commit/b14f651caf4bb507753ffc94db8911bb2e2a7995.diff

[clang] [Driver] Default Generic_GCC aarch64_be to -fasynchronous-unwind-tables (PR #72971)

2023-11-22 Thread via cfe-commits
https://github.com/hstk30-hw closed https://github.com/llvm/llvm-project/pull/72971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix emitvaarg when struct is null (PR #72624)

2023-11-22 Thread via cfe-commits
Jolyon0202 wrote: @efriedma-quic https://github.com/llvm/llvm-project/pull/72624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA][HIP] allow trivial ctor/dtor in device var init (PR #73140)

2023-11-22 Thread via cfe-commits
alexfh wrote: Could you first land the two reverts (511cecff7f76958ebfe713189bc106615763b64a and e9a8e906d4c14eb4b317a7420b9bba3dc7321ba2) and then have the third commit properly reverted? @Artem-B may be unavailable for a few more days, but we'd like a fix/revert to land very soon. https://g

[libunwind] [libunwind][WebAssembly] Don't build libunwind.cpp (PR #73196)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Heejin Ahn (aheejin) Changes Wasm doesn't use that file; Wasm does not allow access of system registers and those functionalities are provided from the VM. Wasm only uses https://github.com/llvm/llvm-project/blob/main/libunwind/src/Unw

[clang] b16f765 - [LinkerWrapper] Accept some needed lld-link linker arguments for COFF targets (#72889)

2023-11-22 Thread via cfe-commits
Author: Joseph Huber Date: 2023-11-22T20:23:23-06:00 New Revision: b16f765d6fec56a07aecd2056bb1760a9e72d64f URL: https://github.com/llvm/llvm-project/commit/b16f765d6fec56a07aecd2056bb1760a9e72d64f DIFF: https://github.com/llvm/llvm-project/commit/b16f765d6fec56a07aecd2056bb1760a9e72d64f.diff

[clang] [CUDA][HIP] allow trivial ctor/dtor in device var init (PR #73140)

2023-11-22 Thread via cfe-commits
alexfh wrote: Thank you! https://github.com/llvm/llvm-project/pull/73140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2eb9c64 - [RISCV] Use Float type instead of Half type for Fixed RVV vector type mangling (#73091)

2023-11-22 Thread via cfe-commits
Author: Jianjian Guan Date: 2023-11-23T11:08:27+08:00 New Revision: 2eb9c649f0971aaa05404764d74ee7fff15b83ed URL: https://github.com/llvm/llvm-project/commit/2eb9c649f0971aaa05404764d74ee7fff15b83ed DIFF: https://github.com/llvm/llvm-project/commit/2eb9c649f0971aaa05404764d74ee7fff15b83ed.diff

[llvm] [clang] ms inline asm: Fix {call,jmp} fptr (PR #73207)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes https://reviews.llvm.org/D151863 (2023-05) removed `BaseReg = BaseReg ? BaseReg : 1` (introduced in commit 175d0aeef3725ce17032e9ef76e018139f2f52f0 (2013)) and caused a regression: ensuring a non-zero `BaseReg

[clang] [clang] Add partial-inlining options (PR #73210)

2023-11-22 Thread via cfe-commits
https://github.com/Jolyon0202 created https://github.com/llvm/llvm-project/pull/73210 Adaptation of adding -fpartial-inlining and -fno-partial-inlining options with GCC. >From f525387d65a1cdee561f919b3351b528bd44a535 Mon Sep 17 00:00:00 2001 From: Jian Yang Date: Thu, 23 Nov 2023 12:54:52 +08

[clang] [clang] Add partial-inlining options (PR #73210)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jolyon (Jolyon0202) Changes Adaptation of adding -fpartial-inlining and -fno-partial-inlining options with GCC. --- Full diff: https://github.com/llvm/llvm-project/pull/73210.diff 3 Files Affected: - (modified) clang/include/cla

[clang] 0d2860b - [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (#71677)

2023-11-22 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-11-23T05:38:14Z New Revision: 0d2860b795879f4dd152963b52f969b53b136899 URL: https://github.com/llvm/llvm-project/commit/0d2860b795879f4dd152963b52f969b53b136899 DIFF: https://github.com/llvm/llvm-project/commit/0d2860b795879f4dd152963b52f969b53b136899.diff

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

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

[clang] [Driver] Add the --gcc-triple option (PR #73214)

2023-11-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Tom Stellard (tstellar) Changes When --gcc-triple is used, the driver will search for the 'best' gcc installation that has the given triple. This is useful for distributions that want clang to use a spec

[clang] [Driver] Add the --gcc-triple option (PR #73214)

2023-11-22 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 7f18f9a28c73490d09938af1fdb1908eb333a62c 72f6f3a611f237f71ce02cfb79620257a9e2d827 --

[clang] 083a539 - clang/CodeGen/RISCV: test lowering of math builtins (#71399)

2023-11-22 Thread via cfe-commits
Author: Ramkumar Ramachandra Date: 2023-11-23T07:39:32Z New Revision: 083a53971758c6f9bbd448eeb9c5d839661e3f68 URL: https://github.com/llvm/llvm-project/commit/083a53971758c6f9bbd448eeb9c5d839661e3f68 DIFF: https://github.com/llvm/llvm-project/commit/083a53971758c6f9bbd448eeb9c5d839661e3f68.dif

[clang] [clang] Add partial-inlining options (PR #73210)

2023-11-23 Thread via cfe-commits
https://github.com/Jolyon0202 updated https://github.com/llvm/llvm-project/pull/73210 >From d5679e5dba708e8a54c63d63f3da6c92a6cf0aeb Mon Sep 17 00:00:00 2001 From: Jian Yang Date: Thu, 23 Nov 2023 12:54:52 +0800 Subject: [PATCH] [clang] Add partial-inlining options Adaptation of adding -fparti

[clang] [clang-format] Fix a bug in formating `#define A x:` (PR #73220)

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

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2023-11-23 Thread via cfe-commits
https://github.com/hstk30-hw edited https://github.com/llvm/llvm-project/pull/72197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2023-11-23 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/72197 >From 18c2151e870b757fe3238cc4031597352ecc440e Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Sat, 18 Nov 2023 11:00:29 + Subject: [PATCH] fix: empty record size > 64 with align let va_list get out of sync

[clang] [Driver][MachineOutliner] Support -moutline option for aarch64_be (PR #73223)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: dong jianqiang (dongjianqiang2) Changes This patch propagates the -moutline flag when target is aarch64_be, fix warning: 'aarch64_be' does not support '-moutline'; flag ignored [-Woption-ignored] --- Full diff: https://github.com/

[clang] 5513d58 - [OpenMP][AMDGPU] Do not include 'ockl' implementations in OpenMP (#70462)

2023-10-27 Thread via cfe-commits
Author: Joseph Huber Date: 2023-10-27T14:56:29-05:00 New Revision: 5513d58ad5da093ac94ec511e575b1d27606b737 URL: https://github.com/llvm/llvm-project/commit/5513d58ad5da093ac94ec511e575b1d27606b737 DIFF: https://github.com/llvm/llvm-project/commit/5513d58ad5da093ac94ec511e575b1d27606b737.diff

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-27 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 7711f8c85c7e106b2662d1a2505f91f0417fac5a Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH] [clang] Change representation of CurLexerKind Prev

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-27 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 6a41a1f9a48135fe1a43b70904e105fe638189ce Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH] [clang] Change representation of CurLexerKind Prev

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-27 Thread via cfe-commits
serge-sans-paille wrote: Agreed. Sorry I pushed --force my change out of habit :-/ https://github.com/llvm/llvm-project/pull/70381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-27 Thread via cfe-commits
@@ -6411,6 +6411,40 @@ static Value *simplifyBinaryIntrinsic(Function *F, Value *Op0, Value *Op1, return Constant::getNullValue(ReturnType); break; } + case Intrinsic::ptrmask: { +if (isa(Op0) || isa(Op1)) + return PoisonValue::get(Op0->getType()); + +

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-27 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/67166 >From 24c65907e7e6792e2d5395102992ce3cdb42fb6d Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Fri, 22 Sep 2023 08:21:21 -0500 Subject: [PATCH 1/7] [InstSimplify] Add tests for simplify `llvm.ptrmask`; NFC

[clang] [clang] Change representation of CurLexerKind (PR #70381)

2023-10-27 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70381 >From 3fe63f81fcb999681daa11b2890c82fda3aaeef5 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH] [clang] Change representation of CurLexerKind Prev

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-27 Thread via cfe-commits
philnik777 wrote: You can add a base class like this: https://godbolt.org/z/ccG7jcqee https://github.com/llvm/llvm-project/pull/68494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 703895b - [clang] Language to String function (#69487)

2023-10-27 Thread via cfe-commits
Author: Yusra Syeda Date: 2023-10-27T17:22:49-04:00 New Revision: 703895b131720682a3ca596a96a7c94fb281c0e4 URL: https://github.com/llvm/llvm-project/commit/703895b131720682a3ca596a96a7c94fb281c0e4 DIFF: https://github.com/llvm/llvm-project/commit/703895b131720682a3ca596a96a7c94fb281c0e4.diff L

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-27 Thread via cfe-commits
goldsteinn wrote: > The InstCombine/ptrmask.ll test is failing in CI. Bah, forgot to rebase the instcombine ptrmask tests ontop of simplication fix. https://github.com/llvm/llvm-project/pull/67166 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [clang-format][NFC] Delete TT_LambdaArrow (PR #70519)

2023-10-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes It's one type of TT_TrailingReturnArrow. --- Full diff: https://github.com/llvm/llvm-project/pull/70519.diff 5 Files Affected: - (modified) clang/lib/Format/ContinuationIndenter.cpp (+5-3) - (modified)

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-27 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/67166 >From 686eff52ac0878fa9545481eaf32b47350c68be8 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Fri, 22 Sep 2023 08:21:21 -0500 Subject: [PATCH 1/8] [InstSimplify] Add tests for simplify `llvm.ptrmask`; NFC

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-27 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/67166 >From 686eff52ac0878fa9545481eaf32b47350c68be8 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Fri, 22 Sep 2023 08:21:21 -0500 Subject: [PATCH 1/7] [InstSimplify] Add tests for simplify `llvm.ptrmask`; NFC

[clang] [clang][analyzer][NFC] Add more information to CallDescriptions in StreamChecker (PR #70540)

2023-10-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes 'tmpfile' has only one form that it has no argument. --- Full diff: https://github.com/llvm/llvm-project/pull/70540.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp (+1-

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/70543 None >From 3fe63f81fcb999681daa11b2890c82fda3aaeef5 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Oct 2023 22:31:43 +0200 Subject: [PATCH 1/2] [clang] Change representation of CurLexer

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70543 >From c9d34dae319de3eed1a23c23ff7b6d7673a04b79 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 27 Oct 2023 22:48:08 +0200 Subject: [PATCH] [clang] Change GetCharAndSizeSlow interface to by-v

[clang] 8db38bd - [analyzer] Extend EnumCastOutOfRange diagnostics (#68191)

2023-10-28 Thread via cfe-commits
Author: Endre Fülöp Date: 2023-10-28T10:22:46+02:00 New Revision: 8db38bd34421f87cbe7813aeeca81bcbd935025d URL: https://github.com/llvm/llvm-project/commit/8db38bd34421f87cbe7813aeeca81bcbd935025d DIFF: https://github.com/llvm/llvm-project/commit/8db38bd34421f87cbe7813aeeca81bcbd935025d.diff L

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
cor3ntin wrote: Do you have benchmarks? I wonder if we should use a small struct instead of pair, it would be slightly easier to maintain I think. Looks good otherwise. https://github.com/llvm/llvm-project/pull/70543 ___ cfe-commits mailing list cfe-c

[clang] 4f6757c - [JITLink][RISCV] Implement eh_frame handling (#68253)

2023-10-28 Thread via cfe-commits
Author: Jonas Hahnfeld Date: 2023-10-28T11:30:43+02:00 New Revision: 4f6757ce4bc78b7f56e4cb2a84c35444cd71c145 URL: https://github.com/llvm/llvm-project/commit/4f6757ce4bc78b7f56e4cb2a84c35444cd71c145 DIFF: https://github.com/llvm/llvm-project/commit/4f6757ce4bc78b7f56e4cb2a84c35444cd71c145.diff

[clang] [clang-format][NFC] Delete TT_LambdaArrow (PR #70519)

2023-10-28 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/70519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Change LLVM style to BreakAfterAttributes == ABS_Leave (PR #70360)

2023-10-28 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/70360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
https://github.com/LYP951018 created https://github.com/llvm/llvm-project/pull/70548 Modifications: - Skipped the instantiation of the explicit-specifier during Decl substitution if we were deducing template arguments and the explicit-specifier was value dependent. - Instantiated the explici

[clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: 刘雨培 (LYP951018) Changes Modifications: - Skipped the instantiation of the explicit-specifier during Decl substitution if we were deducing template arguments and the explicit-specifier was value dependent. - Instantiated the explicit-spe

[clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/70548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
https://github.com/LYP951018 edited https://github.com/llvm/llvm-project/pull/70548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
https://github.com/LYP951018 updated https://github.com/llvm/llvm-project/pull/70548 From 4f8111b58324d5b670311717d36654f64e6dac01 Mon Sep 17 00:00:00 2001 From: letrec Date: Sat, 28 Oct 2023 18:05:36 +0800 Subject: [PATCH] Defer the instantiation of explicit-specifier after constraint checkin

[clang] [Clang] Defer the instantiation of explicit-specifier until constraint checking completes (PR #70548)

2023-10-28 Thread via cfe-commits
https://github.com/LYP951018 updated https://github.com/llvm/llvm-project/pull/70548 From a5929ddc33057416cee75d91f13a1252f4357524 Mon Sep 17 00:00:00 2001 From: letrec Date: Sat, 28 Oct 2023 18:05:36 +0800 Subject: [PATCH] Defer the instantiation of explicit-specifier after constraint checkin

[clang] 497b2eb - [clang-format] Change LLVM style to BreakAfterAttributes == ABS_Leave (#70360)

2023-10-28 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2023-10-28T16:02:03+04:00 New Revision: 497b2ebb9edcfd5315586b796f47589e9820b4b9 URL: https://github.com/llvm/llvm-project/commit/497b2ebb9edcfd5315586b796f47589e9820b4b9 DIFF: https://github.com/llvm/llvm-project/commit/497b2ebb9edcfd5315586b796f47589e9820b4b9.

[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

2023-10-28 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/70176 >From 9b559ac5504593ab7aa21539b49ece7eea944eb5 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 25 Oct 2023 10:08:24 +0200 Subject: [PATCH 1/3] [Clang] Diagnose defaulted assignment operator with incomp

[clang-tools-extra] [clang-tidy] fix match for binaryOperator in ExprMutationAnalyzer for misc-const-correctness (PR #70559)

2023-10-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Julian Schmidt (5chmidti) Changes The `ExprMutationAnalyzer`s matcher of `binaryOperator`s that contained the variable expr, were previously narrowing the variable to be type dependent, when the `binaryOperator` should have been narrowed as

[clang] [Clang] Warn against unused parameters in C++ coroutines with `-Wunused-parameters` (PR #70567)

2023-10-28 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 b1554fe080e8b074a30f2a4cb88666bdb7b1ce9e ba6c43cc63e9ae3c8d174406ced4df839af3e0a7 --

[clang] e00d32a - [clang-format][NFC] Delete TT_LambdaArrow (#70519)

2023-10-28 Thread via cfe-commits
Author: Owen Pan Date: 2023-10-28T12:48:00-07:00 New Revision: e00d32afb9d33a1eca48e2b041c9688436706c5b URL: https://github.com/llvm/llvm-project/commit/e00d32afb9d33a1eca48e2b041c9688436706c5b DIFF: https://github.com/llvm/llvm-project/commit/e00d32afb9d33a1eca48e2b041c9688436706c5b.diff LOG:

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70543 >From 7bbcabd82edc1736cc22243e109dc0858036c6ac Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 27 Oct 2023 22:48:08 +0200 Subject: [PATCH] [clang] Change GetCharAndSizeSlow interface to by-v

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
serge-sans-paille wrote: @cor3ntin yep, looks better with a small struct, updated pushed https://github.com/llvm/llvm-project/pull/70543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
@@ -1964,11 +1969,14 @@ bool Lexer::LexIdentifierContinue(Token &Result, const char *CurPtr) { /// isHexaLiteral - Return true if Start points to a hex constant. /// in microsoft mode (where this is supposed to be several different tokens). bool Lexer::isHexaLiteral(const char

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
@@ -2012,15 +2020,15 @@ bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { // If we have a digit separator, continue. if (C == '\'' && (LangOpts.CPlusPlus14 || LangOpts.C23)) { -unsigned NextSize; -char Next = getCharAndSizeNoWarn(CurPtr + Size, N

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
@@ -2085,8 +2093,9 @@ const char *Lexer::LexUDSuffix(Token &Result, const char *CurPtr, unsigned Consumed = Size; unsigned Chars = 1; while (true) { -unsigned NextSize; -char Next = getCharAndSizeNoWarn(CurPtr + Consumed, NextSize, LangOpts);

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
@@ -565,10 +565,9 @@ Scanner::cleanStringIfNeeded(const dependency_directives_scan::Token &Tok) { const char *BufPtr = Input.begin() + Tok.Offset; const char *AfterIdent = Input.begin() + Tok.getEnd(); while (BufPtr < AfterIdent) { -unsigned Size; -Spelling[Spell

[clang] [clang-format][NFC] Reduce indent (PR #70583)

2023-10-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Björn Schäpers (HazardyKnusperkeks) Changes By using if init statement. --- Full diff: https://github.com/llvm/llvm-project/pull/70583.diff 1 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+10-12) ``

[clang] [clang][Interp] Handle CXXTryStmts (PR #70584)

2023-10-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Just do the same thing the current interpreter does: Ignore all handlerrs and visit the try block like normal. --- Full diff: https://github.com/llvm/llvm-project/pull/70584.diff 3 Files Affected: - (modi

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70543 >From 7bbcabd82edc1736cc22243e109dc0858036c6ac Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 27 Oct 2023 22:48:08 +0200 Subject: [PATCH 1/2] [clang] Change GetCharAndSizeSlow interface to

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-28 Thread via cfe-commits
@@ -1964,11 +1969,14 @@ bool Lexer::LexIdentifierContinue(Token &Result, const char *CurPtr) { /// isHexaLiteral - Return true if Start points to a hex constant. /// in microsoft mode (where this is supposed to be several different tokens). bool Lexer::isHexaLiteral(const char

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-29 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 e00d32afb9d33a1eca48e2b041c9688436706c5b a20790e9e87d2ede14605b277184d2b8c5b0979f --

[clang] Perf/lexer faster slow get char and size (PR #70543)

2023-10-29 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/70543 >From 7bbcabd82edc1736cc22243e109dc0858036c6ac Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 27 Oct 2023 22:48:08 +0200 Subject: [PATCH 1/2] [clang] Change GetCharAndSizeSlow interface to

[clang] [clang][Interp] Fix variables refering to their own address (PR #70587)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This was a combination of issues: 1) We can subtract pointers that don't point into arrays. 2) In C, everything is possible. --- Full diff: https://github.com/llvm/llvm-project/pull/70587.diff 3 Files A

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-29 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69102 >From 21156656433fb8d2dc5a805d97cbd20fa916fff9 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Sun, 15 Oct 2023 11:39:42 +0100 Subject: [PATCH 1/6] Fix #35272: Don't replace typedefs in extern c scope --- ...

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-29 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69102 >From 21156656433fb8d2dc5a805d97cbd20fa916fff9 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Sun, 15 Oct 2023 11:39:42 +0100 Subject: [PATCH 1/7] Fix #35272: Don't replace typedefs in extern c scope --- ...

[clang] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-29 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69102 >From 21156656433fb8d2dc5a805d97cbd20fa916fff9 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Sun, 15 Oct 2023 11:39:42 +0100 Subject: [PATCH 1/7] Fix #35272: Don't replace typedefs in extern c scope --- ...

[clang] Fix #68492: point to the correct const location (PR #69103)

2023-10-29 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69103 >From 354a8e4034afd82e6ea854848a86b9011e26269b Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Fri, 13 Oct 2023 19:27:15 +0100 Subject: [PATCH 1/5] Fix #68492: point to the correct const location --- .../read

[clang-tools-extra] Fix #68492: point to the correct const location (PR #69103)

2023-10-29 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69103 >From 354a8e4034afd82e6ea854848a86b9011e26269b Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Fri, 13 Oct 2023 19:27:15 +0100 Subject: [PATCH 1/5] Fix #68492: point to the correct const location --- .../read

[clang] [OpenMP] Add support for Solaris (PR #70593)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes Tested on `amd64-pc-solaris2.11`. --- Full diff: https://github.com/llvm/llvm-project/pull/70593.diff 7 Files Affected: - (modified) clang/lib/Driver/ToolChains/Solaris.cpp (+5) - (modified) clang/test/Driver

[clang] [OpenMP] Add support for Solaris (PR #70593)

2023-10-29 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 640274ff1fe17852615564a80d9f8c69b67f1d59 808764675f3cc37f9b2e0f3f31372be93ada6b84 --

[clang] [clang] Fix clang++ crash on assertions when compiling source (PR #70594)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rajveer Singh Bharadwaj (Rajveer100) Changes Resolves Issue #35603 This change makes the `assertion` less strict in `debug` builds by stripping qualifiers from the base class and ignoring them. I hope `weakened` assertions don't affect o

[clang-tools-extra] [clang-tidy] Add readability-redundant-casting check (PR #70595)

2023-10-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Detects explicit type casting operations that involve the same source and destination types, and subsequently recommend their removal. Covers a range of explicit casting operations. Its primary objectiv

[clang-tools-extra] 3f64c0f - [clang-tidy] Fix readability-avoid-const-params-in-decls - point to the correct const location (#69103)

2023-10-29 Thread via cfe-commits
Author: Da-Viper Date: 2023-10-29T15:17:32+01:00 New Revision: 3f64c0fc48c5b2efc5b9ba11351647d515f23418 URL: https://github.com/llvm/llvm-project/commit/3f64c0fc48c5b2efc5b9ba11351647d515f23418 DIFF: https://github.com/llvm/llvm-project/commit/3f64c0fc48c5b2efc5b9ba11351647d515f23418.diff LOG:

<    18   19   20   21   22   23   24   25   26   27   >