[clang] 3b1f06e - [AST] RecursiveASTVisitor: traverse the require clause for partial template specializations. (#75795)

2023-12-20 Thread via cfe-commits
Author: Haojian Wu Date: 2023-12-20T10:08:43+01:00 New Revision: 3b1f06e52712a56bf33757d596482c60013d63fd URL: https://github.com/llvm/llvm-project/commit/3b1f06e52712a56bf33757d596482c60013d63fd DIFF: https://github.com/llvm/llvm-project/commit/3b1f06e52712a56bf33757d596482c60013d63fd.diff LO

[clang] [Clang][Sema] Fix Wswitch-default bad warning in template (PR #76007)

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

[llvm] [clang] [AArch64] Update target feature requirements of SVE bfloat instructions (PR #75596)

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

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
@@ -2679,6 +2679,8 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS, ParsedAttributes &AccessAttrs, const ParsedTemplateInfo &TemplateInfo, ParsingDe

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
https://github.com/cor3ntin commented: Thanks for fixing this bug. LGTM modulo nit https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME2] Enable multi-vector loads & stores for SME2 (PR #75821)

2023-12-20 Thread via cfe-commits
@@ -1990,79 +1990,61 @@ def SVWHILELO_COUNT : SInst<"svwhilelo_{d}", "}nni", "QcQsQiQl", MergeNone, "a def SVWHILELS_COUNT : SInst<"svwhilels_{d}", "}nni", "QcQsQiQl", MergeNone, "aarch64_sve_whilels_{d}", [IsOverloadNone], [ImmCheck<2, ImmCheck2_4_Mul2>]>; def SVWHILEHI_C

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

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

[llvm] [libc] [mlir] [lldb] [clang] [flang] Make 'UnrollMaxUpperBound' to be overridable by target. (PR #76029)

2023-12-20 Thread via cfe-commits
https://github.com/boxu-zhang updated https://github.com/llvm/llvm-project/pull/76029 >From 60030d96d27d23ef2049a3888d65721be51c4481 Mon Sep 17 00:00:00 2001 From: "boxu.zhang" Date: Wed, 20 Dec 2023 17:35:25 +0800 Subject: [PATCH] Make 'UnrollMaxUpperBound' to be overridable by target. The de

[clang] Avoid printing overly large integer. (PR #75902)

2023-12-20 Thread via cfe-commits
cor3ntin wrote: I agree with @tbaederr, fixing the underlying issue - either by optimizing divide (good luck!) or printing in hexadecimal, seems like a better solution. At the minimum, we should have a fixme comment to explain the restriction @tbaederr @erichkeane @shafik opinion? https://gi

[clang-tools-extra] cf048e1 - [clangd] Perform self-containedness check at EOF (#75965)

2023-12-20 Thread via cfe-commits
Author: kadir çetinkaya Date: 2023-12-20T10:48:18+01:00 New Revision: cf048e16a7c682a3ed5abb32702c3048fcad7638 URL: https://github.com/llvm/llvm-project/commit/cf048e16a7c682a3ed5abb32702c3048fcad7638 DIFF: https://github.com/llvm/llvm-project/commit/cf048e16a7c682a3ed5abb32702c3048fcad7638.dif

[clang] [AST] Add dump() method to TypeLoc (PR #65484)

2023-12-20 Thread via cfe-commits
cor3ntin wrote: @sam-mccall are you still working on this? https://github.com/llvm/llvm-project/pull/65484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76027 >From 9fd1ed96c1b7934754b6fefd7b01a62d4a391d73 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 10:01:10 + Subject: [PATCH] [clang][dataflow] Add `Environment::get<>()`. This templat

[lld] [llvm] [libc] [clang] [clang-tools-extra] [lldb] [compiler-rt] [libcxx] [mlir] [flang] Don't emit relax relocs like R_X86_64_REX_GOTPCRELX on X86 target for OPENMP internal vars. (PR #75564)

2023-12-20 Thread via cfe-commits
https://github.com/UmeshKalappa0 updated https://github.com/llvm/llvm-project/pull/75564 >From 4125e4a709c594562fa6c52f045ba7442e3cb523 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Fri, 15 Dec 2023 11:52:52 +0530 Subject: [PATCH 1/4] Problem :For Kernel Modules ,emitting the relocs like

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread via cfe-commits
@@ -227,6 +227,7 @@ def IsPreservesZA : FlagType<0x100>; def IsReadZA : FlagType<0x200>; def IsWriteZA : FlagType<0x400>; def IsReductionQV : FlagType<0x800>; +def IsStreamingOrSVE2p1

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
https://github.com/madanial0 created https://github.com/llvm/llvm-project/pull/76039 The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. >From 30f511b804d7a1a5a5f80daf0bef928ff7643971 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Wed, 20 Dec

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: None (madanial0) Changes The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. --- Full diff: https://github.com/llvm/llvm-project/pull/76039.diff 2 Files Affected: - (modified) clan

[flang] [clang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: None (madanial0) Changes The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. --- Full diff: https://github.com/llvm/llvm-project/pull/76039.diff 2 Files A

[clang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes This patch canonicalizes getelementptr instructions with constant indices to use the `i8` source element type. This makes it easier for op

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/76042 Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminate `Re

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminat

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminate `Record

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/76039 >From a61a1c050612493d17b5ec199d00c38afdee8663 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Wed, 20 Dec 2023 05:38:28 -0500 Subject: [PATCH] [Flang] remove whole-archive option for AIX linker --- clang/li

[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

2023-12-20 Thread via cfe-commits
bd1976bris wrote: Thanks for the responses. > The meaning that we want to make clear is that this toggles the special > behavior of forcing the visibility of these symbols despite all the other > mechanisms that usually control visibility for all other symbols. Agreed. I'm in favour of your s

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-20 Thread via cfe-commits
gendalph wrote: In real projects mix enum class with old int switch. Try to update defaults and have noise from enum class case. My be mix options -Wswitch -Wswitch-default can disable warning in enum class case without default if full covered? https://godbolt.org/z/xrdafn6WK https://github.

[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

2023-12-20 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 b01adc6bed7e5b924dd8a097be0aa893f4823905 4b3db6bdaf9f94277f23bf9a796f474a353e4d73 --

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-20 Thread via cfe-commits
gendalph wrote: Using an enum class without default is a good opportunity to get a warning in all places of use in the switch construct when adding new elements to the enum https://github.com/llvm/llvm-project/pull/73077 ___ cfe-commits mailing list c

[clang] e86a02c - Use llvm-config.h in CIndexer.cpp instead of private header (#75928)

2023-12-20 Thread via cfe-commits
Author: Abhina Sree Date: 2023-12-20T08:44:40-05:00 New Revision: e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab URL: https://github.com/llvm/llvm-project/commit/e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab DIFF: https://github.com/llvm/llvm-project/commit/e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab.diff L

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
https://github.com/hnakamura5 created https://github.com/llvm/llvm-project/pull/76059 Currently, TableGen has its language style but the it does not works well. This patch adds total support of TableGen formatting including the support for the code (multi line string), DAG args, bang operators

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 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] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: H.Nakamura (hnakamura5) Changes Currently, TableGen has its language style but the it does not works well. This patch adds total support of TableGen formatting including the support for the code (multi line string), DAG args, bang

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
hnakamura5 wrote: The failure in Check code formatting seems to be caused by the commit (replacing to clang-format style) https://github.com/llvm/llvm-project/commit/5c60e2ce78e79c2d15152e08d9e28fcf3a1d4e51 I avoid this by using clang-format binary from main branch in my local. What should I do

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 Thread via cfe-commits
https://github.com/BenBlaise created https://github.com/llvm/llvm-project/pull/76065 Finds literals explicitly casted to a type that could be expressed using builtin prefixes or suffixes. In elementary cases, provides automated fix-it hints. ```cpp (char)'a';//

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 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-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (BenBlaise) Changes Finds literals explicitly casted to a type that could be expressed using builtin prefixes or suffixes. In elementary cases, provides automated fix-it hints. ```cpp (char)'a';/

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 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 7767c5856d85cd1acf2efc32f77fdf07f00f9ff4 b4d7dbcf67117471a2d7025013fb1fcd188b33b6 --

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 Thread via cfe-commits
@@ -0,0 +1,161 @@ +//===--- UseBuiltinLiteralsCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 Thread via cfe-commits
https://github.com/EugeneZelenko requested changes to this pull request. https://github.com/llvm/llvm-project/pull/76065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

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

[clang-tools-extra] [clang-tidy] Add readability-use-builtin-literals check (PR #76065)

2023-12-20 Thread via cfe-commits
@@ -0,0 +1,38 @@ +.. title:: clang-tidy - readability-use-builtin-literals + +readability-use-builtin-literals + + +Finds literals explicitly casted to a type that could be expressed using builtin prefixes or suffixes. EugeneZelenk

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

2023-12-20 Thread via cfe-commits
alexfh wrote: The change in the diagnostic happens to make it much noisier than it was before. Our code was clean w.r.t. -Wc++11-narrowing, but now we see hundreds if not thousands of compilation breakages (we use -Werror, which turns out to be the only robust way to avoid backsliding). I thin

[clang] [SystemZ][z/OS] Add support for recognizing z/OS personality function in Clang (PR #76073)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yusra Syeda (ysyeda) Changes This PR adds support makes Clang aware of the name of the personality function on z/OS. --- Full diff: https://github.com/llvm/llvm-project/pull/76073.diff 3 Files Affected: - (modified) clang/lib/C

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From b8bd6e9551da9aefec0597e9ed84cdee2af58344 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Wed, 20 Dec 2023 17:43:13 +0100 Subject: [PATCH] [clang][Parse] `TryAnnotateCXXScopeToken` to be called only

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
ChipsSpectre wrote: ok @cor3ntin, the nit is addressed. Is the pull request now ready to be merged? https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

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

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

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks for working on this! It looks good now https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
ChipsSpectre wrote: @cor3ntin thank you for your fast review! Is it possible to merge it after your approval, or is it needed to wait for all reviewers? https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang-tools-extra] [clang] [llvm] [XCOFF] Use RLDs to print branches even without -r (PR #74342)

2023-12-20 Thread via cfe-commits
https://github.com/stephenpeckham updated https://github.com/llvm/llvm-project/pull/74342 >From 4d255c7164b92e6dbfa34226d31055f9438855f0 Mon Sep 17 00:00:00 2001 From: Stephen Peckham Date: Mon, 4 Dec 2023 11:41:32 -0500 Subject: [PATCH 01/12] [XCOFF] Use RLDs to print branches even without -r

[clang] [SystemZ] Move new test into existing CodeGen test. (PR #73230)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Jonas Paulsson (JonPsson1) Changes The test for emitted alignments is better placed in CodeGen. --- Full diff: https://github.com/llvm/llvm-project/pull/73230.diff 2 Files Affected: - (modified) clang/

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/73234 - Support non-member functions and callable objects for size and data(). We previously tried to (badly) pick the best overload ourselves, in a way that would only support member functions. We now leave clamg co

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes - Support non-member functions and callable objects for size and data(). We previously tried to (badly) pick the best overload ourselves, in a way that would only support member functions. We now leave clamg co

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 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 c43c88501e3bc273a7c1074a19e86dc305ad7234 c8f8e6d0a88b9fd1d905ca0a09ffe6e0415ab90e --

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/73234 >From c274d62d03e1ab390284b26d6e23a23d099a98f6 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 23 Nov 2023 12:51:46 +0100 Subject: [PATCH] [Clang] Improve support for expression messages in `static_ass

[clang] 521b468 - [SystemZ] Move new test into existing CodeGen test. (#73230)

2023-11-23 Thread via cfe-commits
Author: Jonas Paulsson Date: 2023-11-23T13:27:05+01:00 New Revision: 521b4682a55eb735b75e08d5f71c8cbe47395e40 URL: https://github.com/llvm/llvm-project/commit/521b4682a55eb735b75e08d5f71c8cbe47395e40 DIFF: https://github.com/llvm/llvm-project/commit/521b4682a55eb735b75e08d5f71c8cbe47395e40.diff

[clang] [llvm] [MemProf] Expand optimization scope to internal linakge function (PR #73236)

2023-11-23 Thread via cfe-commits
https://github.com/lifengxiang1025 created https://github.com/llvm/llvm-project/pull/73236 Now MemProf can't do IR annotation right in the local linkage function and global initial function __cxx_global_var_init. In llvm-profdata which convert raw memory profile to memory profile, it uses func

[clang] [llvm] [MemProf] Expand optimization scope to internal linakge function (PR #73236)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (lifengxiang1025) Changes Now MemProf can't do IR annotation right in the local linkage function and global initial function __cxx_global_var_init. In llvm-profdata which convert raw memory profile to memory profile, it uses function

[llvm] [clang] [MemProf] Expand optimization scope to internal linakge function (PR #73236)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: None (lifengxiang1025) Changes Now MemProf can't do IR annotation right in the local linkage function and global initial function __cxx_global_var_init. In llvm-profdata which convert raw memory profile to memory profile, it use

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 Thread via cfe-commits
@@ -617,6 +617,9 @@ Bug Fixes in This Version - Fix crash during code generation of C++ coroutine initial suspend when the return type of await_resume is not trivially destructible. Fixes (`#63803 `_) +- Fix crash when the

[llvm] [clang] [MemProf] Expand optimization scope to internal linakge function (PR #73236)

2023-11-23 Thread via cfe-commits
https://github.com/lifengxiang1025 updated https://github.com/llvm/llvm-project/pull/73236 >From fdce13021329985b7c3cb8748ee4f8f7f83a2730 Mon Sep 17 00:00:00 2001 From: lifengxiang Date: Thu, 23 Nov 2023 20:32:25 +0800 Subject: [PATCH] [MemProf] Expand optimization scope to internal linakge fu

[llvm] [clang] [MemProf] Expand optimization scope to internal linakge function (PR #73236)

2023-11-23 Thread via cfe-commits
lifengxiang1025 wrote: @teresajohnson Can you take a look and provide your insights? I'm learning how to write tests and will upload test cases soon. https://github.com/llvm/llvm-project/pull/73236 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] 0bc7cd4 - [flang] Add runtimes using --dependent-lib on MSVC targets (#72519)

2023-11-23 Thread via cfe-commits
Author: David Truby Date: 2023-11-23T14:19:57Z New Revision: 0bc7cd4d51226344a54da5929d87184730e73e83 URL: https://github.com/llvm/llvm-project/commit/0bc7cd4d51226344a54da5929d87184730e73e83 DIFF: https://github.com/llvm/llvm-project/commit/0bc7cd4d51226344a54da5929d87184730e73e83.diff LOG: [

[clang] [Clang] Fix `-Wdocumentation` warning (NFC) (PR #73243)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Egor Zhdan (egorzhdan) Changes ``` llvm-project/clang/include/clang/AST/OpenMPClause.h:7762:14: warning: parameter 'Modifier' not found in the function declaration [-Wdocumentation] /// \param Modifier The modifier applied to 'order' cla

[clang] [clang-format] Option to ignore macro definitions (PR #70338)

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

[clang] [clang][analyzer] Support `fprintf` in the SecuritySyntaxChecker (PR #73247)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/73247.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp (+7-6) - (modified) clang/test/Analysis/secu

[clang] [clang][analyzer] Support `fprintf` in the SecuritySyntaxChecker (PR #73247)

2023-11-23 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/73247.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp (+7-6) - (modified) clang/

[clang] [clang][analyzer] Support `fprintf` in the SecuritySyntaxChecker (PR #73247)

2023-11-23 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 0bc7cd4d51226344a54da5929d87184730e73e83 150d3374346ef2f09e4c656614c283771083 --

[clang] 53578e5 - [clang][analyzer] Support `fgetc` in StreamChecker (#72627)

2023-11-23 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-23T23:11:19+08:00 New Revision: 53578e5c854d681d4b76e311e2bbc7cbd92ad4ce URL: https://github.com/llvm/llvm-project/commit/53578e5c854d681d4b76e311e2bbc7cbd92ad4ce DIFF: https://github.com/llvm/llvm-project/commit/53578e5c854d681d4b76e311e2bbc7cbd92ad4ce.diff LOG:

[flang] [clang] [flang] Add MSC_VER and target arch defines when targeting the MSVC ABI (PR #73250)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: David Truby (DavidTruby) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/73250.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/Flang.cpp (+24) - (added) flang/test/Driver/msvc-defines.f90 (+10)

[flang] [clang] [flang] Add MSC_VER and target arch defines when targeting the MSVC ABI (PR #73250)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Truby (DavidTruby) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/73250.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/Flang.cpp (+24) - (added) flang/test/Driver/msvc-defines.f90 (+10)

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

2023-11-23 Thread via cfe-commits
serge-sans-paille wrote: @omjavaid thanks for the revert. Life was in the way today and I couldn't handle that properly. The patch was trivial, I'm going to recommit soon. https://github.com/llvm/llvm-project/pull/71677 ___ cfe-commits mailing list cf

[clang] 10e4835 - [clang][CodeGen] Remove ptr-to-ptr bitcasts (NFC) (#73020)

2023-11-23 Thread via cfe-commits
Author: Youngsuk Kim Date: 2023-11-23T11:34:59-05:00 New Revision: 10e483521a067eb5be9c844a41248e9d12e46dde URL: https://github.com/llvm/llvm-project/commit/10e483521a067eb5be9c844a41248e9d12e46dde DIFF: https://github.com/llvm/llvm-project/commit/10e483521a067eb5be9c844a41248e9d12e46dde.diff

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

2023-11-23 Thread via cfe-commits
Author: serge-sans-paille Date: 2023-11-23T17:37:03+01:00 New Revision: fe5c360a9aae61db37886c0c795c409b5129905f URL: https://github.com/llvm/llvm-project/commit/fe5c360a9aae61db37886c0c795c409b5129905f DIFF: https://github.com/llvm/llvm-project/commit/fe5c360a9aae61db37886c0c795c409b5129905f.d

[clang] cf1e0c0 - [AMDGPU] Define new targets gfx1200 and gfx1201 (#73133)

2023-11-23 Thread via cfe-commits
Author: Jay Foad Date: 2023-11-23T16:44:05Z New Revision: cf1e0c0b07c09af6b72ee912a5e0529c8ff66cad URL: https://github.com/llvm/llvm-project/commit/cf1e0c0b07c09af6b72ee912a5e0529c8ff66cad DIFF: https://github.com/llvm/llvm-project/commit/cf1e0c0b07c09af6b72ee912a5e0529c8ff66cad.diff LOG: [AMD

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

2023-11-23 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 e5cc3da6a9077548f613eee3aacc5e7b017c81f3 3b0090997023b1b6392bc23d386ace7c7cb796ce --

[clang] 002d471 - [ClangRepl] Type Directed Code Completion (#67349)

2023-11-23 Thread via cfe-commits
Author: Fred Fu Date: 2023-11-23T19:56:35+02:00 New Revision: 002d471a4a3cd8b429e4ca7c84fd54a642e50e4c URL: https://github.com/llvm/llvm-project/commit/002d471a4a3cd8b429e4ca7c84fd54a642e50e4c DIFF: https://github.com/llvm/llvm-project/commit/002d471a4a3cd8b429e4ca7c84fd54a642e50e4c.diff LOG:

[clang] [Clang] Improve support for expression messages in `static_assert` (PR #73234)

2023-11-23 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/73234 >From c274d62d03e1ab390284b26d6e23a23d099a98f6 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 23 Nov 2023 12:51:46 +0100 Subject: [PATCH 1/2] [Clang] Improve support for expression messages in `static

[llvm] [clang] Header (PR #73258)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: None (CarolineConcatto) Changes --- Patch is 212.10 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/73258.diff 49 Files Affected: - (modified) clang/include/

[clang] Header (PR #73258)

2023-11-23 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] [Clang][AArch64] Add fix vector types to header int

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

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

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

2023-11-23 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][AArch64] Add fix vector types to header into SVE (PR #73258)

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

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

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

[clang] 07d799f - [APINotes] Upstream Driver and Frontend options that enable API Notes

2023-11-23 Thread via cfe-commits
Author: Egor Zhdan Date: 2023-11-23T18:52:27Z New Revision: 07d799f08fec4cb9ceb14a43cc134dee7f1621fc URL: https://github.com/llvm/llvm-project/commit/07d799f08fec4cb9ceb14a43cc134dee7f1621fc DIFF: https://github.com/llvm/llvm-project/commit/07d799f08fec4cb9ceb14a43cc134dee7f1621fc.diff LOG: [A

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

2023-11-23 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM. I wonder if we should add an entry in the release notes? https://github.com/llvm/llvm-project/pull/71671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

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

2023-11-23 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/71671 ___ 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-23 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] Revert "[ClangRepl] Type Directed Code Completion" (PR #73259)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fred Fu (capfredf) Changes Reverts llvm/llvm-project#67349 --- Patch is 24.17 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/73259.diff 6 Files Affected: - (modified) clang/include/clang/Int

[clang] 9ebe6e2 - Revert "[ClangRepl] Type Directed Code Completion" (#73259)

2023-11-23 Thread via cfe-commits
Author: Fred Fu Date: 2023-11-23T21:07:51+02:00 New Revision: 9ebe6e28cdbe97f6c03209b87e91be6b55a8026a URL: https://github.com/llvm/llvm-project/commit/9ebe6e28cdbe97f6c03209b87e91be6b55a8026a DIFF: https://github.com/llvm/llvm-project/commit/9ebe6e28cdbe97f6c03209b87e91be6b55a8026a.diff LOG:

[llvm] [clang] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)

2023-11-23 Thread via cfe-commits
@@ -0,0 +1,80 @@ +#ifndef PPC_FEATURE diggerlin wrote: we will support these feature in AIX OS soon. can we change `PPC_FEATURE` to `PPC_LINUX_FEATURE` and `PPC_CPU` to `PPC_LINUX_CPU` and when implement the __builtin_cpu_is and __builtin_cpu_supports in AIX O

[clang-tools-extra] [clang] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-11-23 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: 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-clan

[llvm] [clang-tools-extra] [SimplifyCFG] Find the minimal table considering overflow in `switchToLookupTable` (PR #67885)

2023-11-23 Thread via cfe-commits
@@ -6519,17 +6518,55 @@ static bool SwitchToLookupTable(SwitchInst *SI, IRBuilder<> &Builder, SmallDenseMap ResultTypes; SmallVector PHIs; - for (SwitchInst::CaseIt E = SI->case_end(); CI != E; ++CI) { -ConstantInt *CaseVal = CI->getCaseValue(); -if (CaseVal->get

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
@@ -341,30 +341,27 @@ static unsigned scanFromBlock(const CFGBlock *Start, // This allows us to potentially uncover some "always unreachable" code // within the "sometimes unreachable" code. // Look at the successors and mark then reachable. -std::optional Treat

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/4] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/4] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
@@ -341,30 +341,27 @@ static unsigned scanFromBlock(const CFGBlock *Start, // This allows us to potentially uncover some "always unreachable" code // within the "sometimes unreachable" code. // Look at the successors and mark then reachable. -std::optional Treat

[clang] [clang-tools-extra] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-11-23 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/73069 ___

[clang-tools-extra] [clang] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-11-23 Thread via cfe-commits
=?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin Message-ID: In-Reply-To: https://github.com/EugeneZelenko requested changes to this pull request. https://github.com/llvm/l

[clang-tools-extra] [clang] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-11-23 Thread via cfe-commits
=?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin, =?utf-8?q?F=C3=A9lix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -0,0 +1,25 @@ +.. title:: clang-tidy - readability-redundant-inline-specifier +

[clang] [clang][ASTImporter] IdentifierInfo of Attribute should be set using 'ToASTContext' (PR #73290)

2023-11-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qizhi Hu (jcsxky) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/73290.diff 3 Files Affected: - (modified) clang/include/clang/Basic/AttributeCommonInfo.h (+1) - (modified) clang/lib/AST/ASTImporter.cpp (+5-2) - (mo

[clang] dd0b3c2 - [clang][analyzer] Support `fprintf` in the SecuritySyntaxChecker (#73247)

2023-11-24 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-24T16:23:56+08:00 New Revision: dd0b3c2fa62786d9e1fd8d70cdcfe778c74c0a7d URL: https://github.com/llvm/llvm-project/commit/dd0b3c2fa62786d9e1fd8d70cdcfe778c74c0a7d DIFF: https://github.com/llvm/llvm-project/commit/dd0b3c2fa62786d9e1fd8d70cdcfe778c74c0a7d.diff LOG:

[clang] b98a594 - [clang][analyzer] Move `security.cert.env.InvalidPtr` out of `alpha` (#71912)

2023-11-24 Thread via cfe-commits
Author: Endre Fülöp Date: 2023-11-24T10:02:56+01:00 New Revision: b98a594977f25e555822e5ceef457f69c73cce45 URL: https://github.com/llvm/llvm-project/commit/b98a594977f25e555822e5ceef457f69c73cce45 DIFF: https://github.com/llvm/llvm-project/commit/b98a594977f25e555822e5ceef457f69c73cce45.diff L

<    31   32   33   34   35   36   37   38   39   40   >