[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-21 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Arch] Disable mve.fp when explicit -mfpu option (PR #123028)

2025-01-21 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 approved this pull request. LGTM! Thanks https://github.com/llvm/llvm-project/pull/123028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-21 Thread via cfe-commits
https://github.com/Sirraide commented: The tests are in the wrong directory (you’ve added them to a file in `test/Preprocessor`, but this is a Sema change so the test should probably be in `test/Sema`). Additionally, a test involving typo correction would probably be a good idea: ```c #define

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From 5729891997dacfac91ad807ddfde60aec44708fb Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 17 Jan 2025 11:01:49 -0500 Subject: [PATCH 1/2] [Clang] Remove 3-element vector load and store special handl

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-21 Thread via cfe-commits
https://github.com/jyn514 updated https://github.com/llvm/llvm-project/pull/123683 >From 35ca294c28904b1ff60c441ecafe01a9752e67fb Mon Sep 17 00:00:00 2001 From: jyn Date: Tue, 24 Dec 2024 19:11:24 -0500 Subject: [PATCH] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes

[clang] [clang] Restrict use of scalar types in vector builtins (PR #119423)

2025-01-21 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon commented: LGTM - but we should have a frontend specialist approve https://github.com/llvm/llvm-project/pull/119423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [analysis][NFC] clean unittest log (PR #123758)

2025-01-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Congcong Cai (HerrCai0907) Changes 1. clean llvm::errs ouput 2. add -Wno-everything option to suppress clang warning during test --- Full diff: https://github.com/llvm/llvm-project/pull/123758.diff 2 Files Affected: - (modified) clang/

[clang] [analysis][NFC] clean unittest log (PR #123758)

2025-01-21 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/123758 1. clean llvm::errs ouput 2. add -Wno-everything option to suppress clang warning during test >From e98964cb134d16f26dc2156b28997b0e80a2fb62 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 21 Jan 20

[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -216,11 +244,18 @@ int compareit(float a, float b) { // no-inf-no-nan-warning@+2 {{use of infinity is undefined behavior due to the currently enabled floating-point options}} // no-inf-warning@+1 {{use of infinity is undefined behavior due to the currently enabled floatin

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From 5729891997dacfac91ad807ddfde60aec44708fb Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 17 Jan 2025 11:01:49 -0500 Subject: [PATCH 1/3] [Clang] Remove 3-element vector load and store special handl

[clang] 03744d2 - [Clang] Remove 3-element vector load and store special handling (#104661)

2025-01-21 Thread via cfe-commits
Author: Shilei Tian Date: 2025-01-21T09:18:16-05:00 New Revision: 03744d2aaffee04bc1e4d0668c41556c3c20d406 URL: https://github.com/llvm/llvm-project/commit/03744d2aaffee04bc1e4d0668c41556c3c20d406 DIFF: https://github.com/llvm/llvm-project/commit/03744d2aaffee04bc1e4d0668c41556c3c20d406.diff L

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/104661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-win-fast` running on `as-builder-3` while building `clang` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/15293 Here is the relevant piece

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc, return ParseCXXCondition(nullptr, Loc, CK, MissingOK); } +EnterExpressionEvaluationContext Eval( erichkeane wrote: This doesn't quite seem right to me, a

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Shilei Tian via cfe-commits
shiltian wrote: The compile error was resolved by 59dffce8c80eb9cefc96b8d3fe55473edfee9c4c. https://github.com/llvm/llvm-project/pull/104661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] Generate `DW_AT_RUST_short_backtrace` attributes for `DISubprogram` nodes (PR #123683)

2025-01-21 Thread via cfe-commits
https://github.com/jyn514 updated https://github.com/llvm/llvm-project/pull/123683 >From 1d66e6b4ad90c714e669088b8bc1592684640ac8 Mon Sep 17 00:00:00 2001 From: jyn Date: Tue, 24 Dec 2024 19:11:24 -0500 Subject: [PATCH] Generate `DW_AT_LLVM_short_backtrace` attributes for `DISubprogram` nodes

[clang] [NFC] Minor fix to tryEmitAbstract type in EmitCXXNewAllocSize (PR #123433)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -732,8 +732,8 @@ static llvm::Value *EmitCXXNewAllocSize(CodeGenFunction &CGF, // Emit the array size expression. // We multiply the size of all dimensions for NumElements. // e.g for 'int[2][3]', ElemType is 'int' and NumElements is 6. - numElements = -ConstantE

[clang] clang/limits.h: Avoid including limits.h twice (PR #120526)

2025-01-21 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Yes and no. It's due to the redefinitions, for sure. But that diagnostic is > > suppressed in system headers: https://godbolt.org/z/Mb7Kh975f, so I think > > we need to understand why there's a `limits.h` being included as though it > > were not a system header, because

[clang-tools-extra] [clang-tidy] Add ClangQueryChecks config option (PR #123734)

2025-01-21 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: Could it be a normal check under misc and pass the query in config instead of create a new pattern? https://github.com/llvm/llvm-project/pull/123734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc, return ParseCXXCondition(nullptr, Loc, CK, MissingOK); } +EnterExpressionEvaluationContext Eval( erichkeane wrote: No, more that this applies to the expr

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -x c++ -fsyntax-only -Wparentheses -verify %s + +// Do not emit the warning for compound-assignments. +bool f(int x) { return x = 0; } // expected-warning {{suggest parentheses around assignment used as truth value}} \ +

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %clang_cc1 -x c -fsyntax-only -Wparentheses -verify %s + +// NOTE: Don't know if tests allow includes. +#include erichkeane wrote: Include shouldn't be here, you can just define the thing manually if you'd like. https://github.com/llvm

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -20287,7 +20287,11 @@ void Sema::DiagnoseEqualityWithExtraParens(ParenExpr *ParenE) { ExprResult Sema::CheckBooleanCondition(SourceLocation Loc, Expr *E, bool IsConstexpr) { - DiagnoseAssignmentAsCondition(E); + // This warning is a

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Oleksandr T. via cfe-commits
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc, return ParseCXXCondition(nullptr, Loc, CK, MissingOK); } +EnterExpressionEvaluationContext Eval( a-tarasyuk wrote: Do you mean using the extra context fo

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -20287,7 +20287,11 @@ void Sema::DiagnoseEqualityWithExtraParens(ParenExpr *ParenE) { ExprResult Sema::CheckBooleanCondition(SourceLocation Loc, Expr *E, bool IsConstexpr) { - DiagnoseAssignmentAsCondition(E); + // This warning is a

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -761,6 +803,17 @@ ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, } } + // FIXME: Doesn't include C89, so this warning isn't emitted when passing + // `std=c89`. + auto isC = getLangOpts().C99 || getLangOpts().C11 || getLangOpts().C17 || e

[clang] [clang-tools-extra] [ASTMatchers][NFC] use `Matcher` instead of `DynTypedMatcher` in `TypeLocTypeMatcher` (PR #123450)

2025-01-21 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: > The deduplication here is negligible, but it allows the compiler to > skip emission of many templated base class destructors. Shrinks > clang-query by 53k. No functionality change intended. I test the binary size of clang-query before an after this change, there are no chan

[clang] [clang] Add __nullptr as a keyword to C (PR #123119)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -325,6 +325,7 @@ C Language Changes -- - Extend clang's to define ``LONG_LONG_*`` macros for Android's bionic. +- Added support for the ``__nullptr`` keyword. erichkeane wrote: ```suggestion - Exposed the the ``__nullptr`` keyword as

[clang] [clang] Added warn-assignment-bool-context (PR #115234)

2025-01-21 Thread Erich Keane via cfe-commits
@@ -8477,6 +8477,9 @@ def err_incomplete_object_call : Error< def warn_condition_is_assignment : Warning<"using the result of an " "assignment as a condition without parentheses">, InGroup; +def warn_assignment_bool_context : Warning<"suggest parentheses around assignment

[clang] [libcxx] [Clang] emit -Wignored-qualifiers diagnostic for cv-qualified base classes (PR #121419)

2025-01-21 Thread Erich Keane via cfe-commits
erichkeane wrote: @ldionne, @philnik777, other contributors: can you confirm that the small libcxx change in this patch is acceptable? Thanks! https://github.com/llvm/llvm-project/pull/121419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang] Add __nullptr as a keyword to C (PR #123119)

2025-01-21 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/123119 >From 51372333df218cfb4fa8dcc0cebee03c0e3ebc5f Mon Sep 17 00:00:00 2001 From: Aidan Date: Wed, 15 Jan 2025 15:24:12 -0500 Subject: [PATCH 1/6] __nullptr -> KEYALL, added relevant test --- clang/include/c

[clang] [Clang][Sema] Diagnose explicit specializations with object parameters that do not match their primary template (PR #89300)

2025-01-21 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. This needs a changelog entry. LGTM otherwise https://github.com/llvm/llvm-project/pull/89300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #123696)

2025-01-21 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/123696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix exception specification comparison for functions with different template depths (PR #111561)

2025-01-21 Thread via cfe-commits
cor3ntin wrote: This needs a changelog entry https://github.com/llvm/llvm-project/pull/111561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Diagnose explicit specializations with object parameters that do not match their primary template (PR #89300)

2025-01-21 Thread via cfe-commits
cor3ntin wrote: @sdkrystian feel free to ping reviewers once a week (at most) in the future otherwise some PRs that should not be forgotten are lost :) https://github.com/llvm/llvm-project/pull/89300 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] 671088b - [Rewrite] Avoid repeated hash lookups (NFC) (#123696)

2025-01-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-21T16:24:04+08:00 New Revision: 671088be4e7883f9907d22bb64248996a33f9bae URL: https://github.com/llvm/llvm-project/commit/671088be4e7883f9907d22bb64248996a33f9bae DIFF: https://github.com/llvm/llvm-project/commit/671088be4e7883f9907d22bb64248996a33f9bae.diff L

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #123696)

2025-01-21 Thread via cfe-commits
https://github.com/hstk30-hw approved this pull request. https://github.com/llvm/llvm-project/pull/123696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #123696)

2025-01-21 Thread via cfe-commits
https://github.com/hstk30-hw closed https://github.com/llvm/llvm-project/pull/123696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/123667 >From 00b8b64879ad3ae35a0a671da563ac876ffaf228 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 20 Jan 2025 22:51:00 +0200 Subject: [PATCH 1/2] [Clang] use constant evaluation context for constexpr if c

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Oleksandr T. via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -std=c++26 -verify %s a-tarasyuk wrote: @frederick-vs-ja I've updated the test https://github.com/llvm/llvm-project/pull/123667 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-21 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/123667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
https://github.com/michael-jabbour-sonarsource updated https://github.com/llvm/llvm-project/pull/114240 >From cc3cf25da67c9f8b9edabb318c6011cad9bd2f58 Mon Sep 17 00:00:00 2001 From: Michael Jabbour Date: Tue, 29 Oct 2024 11:16:09 +0100 Subject: [PATCH 1/6] [NFC] Factor out RetireNodesFromMerged

[clang] "Reland "[Wunsafe-buffer-usage] Fix false positive when const sized array is indexed by const evaluatable expressions (#119340)"" (PR #123713)

2025-01-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Malavika Samak (malavikasamak) Changes This reverts commit 7dd34baf5505d689161c3a8678322a394d7a2929. Fixed the assertion violation reported by 7dd34baf5505d689161c3a8678322a394d7a2929 --- Full diff: https://github.com/llvm/llvm-project/p

[clang] "Reland "[Wunsafe-buffer-usage] Fix false positive when const sized array is indexed by const evaluatable expressions (#119340)"" (PR #123713)

2025-01-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Malavika Samak (malavikasamak) Changes This reverts commit 7dd34baf5505d689161c3a8678322a394d7a2929. Fixed the assertion violation reported by 7dd34baf5505d689161c3a8678322a394d7a2929 --- Full diff: https://github.com/llvm/llvm-

[clang] "Reland "[Wunsafe-buffer-usage] Fix false positive when const sized array is indexed by const evaluatable expressions (#119340)"" (PR #123713)

2025-01-21 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak created https://github.com/llvm/llvm-project/pull/123713 This reverts commit 7dd34baf5505d689161c3a8678322a394d7a2929. Fixed the assertion violation reported by 7dd34baf5505d689161c3a8678322a394d7a2929 >From b3b7a079e861432554eb3c85a2cc235980f53f65 Mon Sep 17

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/123648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
@@ -1571,9 +1571,10 @@ void ASTDeclWriter::VisitCXXRecordDecl(CXXRecordDecl *D) { } else { Record.push_back(0); } -// For lambdas inside canonical FunctionDecl remember the mapping. +// For lambdas inside template functions, remember the mapping to +/

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
https://github.com/hokein commented: > before this change RelatedDeclsMap was created only for canonical decl but in > reality it has to be done for the definition of the function that does not > always match the canonical decl. I'm new to the module codebase, and it is not obvious to me. Coul

[libclc] eaf3e1b - [libclc] Route int bitselect through CLC; add half (#123653)

2025-01-21 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-01-21T10:09:25Z New Revision: eaf3e1b0d1ebae590c9be94eafaa10da9e192a37 URL: https://github.com/llvm/llvm-project/commit/eaf3e1b0d1ebae590c9be94eafaa10da9e192a37 DIFF: https://github.com/llvm/llvm-project/commit/eaf3e1b0d1ebae590c9be94eafaa10da9e192a37.diff LOG

[libclc] [libclc] Route int bitselect through CLC; add half (PR #123653)

2025-01-21 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/123653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 84fa175 - [AArch64] FEAT_SPEv1p2 is optional in v8.7-A and v9.2-A (#123336)

2025-01-21 Thread via cfe-commits
Author: Oliver Stannard Date: 2025-01-21T10:12:36Z New Revision: 84fa1755a5b7845ddaeaa513a3786013c76c9c88 URL: https://github.com/llvm/llvm-project/commit/84fa1755a5b7845ddaeaa513a3786013c76c9c88 DIFF: https://github.com/llvm/llvm-project/commit/84fa1755a5b7845ddaeaa513a3786013c76c9c88.diff LO

[clang] [llvm] [AArch64] FEAT_SPEv1p2 is optional in v8.7-A and v9.2-A (PR #123336)

2025-01-21 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard closed https://github.com/llvm/llvm-project/pull/123336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [IR] Convert from nocapture to captures(none) (PR #123181)

2025-01-21 Thread Nikita Popov via cfe-commits
nikic wrote: > Just double checking, do we have a test for the auto-upgrade? All the compatibility-*.ll tests test auto-upgrade. https://github.com/llvm/llvm-project/pull/123181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] 547bfda - [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (#120363)

2025-01-21 Thread via cfe-commits
Author: David Green Date: 2025-01-21T09:16:04Z New Revision: 547bfda56b2e3f3a4c6d2357d3566dcd3fa996ad URL: https://github.com/llvm/llvm-project/commit/547bfda56b2e3f3a4c6d2357d3566dcd3fa996ad DIFF: https://github.com/llvm/llvm-project/commit/547bfda56b2e3f3a4c6d2357d3566dcd3fa996ad.diff LOG: [

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
michael-jabbour-sonarsource wrote: @vsapsai Thank you very much for the input. :pray: > Can you trigger the crash without -ast-dump-all? > Can you use in the test %clang_cc1 instead of %clang? I addressed both of these in f6f0887d22172c9db4f602b7f272630a97a708bd. I added a separate invocatio

[clang] [llvm] [Clang] [OpenMP] Add support for '#pragma omp stripe'. (PR #119891)

2025-01-21 Thread Zahira Ammarguellat via cfe-commits
@@ -14477,6 +14485,268 @@ StmtResult SemaOpenMP::ActOnOpenMPTileDirective(ArrayRef Clauses, buildPreInits(Context, PreInits)); } +StmtResult SemaOpenMP::ActOnOpenMPStripeDirective(ArrayRef Clauses, +

[clang] [llvm] [Clang] [OpenMP] Add support for '#pragma omp stripe'. (PR #119891)

2025-01-21 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/119891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Matt Arsenault via cfe-commits
@@ -2145,21 +2144,21 @@ void CodeGenFunction::EmitStoreOfScalar(llvm::Value *Value, Address Addr, Addr = Addr.withPointer(Builder.CreateThreadLocalAddress(GV), NotKnownNonNull); + // Handles vectors of sizes that are likely to be expanded

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

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

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2025-01-21 Thread Matt Arsenault via cfe-commits
@@ -2002,20 +2002,19 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(Address Addr, bool Volatile, return EmitFromMemory(V, Ty); } -// Handle vectors of size 3 like size 4 for better performance. -const llvm::Type *EltTy = Addr.getElementType(); -const

[clang] [llvm] [HIP] Support managed variables using the new driver (PR #123437)

2025-01-21 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Wonder if I should try really hard to update the struct we use for this > before the branch in 8 days, since if it's default in CUDA now it'd break ABI > for a release. Can you implement the new path under a switch? https://github.com/llvm/llvm-project/pull/123437 ___

[clang] [llvm] [Clang] [OpenMP] Add support for '#pragma omp stripe'. (PR #119891)

2025-01-21 Thread Zahira Ammarguellat via cfe-commits
@@ -14477,6 +14484,279 @@ StmtResult SemaOpenMP::ActOnOpenMPTileDirective(ArrayRef Clauses, buildPreInits(Context, PreInits)); } +StmtResult SemaOpenMP::ActOnOpenMPStripeDirective(ArrayRef Clauses, +

[clang] [flang] [Flang][Driver] Deprecate Ofast (PR #101701)

2025-01-21 Thread David Truby via cfe-commits
https://github.com/DavidTruby approved this pull request. LGTM, I'm glad we're matching clang's behaviour here. Thanks! https://github.com/llvm/llvm-project/pull/101701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/118593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reapply CWG2369 "Ordering between constraints and substitution" (PR #122423)

2025-01-21 Thread Alexander Kornienko via cfe-commits
alexfh wrote: Can we have this behavior guarded by a compiler option? https://github.com/llvm/llvm-project/pull/122423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3365693 - [clang-format] Rename ExportBlockIndentation -> IndentExportBlock (#123493)

2025-01-21 Thread via cfe-commits
Author: Sirraide Date: 2025-01-21T14:13:13+01:00 New Revision: 33656932b0e9098354b2e685d6ed70bd0bcb246a URL: https://github.com/llvm/llvm-project/commit/33656932b0e9098354b2e685d6ed70bd0bcb246a DIFF: https://github.com/llvm/llvm-project/commit/33656932b0e9098354b2e685d6ed70bd0bcb246a.diff LOG:

[clang] [clang-format] Rename ExportBlockIndentation -> IndentExportBlock (PR #123493)

2025-01-21 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/123493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [IR] Convert from nocapture to captures(none) (PR #123181)

2025-01-21 Thread Florian Hahn via cfe-commits
https://github.com/fhahn edited https://github.com/llvm/llvm-project/pull/123181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [IR] Convert from nocapture to captures(none) (PR #123181)

2025-01-21 Thread Florian Hahn via cfe-commits
https://github.com/fhahn approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/123181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Rename ExportBlockIndentation -> IndentExportBlock (PR #123493)

2025-01-21 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/123493 >From 6475c9dfc20901c03d4120b745fa6076502510f5 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Sun, 19 Jan 2025 03:35:09 +0100 Subject: [PATCH 1/2] [clang-format] Rename ExportBlockIndentation -> IndentExportBlo

[clang] 616979e - [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (#123398)

2025-01-21 Thread via cfe-commits
Author: Sergey Kozub Date: 2025-01-21T11:00:24+01:00 New Revision: 616979ebd7dc9ae63522788750ea3dc6a96aa69f URL: https://github.com/llvm/llvm-project/commit/616979ebd7dc9ae63522788750ea3dc6a96aa69f DIFF: https://github.com/llvm/llvm-project/commit/616979ebd7dc9ae63522788750ea3dc6a96aa69f.diff

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-21 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub closed https://github.com/llvm/llvm-project/pull/123398 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Rename ExportBlockIndentation -> IndentExportBlock (PR #123493)

2025-01-21 Thread via cfe-commits
Sirraide wrote: Alright, I think everything should be sorted now https://github.com/llvm/llvm-project/pull/123493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] d96ec48 - [libclc] Route select through __clc_select (#123647)

2025-01-21 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-01-21T10:05:39Z New Revision: d96ec48068e03d1058b1c31581f7bc8738e12ee0 URL: https://github.com/llvm/llvm-project/commit/d96ec48068e03d1058b1c31581f7bc8738e12ee0 DIFF: https://github.com/llvm/llvm-project/commit/d96ec48068e03d1058b1c31581f7bc8738e12ee0.diff LOG

[libclc] [libclc] Route select through __clc_select (PR #123647)

2025-01-21 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/123647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-21 Thread via cfe-commits
https://github.com/StarOne01 updated https://github.com/llvm/llvm-project/pull/123495 >From 6f2ce4c05c0e03b1c18c694ddea97dac184e2218 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Sun, 19 Jan 2025 07:28:24 +0530 Subject: [PATCH 1/4] [clang][Sema] Add diagnostic note for function-like macros re

[clang] [llvm] [AVX10.2] Update convert chapter intrinsic and mnemonics names (PR #123656)

2025-01-21 Thread Phoebe Wang via cfe-commits
@@ -203,180 +203,180 @@ __m128i test_mm256_maskz_cvtbiassph_phf8(__mmask16 __U, __m256i __A, __m256h __B return _mm256_maskz_cvtbiassph_phf8(__U, __A, __B); } -__m128i test_mm_cvtne2ph_pbf8(__m128h __A, __m128h __B) { - // CHECK-LABEL: @test_mm_cvtne2ph_pbf8( - // CHECK:

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin updated https://github.com/llvm/llvm-project/pull/123648 >From e5cd06ddbc4193f9d5910eba93f0eb309d67063c Mon Sep 17 00:00:00 2001 From: Dmitry Polukhin Date: Mon, 20 Jan 2025 09:03:25 -0800 Subject: [PATCH 1/2] [C++20][Modules] Fix crash/compiler error due broken AS

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-21 Thread via cfe-commits
https://github.com/StarOne01 updated https://github.com/llvm/llvm-project/pull/123495 >From 6f2ce4c05c0e03b1c18c694ddea97dac184e2218 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Sun, 19 Jan 2025 07:28:24 +0530 Subject: [PATCH 1/5] [clang][Sema] Add diagnostic note for function-like macros re

[clang] [flang] [Flang][Driver] Deprecate Ofast (PR #101701)

2025-01-21 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/101701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
@@ -4034,6 +4034,12 @@ class Sema final : public SemaBase { void MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, LookupResult &OldDecls); + /// RetireNodesFromMergedDecl - We have just merged the decl 'New' by making + /// another definitio

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
@@ -654,6 +716,83 @@ ExprMutationAnalyzer::Analyzer::findFunctionArgMutation(const Expr *Exp) { return nullptr; } +const Stmt * +ExprMutationAnalyzer::Analyzer::findPointeeValueMutation(const Expr *Exp) { + const auto Matches = match( + stmt(forEachDescendant( +

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
@@ -654,6 +716,83 @@ ExprMutationAnalyzer::Analyzer::findFunctionArgMutation(const Expr *Exp) { return nullptr; } +const Stmt * +ExprMutationAnalyzer::Analyzer::findPointeeValueMutation(const Expr *Exp) { + const auto Matches = match( + stmt(forEachDescendant( +

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
@@ -112,6 +115,57 @@ AST_MATCHER_P(Stmt, canResolveToExpr, const Stmt *, Inner) { return canExprResolveTo(Exp, Target); } +// use class member to store data can reduce stack usage to avoid stack overflow +// when recursive call. +class ExprPointeeResolve { + const Expr *T

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
@@ -112,6 +115,57 @@ AST_MATCHER_P(Stmt, canResolveToExpr, const Stmt *, Inner) { return canExprResolveTo(Exp, Target); } +// use class member to store data can reduce stack usage to avoid stack overflow +// when recursive call. +class ExprPointeeResolve { + const Expr *T

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/118593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [mutation analyzer] support mutation analysis for pointee (PR #118593)

2025-01-21 Thread Julian Schmidt via cfe-commits
@@ -654,6 +716,83 @@ ExprMutationAnalyzer::Analyzer::findFunctionArgMutation(const Expr *Exp) { return nullptr; } +const Stmt * +ExprMutationAnalyzer::Analyzer::findPointeeValueMutation(const Expr *Exp) { + const auto Matches = match( + stmt(forEachDescendant( +

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-01-21 Thread Michael Jabbour via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] Thread Safety Analysis: Support warning on obtaining address of guarded variables (PR #123063)

2025-01-21 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/123063 >From 6727047d25b8b72f8e23b03a84c0b23f6dad566a Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 15 Jan 2025 13:23:14 +0100 Subject: [PATCH 1/3] Thread Safety Analysis: Support warning on obtaining address o

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Dmitry Polukhin via cfe-commits
@@ -1571,9 +1571,10 @@ void ASTDeclWriter::VisitCXXRecordDecl(CXXRecordDecl *D) { } else { Record.push_back(0); } -// For lambdas inside canonical FunctionDecl remember the mapping. +// For lambdas inside template functions, remember the mapping to +/

[clang] [llvm] [AArch64] Improve bcvtn2 and remove aarch64_neon_bfcvt intrinsics (PR #120363)

2025-01-21 Thread David Green via cfe-commits
davemgreen wrote: Ah - thanks. It is hopefully fixed in 6dc356d6985fc49d1b69c20cc27f6b066742144a? https://github.com/llvm/llvm-project/pull/120363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] Thread Safety Analysis: Support warning on obtaining address of guarded variables (PR #123063)

2025-01-21 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/123063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AVX10.2] Update convert chapter intrinsic and mnemonics names (PR #123656)

2025-01-21 Thread Phoebe Wang via cfe-commits
@@ -231,75 +231,71 @@ _mm512_maskz_cvtnehf8_ph(__mmask32 __U, __m256i __A) { (__v32qi)__A, (__v32hf)(__m512h)_mm512_setzero_ph(), (__mmask32)__U); } -static __inline__ __m256i __DEFAULT_FN_ATTRS512 -_mm512_cvtneph_pbf8(__m512h __A) { - return (__m256i)__builtin_ia32_vcv

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
https://github.com/hokein commented: We have initiated tests to verify this fix within our codebase. It will take some time to get the results. https://github.com/llvm/llvm-project/pull/123648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
https://github.com/hokein edited https://github.com/llvm/llvm-project/pull/123648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix crash/compiler error due broken AST links (PR #123648)

2025-01-21 Thread Haojian Wu via cfe-commits
@@ -1571,9 +1571,10 @@ void ASTDeclWriter::VisitCXXRecordDecl(CXXRecordDecl *D) { } else { Record.push_back(0); } -// For lambdas inside canonical FunctionDecl remember the mapping. +// For lambdas inside template functions, remember the mapping to +/

[clang] [clang-format] Rename ExportBlockIndentation -> IndentExportBlock (PR #123493)

2025-01-21 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/123493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-21 Thread via cfe-commits
https://github.com/StarOne01 updated https://github.com/llvm/llvm-project/pull/123495 >From 6f2ce4c05c0e03b1c18c694ddea97dac184e2218 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Sun, 19 Jan 2025 07:28:24 +0530 Subject: [PATCH 1/6] [clang][Sema] Add diagnostic note for function-like macros re

  1   2   3   4   5   >