[clang] [analyzer] Model overflow builtins (PR #102602)

2024-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/6544 Here is the r

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Donát Nagy via cfe-commits
@@ -63,11 +62,39 @@ void FixedAddressChecker::checkPreStmt(const BinaryOperator *B, "Using a fixed address is not portable because that address will " "probably not be valid in all environments or platforms."; auto R = std::make_unique(BT, Msg, N); -R->

[clang] [clang-format] Handle template closer followed by braces (PR #110971)

2024-10-03 Thread Carlos Galvez via cfe-commits
@@ -3538,6 +3538,11 @@ TEST_F(TokenAnnotatorTest, TemplateInstantiation) { ASSERT_EQ(Tokens.size(), 11u) << Tokens; EXPECT_TOKEN(Tokens[2], tok::less, TT_TemplateOpener); EXPECT_TOKEN(Tokens[6], tok::greater, TT_TemplateCloser); + + Tokens = annotate("return std::conditi

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Balazs Benics via cfe-commits
@@ -63,11 +62,39 @@ void FixedAddressChecker::checkPreStmt(const BinaryOperator *B, "Using a fixed address is not portable because that address will " "probably not be valid in all environments or platforms."; auto R = std::make_unique(BT, Msg, N); -R->

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: Nice improvement, thanks for the patch! I read the code but I don't have anything to mention which isn't covered by the review of @steakhal . https://github.com/llvm/llvm-project/pull/110977 ___ cfe-commits mail

[clang] Multilib error fixes (PR #110804)

2024-10-03 Thread Peter Smith via cfe-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/110804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Fix up casting from CXXClassRecord (PR #110983)

2024-10-03 Thread Daniel Grumberg via cfe-commits
https://github.com/daniel-grumberg created https://github.com/llvm/llvm-project/pull/110983 `RecordRecord::classOfKind` and `TagRecord::classofKind` didn't correctly capture `RK_CXXClass` and derived variants, e.g. `RK_ClassTemplate`. This materialized by anonymous C++ tag types not being corr

[clang] [clang][ExtractAPI] Fix up casting from CXXClassRecord (PR #110983)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes `RecordRecord::classOfKind` and `TagRecord::classofKind` didn't correctly capture `RK_CXXClass` and derived variants, e.g. `RK_ClassTemplate`. This materialized by anonymous C++ tag types not bein

[clang] Thread Safety Analysis: Support passing scoped locks between functions with appropriate annotations (PR #110523)

2024-10-03 Thread Malek Ben Slimane via cfe-commits
https://github.com/malek203 updated https://github.com/llvm/llvm-project/pull/110523 >From b66684cb44abcf3b0a191303d1dc01e6aa0d8dec Mon Sep 17 00:00:00 2001 From: Malek Ben Slimane Date: Wed, 11 Sep 2024 22:07:45 +0200 Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee

[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)

2024-10-03 Thread Kamran Yousafzai via cfe-commits
https://github.com/KamranYousafzai edited https://github.com/llvm/llvm-project/pull/110690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d283705 - [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (#110281)

2024-10-03 Thread via cfe-commits
Author: Paul Walker Date: 2024-10-03T12:36:01+01:00 New Revision: d283705829ecbdf4d1c214a88166d5750f992255 URL: https://github.com/llvm/llvm-project/commit/d283705829ecbdf4d1c214a88166d5750f992255 DIFF: https://github.com/llvm/llvm-project/commit/d283705829ecbdf4d1c214a88166d5750f992255.diff L

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-10-03 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/110281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)

2024-10-03 Thread via cfe-commits
https://github.com/bd1976bris created https://github.com/llvm/llvm-project/pull/110986 Disable optimizations when building with Microsoft's compiler as it has a bug that causes excessive build times. We do this only when NDEBUG is not defined on the assumption that building without asserts ind

[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: bd1976bris (bd1976bris) Changes Disable optimizations when building with Microsoft's compiler as it has a bug that causes excessive build times. We do this only when NDEBUG is not defined on the assumption that building without asserts in

[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)

2024-10-03 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 7506872afc6c1cc7556eed5128a2030b6eb8ca29 2579ce88f4e757e068621e1763d3aabb5352a223 --e

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2024-10-03 Thread Harald van Dijk via cfe-commits
@@ -2069,22 +2069,24 @@ bool RecursiveASTVisitor::TraverseTemplateArgumentLocsHelper( #define DEF_TRAVERSE_TMPL_SPEC_DECL(TMPLDECLKIND, DECLKIND) \ DEF_TRAVERSE_DECL(TMPLDECLKIND##TemplateSpecializationDecl, { \ +auto TSK = D->getTemp

[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)

2024-10-03 Thread via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/110986 >From 2579ce88f4e757e068621e1763d3aabb5352a223 Mon Sep 17 00:00:00 2001 From: bd1976bris Date: Thu, 3 Oct 2024 12:33:18 +0100 Subject: [PATCH 1/2] [MSVC] work-around for compile time issue 102513 Disable opt

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/4867 Here is the relevant piece of the buil

[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)

2024-10-03 Thread via cfe-commits
https://github.com/bd1976bris edited https://github.com/llvm/llvm-project/pull/110986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [flang][driver] rename flang-new to flang (PR #110023)

2024-10-03 Thread David Truby via cfe-commits
@@ -339,11 +335,11 @@ just added using your new frontend option. ## CMake Support As of [#7246](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7246) -(and soon to be released CMake 3.24.0), `cmake` can detect `flang-new` as a +(and soon to be released CMake 3.24.0), `

[clang] a62a80c - [clang][x86] Update SSE42 intrinsic tests for both C/C++

2024-10-03 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-03T13:08:34+01:00 New Revision: a62a80cc80b7ad835a10047c970171f6f310e26b URL: https://github.com/llvm/llvm-project/commit/a62a80cc80b7ad835a10047c970171f6f310e26b DIFF: https://github.com/llvm/llvm-project/commit/a62a80cc80b7ad835a10047c970171f6f310e26b.diff

[clang] 7c50c1e - [clang][x86] Pull out PR51324 / PR60006 test cases into their own codegen test files

2024-10-03 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-03T13:08:34+01:00 New Revision: 7c50c1e73bc959246933d294319391e762bb05d5 URL: https://github.com/llvm/llvm-project/commit/7c50c1e73bc959246933d294319391e762bb05d5 DIFF: https://github.com/llvm/llvm-project/commit/7c50c1e73bc959246933d294319391e762bb05d5.diff

[clang] 44df106 - [clang][x86] Update SSE41 intrinsic tests for both C/C++

2024-10-03 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-03T13:08:34+01:00 New Revision: 44df106cb182d2316b4b0b8596d3745f62c17ba6 URL: https://github.com/llvm/llvm-project/commit/44df106cb182d2316b4b0b8596d3745f62c17ba6 DIFF: https://github.com/llvm/llvm-project/commit/44df106cb182d2316b4b0b8596d3745f62c17ba6.diff

[clang] [AArch64] Pass -mabi option through to multilib (PR #110874)

2024-10-03 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/110874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Fix checkArmStreamingBuiltin for 'sve-b16b16' (PR #109420)

2024-10-03 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm approved this pull request. https://github.com/llvm/llvm-project/pull/109420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64]Fix FEAT_SME_LUTv2 to have FEAT_SME2 implemented. (PR #110474)

2024-10-03 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/110474 >From 3dba9029635f8073cae0c6cd6b3d5e97271150ab Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Mon, 23 Sep 2024 16:35:20 + Subject: [PATCH 1/4] [AArch64]Fix FEAT_SME_LUTv2 to have FEAT_SME2

[clang] [libcxx] [clang] remove extra space in warn_atomic_op_oversized (NFC) (PR #110955)

2024-10-03 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. https://github.com/llvm/llvm-project/pull/110955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] remove extra space in warn_atomic_op_oversized (NFC) (PR #110955)

2024-10-03 Thread Louis Dionne via cfe-commits
ldionne wrote: I'm not a codeowner for Clang, but in this case I think the change is simple enough that this is good to go. https://github.com/llvm/llvm-project/pull/110955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [Clang] Add __builtin_(elementwise|reduce)_(max|min)imum (PR #110198)

2024-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/8882 Here is the rele

[clang] [Clang] Add __builtin_(elementwise|reduce)_(max|min)imum (PR #110198)

2024-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/9156 Here is the re

[clang] [clang-format] Fix misalignments of pointers in angle brackets (PR #106013)

2024-10-03 Thread Davide Beatrici via cfe-commits
davidebeatrici wrote: I can confirm the issue is fixed, thank you! https://github.com/llvm/llvm-project/pull/106013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4f82f27 - [OpenACC] 'collapse' clause 'force' tag (#110906)

2024-10-03 Thread via cfe-commits
Author: Erich Keane Date: 2024-10-03T06:07:39-07:00 New Revision: 4f82f27ccdd1839bd502c9c1a79e5de2fb28e07b URL: https://github.com/llvm/llvm-project/commit/4f82f27ccdd1839bd502c9c1a79e5de2fb28e07b DIFF: https://github.com/llvm/llvm-project/commit/4f82f27ccdd1839bd502c9c1a79e5de2fb28e07b.diff L

[clang] [OpenACC] 'collapse' clause 'force' tag (PR #110906)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/110906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ea62db0 - [cmake] Add hexagon-linux cmake cache files (#98712)

2024-10-03 Thread via cfe-commits
Author: Brian Cain Date: 2024-10-03T08:11:34-05:00 New Revision: ea62db0c0398ec2e7d7c4c6561feb3b4ace98050 URL: https://github.com/llvm/llvm-project/commit/ea62db0c0398ec2e7d7c4c6561feb3b4ace98050 DIFF: https://github.com/llvm/llvm-project/commit/ea62db0c0398ec2e7d7c4c6561feb3b4ace98050.diff LO

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-10-03 Thread Brian Cain via cfe-commits
https://github.com/androm3da closed https://github.com/llvm/llvm-project/pull/98712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-03 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From c3eaa29e938dcf0915204e72b8bb15de7a901930 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Tom Eccles via cfe-commits
tblah wrote: If this is completely ignored and does not effect the link line, are you sure the resulting binary actually uses the right c++ library? https://github.com/llvm/llvm-project/pull/110598 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2024-10-03 Thread Harald van Dijk via cfe-commits
@@ -2069,22 +2069,24 @@ bool RecursiveASTVisitor::TraverseTemplateArgumentLocsHelper( #define DEF_TRAVERSE_TMPL_SPEC_DECL(TMPLDECLKIND, DECLKIND) \ DEF_TRAVERSE_DECL(TMPLDECLKIND##TemplateSpecializationDecl, { \ +auto TSK = D->getTemp

[clang] [clang] Handle template argument conversions for non-pack param to pack argument (PR #110963)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I admittedly don't have a great idea of what is going on here, but I don't see anything glaringly out of place, so +1. https://github.com/llvm/llvm-project/pull/110963 ___ cfe-commits mailing l

[clang] [clang] Handle template argument conversions for non-pack param to pack argument (PR #110963)

2024-10-03 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/110963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle template argument conversions for non-pack param to pack argument (PR #110963)

2024-10-03 Thread via cfe-commits
@@ -5592,8 +5589,16 @@ bool Sema::CheckTemplateArgumentList( } else { // Move to the next template parameter. ++Param; +if (PartialOrderingTTP && PackExpansionIntoNonPack) { + SugaredConverted.pop_back(); + CanonicalConverted.pop_

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2024-10-03 Thread Harald van Dijk via cfe-commits
@@ -2069,22 +2069,24 @@ bool RecursiveASTVisitor::TraverseTemplateArgumentLocsHelper( #define DEF_TRAVERSE_TMPL_SPEC_DECL(TMPLDECLKIND, DECLKIND) \ DEF_TRAVERSE_DECL(TMPLDECLKIND##TemplateSpecializationDecl, { \ +auto TSK = D->getTemp

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2024-10-03 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/110899 >From a334eb150b2d47e7e7cf13123f01c4513832e848 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Wed, 2 Oct 2024 18:14:38 +0100 Subject: [PATCH] [RecursiveASTVisitor] Skip implicit instantiations. In DEF_TRAV

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang,compiler-rt,libcxx` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/4872 Here is the relevant pi

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/110761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -122,35 +122,34 @@ void test() { #undef EQ } -void (*fn)(); - -void test2() { erichkeane wrote: Why did this go away? This test should still diagnose. https://github.com/llvm/llvm-project/pull/110761 ___ cfe-co

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -122,35 +122,34 @@ void test() { #undef EQ } -void (*fn)(); - -void test2() { -if ((fn == test2)) {} // expected-warning {{equality comparison with extraneous parentheses}} \ - // expected-note {{use '=' to turn this equality comparison into a

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane requested changes to this pull request. The test changes are weird, we want to leave all the existing tests in place, because we want this diagnostic to happen. Also, I'd love it if someone else (@cor3ntin ?) had a think on this as well. https://github.com/llvm/ll

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-03 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,10 @@ +! Test for correct forwarding of integer overflow flags from the compiler driver +! to the frontend driver + +! RUN: %flang -### -fno-strict-overflow %s 2>&1 | FileCheck %s --check-prefixes CHECK,INDUCED tarunprabhu wrote: Do we need both the

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-03 Thread Tarun Prabhu via cfe-commits
@@ -866,6 +866,17 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA, } } + // -fno-strict-overflow implies -fwrapv if it isn't disabled, but + // -fstrict-overflow won't turn off an explicitly enabled -fwrapv. + if (Arg *A = Args.getLastArg(options::OPT

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-03 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu requested changes to this pull request. https://github.com/llvm/llvm-project/pull/110061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Tom Eccles via cfe-commits
tblah wrote: We discussed this further offline and I am now convinced there could be a valid usecase for this. Some C++ code might use header-only parts of the C++ standard library. Setting `-stdlib=` will effect the include paths clang uses for stdlib when compiling. When flang links the pro

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. LGTM but if possible please wait for another reviewer https://github.com/llvm/llvm-project/pull/110598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-03 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From 36626f9b3f1a5081e3482620b975847040eedf66 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-03 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 8d13e7b8c382499c1cf0c2a3184b483e760f266b 36626f9b3f1a5081e3482620b975847040eedf66 --e

[clang] [OpenACC] Implement 'tile' attribute AST (PR #110999)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/110999 The 'tile' clause shares quite a bit of the rules with 'collapse', so a followup patch will add those tests/behaviors. This patch deals with adding the AST node. The 'tile' clause takes a series of integer

[clang] [flang] [flang][driver] Make -stdlib= option visible to flang and silently ignored by it (PR #110598)

2024-10-03 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: > If this is completely ignored and does not effect the link line, are you sure > the resulting binary actually uses the right c++ library? > > Edit: flang will not link a C++ library. It is not a C++ compiler. As we discussed it offline, in case of this project it does not m

[clang] [OpenACC] Implement 'tile' attribute AST (PR #110999)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Erich Keane (erichkeane) Changes The 'tile' clause shares quite a bit of the rules with 'collapse', so a followup patch will add those tests/behaviors. This patch deals with adding the AST node. The 'tile' clause takes a series

[clang] [OpenACC] Implement 'tile' attribute AST (PR #110999)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Erich Keane (erichkeane) Changes The 'tile' clause shares quite a bit of the rules with 'collapse', so a followup patch will add those tests/behaviors. This patch deals with adding the AST node. The 'tile' clause takes a series

[clang] [OpenACC] Implement 'tile' attribute AST (PR #110999)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Erich Keane (erichkeane) Changes The 'tile' clause shares quite a bit of the rules with 'collapse', so a followup patch will add those tests/behaviors. This patch deals with adding the AST node. The 'tile' clause takes

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-03 Thread Budimir Aranđelović via cfe-commits
@@ -5335,6 +5335,230 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) PreferredTypeAttr(S.Context, AL, ParmTSI)); } +// Returns vector of format attributes. There are no two attributes with same +// arguments in r

[clang] [clang] Catch missing format attributes (PR #105479)

2024-10-03 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From e606cb4de13fde264ce6b08e312a14ed745d81c7 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[libcxx] [libcxxabi] [libunwind] [runtimes] Always define cxx_shared, cxx_static & other targets (PR #80007)

2024-10-03 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/80007 >From 33a4c2504236f47ef244d808bebc9a01b916b7c3 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 12 Oct 2022 18:06:32 -0400 Subject: [PATCH] [runtimes] Always define cxx_shared, cxx_static & other targets

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/111001 This is an initial patch to enable constexpr support on the more basic SSE1 intrinsics - such as initialization, arithmetic, logic and fixed shuffles. The plan is to incrementally extend this for SSE2/AVX etc.

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes This is an initial patch to enable constexpr support on the more basic SSE1 intrinsics - such as initialization, arithmetic, logic and fixed shuffles. The plan is to incrementally extend this for SSE2/AVX e

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Simon Pilgrim (RKSimon) Changes This is an initial patch to enable constexpr support on the more basic SSE1 intrinsics - such as initialization, arithmetic, logic and fixed shuffles. The plan is to incrementally extend this for SSE2

[libcxx] [libcxxabi] [libunwind] [runtimes] Always define cxx_shared, cxx_static & other targets (PR #80007)

2024-10-03 Thread Louis Dionne via cfe-commits
ldionne wrote: @petrhosek @vitalybuka Gentle ping. If the CI is green, I will land this next week unless someone objects to it. I don't want to purposefully break anyone's build, but I also don't want to hold off on this change forever if there's nothing actionable. Last time in https://revie

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-03 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 241f93658a8a9509216b841d3272194bd34fed36 d3e47ffe0bc2b6080cf74846baf78a3e7ec5b1ca --e

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/111001 >From 34f0bfa2e99252dd324bfdbb25c5d9aca78b411e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 3 Oct 2024 15:19:44 +0100 Subject: [PATCH] [clang][x86] Add constexpr support for some basic SSE1 intrinsic

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/110977 From 36d99fc59b675737ce952087b7a71ec6e4b579a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Mon, 30 Sep 2024 16:51:35 +0200 Subject: [PATCH 1/2] [clang][analyzer] Check initialization

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/110761 >From 9c69d6584d6b71554aec55f0de52abb4baa9435f Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 2 Oct 2024 02:13:51 +0300 Subject: [PATCH 1/4] [Clang] omit parentheses in fold expressions with a single

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/110761 >From 9c69d6584d6b71554aec55f0de52abb4baa9435f Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 2 Oct 2024 02:13:51 +0300 Subject: [PATCH 1/4] [Clang] omit parentheses in fold expressions with a single

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Balázs Kéri via cfe-commits
@@ -23,38 +25,35 @@ using namespace ento; namespace { class FixedAddressChecker - : public Checker< check::PreStmt > { +: public Checker, check::PreStmt, + check::PreStmt> { const BugType BT{this, "Use fixed address"}; + void checkUseOfFixedAddre

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -36,7 +36,7 @@ using r1i2 = r1; // expected-error {{constraints not satisfied for class t template requires false_v // expected-note@-1 {{because 'false_v'}} -// expected-note@-2 {{because 'false_v' evaluated to false}} +// expected-note@-2 {{because 'false_v' evaluated to

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -378,6 +378,8 @@ Improvements to Clang's diagnostics - Clang now emits a diagnostic note at the class declaration when the method definition does not match any declaration (#GH110638). +- Clang now omits warnings for extra parentheses in fold expressions with single expa

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Erich Keane via cfe-commits
@@ -15566,6 +15566,14 @@ TreeTransform::TransformCXXFoldExpr(CXXFoldExpr *E) { return true; } + // When there's only one expansion, the parentheses can be safely eliminated + // to avoid any extra redundancy that may result in incorrect checks erich

[clang] [clang][analyzer] Check initialization and argument passing in FixedAddressChecker (PR #110977)

2024-10-03 Thread Balázs Kéri via cfe-commits
balazske wrote: I changed the variable names and now `PreCall` is used so it should work with other call cases. Tests are not added for all cases like default values. I plan to split the tests from **ptr-arith.c** into separate C and C++ files (the checker is planned to be moved into the `opti

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-10-03 Thread via cfe-commits
https://github.com/ArcaneNibble approved this pull request. I am okay with this code as it relates to the RISC-V-related logic that I most recently touched. All of this code related to munging multilib paths and sysroots is now rather difficult to follow with how many different pieces of code

[clang] [clang][dataflow] Add a lattice to help represent cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung created https://github.com/llvm/llvm-project/pull/111006 By caching const accessor methods we can sometimes treat method call results as stable (e.g., for issue https://github.com/llvm/llvm-project/issues/58510). Users can clear the cache when a non-const method is call

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung edited https://github.com/llvm/llvm-project/pull/111006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bf3deb1 - [AST] Avoid repeated hash lookups (NFC) (#110947)

2024-10-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-10-03T08:27:54-07:00 New Revision: bf3deb17cbfe8d777890cd54fde48d68150d1738 URL: https://github.com/llvm/llvm-project/commit/bf3deb17cbfe8d777890cd54fde48d68150d1738 DIFF: https://github.com/llvm/llvm-project/commit/bf3deb17cbfe8d777890cd54fde48d68150d1738.diff L

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #110947)

2024-10-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/110947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung edited https://github.com/llvm/llvm-project/pull/111006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Avoid repeated hash lookups (NFC) (PR #110949)

2024-10-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/110949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 28733ed - [Analysis] Avoid repeated hash lookups (NFC) (#110949)

2024-10-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-10-03T08:28:18-07:00 New Revision: 28733ed686c4ca54042d6a9b8ae318c8f3b7b287 URL: https://github.com/llvm/llvm-project/commit/28733ed686c4ca54042d6a9b8ae318c8f3b7b287 DIFF: https://github.com/llvm/llvm-project/commit/28733ed686c4ca54042d6a9b8ae318c8f3b7b287.diff L

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung edited https://github.com/llvm/llvm-project/pull/111006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 20d402a - [Serialization] Avoid repeated hash lookups (NFC) (#110950)

2024-10-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-10-03T08:28:42-07:00 New Revision: 20d402ab087f2369c0099f151b5480efb1b7fecf URL: https://github.com/llvm/llvm-project/commit/20d402ab087f2369c0099f151b5480efb1b7fecf DIFF: https://github.com/llvm/llvm-project/commit/20d402ab087f2369c0099f151b5480efb1b7fecf.diff L

[clang] [Serialization] Avoid repeated hash lookups (NFC) (PR #110950)

2024-10-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/110950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc++] Remove unused HAVE_LIBCXXABI variable from Android cache (PR #111007)

2024-10-03 Thread Louis Dionne via cfe-commits
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/111007 This variable isn't used anymore in libc++'s build and hasn't been for a few years, so this is likely a remnant of the past. >From 7b29252b9150e0b4d2939afe1c6b33a6e9d52a0b Mon Sep 17 00:00:00 2001 From: Louis D

[clang] 66f846d - [Sema] Avoid repeated hash lookups (NFC) (#110951)

2024-10-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-10-03T08:29:04-07:00 New Revision: 66f846d753be6ac62f613bd98ca791050ba3c4a5 URL: https://github.com/llvm/llvm-project/commit/66f846d753be6ac62f613bd98ca791050ba3c4a5 DIFF: https://github.com/llvm/llvm-project/commit/66f846d753be6ac62f613bd98ca791050ba3c4a5.diff L

[clang] [Sema] Avoid repeated hash lookups (NFC) (PR #110951)

2024-10-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/110951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc++] Remove unused HAVE_LIBCXXABI variable from Android cache (PR #111007)

2024-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Louis Dionne (ldionne) Changes This variable isn't used anymore in libc++'s build and hasn't been for a few years, so this is likely a remnant of the past. --- Full diff: https://github.com/llvm/llvm-project/pull/111007.diff 1 Files Aff

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 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 ee4dd147baff8f971f3ec5aad5a216ca9837a732 f82e63e470f704f29f4c161579fd592c27301868 --e

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/110761 >From 9c69d6584d6b71554aec55f0de52abb4baa9435f Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 2 Oct 2024 02:13:51 +0300 Subject: [PATCH 1/5] [Clang] omit parentheses in fold expressions with a single

[clang] [clang][dataflow] Add a lattice to help cache const accessor methods (PR #111006)

2024-10-03 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/111006 >From f82e63e470f704f29f4c161579fd592c27301868 Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Thu, 3 Oct 2024 15:21:32 + Subject: [PATCH 1/2] [clang][dataflow] Add a lattice to help represent cache const acc

[clang] [llvm] [CGData][ThinLTO][NFC] Prep for two-codegen rounds (PR #90934)

2024-10-03 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/90934 >From c1a0219457a3c162d7fa6b9d70750ba7a040d9f2 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 26 Apr 2024 20:02:52 -0700 Subject: [PATCH 1/3] [ThinLTO][NFC] Prep for two-codegen rounds --- clang/lib/

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-03 Thread Oleksandr T. via cfe-commits
@@ -122,35 +122,34 @@ void test() { #undef EQ } -void (*fn)(); - -void test2() { a-tarasyuk wrote: It looks like I accidentally removed them — I'm sorry for the confusion. I’ve pushed a revert. https://github.com/llvm/llvm-project/pull/110761 __

[clang] d412cea - [OpenACC] Implement 'tile' attribute AST (#110999)

2024-10-03 Thread via cfe-commits
Author: Erich Keane Date: 2024-10-03T08:34:43-07:00 New Revision: d412cea8c4f26f451aee46641e384e8df62a5904 URL: https://github.com/llvm/llvm-project/commit/d412cea8c4f26f451aee46641e384e8df62a5904 DIFF: https://github.com/llvm/llvm-project/commit/d412cea8c4f26f451aee46641e384e8df62a5904.diff L

[clang] [OpenACC] Implement 'tile' attribute AST (PR #110999)

2024-10-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/110999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsics (PR #110739)

2024-10-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/110739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >