[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/69567 >From 536e4b5912f976b295bc2b507e4181c8a65f0d12 Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Thu, 19 Oct 2023 12:52:13 +0530 Subject: [PATCH] [AMDGPU] Lower __builtin_read_exec_hi to use amdgcn_ballot -

[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
@@ -7997,14 +7997,26 @@ enum SpecialRegisterAccessKind { static Value *EmitAMDGCNBallotForExec(CodeGenFunction &CGF, const CallExpr *E, llvm::Type *RegisterType, - llvm::Type *ValueType) { +

[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
@@ -7997,14 +7997,26 @@ enum SpecialRegisterAccessKind { static Value *EmitAMDGCNBallotForExec(CodeGenFunction &CGF, const CallExpr *E, llvm::Type *RegisterType, - llvm::Type *ValueType) { +

[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
@@ -526,7 +526,9 @@ void test_read_exec_lo(global uint* out) { // CHECK: declare i32 @llvm.amdgcn.ballot.i32(i1) #[[$NOUNWIND_READONLY:[0-9]+]] // CHECK-LABEL: @test_read_exec_hi( -// CHECK: call i32 @llvm.amdgcn.ballot.i32(i1 true) +// CHECK: call i64 @llvm.amdgcn.ballot.i64

[clang] [JITLink][RISCV] Implement eh_frame handling (PR #68253)

2023-10-24 Thread Job Noorman via cfe-commits
https://github.com/mtvec approved this pull request. https://github.com/llvm/llvm-project/pull/68253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b44763c - [clang][Interp] Fix scalar inits of void type (#69868)

2023-10-24 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-24T09:18:39+02:00 New Revision: b44763c5e690ddb61941ad56fb12f46e723b8071 URL: https://github.com/llvm/llvm-project/commit/b44763c5e690ddb61941ad56fb12f46e723b8071 DIFF: https://github.com/llvm/llvm-project/commit/b44763c5e690ddb61941ad56fb12f46e723b8071.diff L

[clang] [clang][Interp] Fix scalar inits of void type (PR #69868)

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/69868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c45466c - [clang][Interp] Only emit function_param_value_unknown in C++11 (#67990)

2023-10-24 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-24T09:28:30+02:00 New Revision: c45466cd9a51fe384d2b31e124b77d14c821eb70 URL: https://github.com/llvm/llvm-project/commit/c45466cd9a51fe384d2b31e124b77d14c821eb70 DIFF: https://github.com/llvm/llvm-project/commit/c45466cd9a51fe384d2b31e124b77d14c821eb70.diff L

[clang] [clang][Interp] Only emit function_param_value_unknown in C++11 (PR #67990)

2023-10-24 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/67990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/69567 >From c2ed656fa149a9cb60fb43eb34f4b20186166b34 Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Thu, 19 Oct 2023 12:52:13 +0530 Subject: [PATCH] [AMDGPU] Lower __builtin_read_exec_hi to use amdgcn_ballot -

[clang] [clang-format] Skip PP directives when determining brace kind (PR #69473)

2023-10-24 Thread Owen Pan via cfe-commits
owenca wrote: > I didn't expect you to not want to be credited, but I'll respect your opinion! I meant you didn't need to add me to the authorship. 🙂 Anyway, I do appreciate it and think you should be the only author. > GitHub adds co-ownership automatically if using the web ui to commit a >

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/67663 From 9aea93ddeb70245a07984188aa98577d54e8e560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Fri, 8 Sep 2023 14:20:00 +0200 Subject: [PATCH 01/12] [analyzer][clangsa] Add new option to

[clang] 1072fcd - [flang][driver] support -dumpversion and -dumpmachine (#68896)

2023-10-24 Thread via cfe-commits
Author: Yuanfang Chen Date: 2023-10-24T01:32:39-07:00 New Revision: 1072fcd222468d36b1d4633f1a091a3376831ae3 URL: https://github.com/llvm/llvm-project/commit/1072fcd222468d36b1d4633f1a091a3376831ae3 DIFF: https://github.com/llvm/llvm-project/commit/1072fcd222468d36b1d4633f1a091a3376831ae3.diff

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-24 Thread Yuanfang Chen via cfe-commits
https://github.com/yuanfang-chen closed https://github.com/llvm/llvm-project/pull/68896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't break between string literal operands of << (PR #69871)

2023-10-24 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/69871 >From d12aee14e9d588c402e69e49aa9b33be7f940acb Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 22 Oct 2023 01:36:17 -0700 Subject: [PATCH] [clang-format] Don't break between string literal operands of << Fixe

[clang] aceb34c - [analyzer][NFC] Simplifications in ArrayBoundV2 (#67572)

2023-10-24 Thread via cfe-commits
Author: DonatNagyE Date: 2023-10-24T10:44:13+02:00 New Revision: aceb34c7046d315d615feaa94a5941db13299a1b URL: https://github.com/llvm/llvm-project/commit/aceb34c7046d315d615feaa94a5941db13299a1b DIFF: https://github.com/llvm/llvm-project/commit/aceb34c7046d315d615feaa94a5941db13299a1b.diff LO

[clang] [analyzer][NFC] Simplifications in ArrayBoundV2 (PR #67572)

2023-10-24 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?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/67572 ___ cfe-commits mailing list cfe-commits@l

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/67663 From 65a4bf21e38a925f643c6cca3d3cad4c2910071c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Fri, 8 Sep 2023 14:20:00 +0200 Subject: [PATCH 01/12] [analyzer][clangsa] Add new option to

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-24 Thread Endre Fülöp via cfe-commits
gamesh411 wrote: I have rebased on the current main. https://github.com/llvm/llvm-project/pull/67663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-10-24 Thread via cfe-commits
https://github.com/DaMatrix updated https://github.com/llvm/llvm-project/pull/66894 >From 38647e8b00194a59a31eed92b04b229fe24802b6 Mon Sep 17 00:00:00 2001 From: DaPorkchop_ Date: Sun, 13 Aug 2023 22:39:12 +0200 Subject: [PATCH 1/2] [clang] Implement constexpr bit_cast for vectors --- .../inc

[clang] [AMDGPU] Lower __builtin_amdgcn_read_exec_hi to use amdgcn_ballot (PR #69567)

2023-10-24 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 updated https://github.com/llvm/llvm-project/pull/69567 >From 65c806a4c1703214fa7eaebecfdaa200b6d0d205 Mon Sep 17 00:00:00 2001 From: ranapratap55 Date: Thu, 19 Oct 2023 12:52:13 +0530 Subject: [PATCH] [AMDGPU] Lower __builtin_read_exec_hi to use amdgcn_ballot -

[clang] 7bc1031 - Revert "[clang-format] Fix align consecutive declarations over function pointers"

2023-10-24 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-10-24T02:15:44-07:00 New Revision: 7bc1031c474ebb2216a5432273dafe4d1490fbce URL: https://github.com/llvm/llvm-project/commit/7bc1031c474ebb2216a5432273dafe4d1490fbce DIFF: https://github.com/llvm/llvm-project/commit/7bc1031c474ebb2216a5432273dafe4d1490fbce.diff LOG:

[clang] [Clang] Mark declarators invalid in the presence of ill-formed explicit parameters. (PR #70018)

2023-10-24 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/70018 To avoid crashes later in sema. Fixes #69962 Fixes #69838 >From 4810d5c8d9d9ec95300c3b684fe3ff88fdd05351 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 24 Oct 2023 11:20:30 +0200 Subject: [PATCH] [Cl

[clang] [Clang] Mark declarators invalid in the presence of ill-formed explicit parameters. (PR #70018)

2023-10-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes To avoid crashes later in sema. Fixes #69962 Fixes #69838 --- Full diff: https://github.com/llvm/llvm-project/pull/70018.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaDeclCXX.cpp (+6-1) - (modified

[clang] [clang-format] Don't break between string literal operands of << (PR #69871)

2023-10-24 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/69871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d68826d - [clang-format] Don't break between string literal operands of << (#69871)

2023-10-24 Thread via cfe-commits
Author: Owen Pan Date: 2023-10-24T02:42:39-07:00 New Revision: d68826dfbd987377ef6771d40c1d984f09ee3b9e URL: https://github.com/llvm/llvm-project/commit/d68826dfbd987377ef6771d40c1d984f09ee3b9e DIFF: https://github.com/llvm/llvm-project/commit/d68826dfbd987377ef6771d40c1d984f09ee3b9e.diff LOG:

[clang] 684e4c0 - [clang][Interp] Don't explicitly call InterpState destructor()

2023-10-24 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-24T12:00:40+02:00 New Revision: 684e4c0085e8d454c04e9813f89033b1c51d24fa URL: https://github.com/llvm/llvm-project/commit/684e4c0085e8d454c04e9813f89033b1c51d24fa DIFF: https://github.com/llvm/llvm-project/commit/684e4c0085e8d454c04e9813f89033b1c51d24fa.diff LO

[clang] [clang]Transform uninstantiated ExceptionSpec in TemplateInstantiator (PR #68878)

2023-10-24 Thread Congcong Cai via cfe-commits
@@ -396,6 +396,10 @@ Bug Fixes in This Version cannot be used with ``Release`` mode builds. (`#68237 `_). - Fix crash in evaluating ``constexpr`` value for invalid template function. Fixes (`#68542

[clang] [Clang] Mark declarators invalid in the presence of ill-formed explicit parameters. (PR #70018)

2023-10-24 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Is there no release note because there is no release that supports explicit object parameters yet? https://github.com/llvm/llvm-project/pull/70018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

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

2023-10-24 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovicsyrmia created https://github.com/llvm/llvm-project/pull/70024 Enable flag -Wmissing-format-attribute to catch missing attributes From 9d0b6ae67776a9adf9ca3eee64b2e01de9f07af4 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 13 Oct 2023

[clang] b4fc141 - [clang][Interp] Fix ArrayInitLoop common expr life time

2023-10-24 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-24T12:20:02+02:00 New Revision: b4fc1418d9765bfb605387efc70ecf233d27b383 URL: https://github.com/llvm/llvm-project/commit/b4fc1418d9765bfb605387efc70ecf233d27b383 DIFF: https://github.com/llvm/llvm-project/commit/b4fc1418d9765bfb605387efc70ecf233d27b383.diff LO

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

2023-10-24 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovicsyrmia edited https://github.com/llvm/llvm-project/pull/70024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix `ArrayInitLoopExpr` handling (PR #67886)

2023-10-24 Thread Timm Baeder via cfe-commits
tbaederr wrote: Sorry, but I had to investigate this locally anyway because the opaque value test started to break with one of my patches from today. I came up with https://github.com/llvm/llvm-project/commit/b4fc1418d9765bfb605387efc70ecf233d27b383. Thanks for your work on this though. https

[clang] [clang][Interp] Fix `ArrayInitLoopExpr` handling (PR #67886)

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/67886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Mark declarators invalid in the presence of ill-formed explicit parameters. (PR #70018)

2023-10-24 Thread via cfe-commits
cor3ntin wrote: > Is there no release note because there is no release that supports explicit > object parameters yet? Exactly, yes! https://github.com/llvm/llvm-project/pull/70018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [clang][Analyzer] Move checker 'alpha.unix.Errno' to 'unix.Errno'. (PR #69469)

2023-10-24 Thread via cfe-commits
@@ -934,6 +934,76 @@ Check calls to various UNIX/Posix functions: ``open, pthread_once, calloc, mallo .. literalinclude:: checkers/unix_api_example.c :language: c +.. _unix-Errno: + +unix.Errno (C) +"" + +Check for improper use of ``errno``. +This checker impl

[PATCH] D153701: [Clang] Implement P2718R0 "Lifetime extension in range-based for loops"

2023-10-24 Thread Yurong via Phabricator via cfe-commits
yronglin marked an inline comment as done. yronglin added a comment. ping~ Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D153701/new/ https://reviews.llvm.org/D153701 ___ cfe-commits mailing list cfe-comm

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

2023-10-24 Thread Nikita Popov via cfe-commits
nikic wrote: > See most recent comments about missing tests. That being said code looks > functionally correct to me. Still not 100% sure this is a desirable change. > Will defer to @nikic about that. I'm also skeptical about accepting this optimization. Looking at the motivating case in http

[clang] c8b267e - [clang][Interp] Handle variadic functions (#67814)

2023-10-24 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-24T12:33:29+02:00 New Revision: c8b267e98f8f5c0bc4c3b3b34f9cb54dbdf76205 URL: https://github.com/llvm/llvm-project/commit/c8b267e98f8f5c0bc4c3b3b34f9cb54dbdf76205 DIFF: https://github.com/llvm/llvm-project/commit/c8b267e98f8f5c0bc4c3b3b34f9cb54dbdf76205.diff L

[clang] [clang][Interp] Handle variadic functions (PR #67814)

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/67814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Implement IntegralAP::truncate() (PR #69912)

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/69912 >From 40a32854cab91eb98aeb4788cabd4aa14d305d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 23 Oct 2023 12:23:45 +0200 Subject: [PATCH] [clang][Interp] Implement IntegralAP::truncate()

[clang] [Driver] Add ExclusiveGroup feature to multilib.yaml. (PR #69447)

2023-10-24 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm updated https://github.com/llvm/llvm-project/pull/69447 >From e4d860c2968e4bf2e0ca198bdfe00dad4e985d40 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 14 Sep 2023 14:51:17 +0100 Subject: [PATCH] [Driver] Add ExclusiveGroup feature to multilib.yaml. This al

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

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/69597 >From e77e43ac2a402a74fbf5c28e7dfa24d0c0e77f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 18 Oct 2023 15:36:13 +0200 Subject: [PATCH] [clang][Interp] Implement inc/dec for IntegralAP

[clang] [NFC] [Serializer] Pack information in serializer (PR #69287)

2023-10-24 Thread Vassil Vassilev via cfe-commits
@@ -617,24 +617,27 @@ void ASTDeclReader::VisitDecl(Decl *D) { Reader.getContext()); } D->setLocation(ThisDeclLoc); - D->InvalidDecl = Record.readInt(); - if (Record.readInt()) { // hasAttrs + + uint64_t DeclBits = Record.readInt(); + D->Inval

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-24 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/68743 From 465003388953a52b70702d45cef7c4031581310d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 10 Oct 2023 22:50:43 +0200 Subject: [PATCH] [clang-format] Don't align com

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-24 Thread Björn Schäpers via cfe-commits
@@ -3191,20 +3198,150 @@ TEST_F(FormatTestComments, DontAlignNamespaceComments) { "}\n" "// Comment"; -#if 0 - // FIXME: The following comment is aligned with the namespace comment. verifyFormat("namespace A {\n" " int Foo;\n"

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-24 Thread Björn Schäpers via cfe-commits
@@ -3191,20 +3198,167 @@ TEST_F(FormatTestComments, DontAlignNamespaceComments) { "}\n" "// Comment"; -#if 0 - // FIXME: The following comment is aligned with the namespace comment. verifyFormat("namespace A {\n" " int Foo;\n"

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-24 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/68743 From 3e76e5a0724af4d6f24175796856c919f30547a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 10 Oct 2023 22:50:43 +0200 Subject: [PATCH] [clang-format] Don't align com

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-24 Thread Owen Pan via cfe-commits
@@ -3191,20 +3198,167 @@ TEST_F(FormatTestComments, DontAlignNamespaceComments) { "}\n" "// Comment"; -#if 0 - // FIXME: The following comment is aligned with the namespace comment. verifyFormat("namespace A {\n" " int Foo;\n"

[clang] [Sema] Fixed faulty shift count warning (PR #69521)

2023-10-24 Thread Karl-Johan Karlsson via cfe-commits
karka228 wrote: Ping https://github.com/llvm/llvm-project/pull/69521 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Add ExclusiveGroup feature to multilib.yaml. (PR #69447)

2023-10-24 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm updated https://github.com/llvm/llvm-project/pull/69447 >From 2a65ae75e8c8e62e7275a439849837919599e896 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 14 Sep 2023 14:51:17 +0100 Subject: [PATCH] [Driver] Add ExclusiveGroup feature to multilib.yaml. This al

[clang] 4674e30 - [Tooling/Inclusion] Refactor to use tables for compile time

2023-10-24 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2023-10-24T13:15:02+02:00 New Revision: 4674e303d2603f5d3c8faba2de676ed6ad0299a0 URL: https://github.com/llvm/llvm-project/commit/4674e303d2603f5d3c8faba2de676ed6ad0299a0 DIFF: https://github.com/llvm/llvm-project/commit/4674e303d2603f5d3c8faba2de676ed6ad0299a0.dif

[clang] 24f068b - [Tooling/Inclusion] Fix MSVC build

2023-10-24 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2023-10-24T13:32:21+02:00 New Revision: 24f068b0f77e5de1980b71f036f6b83c4d506904 URL: https://github.com/llvm/llvm-project/commit/24f068b0f77e5de1980b71f036f6b83c4d506904 DIFF: https://github.com/llvm/llvm-project/commit/24f068b0f77e5de1980b71f036f6b83c4d506904.dif

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

2023-10-24 Thread via cfe-commits
martinboehme wrote: Removing myself as a reviewer -- I don't really consider myself to have expertise here. https://github.com/llvm/llvm-project/pull/70024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

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

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/69597 >From 75fd2d498ec8d4e5928619493fedbbc994501378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 18 Oct 2023 15:36:13 +0200 Subject: [PATCH] [clang][Interp] Implement inc/dec for IntegralAP

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

2023-10-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/69597 >From 26868de7b84d53e9399cd7420ce5496c845d8ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 18 Oct 2023 15:36:13 +0200 Subject: [PATCH] [clang][Interp] Implement inc/dec for IntegralAP

[clang] [clang][Interp] Only diagnose null field access in constant contexts (PR #69223)

2023-10-24 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: @@ -295,7 +295,7 @@ class Pointer { bool isUnion() const; /// Checks if the storage is extern. - bool isExtern() const { return Pointee->isExtern(); } + bool isExtern() const { return Pointee && Pointee->isExtern();

[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)

2023-10-24 Thread via cfe-commits
joanahalili wrote: Hello, This commit is causing clang crashes on our end. Here is a reproducer: repro Cmd: `clang -O0 -std=gnu++20 -fsized-deallocation -Xclang -target-feature -Xclang +sse4.2 -c fileName.ii` where fileName.ii is ``` template bool c = __is_constructible(a, b...); template

[clang] f7a46d7 - [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (#67663)

2023-10-24 Thread via cfe-commits
Author: Endre Fülöp Date: 2023-10-24T13:59:54+02:00 New Revision: f7a46d700f6458a382304339c5b3589bf30ae45d URL: https://github.com/llvm/llvm-project/commit/f7a46d700f6458a382304339c5b3589bf30ae45d DIFF: https://github.com/llvm/llvm-project/commit/f7a46d700f6458a382304339c5b3589bf30ae45d.diff L

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 closed https://github.com/llvm/llvm-project/pull/67663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 82f75ed - [Driver] Ignore non-clang pch files when -include a.h probes a.h.gch (#69204)

2023-10-24 Thread via cfe-commits
Author: Hans Date: 2023-10-24T14:03:13+02:00 New Revision: 82f75ed5997c317350b539dc185f5dbe2ec197a3 URL: https://github.com/llvm/llvm-project/commit/82f75ed5997c317350b539dc185f5dbe2ec197a3 DIFF: https://github.com/llvm/llvm-project/commit/82f75ed5997c317350b539dc185f5dbe2ec197a3.diff LOG: [Dr

[clang] [Driver] Ignore non-clang pch files when -include a.h probes a.h.gch (PR #69204)

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

[clang] [AArch64] Implement reinterpret builtins for SVE vector tuples (PR #69598)

2023-10-24 Thread via cfe-commits
@@ -263,17 +267,11 @@ class SVEEmitter { // which is inconvenient to specify in the arm_sve.td file or // generate in CGBuiltin.cpp. struct ReinterpretTypeInfo { +SVEType BaseType; const char *Suffix; -const char *Type; -const char *BuiltinType; }; -

[clang] Revert "[clang] Support fixed point types in C++ (#67750)" (PR #69963)

2023-10-24 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/69963 >From 340e3777509f70b5b300adcb181261e84247cf1a Mon Sep 17 00:00:00 2001 From: Ammarguellat Date: Mon, 23 Oct 2023 12:51:21 -0700 Subject: [PATCH 1/3] Revert "[clang] Support fixed point types in C++ (#67750)"

[clang] Revert "[clang] Support fixed point types in C++ (#67750)" (PR #69963)

2023-10-24 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam ready_for_review https://github.com/llvm/llvm-project/pull/69963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang] Support fixed point types in C++ (#67750)" (PR #69963)

2023-10-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zahira Ammarguellat (zahiraam) Changes This reverts commit a3a7d6318027bb86e6614c022e77e0bd81aef6dc. When compiling with MSVC2022 in C++32 mode this is giving an error. Compiling this simple test case: t1.cpp: with -std=c++23 will give th

[clang] [clang][NFC] Refactor `Selector` to use `PointerIntPair` inside (PR #69916)

2023-10-24 Thread Aaron Ballman via cfe-commits
@@ -809,43 +927,42 @@ class Selector { enum IdentifierInfoFlag { // Empty selector = 0. Note that these enumeration values must // correspond to the enumeration values of DeclarationName::StoredNameKind -ZeroArg = 0x01, -OneArg = 0x02, +ZeroArg = 0x01,

[clang] [AMDGPU] Add an option to disable unsafe uses of atomic xor (PR #69229)

2023-10-24 Thread Pierre-Andre Saulais via cfe-commits
pasaulais wrote: Thanks for the review. I agree that function-level attributes are not ideal for solving this issue and instruction-level metadata would work better with things like inlining. Is the incomplete patch you mentioned something I could take on and complete? Regarding int vs floati

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-24 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[libclc] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -959,16 +970,6 @@ void GCNSchedStage::checkScheduling() { << DAG.MinOccupancy << ".\n"); } - unsigned MaxVGPRs = ST.getMaxNumVGPRs(MF); - unsigned MaxSGPRs = ST.getMaxNumSGPRs(MF); - if (PressureAfter.getVGPRNum(false) > MaxVGPRs || - Pressur

[clang-tools-extra] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -959,16 +970,6 @@ void GCNSchedStage::checkScheduling() { << DAG.MinOccupancy << ".\n"); } - unsigned MaxVGPRs = ST.getMaxNumVGPRs(MF); - unsigned MaxSGPRs = ST.getMaxNumSGPRs(MF); - if (PressureAfter.getVGPRNum(false) > MaxVGPRs || - Pressur

[clang-tools-extra] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -1,7 +1,13 @@ -// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range

[clang] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -326,6 +326,25 @@ Improvements to Clang's diagnostics - Clang now always diagnoses when using non-standard layout types in ``offsetof`` . (`#64619:

[clang-tools-extra] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Horv=C3=A1th?=, Botond =?utf-8?q?Istv=C3=A1n_Horv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity requested changes to this pull request. https://github.com/llvm/llvm-project/pull/69480 ___ cfe-commits ma

[clang] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -1,7 +1,13 @@ -// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range

[clang] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -1,7 +1,13 @@ -// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range

[clang] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Horv=C3=A1th?=, Botond =?utf-8?q?Istv=C3=A1n_Horv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity requested changes to this pull request. https://github.com/llvm/llvm-project/pull/69480 ___ cfe-commits ma

[clang-tools-extra] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -326,6 +326,25 @@ Improvements to Clang's diagnostics - Clang now always diagnoses when using non-standard layout types in ``offsetof`` . (`#64619:

[clang-tools-extra] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-24 Thread via cfe-commits
Botond =?utf-8?q?István_Horváth?=, Botond =?utf-8?q?István_Horváth?Message-ID: In-Reply-To: @@ -1,7 +1,13 @@ -// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range

[libclc] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -894,10 +894,22 @@ void GCNSchedStage::setupNewBlock() { void GCNSchedStage::finalizeGCNRegion() { DAG.Regions[RegionIdx] = std::pair(DAG.RegionBegin, DAG.RegionEnd); - DAG.RescheduleRegions[RegionIdx] = false; alex-t wrote: Should not we mark for resch

[libclc] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -702,7 +702,7 @@ bool UnclusteredHighRPStage::initGCNSchedStage() { if (!GCNSchedStage::initGCNSchedStage()) return false; - if (DAG.RegionsWithHighRP.none() && DAG.RegionsWithExcessRP.none()) + if (DAG.RegionsWithExcessRP.none()) alex-t wrote: Thi

[clang] clang/OpenCL: set sqrt fp accuracy on call to Z4sqrt (PR #66651)

2023-10-24 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @arsenm? https://github.com/llvm/llvm-project/pull/66651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -1117,16 +1118,23 @@ bool OccInitialScheduleStage::shouldRevertScheduling(unsigned WavesAfter) { bool UnclusteredHighRPStage::shouldRevertScheduling(unsigned WavesAfter) { // If RP is not reduced in the unclustered reschedule stage, revert to the // old schedule. - if

[libclc] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-24 Thread via cfe-commits
@@ -1117,16 +1118,23 @@ bool OccInitialScheduleStage::shouldRevertScheduling(unsigned WavesAfter) { bool UnclusteredHighRPStage::shouldRevertScheduling(unsigned WavesAfter) { // If RP is not reduced in the unclustered reschedule stage, revert to the // old schedule. - if

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-24 Thread Carlos Alberto Enciso via cfe-commits
https://github.com/CarlosAlbertoEnciso updated https://github.com/llvm/llvm-project/pull/69681 >From eef5d041e6b2fe02bba86113a41035324c6c81b8 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Enciso Date: Fri, 20 Oct 2023 06:09:04 +0100 Subject: [PATCH 1/2] [Clang][DebugInfo] Clang generates an ext

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-24 Thread Carlos Alberto Enciso via cfe-commits
@@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s + +struct Tuple { + int Fld_1; + int Fld_2; +}; +__attribute__((optnone)) Tuple get() { return {10, 20}; } + +// CHECK-LABEL: define dso_local noundef i32 @main +// CHECK: %r

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-24 Thread Carlos Alberto Enciso via cfe-commits
@@ -2,10 +2,8 @@ CarlosAlbertoEnciso wrote: Added the `--implicit-check-not` option. https://github.com/llvm/llvm-project/pull/69681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-24 Thread Carlos Alberto Enciso via cfe-commits
CarlosAlbertoEnciso wrote: Uploaded new patch to address comments from @OCHyams https://github.com/llvm/llvm-project/pull/69681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CXXNameMangler] Correct the mangling of SVE ACLE types within function names. (PR #69460)

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

[clang] [OpenMP] Introduce support for OMPX extensions and taskgraph frontend (PR #66919)

2023-10-24 Thread Jose Manuel Monsalve Diaz via cfe-commits
josemonsalve2 wrote: @jdoerfert ping https://github.com/llvm/llvm-project/pull/66919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
https://github.com/grypp commented: Looks good overall to me. I left a few comments https://github.com/llvm/llvm-project/pull/69648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
https://github.com/grypp edited https://github.com/llvm/llvm-project/pull/69648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
@@ -0,0 +1,222 @@ +//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ===// +// +// 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: Apache-

[clang] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
@@ -0,0 +1,222 @@ +//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ===// +// +// 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: Apache-

[clang] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
@@ -0,0 +1,222 @@ +//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ===// +// +// 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: Apache-

[clang] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
@@ -0,0 +1,222 @@ +//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ===// +// +// 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: Apache-

[clang-tools-extra] [MLIR] Add SyclRuntimeWrapper (PR #69648)

2023-10-24 Thread Guray Ozen via cfe-commits
@@ -0,0 +1,222 @@ +//===- SyclRuntimeWrappers.cpp - MLIR SYCL wrapper library ===// +// +// 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: Apache-

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-24 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69688 >From 2629b346123f9838a4fc3d8b6fb6a98508773965 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 20 Oct 2023 15:45:42 +0800 Subject: [PATCH 1/2] [clang]improve diagnosing redefined defaulted constructor

[clang] [clang]Transform uninstantiated ExceptionSpec in TemplateInstantiator (PR #68878)

2023-10-24 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/68878 >From b93096929aa98e17dfdb0240a9285d315fc95bfc Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 12 Oct 2023 19:31:08 +0800 Subject: [PATCH 1/3] [clang]Transform uninstantiated ExceptionSpec in Template

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-24 Thread Congcong Cai via cfe-commits
@@ -378,7 +381,6 @@ Improvements to Clang's diagnostics C++ semantics, e.g. which function template is more specialized. This can sometimes lead to worse ordering. - HerrCai0907 wrote: ```suggestion ``` https://github.com/llvm/llvm-project/pull/69688 __

  1   2   3   4   >