[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

2024-10-01 Thread Benjamin Maxwell via cfe-commits
@@ -326,6 +326,21 @@ class FPMathOperator : public Operator { /// precision. float getFPAccuracy() const; + /// Returns true if `Ty` is a supported floating-point type for phi, select, + /// or call FPMathOperators. + static bool isSupportedFloatingPointType(Type *Ty) {

[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

2024-10-01 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/110506 >From 328357f2300ebe55b8385c01f9c655f703933736 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 30 Sep 2024 11:07:45 + Subject: [PATCH 1/9] [IR] Allow fast math flags on calls with homogeneous FP s

[clang] [clang][ExtractAPI] Generate subheading for typedef'd anonymous types (PR #110689)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes When an anonymous type has a typedef we normally use the typedef's name in places where we expect a named identifier in the symbol graph. This extends this logic to apply to subheadings. rdar://1

[clang] [Clang] Fix 'counted_by' for nested struct pointers (PR #110497)

2024-10-01 Thread Jan Hendrik Farr via cfe-commits
Cydox wrote: Removed the special case for DeclRefExpr, as this can also be handled by the pointer case. A few were adjusted, but none of them changed any behavior. That additional commit is not necessary to fix anything, it's just cleanup. https://github.com/llvm/llvm-project/pull/110497 _

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

2024-10-01 Thread Kamran Yousafzai via cfe-commits
https://github.com/KamranYousafzai created https://github.com/llvm/llvm-project/pull/110690 The code generated for calls with FPCC eligible structs as arguments doesn't consider the alignment with a bitfield, which results in a store crossing the boundary of the memory allocated using alloca,

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

2024-10-01 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

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

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Kamran Yousafzai (KamranYousafzai) Changes The code generated for calls with FPCC eligible structs as arguments doesn't consider the alignment with a bitfield, which results in a store crossing the boundary of the memory allocate

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

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kamran Yousafzai (KamranYousafzai) Changes The code generated for calls with FPCC eligible structs as arguments doesn't consider the alignment with a bitfield, which results in a store crossing the boundary of the memory allocated

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

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kamran Yousafzai (KamranYousafzai) Changes The code generated for calls with FPCC eligible structs as arguments doesn't consider the alignment with a bitfield, which results in a store crossing the boundary of the memory allocated using a

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

2024-10-01 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] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/110654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7147e88 - [clang][bytecode] Implement lzcnt/tzcnt/bzhi builtins (#110639)

2024-10-01 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-01T12:04:32+02:00 New Revision: 7147e88f5502c4430e386247e92937a94b3e7c5b URL: https://github.com/llvm/llvm-project/commit/7147e88f5502c4430e386247e92937a94b3e7c5b DIFF: https://github.com/llvm/llvm-project/commit/7147e88f5502c4430e386247e92937a94b3e7c5b.diff L

[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

2024-10-01 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/110506 >From 328357f2300ebe55b8385c01f9c655f703933736 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 30 Sep 2024 11:07:45 + Subject: [PATCH 1/9] [IR] Allow fast math flags on calls with homogeneous FP s

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread Abhina Sree via cfe-commits
abhina-sree wrote: > > @perry-ca raised some concerns in #109664 about this functionality > > requiring some context awareness, I don't think any of those is addressed > > by this patch either. Pretty much all of the callers apart from ASTReader > > is just using `IsText = true`. > > It just

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-10-01 Thread Timm Baeder 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?= Message-ID: In-Reply-To: tbaederr wrote: Moved it back into `ThreadAnalysis.cpp`. I'm still only comparing the number of args, but I'd like better diagnostics for this. I

[clang] [Clang] Fix 'counted_by' for nested struct pointers (PR #110497)

2024-10-01 Thread Jan Hendrik Farr via cfe-commits
https://github.com/Cydox updated https://github.com/llvm/llvm-project/pull/110497 >From 15b69329a97706ada7d5e8cbeb76508aa55b418f Mon Sep 17 00:00:00 2001 From: Jan Hendrik Farr Date: Sun, 29 Sep 2024 21:38:13 +0200 Subject: [PATCH 1/2] [Clang] Fix 'counted_by' for nested struct pointers Fixes

[clang] Support BasedOnStyle referencing an arbitrary file (PR #110634)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Ryan Saunders (jediry) Changes This change adds support for clang-format's BasedOnStyle to reference an explicit, arbitrary file, using syntax like: ```BasedOnStyle: file:../../format/my-team.clang-format``` or ```BasedOnStyle: fil

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-10-01 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/100346 >From 15161b0b7637d52b6285624a4bf9f52a6664082c Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 21 Jul 2024 09:49:11 -0700 Subject: [PATCH 1/7] [RISCV][VLS] Support RISCV VLS calling convention This patch a

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

2024-10-01 Thread Kamran Yousafzai via cfe-commits
https://github.com/KamranYousafzai updated https://github.com/llvm/llvm-project/pull/110690 >From 69d04c6b48f1fad94d696a1cd2be66d7438f9c4c Mon Sep 17 00:00:00 2001 From: "muhammad.kamran4" Date: Tue, 1 Oct 2024 17:21:21 +0200 Subject: [PATCH] fixed fp calling convention for fpcc eligible struct

[clang] [Clang][TableGen] Change ClangAttrEmitter to use const Record * (PR #110584)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 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 b8b036a7fe5b6e7ec306e3b80367e22d157a492b d30b8c9893479482eec7e1cd43bf8ebc5196d042 --e

[clang] cb52e8e - [clang][x86] Add constexpr support for MULX intrinsics (#110654)

2024-10-01 Thread via cfe-commits
Author: Simon Pilgrim Date: 2024-10-01T15:12:09+01:00 New Revision: cb52e8e13d97b0e3972b42298b19d02e4d066db4 URL: https://github.com/llvm/llvm-project/commit/cb52e8e13d97b0e3972b42298b19d02e4d066db4 DIFF: https://github.com/llvm/llvm-project/commit/cb52e8e13d97b0e3972b42298b19d02e4d066db4.diff

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/110666 >From be911d8d0a00d5c6d42b23b40ca6d6abec51966c Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Tue, 1 Oct 2024 16:10:55 +0200 Subject: [PATCH] Handle variable templates in isInstantiated a

[clang] [llvm] [Utils] Add new --update-tests flag to llvm-lit (PR #108425)

2024-10-01 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM. I gave this a try and it seems to work well! https://github.com/llvm/llvm-project/pull/108425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] 017c2ab - [Clang][TableGen] Change ClangAttrEmitter to use const Record * (#110584)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T06:51:49-07:00 New Revision: 017c2aba61a2a0c97c7e71aa7610de7f3c0150e6 URL: https://github.com/llvm/llvm-project/commit/017c2aba61a2a0c97c7e71aa7610de7f3c0150e6 DIFF: https://github.com/llvm/llvm-project/commit/017c2aba61a2a0c97c7e71aa7610de7f3c0150e6.diff L

[clang] [flang] [Flang][Driver] Enable the -B option (PR #109965)

2024-10-01 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan closed https://github.com/llvm/llvm-project/pull/109965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Enable constexpr on LZCNT & BMI intrinsics (PR #94161)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/94161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 28be39f - [Flang][Driver] Enable the -B option (#109965)

2024-10-01 Thread via cfe-commits
Author: Kiran Chandramohan Date: 2024-10-01T15:01:32+01:00 New Revision: 28be39f174f109923c321b4111d21028db432e3e URL: https://github.com/llvm/llvm-project/commit/28be39f174f109923c321b4111d21028db432e3e DIFF: https://github.com/llvm/llvm-project/commit/28be39f174f109923c321b4111d21028db432e3e.

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread Sean Perry via cfe-commits
perry-ca wrote: > @perry-ca raised some concerns in #109664 about this functionality requiring > some context awareness, I don't think any of those is addressed by this patch > either. Pretty much all of the callers apart from ASTReader is just using > `IsText = true`. It just happens that 90

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread Vlad Serebrennikov via cfe-commits
@@ -600,6 +600,7 @@ namespace cwg336 { // cwg336: yes template<> template class A::B {}; template<> template<> template void A::B::mf1(T t) {} // expected-error@-1 {{out-of-line definition of 'mf1' does not match any declaration in 'cwg336::Pre::A::B'}} +// exp

[clang] bb78a0b - [clang] Fix the local parameter of void type inside the `Requires` expression. (#109831)

2024-10-01 Thread via cfe-commits
Author: c8ef Date: 2024-10-01T06:39:10-07:00 New Revision: bb78a0b33496fb0140cec1a92a689505f53253b7 URL: https://github.com/llvm/llvm-project/commit/bb78a0b33496fb0140cec1a92a689505f53253b7 DIFF: https://github.com/llvm/llvm-project/commit/bb78a0b33496fb0140cec1a92a689505f53253b7.diff LOG: [cl

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread Vlad Serebrennikov via cfe-commits
@@ -108,6 +108,7 @@ namespace MultilevelSpecialization { template<> template void B::f(int i, int (&arr1)[a], int (&arr2)[b]) {} // since-cxx11-error@-1 {{out-of-line definition of 'f' does not match any declaration in 'cwg2233::MultilevelSpecialization::B'}} +//

[clang] [clang] Fix the local parameter of void type inside the `Requires` expression. (PR #109831)

2024-10-01 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/109831 ___ 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-01 Thread Brad Richardson via cfe-commits
everythingfunctional wrote: > Shouldn't `-fopenacc` then also emit such a warning? Well, we could get into a philosophical discussion about whether software is ever *not* experimental. But in this case I think it's fine to be a bit proactive and warn users that we know there are still some unf

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Implementation seems fine to me, but wait for other reviewers before merging. https://github.com/llvm/llvm-project/pull/110638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread via cfe-commits
@@ -13464,6 +13464,54 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, return Success(DidOverflow, E); } + case clang::X86::BI__builtin_ia32_addcarryx_u32: + case clang::X86::BI__builtin_ia32_addcarryx_u64: { +LValue ResultLValue; +APSInt Carr

[clang] fdfd326 - [Clang][LLVM] Change OpenCL Emitter to use const Record * (#110590)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T06:53:13-07:00 New Revision: fdfd326a012f76bcab37e09e2d452fb379827676 URL: https://github.com/llvm/llvm-project/commit/fdfd326a012f76bcab37e09e2d452fb379827676 DIFF: https://github.com/llvm/llvm-project/commit/fdfd326a012f76bcab37e09e2d452fb379827676.diff L

[clang] 09b8dbf - [analyzer] Add optin.taint.TaintedDiv checker (#106389)

2024-10-01 Thread via cfe-commits
Author: Daniel Krupp Date: 2024-10-01T11:33:06+02:00 New Revision: 09b8dbfa80d62e64efb09bd166324270c96badf9 URL: https://github.com/llvm/llvm-project/commit/09b8dbfa80d62e64efb09bd166324270c96badf9 DIFF: https://github.com/llvm/llvm-project/commit/09b8dbfa80d62e64efb09bd166324270c96badf9.diff

[clang] [X86] Enable constexpr on LZCNT & BMI intrinsics (PR #94161)

2024-10-01 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: Closing as these have now all been addressed https://github.com/llvm/llvm-project/pull/94161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes With this patch all BMI2 intrinsics can now be used in constant expressions --- Full diff: https://github.com/llvm/llvm-project/pull/110654.diff 3 Files Affected: - (modif

[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110542)

2024-10-01 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/110542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes ADC and ADX use the same internal intrinsics - for testing I've taken a same approach as the generic builtin overfloaw tests, putting the intrinsics in a constexpr test wrapper and comparing the carry/resul

[clang] be6b4f6 - [HLSL][SPIRV] Fix calling convention for call in entry function. (#110542)

2024-10-01 Thread via cfe-commits
Author: Steven Perron Date: 2024-10-01T09:29:20-04:00 New Revision: be6b4f69799861dc1f175a53c9a15d3c8afd3ed2 URL: https://github.com/llvm/llvm-project/commit/be6b4f69799861dc1f175a53c9a15d3c8afd3ed2 DIFF: https://github.com/llvm/llvm-project/commit/be6b4f69799861dc1f175a53c9a15d3c8afd3ed2.diff

[clang] [compiler-rt] [llvm] [PGO] Initialize GOV Writeout and Reset Functions in the Runtime on AIX (PR #108570)

2024-10-01 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: @hubert-reinterpretcast and @w2yehia could you take a look at this PR? We can land this PR if you both are OK with it. Currently, the PR only impacts AIX. Thanks so much! https://github.com/llvm/llvm-project/pull/108570 ___ cfe-comm

[clang] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/110654 >From bb035536e40219a725186554d0536d58895e7797 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 1 Oct 2024 13:04:04 +0100 Subject: [PATCH 1/2] [clang][x86] Add constexpr support for MULX intrinsics With

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-10-01 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/109804 From 23b27377e556085054621f27d97059618b416695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Mon, 23 Sep 2024 15:42:20 +0200 Subject: [PATCH 1/6] [analyzer] Suppress out of bounds reports a

[clang] [clang][bytecode] Check GetPtrBase ops for null pointers (PR #110673)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110673.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.h (+5-4) - (modified) clang/test/AST/ByteCode/records.cpp (+8) ```

[clang] [clang][bytecode] Check GetPtrBase ops for null pointers (PR #110673)

2024-10-01 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/110673 None >From 43fdc0a7ea6b28bfad77d88e9d727e7752edb9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 1 Oct 2024 15:32:19 +0200 Subject: [PATCH] [clang][bytecode] Check GetPtrBase ops for

[clang] [Clang][TableGen] Change ClangDiagnosticEmitter to use const Record * (PR #110585)

2024-10-01 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/110585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][LLVM] Change OpenCL Emitter to use const Record * (PR #110590)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-10-01 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > We can always have a map, mapping ForStmts to finished iterations. Basically, > from the ErrorNode, we could walk backwards (as usual in a visitor like > that), and check if the current ProgramPoint is PostStmt. We would then grab > the wrapped Stmt to see if it's the termin

[clang] [clang][bytecode] Check GetPtrBase ops for null pointers (PR #110673)

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

[clang] [CLANG][AArch64] Add the modal 8 bit floating-point scalar type (PR #97277)

2024-10-01 Thread via cfe-commits
@@ -325,6 +325,8 @@ class DeclSpec { #define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) \ static const TST TST_##Name = clang::TST_##Name; #include "clang/Basic/HLSLIntangibleTypes.def" + // AARCH64_OPAQUE_TYPE + static const TST TST_ArmMFloat8_

[clang] 55c70f6 - [clang][bytecode] Check GetPtrBase ops for null pointers (#110673)

2024-10-01 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-01T17:09:26+02:00 New Revision: 55c70f6d893452d3b7b2005bc6b5d208f2e840ba URL: https://github.com/llvm/llvm-project/commit/55c70f6d893452d3b7b2005bc6b5d208f2e840ba DIFF: https://github.com/llvm/llvm-project/commit/55c70f6d893452d3b7b2005bc6b5d208f2e840ba.diff L

[clang] [OpenACC] Enforce all 'collapse' intervening rules (PR #110684)

2024-10-01 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/110684 'collapse' makes the 'loop' construct apply to the next N nested loops, and 'loop' requires all associated loops be 'for' loops (or range-for). This patch adds this restriction, plus adds a number of infras

[clang] f3baa73 - [clang][bytecode] Implement ia32_{pdep,pext} builtins (#110675)

2024-10-01 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-01T17:17:37+02:00 New Revision: f3baa73c8b212cc039abf1bc3bb2024df8acae02 URL: https://github.com/llvm/llvm-project/commit/f3baa73c8b212cc039abf1bc3bb2024df8acae02 DIFF: https://github.com/llvm/llvm-project/commit/f3baa73c8b212cc039abf1bc3bb2024df8acae02.diff L

[clang] [clang][bytecode] Implement ia32_{pdep, pext} builtins (PR #110675)

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

[clang] 0cf4cb4 - Revert "[clang] Fix FIXME in dynamic initializer emission, NFCI"

2024-10-01 Thread Martin Storsjö via cfe-commits
Author: Martin Storsjö Date: 2024-10-01T11:14:11+03:00 New Revision: 0cf4cb4bde440586c310554d93dc09e47cb9bb79 URL: https://github.com/llvm/llvm-project/commit/0cf4cb4bde440586c310554d93dc09e47cb9bb79 DIFF: https://github.com/llvm/llvm-project/commit/0cf4cb4bde440586c310554d93dc09e47cb9bb79.diff

[clang] [OpenACC] Enforce all 'collapse' intervening rules (PR #110684)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes 'collapse' makes the 'loop' construct apply to the next N nested loops, and 'loop' requires all associated loops be 'for' loops (or range-for). This patch adds this restriction, plus adds a number of infr

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-10-01 Thread Timm Baeder 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?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67520 >From 1c117257921fc1c246fbb9f51e3c95d6dc6d295e Mon Sep 17 00:

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/110661 >From 1a5096483d5d6d84087e913b20f6f260452988b3 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Mon, 9 Sep 2024 15:32:09 -0400 Subject: [PATCH] Propagate IsText parameter to openFileForRead funct

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Vyacheslav Levytskyy via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics VyacheslavLevytskyy wrote: @AlexVlx I'm strongly against deleting this test case. https://github.com/llvm/llvm-project/pull/110695 _

[clang] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host code without relying on target-dependent overload resolution (PR #109663)

2024-10-01 Thread Artem Belevich via cfe-commits
Artem-B wrote: > This patch checks for numeric literals in clearly identifiable host code if > they are the result of expanding the wavefront-size macros and issues a > diagnostic if that's the case. What's the ultimate goal here? If we're OK to warn on some obvious misuses, then it may do.

[libcxx] [libcxxabi] [libunwind] [libc++abi][libunwind] Run c++abi and unwind tests against a fake install root (PR #110171)

2024-10-01 Thread Björn Pettersson via cfe-commits
bjope wrote: Seeing same fault as @zeroomega . I think problem is related to LLVM_ENABLE_PER_TARGET_RUNTIME_DIR. When that is set to ON the install path is extended (in libunwind/CMakeLIsts.txt): ``` set(LIBUNWIND_TARGET_SUBDIR ${LLVM_DEFAULT_TARGET_TRIPLE}) if(LIBUNWIND_LIBDIR_SUBDIR)

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

2024-10-01 Thread Francis Visoiu Mistrih via cfe-commits
https://github.com/francisvm updated https://github.com/llvm/llvm-project/pull/110198 >From 840989c7e1f098b1773b49bf287b0d54ff81b425 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 26 Sep 2024 18:05:09 -0700 Subject: [PATCH] [Clang] Add __builtin_elementwise|reduce_max|minimum

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. Thanks, the change looks good to me. Please also add a note in the `clang/docs/ReleaseNotes.rst` https://github.com/llvm/llvm-project/pull/110638 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [clang-tools-extra] [clang-tidy] add `ctime` and `localtime` to `clang-tidy` (PR #110366)

2024-10-01 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/110366 From 4fb69942effb3cf34d07f33a14a95757b6ca5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= Date: Sat, 28 Sep 2024 17:05:42 +0200 Subjec

[clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld @llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) Changes Rename option parsing related files from OptXYZ -> OptionXYZ, since Opt could be confused with optimization and Opt as a short hand for Option is not really that smaller to warrant it

[clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul ready_for_review https://github.com/llvm/llvm-project/pull/110692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Rahul Joshi (jurahul) Changes Rename option parsing related files from OptXYZ -> OptionXYZ, since Opt could be confused with optimization and Opt as a short hand for Option is not really that smaller to warrant its use. ---

[clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Rahul Joshi (jurahul) Changes Rename option parsing related files from OptXYZ -> OptionXYZ, since Opt could be confused with optimization and Opt as a short hand for Option is not really that smaller to warrant its use. --- Patch is 53.2

[clang] [clang] Remove 'PCH' from more diagnostics that were wrong or misleading NFC (PR #110724)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Cyndy Ishida (cyndyishida) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110724.diff 1 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSerializationKinds.td (+2-2) ``diff diff --git a/clan

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread via cfe-commits
@@ -13464,6 +13464,38 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, return Success(DidOverflow, E); } + case clang::X86::BI__builtin_ia32_addcarryx_u32: + case clang::X86::BI__builtin_ia32_addcarryx_u64: + case clang::X86::BI__builtin_ia32_subborr

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Dmitry Sidorov via cfe-commits
https://github.com/MrSidims commented: Thanks, it should make LLVM IR after optimizations more translatable in SPIR-V! Few questions though: 1. Usually (or at least AFAIK) optimization passes won't consider datalayout automatically, as LLVM defines datalayout not as a contract set by the front

[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)

2024-10-01 Thread Duncan P . N . Exon Smith via cfe-commits
dexonsmith wrote: > An immediate fix would be to not set the "identifier" field for the > DICompositeType when it's created if it's inside a function scope to avoid > ODRUniqing. I've only got a light understanding of what the identifier field > is for, so there might be unexpected consequence

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/110668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove 'PCH' from more diagnostics that were wrong or misleading NFC (PR #110724)

2024-10-01 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai approved this pull request. https://github.com/llvm/llvm-project/pull/110724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Implement Clang Builtins for XCValu Extension in CV32E40P (PR #100684)

2024-10-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-win` running on `as-worker-93` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/1285 Here is the releva

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

2024-10-01 Thread Francis Visoiu Mistrih via cfe-commits
https://github.com/francisvm updated https://github.com/llvm/llvm-project/pull/110198 >From cd66c08ce939f5fd205408dc50ed9cbfedbac927 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 26 Sep 2024 18:05:09 -0700 Subject: [PATCH] [Clang] Add __builtin_elementwise|reduce_max|minimum

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

2024-10-01 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/110198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add constexpr support for all remaining BMI1 intrinsics (PR #110581)

2024-10-01 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/8784 Here is the rele

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-01 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79667 >From 2b526821d4e70f3ea83f95d25f804d9fbcf82612 Mon Sep 17 00:00:00 2001 From: cqwrteur <100043421+trcrsi...@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:55:50 -0400 Subject: [PATCH] [libunwind][libcxx][lib

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Matt Arsenault via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics arsenm wrote: That is not the nature of this kind of test https://github.com/llvm/llvm-project/pull/110695 ___ cfe-c

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-01 Thread via cfe-commits
trcrsired wrote: @EricWF You need to build it with wasi-libc ```cpp mkdir -p "$CURRENTTRIPLEPATH/build/runtimes" cd $CURRENTTRIPLEPATH/build/runtimes cmake $LLVMPROJECTPATH/runtimes \ -GNinja -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DC

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Vyacheslav Levytskyy via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics VyacheslavLevytskyy wrote: The main objection is that the code base should switch from one stable state to another, without losing current coverage, stability,

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

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

[clang] [clang] Remove 'PCH' from more diagnostics that were wrong or misleading NFC (PR #110724)

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

[clang] [clang] Remove 'PCH' from more diagnostics that were wrong or misleading NFC (PR #110724)

2024-10-01 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/110724 None >From b78a9a6649adaa1b0f7252733995ece7d1cebee0 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Mon, 30 Sep 2024 17:07:06 -0700 Subject: [PATCH] [clang] Remove 'PCH' from more diagnostics that were wr

[clang] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host code without relying on target-dependent overload resolution (PR #109663)

2024-10-01 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: `__AMDGCN_WAVEFRONT_SIZE__` could also be used in other offloading languages e.g. OpenMP. The check for non-constantness is not specific to HIP. It is a constant when the triple is amdgcn and -target-cpu is specified. Otherwise it should not be treated as constant. I think you

[clang] 9ec229d - [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (#109676)

2024-10-01 Thread via cfe-commits
Author: Zibi Sarbinowski Date: 2024-10-01T15:24:27-04:00 New Revision: 9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2 URL: https://github.com/llvm/llvm-project/commit/9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2 DIFF: https://github.com/llvm/llvm-project/commit/9ec229dd3ede6368ee5fecf9b9731d8d21d8b1d2.di

[clang] [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (PR #109676)

2024-10-01 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/109676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add constexpr support for all remaining BMI1 intrinsics (PR #110581)

2024-10-01 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/9056 Here is the re

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread via cfe-commits
@@ -108,6 +108,7 @@ namespace MultilevelSpecialization { template<> template void B::f(int i, int (&arr1)[a], int (&arr2)[b]) {} // since-cxx11-error@-1 {{out-of-line definition of 'f' does not match any declaration in 'cwg2233::MultilevelSpecialization::B'}} +//

[clang-tools-extra] [clang-tidy] Fix check alphabetical ordering in release notes (PR #110428)

2024-10-01 Thread Mike Crowe via cfe-commits
mikecrowe wrote: @PiotrZSL, it doesn't look like this change has automatically been assigned reviewers. Since you've reviewed my PRs in the past would you mind looking at and landing this one if it's appropriate? Thanks. https://github.com/llvm/llvm-project/pull/110428

[clang] [clang][bytecode] Implement ia32_{pdep, pext} builtins (PR #110675)

2024-10-01 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/110675 None >From e57f67c73af56e510943612e4eff651838706b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 1 Oct 2024 15:41:43 +0200 Subject: [PATCH] [clang][bytecode] Implement ia32_{pdep,pex

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-01 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/109331 >From ef969c536d700a8585f0892952fae49cdd9c42d1 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Thu, 19 Sep 2024 00:13:51 + Subject: [PATCH 01/11] Codegen builtin --- clang/include/clang/Basic/Builtin

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread Snehasish Kumar via cfe-commits
snehasish wrote: > The major motivation is to detect dead functions for the services that are > optimized with sampling PGO. For your use case, can you use [ProfileSymbolList](https://github.com/llvm/llvm-project/blob/32ffc9fdc2cd422c88c926b862adb3de726e3888/llvm/include/llvm/ProfileData/Sampl

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-01 Thread Alexander Richardson via cfe-commits
@@ -29,22 +29,21 @@ namespace __cxxabiv1 { +#if defined(__wasm__) +typedef void* (*__libcpp_exception_destructor_func)(void*); arichardson wrote: Could keep the existing comment here `// In Wasm, a destructor returns its argument` to explain why it is d

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-01 Thread Alexander Richardson via cfe-commits
@@ -98,73 +89,58 @@ extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN void __cxa_pure_virtual(void); extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN void __cxa_deleted_virtual(void); // 3.3.2 One-time Construction API -#if defined(_LIBCXXABI_GUARD_ABI_ARM) -extern _LIBCXXABI_FUN

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Alex Voicu via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics AlexVlx wrote: Can you please elaborate on "why"? Again, this relies on an opportunistic optimisation, that is not crucial / can be superseded by others. If the

<    1   2   3   4   5   >