[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

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

[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-10 Thread via cfe-commits
jeanPerier wrote: > Yes I meant hlfir-flags.f90. Sorry about that. Thanks for the changes! No problem, thanks for the review and comments! https://github.com/llvm/llvm-project/pull/71820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This patch enables the following builtins for SME2 svbfmlslb_f32 svbfmlslb_lane_f32 svbfmlslt_f32 svbfmlslt_lane_f32 Patch by: Kerry McLaughlin --- Full diff: https

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71929.diff 3 Files Affected: - (modified) clang/lib/AST/Interp/ByteCodeExprGen.cpp (+5) - (modified) clang/lib/AST/Interp/ByteCodeExprGen.h (+1)

[clang] [llvm] [SVE2.1][Clang][LLVM]Add 128bits builtin in Clang and LLVM intrinisc (PR #71930)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-llvm-ir Author: None (CarolineConcatto) Changes This patch implements the builtins in Clang and the LLVM-IR intrinsic for the following: EXTQ // Variants are also available for: // _s8, _s16, _u16, _s32, _u32, _s64,

[clang] [llvm] [SVE2.1][Clang][LLVM]Add 128bits builtin in Clang and LLVM intrinisc (PR #71930)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (CarolineConcatto) Changes This patch implements the builtins in Clang and the LLVM-IR intrinsic for the following: EXTQ // Variants are also available for: // _s8, _s16, _u16, _s32, _u32, _s64, _u64 // _bf16, _f16, _f32, _f64 svuint8

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

2023-11-10 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 76947e040545aa1cbaa27cf0b06fae9ced272ca4 8265a5729a919e4ddb914b5322804b4c3290ee82 --

[clang] [clang-tools-extra] [llvm] [clang-format] Handle variable declarations in BreakAfterAttributes (PR #71935)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes Also fixed a bug in `isStartOfName()` and cleaned up some old test cases. Fixed #71563. This is a rework of #71755. --- Full diff: https://github.com/llvm/llvm-project/pull/71935.diff 4 Files Affected: - (mod

[clang] [clang][LoongArch] Don't imply -fdirect-access-external-data for non-PIC (PR #71887)

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

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes First step in the implementation of [RFC](https://discourse.llvm.org/t/rfc-lifetime-bound-check-for-parameters-of-coroutines/74253) ([final proposal doc](https://docs.google.com/document/d/1hkfXHuvIW1Yv5LI-

[clang] fe83acc - [AIX] Enable tests relating to 64-bit XCOFF object files (#71814)

2023-11-10 Thread via cfe-commits
Author: Jake Egan Date: 2023-11-10T09:19:56-05:00 New Revision: fe83acc173ae0c8dee93b61701fe9b7fb0f3e6a6 URL: https://github.com/llvm/llvm-project/commit/fe83acc173ae0c8dee93b61701fe9b7fb0f3e6a6 DIFF: https://github.com/llvm/llvm-project/commit/fe83acc173ae0c8dee93b61701fe9b7fb0f3e6a6.diff LOG

[openmp] [llvm] [clang] [OpenMP] Rework handling of global ctor/dtors in OpenMP (PR #71739)

2023-11-10 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 2984156fd34a6969c7461b228d90b72711e3797c 0f184906bc8ceeaefe724847d4256c0c285bb3e2 --

[clang] d51dd89 - [Driver][LTO] Copy fix empty stats filename to AIX (#71738)

2023-11-10 Thread via cfe-commits
Author: diggerlin Date: 2023-11-10T09:45:11-05:00 New Revision: d51dd892ad451c9cebc43f4de5d2758c423a91c4 URL: https://github.com/llvm/llvm-project/commit/d51dd892ad451c9cebc43f4de5d2758c423a91c4 DIFF: https://github.com/llvm/llvm-project/commit/d51dd892ad451c9cebc43f4de5d2758c423a91c4.diff LOG

[clang] [Driver][LTO] Copy fix empty stats filename to AIX (PR #71738)

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

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

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

[clang] 22c6851 - [clang][deps] Skip writing `DIAG_PRAGMA_MAPPINGS` record (#70874)

2023-11-10 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-11-10T07:04:43-08:00 New Revision: 22c68511acd61936f13843b33fbcf94bc3dd066d URL: https://github.com/llvm/llvm-project/commit/22c68511acd61936f13843b33fbcf94bc3dd066d DIFF: https://github.com/llvm/llvm-project/commit/22c68511acd61936f13843b33fbcf94bc3dd066d.diff L

[clang] [llvm] [WIP][AMDGPU] Enable hostcall printf for OpenCL (PR #70932)

2023-11-10 Thread via cfe-commits
b-sumner wrote: @vikramRH I thought the plan was that the default would switch to hostcall, but that the OpenCL runtime would override it if it detected that the target doesn't support hostcall / PCIe. https://github.com/llvm/llvm-project/pull/70932

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

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

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: None (ckandeler) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71950.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp (+50-11) - (modified) clang-tools-extra/clangd/un

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

2023-11-10 Thread via cfe-commits
ronlieb wrote: thanks, will try workaround for now ... https://github.com/llvm/llvm-project/pull/71318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-10 Thread via cfe-commits
https://github.com/yonghong-song updated https://github.com/llvm/llvm-project/pull/71856 >From 8683384a49171ce9ef1b3dc59e79c150bc3e53e2 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Thu, 9 Nov 2023 15:16:03 -0800 Subject: [PATCH] [Clang][BPF] Add __BPF_CPU_VERSION__ macro Sometimes bpf de

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

2023-11-10 Thread via cfe-commits
tomekpaszek wrote: Yes, I just couldn't find time for it. I'll try to look into it within the next few days. Great to hear you there is interest in using it! https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-commits@list

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-10 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cf1e342 - [flang][windows] Add option to link against specific MSVC CRT (#70833)

2023-11-10 Thread via cfe-commits
Author: David Truby Date: 2023-11-10T16:13:49Z New Revision: cf1e3420b0141d84770869205cfdb546609014dd URL: https://github.com/llvm/llvm-project/commit/cf1e3420b0141d84770869205cfdb546609014dd DIFF: https://github.com/llvm/llvm-project/commit/cf1e3420b0141d84770869205cfdb546609014dd.diff LOG: [

[clang] Add SME2 builtins for pfalse and ptrue (PR #71953)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matthew Devereau (MDevereau) Changes Extend pfalse and ptrue builtins with svcount_t return types to be enabled for sve2p1 and sme2 --- Full diff: https://github.com/llvm/llvm-project/pull/71953.diff 3 Files Affected: - (modified) clan

[clang] Add SME2 builtins for pfalse and ptrue (PR #71953)

2023-11-10 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 cf1e3420b0141d84770869205cfdb546609014dd 79c05d1f8554d5a4469b9501b61b47863f086ffa --

[clang] [Clang][BPF] Add __BPF_CPU_VERSION__ macro (PR #71856)

2023-11-10 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4e67234 - [Clang][BPF] Add __BPF_CPU_VERSION__ macro (#71856)

2023-11-10 Thread via cfe-commits
Author: yonghong-song Date: 2023-11-10T10:18:54-08:00 New Revision: 4e67234357b9aef4d94f0fe6e84d972fc51add91 URL: https://github.com/llvm/llvm-project/commit/4e67234357b9aef4d94f0fe6e84d972fc51add91 DIFF: https://github.com/llvm/llvm-project/commit/4e67234357b9aef4d94f0fe6e84d972fc51add91.diff

[clang] [Clang][BPF] Add __BPF_CPU_VERSION__ macro (PR #71856)

2023-11-10 Thread via cfe-commits
https://github.com/yonghong-song closed https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement __builtin_classify_type (PR #71972)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This adds some infrastructure for unevaluated builtin calls, but the implementation is almost entirely copied from `ExprConstant.cpp`. I'm open for suggestions on how to share the code. --- Full diff: https

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
https://github.com/schenker created https://github.com/llvm/llvm-project/pull/71974 With this PR, `bugprone-assert-side-effect` assumes that operator methods that are not marked as `const` have side effects. This matches the existing rule for non-operator methods. E.g. the following snippet i

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (schenker) Changes With this PR, `bugprone-assert-side-effect` assumes that operator methods that are not marked as `const` have side effects. This matches the existing rule for non-operator methods. E.g. the following snippet

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

2023-11-10 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 3f906f513edea5c21867586d92151c4268230fe4 3f2ad99f9a6d177ea2747bfc0e559aad1faf8639 --

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From dabfdee1a982000605e4b33930ba433c63d1684f Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/2] [clang-tidy] bugprone-assert-side-effect non-const operat

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From dabfdee1a982000605e4b33930ba433c63d1684f Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/2] [clang-tidy] bugprone-assert-side-effect non-const operat

[clang] 09273d4 - Fix WebKit static analyzers to support ref and deref methods to be defined on different classes. (#69985)

2023-11-10 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2023-11-10T12:21:36-08:00 New Revision: 09273d408da97022f3146cfd11328c1a8ce50d10 URL: https://github.com/llvm/llvm-project/commit/09273d408da97022f3146cfd11328c1a8ce50d10 DIFF: https://github.com/llvm/llvm-project/commit/09273d408da97022f3146cfd11328c1a8ce50d10.diff

[llvm] [clang] [compiler-rt] [HIP] support 128 bit int division (PR #71978)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently nvcc supports 128 bit int division in device code. This patch adds support of 128 bit int division to HIP. It builds lib functions for 128 bit division in compiler-rt for amdgcn target.

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
https://github.com/schenker updated https://github.com/llvm/llvm-project/pull/71974 >From dabfdee1a982000605e4b33930ba433c63d1684f Mon Sep 17 00:00:00 2001 From: Thomas Schenker Date: Fri, 10 Nov 2023 18:58:26 +0100 Subject: [PATCH 1/3] [clang-tidy] bugprone-assert-side-effect non-const operat

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
@@ -41,6 +41,10 @@ AST_MATCHER_P2(Expr, hasSideEffect, bool, CheckFunctionCalls, } if (const auto *OpCallExpr = dyn_cast(E)) { +if (const auto *FuncDecl = OpCallExpr->getDirectCallee()) + if (const auto *MethodDecl = dyn_cast(FuncDecl)) +return !MethodDecl

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
@@ -41,6 +41,10 @@ AST_MATCHER_P2(Expr, hasSideEffect, bool, CheckFunctionCalls, } if (const auto *OpCallExpr = dyn_cast(E)) { +if (const auto *MethodDecl = +dyn_cast_or_null(OpCallExpr->getDirectCallee())) + return !MethodDecl->isConst();

[clang] 237adfc - [OpenMP] Rework handling of global ctor/dtors in OpenMP (#71739)

2023-11-10 Thread via cfe-commits
Author: Joseph Huber Date: 2023-11-10T14:53:53-06:00 New Revision: 237adfca4ef8d94b7d3d8817da615c5e5897c3da URL: https://github.com/llvm/llvm-project/commit/237adfca4ef8d94b7d3d8817da615c5e5897c3da DIFF: https://github.com/llvm/llvm-project/commit/237adfca4ef8d94b7d3d8817da615c5e5897c3da.diff

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
schenker wrote: > I'm not sure now if this wont cause too much false-positives, after all this > is why CheckFunctionCalls option were added. Sometimes object can have 2 same > operators, one const and one not, in such case depend on "this" type, > non-const could be used, this would be false-

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

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

[clang] 199fc97 - [clang-format] Handle variable declarations in BreakAfterAttributes (#71935)

2023-11-10 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-10T13:25:57-08:00 New Revision: 199fc973ced20016b04ba540cf63a1d4914fa513 URL: https://github.com/llvm/llvm-project/commit/199fc973ced20016b04ba540cf63a1d4914fa513 DIFF: https://github.com/llvm/llvm-project/commit/199fc973ced20016b04ba540cf63a1d4914fa513.diff LOG:

[clang] [clang] Make `-fvisibility={}` and `-ftype-visibility={}` benign options. (PR #71985)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juergen Ributzka (ributzka) Changes Both options do not affect the AST content that is serialized into the PCM. This commit includes the following changes: 1.) Mark `-fvisibility={}` and `-ftype-visibility={}` as benign options. That m

[clang] [clang] Allow __attribute__((swiftcall)) on all targets (PR #71986)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kuba (Brecka) Mracek (kubamracek) Changes With Embedded Swift, ;, it becomes possible and useful to produce Swift code for a whole range of CPU targets. This change allows using the 'swiftc

[clang] [clang] Allow __attribute__((swiftcall)) on all targets (PR #71986)

2023-11-10 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 199fc973ced20016b04ba540cf63a1d4914fa513 d2df2830b4417c0ecc9690c4092053bf465a5d44 --

[openmp] [clang-tools-extra] [libcxx] [libc] [mlir] [lldb] [llvm] [flang] [clang] GlobalISel: Guide return in llvm::getIConstantSplatVal (PR #71989)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-globalisel Author: Changpeng Fang (changpeng) Changes getIConstantVRegValWithLookThrough could return NULL. --- Full diff: https://github.com/llvm/llvm-project/pull/71989.diff 1 Files Affected: - (modified) llvm/lib/CodeGen/GlobalISel/Utils.cpp

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

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

[lldb] [mlir] [flang] [libc] [openmp] [llvm] [clang] [libcxx] [clang-tools-extra] GlobalISel: Guide return in llvm::getIConstantSplatVal (PR #71989)

2023-11-10 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 0448a1c0dc131835301a59db7138d504b836a591 23d34569183f405fdae0a8a665be8b7772addebe --

[clang-tools-extra] [clang-tidy] bugprone-assert-side-effect non-const operator methods (PR #71974)

2023-11-10 Thread via cfe-commits
@@ -41,6 +41,10 @@ AST_MATCHER_P2(Expr, hasSideEffect, bool, CheckFunctionCalls, } if (const auto *OpCallExpr = dyn_cast(E)) { +if (const auto *MethodDecl = +dyn_cast_or_null(OpCallExpr->getDirectCallee())) + return !MethodDecl->isConst();

[clang-tools-extra] [clangd] Resolve the dependent type from its single instantiation. Take 1 (PR #71279)

2023-11-10 Thread via cfe-commits
@@ -150,6 +246,11 @@ std::vector HeuristicResolver::resolveMemberExpr( if (ME->isArrow()) { BaseType = getPointeeType(BaseType); } + + if (BaseType->isDependentType()) sr-tream wrote: Check BaseType before access (line 254) https://github.com/llvm/l

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

2023-11-10 Thread via cfe-commits
mihailo-stojanovic wrote: I believe that more information can be found in the [commit](https://github.com/llvm/llvm-project/commit/45ba2392d7e00aedd4d9fb04070dbae8a7fbbeeb) which added the `RISCVToolChain::hasGCCToolchain` method. As far as I could gather, before this was merged, the only opti

[clang] [clang-format] Handle control statements in BreakAfterAttributes (PR #71995)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes This patch doesn't work for do-while loops. Fixed #64474. --- Full diff: https://github.com/llvm/llvm-project/pull/71995.diff 4 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+50-2

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

2023-11-10 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks 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

[llvm] [clang] [clang-tools-extra] [clang] Fix false positive -Wmissing-field-initializer for anonymous unions (PR #70829)

2023-11-10 Thread via cfe-commits
@@ -654,11 +655,17 @@ void InitListChecker::FillInEmptyInitForBase( } } -void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, -const InitializedEntity &ParentEntity, -

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

2023-11-10 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/69224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Print static_assert values of arithmetic binary operators (PR #71671)

2023-11-10 Thread via cfe-commits
@@ -17219,10 +17219,10 @@ static bool UsefulToPrintExpr(const Expr *E) { if (const auto *UnaryOp = dyn_cast(E)) return UsefulToPrintExpr(UnaryOp->getSubExpr()); - // Ignore nested binary operators. This could be a FIXME for improvements - // to the diagnostics in the f

[clang] [clang-tools-extra] [clang][AST] Fix crash in MatchChildASTVisitor::TraverseLambdaExpr (PR #70962)

2023-11-10 Thread via cfe-commits
cor3ntin wrote: + @AaronBallman Having a nullptr init capture seems fishy, do we actually mean to allow capturing vla by reference here? https://github.com/llvm/llvm-project/pull/70962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krystian Stasiowski (sdkrystian) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72015.diff 4 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+3-3) - (modified) clang/include/clang/Sema/

[clang] [llvm] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Augusto Noronha (augusto2112) Changes RunTimeLang is already supported by DICompositeType, and already used by structs and unions. Add a new parameter in the class and enumeration create methods, so they can use the RunTimeLang attribut

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

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72010.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+14-22) - (modified) clang/lib/Format/UnwrappedLineParser.h

[llvm] [clang] Add RunTimeLang to Class and Enumeration DIBuilder functions (PR #72011)

2023-11-10 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 bdd396f353582b50d0a9af5e5e809aeacc2848bf 82e6fefc0df010539519fefcae22c49d6c2a1459 --

[clang] [clang][analyzer] Restrict 'fopen' modeling to POSIX versions in SimpleStreamChecker (PR #72016)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72016.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp (+21-29) - (modified) clang/tes

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

2023-11-10 Thread via cfe-commits
HaohaiWen wrote: I'd like to merge it if no any more comments. https://github.com/llvm/llvm-project/pull/68502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5bd0f0d - [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (#71162)

2023-11-10 Thread via cfe-commits
Author: Björn Pettersson Date: 2023-11-11T01:53:18-05:00 New Revision: 5bd0f0d9d635617b335dd0b259e971a605ad6776 URL: https://github.com/llvm/llvm-project/commit/5bd0f0d9d635617b335dd0b259e971a605ad6776 DIFF: https://github.com/llvm/llvm-project/commit/5bd0f0d9d635617b335dd0b259e971a605ad6776.di

[clang] 5c91b28 - [clang] Replace uses of CreatePointerBitCastOrAddrSpaceCast (NFC) (#68277)

2023-11-11 Thread via cfe-commits
Author: Youngsuk Kim Date: 2023-11-11T10:57:44-05:00 New Revision: 5c91b2886f6bf400b60ca7839069839ac3980f8f URL: https://github.com/llvm/llvm-project/commit/5c91b2886f6bf400b60ca7839069839ac3980f8f DIFF: https://github.com/llvm/llvm-project/commit/5c91b2886f6bf400b60ca7839069839ac3980f8f.diff

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

2023-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes See #71911 --- Full diff: https://github.com/llvm/llvm-project/pull/72036.diff 4 Files Affected: - (modified) clang/lib/AST/ExprConstant.cpp (+7-1) - (modified) clang/test/Sema/builtin-classify-type.c (+4

[clang-tools-extra] [clang-tidy] Fix macros handling in cppcoreguidelines-prefer-member-initializer (PR #72037)

2023-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Produces now valid fixes for a member variables initialized with macros. Correctly uses expansion location instead of location inside macro to get init code. Close #70189 --- Full diff: https://github

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

2023-11-11 Thread 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] [llvm] [clang] Add bitint classification for __builtin_classify_type (PR #72036)

2023-11-11 Thread via cfe-commits
https://github.com/cor3ntin commented: Can you add a release note? otherwise this looks good https://github.com/llvm/llvm-project/pull/72036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang] Non-object types are non-trivially relocatable (PR #69734)

2023-11-11 Thread via cfe-commits
cor3ntin wrote: @AMP999 Sorry, I'm in a committee meeting this week. tests look good. it's still missing a release note though https://github.com/llvm/llvm-project/pull/69734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[llvm] [clang-tools-extra] [clang] Fix #41439: Update the documentation with the correct information. (PR #69377)

2023-11-11 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/69377 >From 0e0a3e7ad1a0a7098e05a5164413369eaa58c55b Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Tue, 17 Oct 2023 20:49:47 +0100 Subject: [PATCH 1/2] Fix #41439: Update the documentation with the correct informa

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

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

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

2023-11-11 Thread via cfe-commits
@@ -4648,6 +4648,10 @@ struct FormatStyle { /// \version 11 std::vector WhitespaceSensitiveMacros; + /// Ignore formatting in preprocessor definitions. + /// \version 18 + bool IgnorePPDefinitions; tomekpaszek wrote: fixed https://github.com/llvm/llvm

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

2023-11-11 Thread via cfe-commits
@@ -1354,7 +1354,9 @@ unsigned UnwrappedLineFormatter::format( bool FixIndentation = (FixBadIndentation || ContinueFormatting) && Indent != TheLine.First->OriginalColumn; -bool ShouldFormat = TheLine.Affected || FixIndentation; +bool Shoul

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

2023-11-11 Thread via cfe-commits
@@ -24153,6 +24153,23 @@ TEST_F(FormatTest, WhitespaceSensitiveMacros) { verifyNoChange("FOO(String-ized&Messy+But: :Still=Intentional);", Style); } +TEST_F(FormatTest, IgnorePPDefinitions) { tomekpaszek wrote: added more tests now https://github.com/llvm/

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

2023-11-11 Thread via cfe-commits
@@ -24153,6 +24153,23 @@ TEST_F(FormatTest, WhitespaceSensitiveMacros) { verifyNoChange("FOO(String-ized&Messy+But: :Still=Intentional);", Style); } +TEST_F(FormatTest, IgnorePPDefinitions) { + FormatStyle Style = getLLVMStyle(); + Style.IgnorePPDefinitions = true; + + ve

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

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

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

2023-11-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Michael Kenzel (michael-kenzel) Changes libunwind already puts logging facilities behind macros so that they can be turned on and off. The one place where this isn't done yet is for debug output tracing DWARF evaluation. The code ther

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

[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

[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] 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-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] 40671bb - [clang-format] Handle control statements in BreakAfterAttributes (#71995)

2023-11-12 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-12T01:08:27-08:00 New Revision: 40671bbdefb6ff83e2685576a3cb041b62f25bbe URL: https://github.com/llvm/llvm-project/commit/40671bbdefb6ff83e2685576a3cb041b62f25bbe DIFF: https://github.com/llvm/llvm-project/commit/40671bbdefb6ff83e2685576a3cb041b62f25bbe.diff LOG:

[clang] [Driver] Add LTO support for Haiku and OpenBSD (PR #72047)

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72047.diff 7 Files Affected: - (modified) clang/lib/Driver/ToolChains/CommonArgs.cpp (+2-1) - (modified) clang/lib/Driver/ToolChains/Haiku.cpp (+14)

[clang-tools-extra] [clang-tidy] Fixes to readability-implicit-bool-conversion (PR #72050)

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes - Fixed issue with invalid code being generated when static_cast is put into fix, and no space were added before it. - Fixed issue with duplicate parentheses being added when double implicit cast is use

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

2023-11-12 Thread via cfe-commits
HaohaiWen wrote: > Yes, I understand that this transform is only a step towards handling the > full pattern. I'm asking for a complete, working example of the original > motivating case. The snippets posted in [#68502 > (comment)](https://github.com/llvm/llvm-project/pull/68502#discussion_r135

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

2023-11-12 Thread via cfe-commits
@@ -2727,105 +2727,161 @@ Instruction *InstCombinerImpl::matchBSwapOrBitReverse(Instruction &I, } /// Match UB-safe variants of the funnel shift intrinsic. -static Instruction *matchFunnelShift(Instruction &Or, InstCombinerImpl &IC) { +static Instruction *matchFunnelShift(Ins

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

2023-11-12 Thread via cfe-commits
ronlieb wrote: > @ronlieb Do you have a reproducer for this problem? I just checked the > definition of both intrinsics have `no-evex512` already, so shouldn't have > such problem. You can use -mno-evex512 as workaround for the problem anyway. here is a small reproducer , compile with clang

[clang-tools-extra] f575d79 - [clangd] Use InitLLVM (#69119)

2023-11-12 Thread via cfe-commits
Author: Aleksandr Platonov Date: 2023-11-12T20:46:47+03:00 New Revision: f575d792c6467234076f860fe7eecced620d3aae URL: https://github.com/llvm/llvm-project/commit/f575d792c6467234076f860fe7eecced620d3aae DIFF: https://github.com/llvm/llvm-project/commit/f575d792c6467234076f860fe7eecced620d3aae.

[clang-tools-extra] [clang-tidy] Improved readability-bool-conversion to be more consistent when using parentheses (PR #72068)

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Félix-Antoine Constantin (felix642) Changes Fixes #71852 --- Full diff: https://github.com/llvm/llvm-project/pull/72068.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp (

[clang-tools-extra] [clang-tidy] Improved readability-bool-conversion to be more consistent when using parentheses (PR #72068)

2023-11-12 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 4c3206c5d5dee9dc3c7ad32c09d57a7fc592bcea 54743ceec9845cdc450d5c163a293e73884a8df9 --

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

2023-11-12 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-12T15:55:06-08:00 New Revision: a533b76468ac1df54e2e541b05ba4c060a77c603 URL: https://github.com/llvm/llvm-project/commit/a533b76468ac1df54e2e541b05ba4c060a77c603 DIFF: https://github.com/llvm/llvm-project/commit/a533b76468ac1df54e2e541b05ba4c060a77c603.diff LOG:

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

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Youngsuk Kim (JOE1994) Changes Remove bitcast added back in dcd74716f9d18 . --- Full diff: https://github.com/llvm/llvm-project/pull/72072.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CGExprScalar.cpp (-8) ``diff dif

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

2023-11-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Youngsuk Kim (JOE1994) Changes Remove bitcast added back in dcd74716f9d18 . --- Full diff: https://github.com/llvm/llvm-project/pull/72072.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CGExprScalar.cpp (-8) ``

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

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

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

2023-11-12 Thread via cfe-commits
https://github.com/heiher created https://github.com/llvm/llvm-project/pull/72078 This adds a per-global code model attribute, which can override the target's code model to access global variables. Link: https://discourse.llvm.org/t/how-to-best-implement-code-model-overriding-for-certain-valu

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