[libunwind] [llvm] [clang-tools-extra] [clang] [libcxx] [libc++] Allow running the test suite with optimizations (PR #68753)

2023-11-05 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 e3c2eacfd8b95346cfa4e71ba08b91cab124047b 8499198a4d7b3b1e269f843ee71108cb6d7fc03c --

[mlir] [openmp] [llvm] [clang] [OpenMP] Introduce the KernelLaunchEnvironment as implicit argument (PR #70401)

2023-11-05 Thread via cfe-commits
ronlieb wrote: performance degradation observed for this patch on trunk build : hpc2021 8 mpi210's reference run 518.tealeaf 10.8% 534.hpgmg7.3% https://github.com/llvm/llvm-project/pull/70401 ___ cfe-commits mailing list cfe-commits@lists.ll

[lldb] [clang-tools-extra] [clang] [llvm] [flang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-11-05 Thread via cfe-commits
@@ -0,0 +1,28 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py +; RUN: opt < %s -passes=indvars -S | FileCheck %s + +declare void @foo(i16 noundef) + +; Function Attrs: mustprogress noreturn uwtable +define void @bar(i64 noundef %ptr) { +; CHECK-LABEL:

[clang-tools-extra] [llvm] [lldb] [clang] [flang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-11-05 Thread via cfe-commits
vfdff wrote: LGTM https://github.com/llvm/llvm-project/pull/71072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fbdf6e2 - [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (#71140)

2023-11-05 Thread via cfe-commits
Author: Shao-Ce SUN Date: 2023-11-06T11:22:14+08:00 New Revision: fbdf6e2724e11baa4441cd053804fb2d2375817a URL: https://github.com/llvm/llvm-project/commit/fbdf6e2724e11baa4441cd053804fb2d2375817a DIFF: https://github.com/llvm/llvm-project/commit/fbdf6e2724e11baa4441cd053804fb2d2375817a.diff L

[clang] 267a437 - [Clang][Sema] Skip RecordDecl when checking scope of declarations (#69432)

2023-11-05 Thread via cfe-commits
Author: Qiu Chaofan Date: 2023-11-06T11:54:51+08:00 New Revision: 267a437920904723360cb2837172bd776db73057 URL: https://github.com/llvm/llvm-project/commit/267a437920904723360cb2837172bd776db73057 DIFF: https://github.com/llvm/llvm-project/commit/267a437920904723360cb2837172bd776db73057.diff L

[clang] [clang-format] Add spaces around the Verilog implication operator (PR #71352)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71352 The Verilog implication operator `->` is a binary operator meaning either the left hand side is false or the right hand side is true. Previously it was treated as the C++ struct member operator. I didn't even kn

[clang] [clang-format] Indent Verilog case statements with comments (PR #71353)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71353 If a line contains a comment outside of (fake) parentheses, the part following it is indented according to `CurrentState.Indent`. A Verilog case label and the statement that follows are broken with mustBreakBefo

[clang] [clang-format] Add spaces around the Verilog implication operator (PR #71352)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes The Verilog implication operator `->` is a binary operator meaning either the left hand side is false or the right hand side is true. Previously it was treated as the C++ struct member operator. I didn't even

[clang] [clang-format] Indent Verilog case statements with comments (PR #71353)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes If a line contains a comment outside of (fake) parentheses, the part following it is indented according to `CurrentState.Indent`. A Verilog case label and the statement that follows are broken with mustBreakB

[clang] [clang-format] Stop breaking unbreakable strings in JS (PR #66168)

2023-11-05 Thread via cfe-commits
sstwcw wrote: > Here are string literal context from closure - This still misses contexts > when string literal is required, for example > https://github.com/search?q=repo%3Agoogle%2Fclosure-compiler%20%22%20must%20be%20a%20string%20literal%22&type=code > > I wonder, if splitting the literal w

[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

2023-11-05 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/71354 In a tagged union expression, there should be a space between the field name and the data. Previously, the tag could be recognized as part of a dotted identifier or a struct literal, and the space would be omitt

[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes In a tagged union expression, there should be a space between the field name and the data. Previously, the tag could be recognized as part of a dotted identifier or a struct literal, and the space would be om

[llvm] [clang] [Coroutines] Introduce [[clang::coro_only_destroy_when_complete]] (PR #71014)

2023-11-05 Thread via cfe-commits
https://github.com/h-vetinari commented: There is substantial inconsistency between "coro only destroy when complete" and "... when done" throughout the PR (in various forms; e.g. literal strings, snake_case, CamelCase, ALL_CAPS as well as file names). Presumably there should only be one spell

[clang] 4704eaf - [PowerPC] Support more mcmodel options for AIX (#70652)

2023-11-05 Thread via cfe-commits
Author: Qiu Chaofan Date: 2023-11-06T13:24:07+08:00 New Revision: 4704eaf234c3c30117caacd7b073d6dd63fd0f65 URL: https://github.com/llvm/llvm-project/commit/4704eaf234c3c30117caacd7b073d6dd63fd0f65 DIFF: https://github.com/llvm/llvm-project/commit/4704eaf234c3c30117caacd7b073d6dd63fd0f65.diff L

[clang] [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (PR #71359)

2023-11-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes Copy 85451f486d8144f8aacd94a47802c77da5a04d27 over to AVR, FreeBSD and Fuchsia. --- Full diff: https://github.com/llvm/llvm-project/pull/71359.diff 4 Files Affected: - (modifi

[clang] 1881832 - [Driver][LTO] Copy fix empty stats filename to AVR, FreeBSD, Fuchsia (#71359)

2023-11-05 Thread via cfe-commits
Author: Brad Smith Date: 2023-11-06T01:56:27-05:00 New Revision: 1881832994840baa6e42f908b8822ce4d15ab632 URL: https://github.com/llvm/llvm-project/commit/1881832994840baa6e42f908b8822ce4d15ab632 DIFF: https://github.com/llvm/llvm-project/commit/1881832994840baa6e42f908b8822ce4d15ab632.diff LO

[clang] 95dd178 - [clang] Change representation of CurLexerKind (#70381)

2023-11-05 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-11-06T07:13:05Z New Revision: 95dd17848383315050a5d64051bd695d0a653c51 URL: https://github.com/llvm/llvm-project/commit/95dd17848383315050a5d64051bd695d0a653c51 DIFF: https://github.com/llvm/llvm-project/commit/95dd17848383315050a5d64051bd695d0a653c51.diff

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

2023-11-05 Thread via cfe-commits
https://github.com/serge-sans-paille closed 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-tools-extra] [clangd] Don't show inlay hints for PseudoObjectExprs in C++ (PR #71366)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Younan Zhang (zyn0217) Changes This closes https://github.com/clangd/clangd/issues/1813. PseudoObjectExprs in C++ are currently not very interesting but probably mess up inlay hints. --- Full diff: https://github.com/llvm/llvm-project/p

[clang-tools-extra] [clangd] Don't show inlay hints for PseudoObjectExprs in C++ (PR #71366)

2023-11-06 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 dda8e3de35ead65498094e75adf6f6efd2641323 4a878b63cbdd33833b998896120a992178438180 --

[clang] aa8a0c0 - [clang][DebugInfo][NFC] Add createConstantValueExpression helper (#70674)

2023-11-06 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-06T09:22:20Z New Revision: aa8a0c0e7b819e7183ca2008d0da46542a7d6ce2 URL: https://github.com/llvm/llvm-project/commit/aa8a0c0e7b819e7183ca2008d0da46542a7d6ce2 DIFF: https://github.com/llvm/llvm-project/commit/aa8a0c0e7b819e7183ca2008d0da46542a7d6ce2.diff LOG:

[clang] [Driver] Make use of AddFilePathLibArgs() on NetBSD. (PR #71371)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes This will help using lld or mold as a linker. --- Full diff: https://github.com/llvm/llvm-project/pull/71371.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/Ne

[clang] Added removal of file extension when guessing the toolchain (PR #69887)

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

[clang] Added removal of file extension when guessing the toolchain (PR #69887)

2023-11-06 Thread via cfe-commits
Overhatted wrote: That's fair, I will change buck to either write cl.exe or to add that driver mode flag. Thanks. https://github.com/llvm/llvm-project/pull/69887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] 4909814 - [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (#70639)

2023-11-06 Thread via cfe-commits
Author: Michael Buch Date: 2023-11-06T10:23:26Z New Revision: 4909814c08fdf4ec8bd9dad4f157d03de7c3c800 URL: https://github.com/llvm/llvm-project/commit/4909814c08fdf4ec8bd9dad4f157d03de7c3c800 DIFF: https://github.com/llvm/llvm-project/commit/4909814c08fdf4ec8bd9dad4f157d03de7c3c800.diff LOG:

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes The functions 'readlink' and 'readlinkat' do return 0 only if the 'bufsize' argument is 0. --- Full diff: https://github.com/llvm/llvm-project/pull/71373.diff 2

[clang] [analyzer][solver] On SymSym RelOps, check EQClass members for contradictions (PR #71284)

2023-11-06 Thread via cfe-commits
https://github.com/DonatNagyE commented: This is a good and important improvement of the analysis results, so I support merging it (with some very minor changes), but I feel that it's a "practical, but incomplete" band-aid instead of a systemic improvement that fits into the architecture. The

[clang] [analyzer][solver] On SymSym RelOps, check EQClass members for contradictions (PR #71284)

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

[clang] [analyzer][solver] On SymSym RelOps, check EQClass members for contradictions (PR #71284)

2023-11-06 Thread via cfe-commits
@@ -2218,11 +2224,58 @@ bool ConstraintAssignor::assignSymExprToConst(const SymExpr *Sym, return true; } +bool ConstraintAssignor::handleEquivalentAlternativeSymOperands( +const SymSymExpr *SymSym, RangeSet Constraint) { + SymbolRef LHS = SymSym->getLHS(); + SymbolRef

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

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

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

2023-12-11 Thread via cfe-commits
knightXun wrote: cc @shafik @cor3ntin https://github.com/llvm/llvm-project/pull/75135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][modules] Deprecate module.map in favor of module.modulemap (PR #75142)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clangd Author: Michael Spencer (Bigcheese) Changes This patch deprecates `module.map` in favor of `module.modulemap`, which has been the preferred form since 2014. The eventual goal is to remove support for `module.ma

[clang] c88d731 - [clang] Crash when referencing capture in static lambda (#74661)

2023-12-11 Thread via cfe-commits
Author: Ben Jackson Date: 2023-12-12T07:30:23+01:00 New Revision: c88d73164a3960c5ef3ff578631f0e765b893809 URL: https://github.com/llvm/llvm-project/commit/c88d73164a3960c5ef3ff578631f0e765b893809 DIFF: https://github.com/llvm/llvm-project/commit/c88d73164a3960c5ef3ff578631f0e765b893809.diff L

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

2023-12-11 Thread via cfe-commits
https://github.com/XDeme created https://github.com/llvm/llvm-project/pull/75144 Fixes llvm/llvm-project#74876. During the parsing of `operator<(Foo&) {}`, there was no handling for the operator<, so it called `consumeToken()` again starting from `(Foo&)`, causing the `AnnotationParser::Scopes

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

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (XDeme) Changes Fixes llvm/llvm-project#74876. During the parsing of `operator<(Foo&) {}`, there was no handling for the operator<, so it called `consumeToken()` again starting from `(Foo&)`, causing the `AnnotationParser::Sc

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

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

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

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

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

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

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

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

[clang] 1c830b7 - [Preprocessor] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 for AArch64 (#74954)

2023-12-11 Thread via cfe-commits
Author: Fangrui Song Date: 2023-12-11T23:09:14-08:00 New Revision: 1c830b787c0d8ccc863d23fa507182dc7685fcc2 URL: https://github.com/llvm/llvm-project/commit/1c830b787c0d8ccc863d23fa507182dc7685fcc2 DIFF: https://github.com/llvm/llvm-project/commit/1c830b787c0d8ccc863d23fa507182dc7685fcc2.diff

[clang] [clang][wasm] Resolve assertion errors caused by converting ComplexTy… (PR #70496)

2023-12-11 Thread via cfe-commits
knightXun wrote: cc @Endilll @cor3ntin https://github.com/llvm/llvm-project/pull/70496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

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

2023-12-11 Thread via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -emit-llvm -triple loongarch64 %s -o - | FileCheck %s + +// CHECK: @_ZL2v1 ={{.*}} global i32 0, code_model "small" +static int v1 __attribute__((model("normal"))); + +void use1() { + v1 = 1; +} + +// CHECK: @v2 ={{.*}} global i32 0, code_mode

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

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

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

2023-12-11 Thread via cfe-commits
@@ -4841,6 +4841,19 @@ CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName, llvm::Type *Ty, isExternallyVisible(D->getLinkageAndVisibility().getLinkage())) GV->setSection(".cp.rodata"); +// Handle code model attribute +if (D->hasAttr()) { + i

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

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

[clang] [clang] Use StringRef::{starts,ends}_with (NFC) (PR #75149)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-backend-amdgpu Author: Kazu Hirata (kazutakahirata) Changes This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,

[clang] [Clang][docs] Update extension documentation (PR #75150)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes This is back-ported to C++03 now, since clang accepts C++11 attributes in C++03. https://godbolt.org/z/f7xG18bdE --- Full diff: https://github.com/llvm/llvm-project/pull/75150.diff 1 Files Affected:

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in {

[clang] [Clang] Allow the use of consecutive brackets as an extension in C++03 (PR #75148)

2023-12-12 Thread via cfe-commits
@@ -815,8 +815,8 @@ def err_unexpected_template_in_destructor_name : Error< "'template' keyword not permitted in destructor name">; def err_unexpected_template_after_using : Error< "'template' keyword not permitted after 'using' keyword">; -def err_two_right_angle_brackets_

[clang] [X86] Add ABI handling for fp128 (PR #75156)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes Fixes #74601 --- Full diff: https://github.com/llvm/llvm-project/pull/75156.diff 2 Files Affected: - (modified) clang/lib/CodeGen/Targets/X86.cpp (+2-1) - (added

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

2023-12-12 Thread via cfe-commits
@@ -1752,8 +1754,10 @@ static void AppendTargetClonesMangling(const CodeGenModule &CGM, const TargetInfo &TI = CGM.getTarget(); if (TI.getTriple().isAArch64()) { DanielKristofKiss wrote: As I see for other targets `"default"` is just copied as a feature st

[clang] e3f4fa9 - [clang][Interp] Implement inc/dec for IntegralAP (#69597)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T10:44:43+01:00 New Revision: e3f4fa98349b85dbd7845a505a98bd331e5d2897 URL: https://github.com/llvm/llvm-project/commit/e3f4fa98349b85dbd7845a505a98bd331e5d2897 DIFF: https://github.com/llvm/llvm-project/commit/e3f4fa98349b85dbd7845a505a98bd331e5d2897.diff L

[clang] 43e6aec - [clang][Interp] Implement __builtin_rotate{right,left} (#72984)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T10:48:00+01:00 New Revision: 43e6aec145262afe53bf56372d363d1fbc4f6125 URL: https://github.com/llvm/llvm-project/commit/43e6aec145262afe53bf56372d363d1fbc4f6125 DIFF: https://github.com/llvm/llvm-project/commit/43e6aec145262afe53bf56372d363d1fbc4f6125.diff L

[clang] c8c9af1 - [clang][Interp] Decay arrays to the first element (#72660)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T11:01:47+01:00 New Revision: c8c9af150d34306ee0af94baf8357891ace233ba URL: https://github.com/llvm/llvm-project/commit/c8c9af150d34306ee0af94baf8357891ace233ba DIFF: https://github.com/llvm/llvm-project/commit/c8c9af150d34306ee0af94baf8357891ace233ba.diff L

[clang] 1908d4c - [clang][Interp] Reject static lambdas with captures (#74718)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T11:08:38+01:00 New Revision: 1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96 URL: https://github.com/llvm/llvm-project/commit/1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96 DIFF: https://github.com/llvm/llvm-project/commit/1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96.diff L

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

2023-12-12 Thread via cfe-commits
knightXun wrote: cc @cor3ntin https://github.com/llvm/llvm-project/pull/70280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 985c008 - [RISCV][NFC] Use AddTargetFeature to add fast-unaligned-access (#74280)

2023-12-12 Thread via cfe-commits
Author: Wang Pengcheng Date: 2023-12-12T19:16:30+08:00 New Revision: 985c00819583a23b58d8c8cdeaefe6f9ed49e9cf URL: https://github.com/llvm/llvm-project/commit/985c00819583a23b58d8c8cdeaefe6f9ed49e9cf DIFF: https://github.com/llvm/llvm-project/commit/985c00819583a23b58d8c8cdeaefe6f9ed49e9cf.diff

[clang] b204321 - [Clang][docs] Update extension documentation (#75150)

2023-12-12 Thread via cfe-commits
Author: Nikolas Klauser Date: 2023-12-12T12:22:03+01:00 New Revision: b204321302ad16d2a1bdb97830a5708282d0abd4 URL: https://github.com/llvm/llvm-project/commit/b204321302ad16d2a1bdb97830a5708282d0abd4 DIFF: https://github.com/llvm/llvm-project/commit/b204321302ad16d2a1bdb97830a5708282d0abd4.dif

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-12 Thread via cfe-commits
DonatNagyE wrote: I'm also weakly opposed to this patch, because the status quo is slightly better than introducing an assert that would make this area more fragile and could lead to some assertion failures if this code is modified in the future. https://github.com/llvm/llvm-project/pull/75076

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE updated https://github.com/llvm/llvm-project/pull/67157 >From 5c42d3e5286e041e22776fa496d884454640ffec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Fri, 22 Sep 2023 17

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

2023-12-12 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/73258 >From e0f245e8d6a395afac5de471b55358c7b730a170 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 22 Nov 2023 10:03:50 + Subject: [PATCH 01/11] [Clang][AArch64] Add fix vector types to head

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

2023-12-12 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/75170 - Instead of comparing the identity of the `PointerValue`s, compare the underlying `StorageLocation`s. - If the `StorageLocation`s are different, return a definite "false" as the result of the compar

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

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes - Instead of comparing the identity of the `PointerValue`s, compare the underlying `StorageLocation`s. - If the `StorageLocation`s are different, return a definite "false" as the result of the comparison

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: DonatNagyE wrote: The limitation is emphasized in the documentation, and I also added a `TODO` comment that mentions it in the source code. I'll merge this change as it is now (because I don't want to leave it open for

[clang] [llvm] [Clang][IR] add TBAA metadata on pointer, union and array types. (PR #75177)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-backend-risc-v Author: Bushev Dmitry (dybv-sc) Changes Options to disable new behaviour: -Xclang -no-union-tbaa -Xclang -no-pointer-tbaa -Xclang -no-array-tbaa To enable union struct path

[clang] [llvm] [Clang][IR] add TBAA metadata on pointer, union and array types. (PR #75177)

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

[clang] 1954686 - [Clang][SME2] Add multi-vector unpack builtins (#75075)

2023-12-12 Thread via cfe-commits
Author: Kerry McLaughlin Date: 2023-12-12T13:15:24Z New Revision: 19546861772f225d2648d7a5f3fea7798a13be70 URL: https://github.com/llvm/llvm-project/commit/19546861772f225d2648d7a5f3fea7798a13be70 DIFF: https://github.com/llvm/llvm-project/commit/19546861772f225d2648d7a5f3fea7798a13be70.diff L

[llvm] [clang] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

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

[clang] [llvm] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-12 Thread via cfe-commits
CarolineConcatto wrote: nit: I would probably remove the sme flag from it. It needs some work to allow this instruction under sme. https://github.com/llvm/llvm-project/pull/75117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in {

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

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

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

2023-12-12 Thread via cfe-commits
DianQK wrote: > I don't believe the undef is the issue - I think the issue is that > AArch64InstrInfo::isCopyInstrImpl is saying that a W-reg orr is a copy, even > if it is really a zextend because the entire X output register is depended > upon. Thanks for the explanation. > Can you try and

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

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

[clang] a9b3054 - [NFC][CLANG] Fix static analyzer bugs about large copy by values (#75060)

2023-12-12 Thread via cfe-commits
Author: smanna12 Date: 2023-12-12T08:07:55-06:00 New Revision: a9b30545448695c76ddb25a16fae613d641cfeb7 URL: https://github.com/llvm/llvm-project/commit/a9b30545448695c76ddb25a16fae613d641cfeb7 DIFF: https://github.com/llvm/llvm-project/commit/a9b30545448695c76ddb25a16fae613d641cfeb7.diff LOG:

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-12 Thread via cfe-commits
smanna12 wrote: Thank you for reviews everyone! https://github.com/llvm/llvm-project/pull/75060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

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

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it i

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Emil J (ekliptik) Changes This is an initial, minimal change to get a viable embedded toolchain build for RV32. Add the 7th of December LLVM RISC-V call, it was discussed that merging the functionalities

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

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

[clang] d9671bb - [clang][Interp] Implement __builtin_ffs (#72988)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T15:59:39+01:00 New Revision: d9671bba3e3a4f60302cbc110beede1c864e645b URL: https://github.com/llvm/llvm-project/commit/d9671bba3e3a4f60302cbc110beede1c864e645b DIFF: https://github.com/llvm/llvm-project/commit/d9671bba3e3a4f60302cbc110beede1c864e645b.diff L

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

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Momchil Velikov (momchil-velikov) Changes The `_s64`/`_u64` part can be omitted now. It's inferred from the argument types. --- Patch is 22.35 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/7

[clang] c873f77 - [analyzer] Move alpha checker EnumCastOutOfRange to optin (#67157)

2023-12-12 Thread via cfe-commits
Author: DonatNagyE Date: 2023-12-12T16:29:37+01:00 New Revision: c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38 URL: https://github.com/llvm/llvm-project/commit/c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38 DIFF: https://github.com/llvm/llvm-project/commit/c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38.diff LO

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE closed https://github.com/llvm/llvm-project/pull/67157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang-tools-extra] [clang-tidy][misleading-indentation]ignore false-positives for line started with empty macro (PR #75061)

2023-12-12 Thread via cfe-commits
@@ -453,6 +453,10 @@ Changes in existing checks ` check to ignore false-positives in initializer list of record. +- Improved :doc:`readability-misleading-indentation EugeneZelenko wrote: Please keep alphabetical order (by check name). https://github.com/

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
https://github.com/knightXun created https://github.com/llvm/llvm-project/pull/75208 to align with GCC asm: "+f" is not allowed to be used on output register. fix issue: https://github.com/llvm/llvm-project/issues/75019 >From 38e6bcf970d62deb5c6fa2ba33ae817d39124c6a Mon Sep 17 00:00:00 2001 Fr

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: flyingcat (knightXun) Changes to align with GCC asm: "+f" is not allowed to be used on output register. fix issue: https://github.com/llvm/llvm-project/issues/75019 --- Full diff: https://github.com/llvm/llvm-project/pull/75208.diff 1

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
knightXun wrote: cc @phoebewang @shafik https://github.com/llvm/llvm-project/pull/75208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang Author: Abhina Sree (abhina-sree) Changes This patch completes the support for EBCDIC I/O support on z/OS using the autoconversion functions. --- Full diff: https://github.com/llvm/llvm-project/pull/75212.diff

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/75208 >From 38e6bcf970d62deb5c6fa2ba33ae817d39124c6a Mon Sep 17 00:00:00 2001 From: knightXun Date: Tue, 12 Dec 2023 23:57:56 +0800 Subject: [PATCH 1/2] [clang][sema] forbid '+f' on output register to align with GCC

[clang] ac61640 - [clang][Sema] Always clear UndefinedButUsed (#73955)

2023-12-12 Thread via cfe-commits
Author: Jonas Hahnfeld Date: 2023-12-12T17:57:19+01:00 New Revision: ac616408b276fc953d5f800229830b48fef4d308 URL: https://github.com/llvm/llvm-project/commit/ac616408b276fc953d5f800229830b48fef4d308 DIFF: https://github.com/llvm/llvm-project/commit/ac616408b276fc953d5f800229830b48fef4d308.diff

[llvm] [clang-tools-extra] [mlir] [clang] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)

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

[clang-tools-extra] [clang] [mlir] [llvm] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)

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

[clang] [analyzer] Fix broken testcase (PR #75216)

2023-12-12 Thread via cfe-commits
https://github.com/DonatNagyE created https://github.com/llvm/llvm-project/pull/75216 When merging commit c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38 I didn't manually rebase it onto the tip of the main branch, so I didn't notice that the testcase that's added by it needs to be tweaked to account

[clang] [analyzer] Fix broken testcase (PR #75216)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (DonatNagyE) Changes When merging commit c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38 I didn't manually rebase it onto the tip of the main branch, so I didn't notice that the testcase that's added by it needs to be tweaked to account for

[llvm] [clang] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis Author: Paul Walker (paulwalker-arm) Changes The specialisation will not be valid when ConstantInt gains native support for vector types. This is largely a mechanical change but with extra attention paid to InstCombineVectorOps.cpp, Loop

[clang] [llvm] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-clang-codegen Author: Paul Walker (paulwalker-arm) Changes The specialisation will not be valid when ConstantInt gains native support for vector types. This is largely a mechanical change but with extra attention pa

[clang] [llvm] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Walker (paulwalker-arm) Changes The specialisation will not be valid when ConstantInt gains native support for vector types. This is largely a mechanical change but with extra attention paid to InstCombineVectorOps.cpp, LoopFlatten.

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: DonatNagyE wrote: The issue was really trivial to fix, I created a PR for it: https://github.com/llvm/llvm-project/pull/75216 Sorry for breaking check-clang, I _did_ ran the tests before pressing merge on the github GU

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