[clang] fa343be - Fix warnings in #102848 [-Wunused-but-set-variable]

2024-08-15 Thread NAKAMURA Takumi via cfe-commits
Author: NAKAMURA Takumi Date: 2024-08-15T16:12:05+09:00 New Revision: fa343be414f9364911b947f109f3df5539e23068 URL: https://github.com/llvm/llvm-project/commit/fa343be414f9364911b947f109f3df5539e23068 DIFF: https://github.com/llvm/llvm-project/commit/fa343be414f9364911b947f109f3df5539e23068.dif

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-15 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/102848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-15 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni commented: Fixed in fa343be414f9364911b947f109f3df5539e23068. https://github.com/llvm/llvm-project/pull/102848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-15 Thread NAKAMURA Takumi via cfe-commits
@@ -2900,17 +2958,51 @@ void MicrosoftCXXNameMangler::mangleFunctionType(const FunctionType *T, // can differ by their calling convention and are typically deduced. So // we make sure that this type gets mangled properly. mangleType(ResultType, Range, QMM_Re

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-15 Thread NAKAMURA Takumi via cfe-commits
@@ -2900,17 +2958,51 @@ void MicrosoftCXXNameMangler::mangleFunctionType(const FunctionType *T, // can differ by their calling convention and are typically deduced. So // we make sure that this type gets mangled properly. mangleType(ResultType, Range, QMM_Re

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

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

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-08-15 Thread via cfe-commits
https://github.com/mydeveloperday requested changes to this pull request. You cannot remove options or you'll break everyone using that option right? https://github.com/llvm/llvm-project/pull/93634 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-08-15 Thread via cfe-commits
@@ -4493,13 +4493,11 @@ struct FormatStyle { bool SpaceBeforeRangeBasedForLoopColon; /// If ``true``, spaces will be inserted into ``{}``. - /// \code - ///true:false: - ///void f() { } vs. void f() {} - ///

[clang] [clang][Interp] Use first field decl for Record field lookup (PR #104412)

2024-08-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104412 None >From cbc62389a992fddfbf9ef7362367b816e2810f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Aug 2024 09:32:16 +0200 Subject: [PATCH] [clang][Interp] Use first field decl for

[clang] [clang][Interp] Use first field decl for Record field lookup (PR #104412)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/104412.diff 3 Files Affected: - (modified) clang/lib/AST/Interp/Program.cpp (+1) - (modified) clang/lib/AST/Interp/Record.cpp (+1-1) - (m

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-15 Thread Oleksandr T. via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++2b -verify %s + +namespace std { +struct rv {}; + +template struct enable_if; +template struct enable_if { typedef T type; }; + +template +typename enable_if<__is_convertible(T, rv), U>::type forward(T &); +template +t

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread via cfe-commits
mydeveloperday wrote: Can we have a rule that a PR that reaches 6 months or 1 year without activity we close with a comment of " https://github.com/llvm/llvm-project/pull/65140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread via cfe-commits
https://github.com/mydeveloperday closed https://github.com/llvm/llvm-project/pull/65140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread via cfe-commits
https://github.com/mydeveloperday reopened https://github.com/llvm/llvm-project/pull/65140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Devansh Varshney (देवांश वार्ष्णेय) (varshneydevansh) Changes ## The basics - [x] I branched from the main - [x] My pull request is against main

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread via cfe-commits
mydeveloperday wrote: ...of comment of "closed due to inactivity" or something like that? https://github.com/llvm/llvm-project/pull/65140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-15 Thread Pengcheng Wang via cfe-commits
@@ -754,6 +754,17 @@ def HasStdExtZvbc : Predicate<"Subtarget->hasStdExtZvbc()">, AssemblerPredicate<(all_of FeatureStdExtZvbc), "'Zvbc' (Vector Carryless Multiplication)">; +def FeatureStdExtZvbc32e +: RISCVExperimentalExtensio

[clang] [llvm] [Github] Use building LLVM as perf-training for CI container (PR #80713)

2024-08-15 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/80713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-15 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/102864 >From b0e53b1c8a687165fa28bd21200f83bf1b1a9234 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 12 Aug 2024 13:56:30 +0300 Subject: [PATCH 1/2] [Clang] handle both gnu and cpp11 attributes to ensure cor

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-15 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/99615 >From 34e9dd6c3ba12b51189e51404511d5aec5115ec7 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 19 Jul 2024 04:19:09 -0400 Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa --- clang/include/

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-15 Thread via cfe-commits
@@ -2716,6 +2721,18 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, << "-Wa,--crel" << D.getTargetTriple(); } } + if (Msa) { +if (!Triple.isMIPS()) { + if (*Msa) +D.Diag(diag::err_drv_unsupported_opt_for_target) --

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-15 Thread Oleksandr T. via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++2b -verify %s + +namespace std { +struct rv {}; + +template struct enable_if; +template struct enable_if { typedef T type; }; + +template +typename enable_if<__is_convertible(T, rv), U>::type forward(T &); +template +t

[clang] [clang-format] modified goto bool to enum (PR #65140)

2024-08-15 Thread Owen Pan via cfe-commits
owenca wrote: > Can we have a rule that a PR that reaches 6 months or 1 year without activity > we close with a comment of " Yep. IMO six months of no response _from the author_ is sufficient to close the PR. However, if we can't find a reviewer for the PR (e.g. #78904), we should leave it op

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-08-15 Thread Owen Pan via cfe-commits
@@ -4493,13 +4493,11 @@ struct FormatStyle { bool SpaceBeforeRangeBasedForLoopColon; /// If ``true``, spaces will be inserted into ``{}``. - /// \code - ///true:false: - ///void f() { } vs. void f() {} - ///

[clang] [llvm] [mlir] [APInt] Assert correct values in APInt constructor (PR #80309)

2024-08-15 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/80309 >From 1d7578f5b8a5dcd8519344cc6c71ee54447b9923 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 13 Aug 2024 15:11:18 +0200 Subject: [PATCH 1/2] apint only --- clang/lib/AST/Interp/IntegralAP.h |

[clang] [clang][Interp] Add scopes to conditional operator subexpressions (PR #104418)

2024-08-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104418 We would otherwise try to destroy the variables from both branches after the conditional operator was done. However, doing so breaks the case where we create internal temporaries. For those, add allocateTempo

[clang] [clang][Interp] Add scopes to conditional operator subexpressions (PR #104418)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We would otherwise try to destroy the variables from both branches after the conditional operator was done. However, doing so breaks the case where we create internal temporaries. For those, add allocateTem

[clang] [clang-format] Change BinPackParameters to an enum to add a BreakAlways (PR #101882)

2024-08-15 Thread Owen Pan via cfe-commits
owenca wrote: > Whilst I can understand BinPackParameters being deprecated, as its one of the > original options I do worry a little about just how much impact such a > deprecation might have... it needs to be completely seemless because there is > ALOT of documentation references to its use o

[clang] [clang] Handle tm mangling on Solaris in PPMacroExpansion.cpp (PR #100724)

2024-08-15 Thread Rainer Orth via cfe-commits
rorth wrote: FWIW, the hack even breaks when doing a `Debug` build: in that case the unresolved reference returns despite the hack. https://github.com/llvm/llvm-project/pull/100724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [clang-format] Change BinPackParameters to an enum to add a BreakAlways (PR #101882)

2024-08-15 Thread Owen Pan via cfe-commits
owenca wrote: > > When you say rename, do you mean deprecate `BinPackParameters` like in > > these changes > > [6739bb5](https://github.com/llvm/llvm-project/commit/6739bb5006bc28e2bdbdb2326eb2c957546634aa) > > but using `BreakParameters` and `Never`/`OnePerLine`/`Always` for the > > names? >

[clang] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

2024-08-15 Thread Sam Tebbs via cfe-commits
@@ -428,6 +431,85 @@ Value *VPInstruction::generatePerPart(VPTransformState &State, unsigned Part) { {PredTy, ScalarTC->getType()}, {VIVElem0, ScalarTC}, nullptr, Name); } + case VPInstruction::AliasLaneM

[clang] 7227b44 - [clang][driver] Fix -print-target-triple OS version for apple targets (#104037)

2024-08-15 Thread via cfe-commits
Author: Gábor Horváth Date: 2024-08-15T10:04:59+01:00 New Revision: 7227b44f928a87b5d7fb05bd1539fdfb6d4958dc URL: https://github.com/llvm/llvm-project/commit/7227b44f928a87b5d7fb05bd1539fdfb6d4958dc DIFF: https://github.com/llvm/llvm-project/commit/7227b44f928a87b5d7fb05bd1539fdfb6d4958dc.diff

[clang] [clang][driver] Fix -print-target-triple OS version for apple targets (PR #104037)

2024-08-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun closed https://github.com/llvm/llvm-project/pull/104037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Replace bool <= bool comparison (PR #102948)

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

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-15 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp updated https://github.com/llvm/llvm-project/pull/103709 >From 0bdc302fb5b4dd7369d2f16a6da32412adbe7d7f Mon Sep 17 00:00:00 2001 From: Wang Pengcheng Date: Wed, 14 Aug 2024 15:14:36 +0800 Subject: [PATCH 1/2] [RISCV][MC] Support experimental extensions Zvbc32e and

[clang] [Clang] Check explicit object parameter for defaulted operators properly (PR #100419)

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

[clang] [Clang][AArch64] Add missing SME/SVE2.1 feature macros (PR #98285)

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

[clang] a2830d6 - Revert "Remove empty line."

2024-08-15 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-08-15T02:34:04-07:00 New Revision: a2830d6aa2e8ad0da0e58f1642ed09723602e838 URL: https://github.com/llvm/llvm-project/commit/a2830d6aa2e8ad0da0e58f1642ed09723602e838 DIFF: https://github.com/llvm/llvm-project/commit/a2830d6aa2e8ad0da0e58f1642ed09723602e838.diff

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-08-15 Thread Mariya Podchishchaeva via cfe-commits
@@ -172,10 +172,8 @@ enum class GH42372_2 { #if __STDC_VERSION__ >= 202311L // FIXME: GCC picks __uint128_t as the underlying type for the enumeration // value and Clang picks unsigned long long. -// FIXME: Clang does not yet implement WG14 N3029, so the warning about -// restr

[clang] 5e95571 - [analyzer] Do not reason about locations passed as inline asm input (#103714)

2024-08-15 Thread via cfe-commits
Author: Pavel Skripkin Date: 2024-08-15T11:42:27+02:00 New Revision: 5e95571a90b1ec193b735b7312c5c2559d7ee5ea URL: https://github.com/llvm/llvm-project/commit/5e95571a90b1ec193b735b7312c5c2559d7ee5ea DIFF: https://github.com/llvm/llvm-project/commit/5e95571a90b1ec193b735b7312c5c2559d7ee5ea.diff

[clang] [analyzer] Do not reason about locations passed as inline asm input (PR #103714)

2024-08-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/103714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-15 Thread via cfe-commits
zmodem wrote: We're hitting "Invalid type expected" and "UNREACHABLE executed at clang/lib/AST/MicrosoftMangle.cpp:2551!" after this. See https://crbug.com/359904717#comment2 for a reproducer. I'll revert back to green until it can be fixed. https://github.com/llvm/llvm-project/pull/102848 __

[clang] 05f6630 - Revert "[Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (#102848)"

2024-08-15 Thread Hans Wennborg via cfe-commits
Author: Hans Wennborg Date: 2024-08-15T11:48:28+02:00 New Revision: 05f663081513c6293f80469132d083e2603ed036 URL: https://github.com/llvm/llvm-project/commit/05f663081513c6293f80469132d083e2603ed036 DIFF: https://github.com/llvm/llvm-project/commit/05f663081513c6293f80469132d083e2603ed036.diff

[clang] [Clang] Check explicit object parameter for defaulted operators properly (PR #100419)

2024-08-15 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/100419 >From 5d2b3fa876c00869a3964081a57ae23563d18175 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Wed, 24 Jul 2024 16:58:56 +0100 Subject: [PATCH 1/5] [Clang] Check explicit object param for defaulted relation

[clang] [Clang] Check explicit object parameter for defaulted operators properly (PR #100419)

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

[clang] [clang][Interp] Pass callee decl to null_callee diagnostics (PR #104426)

2024-08-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104426 The callee is null, not the full call expression. >From 1d4f1403b65f9b1b5c5655e73217beee50b104eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Aug 2024 12:06:57 +0200 Subject: [PAT

[clang] [clang][Interp] Pass callee decl to null_callee diagnostics (PR #104426)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes The callee is null, not the full call expression. --- Full diff: https://github.com/llvm/llvm-project/pull/104426.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Interp.h (+2-2) - (modified) clan

[clang] [clang][Interp] Pass callee decl to null_callee diagnostics (PR #104426)

2024-08-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/104426 >From d81f019bd9b64bcff46a939528ce05ddf4bb31f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Aug 2024 12:06:57 +0200 Subject: [PATCH] [clang][Interp] Pass callee decl to null_callee

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. I think this is good to go, thank you! @AaronBallman can you also take a look? We discussed this during office hours, so you know the context. https://github.com/llvm/llvm-project/pull/101802 ___

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-08-15 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/103917 >From eee57bcc211a8a045c0102ebb2f4410d52d657f6 Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Wed, 14 Aug 2024 05:56:18 -0700 Subject: [PATCH 1/2] [clang][C23] Support N3029 Improved Normal Enum

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-08-15 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: > @mikaelholmen I can't reproduce this on commit > [e40915b](https://github.com/llvm/llvm-project/commit/e40915b7407eda4b370658da5c9606e310b55d19) > with `-DLLVM_USE_SANITIZER=Undefined`. Kindly let me know how to reproduce > this. > > Looking from the code, I suspect that

[clang] [clang][Interp] Pass callee decl to null_callee diagnostics (PR #104426)

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

[clang] 91ffc12 - [clang][Interp] Pass callee decl to null_callee diagnostics (#104426)

2024-08-15 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-15T13:18:33+02:00 New Revision: 91ffc12a820164bdebb1a388b5d7f41a6f25ce04 URL: https://github.com/llvm/llvm-project/commit/91ffc12a820164bdebb1a388b5d7f41a6f25ce04 DIFF: https://github.com/llvm/llvm-project/commit/91ffc12a820164bdebb1a388b5d7f41a6f25ce04.diff L

[clang] d2c26d8 - [clang][Interp] Use first field decl for Record field lookup (#104412)

2024-08-15 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-15T13:57:38+02:00 New Revision: d2c26d82b0395b8b555be384ed778361ec176c14 URL: https://github.com/llvm/llvm-project/commit/d2c26d82b0395b8b555be384ed778361ec176c14 DIFF: https://github.com/llvm/llvm-project/commit/d2c26d82b0395b8b555be384ed778361ec176c14.diff L

[clang] [clang][Interp] Use first field decl for Record field lookup (PR #104412)

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

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-15 Thread via cfe-commits
@@ -5085,7 +5085,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, RawAddress SRetAlloca = RawAddress::invalid(); llvm::Value *UnusedReturnSizePtr = nullptr; if (RetAI.isIndirect() || RetAI.isInAlloca() || RetAI.isCoerceAndExpand()) { -if (IsVirtu

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-15 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: Any further comments on this, anyone? I guess I would like to commit the common-code parts, i.e. the introduction of the NoExt attribute, and keep the check in the SystemZ (disabled by default). Later on, maybe the check could be moved to the verifier. Does this seem reasonab

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich updated https://github.com/llvm/llvm-project/pull/101989 >From c7f7a3683805c6a9a1d696905321a1e161ec8beb Mon Sep 17 00:00:00 2001 From: Tim Gymnich Date: Fri, 2 Aug 2024 21:40:24 +0200 Subject: [PATCH 1/4] [clang][HLSL] Add sign intrinsic part 3 --- clang/include/cl

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
@@ -916,7 +916,7 @@ float4 lerp(float4, float4, float4); /// \brief Returns the length of the specified floating-point vector. /// \param x [in] The vector of floats, or a scalar float. /// -/// Length is based on the following formula: sqrt(x[0]^2 + x[1]^2 + �). +/// Length is

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-15 Thread Iuri Chaer via cfe-commits
https://github.com/ichaer updated https://github.com/llvm/llvm-project/pull/96804 >From 4c6b2fb52dcfe2ca5ace822ecaf6d0e8ac60f0d7 Mon Sep 17 00:00:00 2001 From: Iuri Chaer Date: Wed, 13 Dec 2023 21:33:05 + Subject: [PATCH 1/8] [clang-format] Introduce "ReflowComments: IndentOnly" to re-inde

[clang] [WIP][clang][MBD] Initial implementation of module build daemon (PR #68498)

2024-08-15 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/68498 >From 9fe97509277fbce0333c454bb4e2619fed04b189 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/2] [WIP][clang][MBD] module build daemon --- clang/include/clang/

[clang] [WIP][clang][MBD] Initial implementation of module build daemon (PR #68498)

2024-08-15 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 f71b63865140cf3c286baf3a77ba3e467f929504 f1689d64f185f9b00efd030e34b04eddf8242f96 --e

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
@@ -916,7 +916,7 @@ float4 lerp(float4, float4, float4); /// \brief Returns the length of the specified floating-point vector. /// \param x [in] The vector of floats, or a scalar float. /// -/// Length is based on the following formula: sqrt(x[0]^2 + x[1]^2 + �). +/// Length is

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-15 Thread Matt Arsenault via cfe-commits
@@ -1185,6 +1189,9 @@ Currently, only the following parameter attributes are defined: value should be sign-extended to the extent required by the target's ABI (which is usually 32-bits) by the caller (for a parameter) or the callee (for a return value). +``noext``

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich edited https://github.com/llvm/llvm-project/pull/101989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich updated https://github.com/llvm/llvm-project/pull/101989 >From c7f7a3683805c6a9a1d696905321a1e161ec8beb Mon Sep 17 00:00:00 2001 From: Tim Gymnich Date: Fri, 2 Aug 2024 21:40:24 +0200 Subject: [PATCH 1/5] [clang][HLSL] Add sign intrinsic part 3 --- clang/include/cl

[clang] [analyzer] Moving TaintPropagation checker out of alpha (PR #67352)

2024-08-15 Thread Daniel Krupp via cfe-commits
https://github.com/dkrupp updated https://github.com/llvm/llvm-project/pull/67352 >From 21a917403c180d74ec7ac4cf9f15b3c5a8de8b7d Mon Sep 17 00:00:00 2001 From: Daniel Krupp Date: Thu, 15 Aug 2024 14:24:35 +0200 Subject: [PATCH] [analyzer] Moving TaintPropagation and GenericTaint checkers out o

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
@@ -18662,6 +18662,23 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: { llvm::FunctionType::get(IntTy, {}, false), "__hlsl_wave_get_lane_index", {}, false, true)); } + case Builtin::BI__builtin_hlsl_elementwise_sign: { +Value *Op0 = EmitScalarExpr(E

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-15 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich edited https://github.com/llvm/llvm-project/pull/101989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][clang][MBD] Initial implementation of module build daemon (PR #68498)

2024-08-15 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/68498 >From 9fe97509277fbce0333c454bb4e2619fed04b189 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/3] [WIP][clang][MBD] module build daemon --- clang/include/clang/

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-15 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm created https://github.com/llvm/llvm-project/pull/104435 This adds a check that all ExtensionWithMArch which are marked as implied features for an architecture are also present in the list of default features. It doesn't make sense to have something mandatory b

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-mc @llvm/pr-subscribers-clang Author: Tomas Matheson (tmatheson-arm) Changes This adds a check that all ExtensionWithMArch which are marked as implied features for an architecture are also present in the list of defa

[clang] [Clang] [Sema] Error on reference types inside a union with msvc 1900+ (PR #102851)

2024-08-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM, thank you! https://github.com/llvm/llvm-project/pull/102851 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/AMDGPU: Emit atomicrmw for __builtin_amdgcn_global_atomic_fadd_{f32|f64} (PR #96872)

2024-08-15 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/96872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-15 Thread Tomas Matheson via cfe-commits
https://github.com/tmatheson-arm edited https://github.com/llvm/llvm-project/pull/104435 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Aaron Ballman via cfe-commits
@@ -74,6 +74,16 @@ CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void); CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2); +/** + * Determine for two source locations if they refer to

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Aaron Ballman via cfe-commits
@@ -74,6 +74,16 @@ CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void); CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2); +/** + * Determine for two source locations if they refer to

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Aaron Ballman via cfe-commits
@@ -50,6 +50,17 @@ unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { loc1.int_data == loc2.int_data); } +unsigned clang_lessThanLocations(CXSourceLocation loc1, CXSourceLocation loc2) { + const SourceLocation Loc1 = SourceLocation::get

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-15 Thread David Green via cfe-commits
davemgreen wrote: > Cortex-A710 does not appear to have SSBS It would be very surprising to drop it from one generation of cpus, only to add it again in the next! I believe this says it should be present: https://developer.arm.com/documentation/101800/0201/AArch64-registers/AArch64-Identificat

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-15 Thread Michael Maitland via cfe-commits
https://github.com/michaelmaitland approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/103709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 026d963 - [clang][ExtractAPI] Compute inherited availability information (#103040)

2024-08-15 Thread via cfe-commits
Author: Daniel Grumberg Date: 2024-08-15T14:19:49+01:00 New Revision: 026d963cb004689477d2b5798cbba5ad41c25a70 URL: https://github.com/llvm/llvm-project/commit/026d963cb004689477d2b5798cbba5ad41c25a70 DIFF: https://github.com/llvm/llvm-project/commit/026d963cb004689477d2b5798cbba5ad41c25a70.dif

[clang] [clang][ExtractAPI] Compute inherited availability information (PR #103040)

2024-08-15 Thread Daniel Grumberg via cfe-commits
https://github.com/daniel-grumberg closed https://github.com/llvm/llvm-project/pull/103040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-15 Thread Phoebe Wang via cfe-commits
@@ -1185,6 +1189,9 @@ Currently, only the following parameter attributes are defined: value should be sign-extended to the extent required by the target's ABI (which is usually 32-bits) by the caller (for a parameter) or the callee (for a return value). +``noext``

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-15 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: > > Cortex-A710 does not appear to have SSBS > I believe this says it should be present: You're right, I'll fix that. I will also actually remove FeatureCCIDX from the 8.3 mandatory features. https://github.com/llvm/llvm-project/pull/104435 ___

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-15 Thread Janek van Oirschot via cfe-commits
JanekvO wrote: > Is it best to leave comments on the commit from the PR comment, i.e. > currently > [51f72f1](https://github.com/llvm/llvm-project/commit/51f72f115b340a092c2c9f8569911b944a4efb6d) > ? > > I can't seem to start a review, so it will be individual comments (I think). > Is there

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-15 Thread Janek van Oirschot via cfe-commits
https://github.com/JanekvO edited https://github.com/llvm/llvm-project/pull/102913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-15 Thread Iuri Chaer via cfe-commits
@@ -5272,22 +5272,46 @@ the configuration (without a prefix: ``Auto``). .. _ReflowComments: -**ReflowComments** (``Boolean``) :versionbadge:`clang-format 3.8` :ref:`¶ ` - If ``true``, clang-format will attempt to re-flow comments. That is it - will touch a comment and *ref

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/101802 >From 572b1be0b204561fdbb049f0c17f065d17198ac0 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 09:28:02 +0100 Subject: [PATCH 1/6] [libclang/python] Fix bug in SourceRange.__contains__,

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/101802 >From 572b1be0b204561fdbb049f0c17f065d17198ac0 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 09:28:02 +0100 Subject: [PATCH 1/6] [libclang/python] Fix bug in SourceRange.__contains__,

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Jannick Kremer via cfe-commits
@@ -74,6 +74,16 @@ CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void); CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2); +/** + * Determine for two source locations if they refer to

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 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 f0f5afe9685c2085a4ca51eeb40262f1def61377 a4397cabbd1bd0701d1c79fdfecbaaa606ed9e0b --e

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-15 Thread Iuri Chaer via cfe-commits
@@ -493,9 +493,36 @@ TEST_F(FormatTestComments, AlignsBlockComments) { TEST_F(FormatTestComments, CommentReflowingCanBeTurnedOff) { FormatStyle Style = getLLVMStyleWithColumns(20); - Style.ReflowComments = false; - verifyFormat("// a aa aa", Style);

[clang] [clang][ASTMatcher] Fix execution order of hasOperands submatchers (PR #104148)

2024-08-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Oh, that's a good catch -- thank you for the fix! Can you add a new test case in https://github.com/llvm/llvm-project/blob/main/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp so we don't regress this behavior accidentally in the future? Als

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/101802 >From 572b1be0b204561fdbb049f0c17f065d17198ac0 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 09:28:02 +0100 Subject: [PATCH 1/6] [libclang/python] Fix bug in SourceRange.__contains__,

[clang] [clang][Interp] Call move function for certain primitive types (PR #104437)

2024-08-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104437 None >From 36c5f883ede65c2ca245354b1c55ac56edec1683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Aug 2024 15:51:22 +0200 Subject: [PATCH] [clang][Interp] Call move function for ce

[clang] [clang][Interp] Call move function for certain primitive types (PR #104437)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/104437.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Descriptor.cpp (+8) - (modified) clang/test/AST/Interp/lifetimes.cpp (+8) `

[clang] [Clang] Check constraints for an explicit instantiation of a member function (PR #104438)

2024-08-15 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/104438 Because there may be multiple constrained function of the same type, we need to perform overload resolution to find the best viable function to specialize. Fixes #46029 >From e3f210f4105d9eef5f34af893b5af81a

[clang] [Clang] Check constraints for an explicit instantiation of a member function (PR #104438)

2024-08-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Because there may be multiple constrained function of the same type, we need to perform overload resolution to find the best viable function to specialize. Fixes #46029 --- Full diff: https://github.com/llvm/

[clang] 75cb7de - [ubsan] Display correct runtime messages for negative _BitInt (#96240)

2024-08-15 Thread via cfe-commits
Author: earnol Date: 2024-08-15T10:15:27-04:00 New Revision: 75cb7de404ee236d6297c551740a2681583d7e5e URL: https://github.com/llvm/llvm-project/commit/75cb7de404ee236d6297c551740a2681583d7e5e DIFF: https://github.com/llvm/llvm-project/commit/75cb7de404ee236d6297c551740a2681583d7e5e.diff LOG: [

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-15 Thread via cfe-commits
https://github.com/earnol closed https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >