[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-06 Thread Craig Topper via cfe-commits
@@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple riscv64-none-linux-gnu %s -emit-llvm -o - \ // RUN: -target-feature +f -target-feature +d -target-feature +zfh \ // RUN: -target-feature +zve64d -target-feature +zvfh -mvscale-min=1 \ -// RUN: -mvscale-max=1 | FileCheck %s --check-

[clang] [Sema] Preserve ContainsUnexpandedParameterPack in TransformLambdaExpr (PR #86265)

2024-08-06 Thread via cfe-commits
cor3ntin wrote: r3 is in 2 weeks and we have to be more conservatives in our backports, so it really depends on how long it took you and @ilya-biryukov to address these issues and the complexity of the patches. In particular, I would be surprised if the attribute case impacts many people. htt

[clang] b7730a2 - [test] Avoid writing to a potentially write-protected dir (#102073)

2024-08-06 Thread via cfe-commits
Author: Karl-Johan Karlsson Date: 2024-08-06T09:57:31+02:00 New Revision: b7730a23efb222944b732bbdb3a7b965b7bffd98 URL: https://github.com/llvm/llvm-project/commit/b7730a23efb222944b732bbdb3a7b965b7bffd98 DIFF: https://github.com/llvm/llvm-project/commit/b7730a23efb222944b732bbdb3a7b965b7bffd98

[clang] [test] Avoid writing to a potentially write-protected dir (PR #102073)

2024-08-06 Thread Karl-Johan Karlsson via cfe-commits
https://github.com/karka228 closed https://github.com/llvm/llvm-project/pull/102073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [RISCV] Allow libunwind to build for rv32e (PR #98855)

2024-08-06 Thread Sam Elliott via cfe-commits
lenary wrote: @ArcaneNibble your contributions now definitely meet the threshold for commit access - please request it following the instructions in the Developer Policy: https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access (also take a read of the rest of the policy to understan

[clang] [DebugInfo][RemoveDIs] Use iterator-inserters in clang (PR #102006)

2024-08-06 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams approved this pull request. LGTM with nit + pls appease the the formatter https://github.com/llvm/llvm-project/pull/102006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [DebugInfo][RemoveDIs] Use iterator-inserters in clang (PR #102006)

2024-08-06 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/102006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DebugInfo][RemoveDIs] Use iterator-inserters in clang (PR #102006)

2024-08-06 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -295,18 +295,25 @@ void EHScopeStack::Cleanup::anchor() {} static void createStoreInstBefore(llvm::Value *value, Address addr, llvm::Instruction *beforeInst, CodeGenFunction &CGF) { - auto store = new llvm:

[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)

2024-08-06 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd updated https://github.com/llvm/llvm-project/pull/102020 >From aa97906cdf1ac08e0b5d607914c28dcb2bbc2545 Mon Sep 17 00:00:00 2001 From: Edd Dawson Date: Mon, 5 Aug 2024 17:42:55 +0100 Subject: [PATCH 1/2] [PS4/PS5][Driver] Allow -static in PlayStation drivers

[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-06 Thread Vladislav Belov via cfe-commits
https://github.com/vbe-sc updated https://github.com/llvm/llvm-project/pull/100110 >From 2dba8f9f90369f79f97fc5efb1272b75d61d36b2 Mon Sep 17 00:00:00 2001 From: vb-sc Date: Wed, 31 Jul 2024 13:37:34 +0300 Subject: [PATCH] [RISCV] full support for riscv_rvv_vector_bits attribute --- clang/incl

[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-06 Thread Vladislav Belov via cfe-commits
@@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple riscv64-none-linux-gnu %s -emit-llvm -o - \ // RUN: -target-feature +f -target-feature +d -target-feature +zfh \ // RUN: -target-feature +zve64d -target-feature +zvfh -mvscale-min=1 \ -// RUN: -mvscale-max=1 | FileCheck %s --check-

[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)

2024-08-06 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd updated https://github.com/llvm/llvm-project/pull/102020 >From aa97906cdf1ac08e0b5d607914c28dcb2bbc2545 Mon Sep 17 00:00:00 2001 From: Edd Dawson Date: Mon, 5 Aug 2024 17:42:55 +0100 Subject: [PATCH 1/3] [PS4/PS5][Driver] Allow -static in PlayStation drivers

[clang] [Clang] Do not emit intrinsic math functions on GPU targets (PR #98209)

2024-08-06 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Interesting, the important bit is that this is done before the LTO link so we > know which functions to pull in. Unfortunately I don't think there's a good > location that actually states which math calls are supported, but I could > probably make a script that goes through eac

[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)

2024-08-06 Thread Edd Dawson via cfe-commits
@@ -141,6 +141,9 @@ void tools::PS4cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA, if (Args.hasArg(options::OPT_pie)) CmdArgs.push_back("-pie"); + playstation-edd wrote: Oops - thanks. Removed. https://github.com/llvm/llvm-project/pull/

[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)

2024-08-06 Thread Edd Dawson via cfe-commits
@@ -141,6 +141,9 @@ void tools::PS4cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA, if (Args.hasArg(options::OPT_pie)) CmdArgs.push_back("-pie"); + + if (Args.hasArg(options::OPT_static)) +CmdArgs.push_back("--static"); playstation-ed

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
cor3ntin wrote: > Is there ever a situation that would cause us to have to instantiate a > FriendPackDecl in the TemplateDeclInstantiator? We do that for > UsingPackDecls, but those are sufficiently different enough from the former > that I’m not sure about it. I at least haven’t been able to

[clang] [llvm] [AArch64] Add updated FEAT_SVE_B16B16 and begin replacement of 'b16b16' flag (PR #101480)

2024-08-06 Thread via cfe-commits
https://github.com/CarolineConcatto edited https://github.com/llvm/llvm-project/pull/101480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add updated FEAT_SVE_B16B16 and begin replacement of 'b16b16' flag (PR #101480)

2024-08-06 Thread via cfe-commits
https://github.com/CarolineConcatto commented: Thank you Spencer for the patch. I believe we missed the multi vector instructions targeting BF16. https://github.com/llvm/llvm-project/pull/101480 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [llvm] [AArch64] Add updated FEAT_SVE_B16B16 and begin replacement of 'b16b16' flag (PR #101480)

2024-08-06 Thread via cfe-commits
@@ -0,0 +1,49 @@ +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +sve2 -verify -verify-ignore-unexpected=error,note -emit-llvm -o - %s CarolineConcatto wrote: Can we group this file with the streaming on. The same we do f

[clang] [llvm] [AArch64] Add updated FEAT_SVE_B16B16 and begin replacement of 'b16b16' flag (PR #101480)

2024-08-06 Thread via cfe-commits
@@ -2172,7 +2172,7 @@ let SVETargetGuard = InvalidMode, SMETargetGuard = "sme2" in { def SVFCLAMP_X4 : SInst<"svclamp[_single_{d}_x4]", "44dd", "hfd", MergeNone, "aarch64_sve_fclamp_single_x4", [IsStreaming], []>; } -let SVETargetGuard = InvalidMode, SMETargetGuar

[clang] [C++20] [Modules] Don't set modules owner ship information for builtin declarations (PR #102115)

2024-08-06 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/102115 Close https://github.com/llvm/llvm-project/issues/101939 As the issue said, the builtin declarations shouldn't be in any modules. >From 3dabd3815c78697046ba436e62a2ea39cf2361b3 Mon Sep 17 00:00:00 2001 From:

[clang] [C++20] [Modules] Don't set modules owner ship information for builtin declarations (PR #102115)

2024-08-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/101939 As the issue said, the builtin declarations shouldn't be in any modules. --- Full diff: https://github.com/llvm/llvm-project/pull/102115.diff

[clang] [Clang][Sema] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. That seems reasonable to me. We need a changelog entry for that change tough https://github.com/llvm/llvm-project/pull/102044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [C++20] [Modules] Don't set modules owner ship information for builtin declarations (PR #102115)

2024-08-06 Thread via cfe-commits
@@ -2376,6 +2376,12 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned ID, FunctionDecl *New = CreateBuiltin(II, R, ID, Loc); RegisterLocallyScopedExternCDecl(New, S); + // Builtin functions shouldn't be owned by any module. + if (New->hasOwningModule(

[clang] [Sema] Preserve ContainsUnexpandedParameterPack in TransformLambdaExpr (PR #86265)

2024-08-06 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: > r3 is in 2 weeks and we have to be more conservatives in our backports, so it > really depends on how long it took you and @ilya-biryukov to address these > issues and the complexity of the patches. > > In particular, I would be surprised if the attribute case impacts ma

[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-06 Thread Vladislav Belov via cfe-commits
https://github.com/vbe-sc updated https://github.com/llvm/llvm-project/pull/100110 >From 2dba8f9f90369f79f97fc5efb1272b75d61d36b2 Mon Sep 17 00:00:00 2001 From: vb-sc Date: Wed, 31 Jul 2024 13:37:34 +0300 Subject: [PATCH] [RISCV] full support for riscv_rvv_vector_bits attribute --- clang/incl

[clang] 3027688 - [RISCV] Support bf16 vmv.v.v and vmerge.vvm intrinsics with `zvfbfmin` (#101611)

2024-08-06 Thread via cfe-commits
Author: Brandon Wu Date: 2024-08-06T17:59:53+08:00 New Revision: 3027688a77b5511447b3f060aaecbf30e4b9e63e URL: https://github.com/llvm/llvm-project/commit/3027688a77b5511447b3f060aaecbf30e4b9e63e DIFF: https://github.com/llvm/llvm-project/commit/3027688a77b5511447b3f060aaecbf30e4b9e63e.diff LO

[clang] [llvm] [RISCV] Support bf16 vmv.v.v and vmerge.vvm intrinsics with `zvfbfmin` (PR #101611)

2024-08-06 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/101611 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support `vrgather` and `vcompress` for `zvfhmin` and `zvfbfmin` (PR #101633)

2024-08-06 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/101633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 40c2aaf - [RISCV][sema] Correct the requirement of `vf[n|w]cvt.x[|u].f` intrinsics (#101811)

2024-08-06 Thread via cfe-commits
Author: Brandon Wu Date: 2024-08-06T18:00:38+08:00 New Revision: 40c2aaf54e9a7b5c560bb68796d444180ad67b5d URL: https://github.com/llvm/llvm-project/commit/40c2aaf54e9a7b5c560bb68796d444180ad67b5d DIFF: https://github.com/llvm/llvm-project/commit/40c2aaf54e9a7b5c560bb68796d444180ad67b5d.diff LO

[clang] [RISCV][sema] Correct the requirement of `vf[n|w]cvt.x[|u].f` intrinsics (PR #101811)

2024-08-06 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/101811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver][clang-cl] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)

2024-08-06 Thread Sharadh Rajaraman via cfe-commits
https://github.com/sharadhr updated https://github.com/llvm/llvm-project/pull/98761 >From 2f499e793050cd0256d658f19e5a4da73c941962 Mon Sep 17 00:00:00 2001 From: Sharadh Rajaraman Date: Tue, 6 Aug 2024 11:00:54 +0100 Subject: [PATCH 1/7] Allow `--precompile` and `-fprebuilt-module-path` to be

[clang] [clang][driver][clang-cl] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)

2024-08-06 Thread Sharadh Rajaraman via cfe-commits
sharadhr wrote: I've done a git rebase with `--reset-author`. Hopefully this is correct. https://github.com/llvm/llvm-project/pull/98761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix getField() for integral pointers (PR #102120)

2024-08-06 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/102120 Instead of just adding the Record::Field offset, instead get the FieldDecl offset in the RecordLayout. Unfortunately, the offset we pass to the ops here is not made to easily go back to a FieldDecl, so we hav

[clang] [clang][Interp] Fix getField() for integral pointers (PR #102120)

2024-08-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Instead of just adding the Record::Field offset, instead get the FieldDecl offset in the RecordLayout. Unfortunately, the offset we pass to the ops here is not made to easily go back to a FieldDecl, so we h

[clang] [Clang][Sema] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/3] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/102044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -105,6 +105,11 @@ C2y Feature Support C23 Feature Support ^^^ +Non-comprehensive list of changes in this release +- MitalAshok wrote: https://github.com/llvm/llvm-project/commit/10c6d6349e51bb

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Alexey Bataev via cfe-commits
@@ -13034,13 +13034,36 @@ StmtResult SemaOpenMP::ActOnOpenMPTargetUpdateDirective( Clauses, AStmt); } +/// This checks whether a \p ClauseType clause \p C has at most \p Max +/// expression. If not, a diag of number \p Diag will be em

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -134,7 +134,7 @@ void test() { } namespace cwg2798 { // cwg2798: 17 -#if __cpp_static_assert >= 202306 +#if __cplusplus > 202302L MitalAshok wrote: I guess this is one of the potentially-breaking changes that comes with changing the feature test macro. I

[clang] [llvm] [clang] Generate nuw GEPs for struct member accesses (PR #99538)

2024-08-06 Thread Nikita Popov via cfe-commits
@@ -1902,16 +1902,18 @@ class IRBuilderBase { } Value *CreateConstGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, -const Twine &Name = "") { +const Twine &Name = "", +GEPNoWrapF

[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

2024-08-06 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/101448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
@@ -64,48 +64,80 @@ from ctypes import * -import collections.abc import os +import sys from enum import Enum +from typing import ( +Any, +Callable, +Generic, +Optional, +Type as TType, +TypeVar, +TYPE_CHECKING, +Union as TUnion, +) + +if TY

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/101941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Thank you for splitting that large PR into something smaller. That said, 1.6k lines of changes is no small change either. This PR needs more high-level explanation of what you try to achieve and how. At the moment I'm not sold we want to go in this directio

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: I don't see value in annotating exported C functions themselves (`binder.py`), because they are wrapped by `cindex.py`. From maintenance perspective I'd rather leave `# type: ignore` at the call sites of those functions, than accept a whole new

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: This file seems to implement a whole abstraction layer for annotations. I'd like to understand what the benefits are, because I see a non-trivial amount of complexity here. https://github.com/llvm/llvm-project/pull/101941 __

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-08-06 Thread Jannick Kremer via cfe-commits
@@ -64,48 +64,80 @@ from ctypes import * -import collections.abc import os +import sys from enum import Enum +from typing import ( +Any, +Callable, +Generic, +Optional, +Type as TType, +TypeVar, +TYPE_CHECKING, +Union as TUnion, +) + +if TY

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Nikolas Klauser via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
@@ -64,48 +64,80 @@ from ctypes import * -import collections.abc import os +import sys from enum import Enum +from typing import ( +Any, +Callable, +Generic, +Optional, +Type as TType, +TypeVar, +TYPE_CHECKING, +Union as TUnion, +) + +if TY

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
@@ -134,7 +134,7 @@ void test() { } namespace cwg2798 { // cwg2798: 17 -#if __cpp_static_assert >= 202306 +#if __cplusplus > 202302L Endilll wrote: Yeah, checking for `__cplusplus` makes more sense in DR test suite. But I wonder if we can leverage feature tes

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/4] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [SystemZ][z/OS] Implement z/OS XPLINK ABI (PR #101024)

2024-08-06 Thread Ulrich Weigand via cfe-commits
https://github.com/uweigand requested changes to this pull request. https://github.com/llvm/llvm-project/pull/101024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Implement z/OS XPLINK ABI (PR #101024)

2024-08-06 Thread Ulrich Weigand via cfe-commits
@@ -532,9 +532,371 @@ bool SystemZTargetCodeGenInfo::isVectorTypeBased(const Type *Ty, return false; } +//===--===// +// z/OS XPLINK ABI Implementation +//===

[clang] [SystemZ][z/OS] Implement z/OS XPLINK ABI (PR #101024)

2024-08-06 Thread Ulrich Weigand via cfe-commits
@@ -532,9 +532,371 @@ bool SystemZTargetCodeGenInfo::isVectorTypeBased(const Type *Ty, return false; } +//===--===// +// z/OS XPLINK ABI Implementation +//===

[clang] [libclang/python] Fix some type errors, add type annotations (PR #98745)

2024-08-06 Thread Jannick Kremer via cfe-commits
@@ -64,48 +64,80 @@ from ctypes import * -import collections.abc import os +import sys from enum import Enum +from typing import ( +Any, +Callable, +Generic, +Optional, +Type as TType, +TypeVar, +TYPE_CHECKING, +Union as TUnion, +) + +if TY

[clang] 59e1366 - [clang][Interp] Fix getField() for integral pointers (#102120)

2024-08-06 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-06T13:37:11+02:00 New Revision: 59e13666dd2e81e58253488a29635fb2992ed741 URL: https://github.com/llvm/llvm-project/commit/59e13666dd2e81e58253488a29635fb2992ed741 DIFF: https://github.com/llvm/llvm-project/commit/59e13666dd2e81e58253488a29635fb2992ed741.diff L

[clang] [clang][Interp] Fix getField() for integral pointers (PR #102120)

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

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT new instructions. (PR #101599)

2024-08-06 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf closed https://github.com/llvm/llvm-project/pull/101599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/102044 >From 90441c251c1ec5a3b8be923ca9678c8d3d586bee Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 5 Aug 2024 20:29:12 +0100 Subject: [PATCH 1/5] [Clang][Sema] Backport P2741R3 (static_assert with user-gen

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/102044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM] Enable cfi-icall for thumb triples (PR #102126)

2024-08-06 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard created https://github.com/llvm/llvm-project/pull/102126 Support for this was added back in 2016 (https://reviews.llvm.org/D27499), but never enabled in the driver. Since then, it's been possible to enable this with an arm triple and the -mthumb option, but not wit

[clang] [ARM] Enable cfi-icall for thumb triples (PR #102126)

2024-08-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Oliver Stannard (ostannard) Changes Support for this was added back in 2016 (https://reviews.llvm.org/D27499), but never enabled in the driver. Since then, it's been possible to enable this with an arm tr

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

2024-08-06 Thread Paul Walker via cfe-commits
@@ -221,6 +221,10 @@ FLOATING_TYPE(Float128, Float128Ty) // '__ibm128' FLOATING_TYPE(Ibm128, Ibm128Ty) + +// '__fpm8' paulwalker-arm wrote: __mfp8 https://github.com/llvm/llvm-project/pull/97277 ___ cfe-commits mai

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

2024-08-06 Thread Paul Walker via cfe-commits
@@ -1139,6 +1139,7 @@ class ASTContext : public RefCountedBase { CanQualType SatShortFractTy, SatFractTy, SatLongFractTy; CanQualType SatUnsignedShortFractTy, SatUnsignedFractTy, SatUnsignedLongFractTy; + CanQualType MFloat8Ty; paulwalker-arm wrote:

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

2024-08-06 Thread Paul Walker via cfe-commits
@@ -3197,6 +3197,13 @@ void CastOperation::CheckCStyleCast() { } } + if ((DestType->isMFloat8Type() && !SrcType->isMFloat8Type()) || + (!DestType->isMFloat8Type() && SrcType->isMFloat8Type())) { paulwalker-arm wrote: `DestType->isMFloat8Type() !=

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

2024-08-06 Thread Paul Walker via cfe-commits
paulwalker-arm wrote: Just to add the commit message needs updating to reflect the updated specification. https://github.com/llvm/llvm-project/pull/97277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum commented: I agree with what Endill said: this is a rather big change and I'm not sure I see it adding enough value to justify this. It also adds quite some complexity on top of the otherwise relatively light-weight Python bindings. I generally like seeing change

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [Clang][Concepts] Fix the constraint equivalence checking for TemplateTypeParmTypes (PR #102131)

2024-08-06 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/102131 Fixes https://github.com/llvm/llvm-project/issues/101735 (I'll add a release note and some comments later) >From 0727e47124af564826a22a718a64a1da79e6131d Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Tue,

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/99732 >From d27b78670ae334bd05c845d14512ee1e3e8d077b Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 19 Jul 2024 22:07:06 -0400 Subject: [PATCH] [Clang][OpenMP] Allow `num_teams` to accept multiple expressions

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-06 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/101941 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/99732 >From 0bd0ff8f905c4e430c7203cede19d7e2179d89ef Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 19 Jul 2024 22:07:06 -0400 Subject: [PATCH] [Clang][OpenMP] Allow `num_teams` to accept multiple expressions

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread Oleksandr T. via cfe-commits
@@ -12370,6 +12379,17 @@ void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { } } +bool Sema::CheckLinkageSpecification(DeclContext *DC, Decl *D) { + // [basic.start.main] p2 + // The main function shall not be declared with a linkage-specification. + if (DC->i

[clang] [Clang][NFC] Restore "Non-comprehensive list of changes in this release" in ReleaseNotes (PR #102134)

2024-08-06 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok created https://github.com/llvm/llvm-project/pull/102134 This was removed in 10c6d6349e51bb245b9deec4aafca9885971135b >From 664647de07eaa6f1b4b0f94594e867740cb99717 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Tue, 6 Aug 2024 13:32:04 +0100 Subject: [PATCH] [N

[clang] [Clang][NFC] Restore "Non-comprehensive list of changes in this release" in ReleaseNotes (PR #102134)

2024-08-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mital Ashok (MitalAshok) Changes This was removed in 10c6d6349e51bb245b9deec4aafca9885971135b --- Full diff: https://github.com/llvm/llvm-project/pull/102134.diff 1 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+3) ``

[clang] 617cf8a - Reapply "Finish deleting the le32/le64 targets" (#99079) (#101983)

2024-08-06 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-08-06T08:35:56-04:00 New Revision: 617cf8a72d2ab568bf0e84452faf4e35a322b32f URL: https://github.com/llvm/llvm-project/commit/617cf8a72d2ab568bf0e84452faf4e35a322b32f DIFF: https://github.com/llvm/llvm-project/commit/617cf8a72d2ab568bf0e84452faf4e35a322b32f.diff

[clang] [llvm] Reapply "Finish deleting the le32/le64 targets" (#99079) (PR #101983)

2024-08-06 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/101983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Restore "Non-comprehensive list of changes in this release" in ReleaseNotes (PR #102134)

2024-08-06 Thread Mital Ashok via cfe-commits
MitalAshok wrote: See comment: https://github.com/llvm/llvm-project/commit/10c6d6349e51bb245b9deec4aafca9885971135b#r145078148 (This is a separate PR to make sure it isn't reverted as part of a bigger change) https://github.com/llvm/llvm-project/pull/102134 __

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/99732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Make OffloadLTOMode getter a separate method (PR #101200)

2024-08-06 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > @yxsamliu Would you mind reviewing this change? Sorry for the delay. LGTM https://github.com/llvm/llvm-project/pull/101200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Nikolas Klauser via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

2024-08-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/99732 >From f9e58d7acdd6a61a811c838efa2aae377233c608 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 19 Jul 2024 22:07:06 -0400 Subject: [PATCH] [Clang][OpenMP] Allow `num_teams` to accept multiple expressions

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Nikolas Klauser via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [cmake] Respect CLANG_LINK_CLANG_DYLIB for objlibs (PR #93454)

2024-08-06 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/93454 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -12210,7 +12215,22 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, return Redeclaration; } -void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { +void Sema::CheckMain(FunctionDecl *FD, const DeclSpec &DS) { + // [basic.start.main]p3 + //

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -990,6 +990,12 @@ def warn_main_redefined : Warning<"variable named 'main' with external linkage " "has undefined behavior">, InGroup; def ext_main_used : Extension< "referring to 'main' within an expression is a Clang extension">, InGroup; +def ext_main_invalid_li

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -145,6 +145,8 @@ Improvements to Clang's diagnostics - -Wdangling-assignment-gsl is enabled by default. +- Clang now diagnoses the use of `main` in an `extern "C"` context as invalid according to [basic.start.main] p3. Fixes #GH101512. Sirraide wrote: ``

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -7353,6 +7353,14 @@ void emitReadOnlyPlacementAttrWarning(Sema &S, const VarDecl *VD) { } } +static bool isMainVar(DeclarationName Name, VarDecl *VD) { Sirraide wrote: Nit: maybe a comment on this explaining what it does would be nice. E.g. something l

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
https://github.com/Sirraide commented: A few minor things, but other than that this is pretty much done I’d say. https://github.com/llvm/llvm-project/pull/101853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

2024-08-06 Thread via cfe-commits
@@ -990,6 +990,12 @@ def warn_main_redefined : Warning<"variable named 'main' with external linkage " "has undefined behavior">, InGroup; def ext_main_used : Extension< "referring to 'main' within an expression is a Clang extension">, InGroup; +def ext_main_invalid_li

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] 295e4f4 - Correct a comment and update a return type; NFC

2024-08-06 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2024-08-06T08:55:30-04:00 New Revision: 295e4f49aefb2b07501be9f845df598b3ee280f1 URL: https://github.com/llvm/llvm-project/commit/295e4f49aefb2b07501be9f845df598b3ee280f1 DIFF: https://github.com/llvm/llvm-project/commit/295e4f49aefb2b07501be9f845df598b3ee280f1.diff

[clang] [clang] Inject tokens containing #embed back into token stream (PR #97274)

2024-08-06 Thread Aaron Ballman via cfe-commits
@@ -2123,17 +2123,18 @@ class Preprocessor { char getSpellingOfSingleCharacterNumericConstant(const Token &Tok, AaronBallman wrote: I've updated the comment and the interface in 295e4f49aefb2b07501be9f845df598b3ee280f1 https://github.com/llvm/llvm-project

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

2024-08-06 Thread Vlad Serebrennikov via cfe-commits
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, LangOpts.CPlusPlus23 ? "202211L" : LangOpts.CPlusPlus17 ? "201603L" : "200907");

[clang] [clang-tools-extra] [flang] [lld] [llvm] [mlir] [CMake] Fold export_executable_symbols_* into function args. (PR #101741)

2024-08-06 Thread Steven Wu via cfe-commits
cachemeifyoucan wrote: Yes, please revert. Do you have link to the build failure? https://github.com/llvm/llvm-project/pull/101741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][AST] fix ast-print of extern with >=2 declarators, fixed, fixed (PR #98795)

2024-08-06 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Ping @JDevlieghere for lldb test suite assistance. As for ORC JIT, [the compiler-rt project](https://compiler-rt.llvm.org/) does not claim to support Windows to begin with, so it's unclear whether the bot should not be testing on Windows or whether compiler-rt needs to upda

  1   2   3   4   5   >