[clang] edaae25 - [clang] better error message for while loops outside of control flow

2022-07-24 Thread via cfe-commits
Author: inclyc Date: 2022-07-25T11:48:24+08:00 New Revision: edaae251cca07c34c55905c424a8f677623d0bd0 URL: https://github.com/llvm/llvm-project/commit/edaae251cca07c34c55905c424a8f677623d0bd0 DIFF: https://github.com/llvm/llvm-project/commit/edaae251cca07c34c55905c424a8f677623d0bd0.diff LOG: [

[clang-tools-extra] ba7b6f4 - [docs][pp-trace] Remove FileNotFound callback

2022-05-11 Thread via cfe-commits
Author: CHIANG, YU-HSUN (Tommy Chiang, oToToT) Date: 2022-05-11T18:14:25+08:00 New Revision: ba7b6f46b37b1926552e96bd102b995f6d36de04 URL: https://github.com/llvm/llvm-project/commit/ba7b6f46b37b1926552e96bd102b995f6d36de04 DIFF: https://github.com/llvm/llvm-project/commit/ba7b6f46b37b1926552e9

[clang] 06a9832 - [ASTMatchers][NFC] Fix name of matcher in docs and add a missing test

2022-05-11 Thread via cfe-commits
Author: Whisperity Date: 2022-05-11T14:15:53+02:00 New Revision: 06a98328fc7b70756782fafff5ebfbec815cf1f5 URL: https://github.com/llvm/llvm-project/commit/06a98328fc7b70756782fafff5ebfbec815cf1f5 DIFF: https://github.com/llvm/llvm-project/commit/06a98328fc7b70756782fafff5ebfbec815cf1f5.diff LO

[clang] b6d8c84 - [clang-format] Don't remove braces if a 1-statement body would wrap

2022-05-12 Thread via cfe-commits
Author: owenca Date: 2022-05-12T03:53:08-07:00 New Revision: b6d8c84f28103104a5707091f970d80df423b6c9 URL: https://github.com/llvm/llvm-project/commit/b6d8c84f28103104a5707091f970d80df423b6c9 DIFF: https://github.com/llvm/llvm-project/commit/b6d8c84f28103104a5707091f970d80df423b6c9.diff LOG: [

[clang] 6cd9633 - [clang-format] Handle comments below r_brace in RemoveBracesLLVM

2022-05-12 Thread via cfe-commits
Author: owenca Date: 2022-05-12T16:51:18-07:00 New Revision: 6cd9633c1da5d2867306217af59bcc4b589bab02 URL: https://github.com/llvm/llvm-project/commit/6cd9633c1da5d2867306217af59bcc4b589bab02 DIFF: https://github.com/llvm/llvm-project/commit/6cd9633c1da5d2867306217af59bcc4b589bab02.diff LOG: [

[clang-tools-extra] 9add949 - [ASTMatchers][clang-tidy][NFC] Hoist `forEachTemplateArgument` matcher into the core library

2022-05-13 Thread via cfe-commits
Author: Whisperity Date: 2022-05-13T12:55:48+02:00 New Revision: 9add949557d2cf603b8f541f0dbb83a8fa035d17 URL: https://github.com/llvm/llvm-project/commit/9add949557d2cf603b8f541f0dbb83a8fa035d17 DIFF: https://github.com/llvm/llvm-project/commit/9add949557d2cf603b8f541f0dbb83a8fa035d17.diff LO

[clang] 2601355 - [clang-format][NFC] Format unit tests with insert/remove braces

2022-05-13 Thread via cfe-commits
Author: owenca Date: 2022-05-13T16:16:20-07:00 New Revision: 2601355dc9822f8e04ad73212ed62e601e4f0368 URL: https://github.com/llvm/llvm-project/commit/2601355dc9822f8e04ad73212ed62e601e4f0368 DIFF: https://github.com/llvm/llvm-project/commit/2601355dc9822f8e04ad73212ed62e601e4f0368.diff LOG: [

[clang-tools-extra] 5122738 - [clang-tidy] Support expressions of literals in modernize-macro-to-enum

2022-05-13 Thread via cfe-commits
Author: Richard Date: 2022-05-13T18:45:54-06:00 New Revision: 5122738331362b574baf0a5a17311cddd52a253e URL: https://github.com/llvm/llvm-project/commit/5122738331362b574baf0a5a17311cddd52a253e DIFF: https://github.com/llvm/llvm-project/commit/5122738331362b574baf0a5a17311cddd52a253e.diff LOG:

[clang-tools-extra] 9d99cf5 - [clang-tidy] Restore test parameter operator<< function (NFC)

2022-05-14 Thread via cfe-commits
Author: Richard Date: 2022-05-14T14:04:32-06:00 New Revision: 9d99cf59a151a715ebebf3a4c4782dfdb48d7f4b URL: https://github.com/llvm/llvm-project/commit/9d99cf59a151a715ebebf3a4c4782dfdb48d7f4b DIFF: https://github.com/llvm/llvm-project/commit/9d99cf59a151a715ebebf3a4c4782dfdb48d7f4b.diff LOG:

[clang] 2cdabc0 - [clang-format] Handle "if consteval { ... }" for RemoveBracesLLVM

2022-05-15 Thread via cfe-commits
Author: owenca Date: 2022-05-15T01:33:44-07:00 New Revision: 2cdabc0322929a3954b63c1f29f23959e2e50278 URL: https://github.com/llvm/llvm-project/commit/2cdabc0322929a3954b63c1f29f23959e2e50278 DIFF: https://github.com/llvm/llvm-project/commit/2cdabc0322929a3954b63c1f29f23959e2e50278.diff LOG: [

[clang] 924acb6 - [clang] Prevent folding of non-const compound expr

2022-05-15 Thread via cfe-commits
Author: serge-sans-paille Date: 2022-05-16T07:50:39+02:00 New Revision: 924acb624f58030652ecc8c07db313fde0f31395 URL: https://github.com/llvm/llvm-project/commit/924acb624f58030652ecc8c07db313fde0f31395 DIFF: https://github.com/llvm/llvm-project/commit/924acb624f58030652ecc8c07db313fde0f31395.d

[clang] 9dffab9 - [clang-format][NFC] Don't call mightFitOnOneLine() unnecessarily

2022-05-16 Thread via cfe-commits
Author: owenca Date: 2022-05-16T02:43:35-07:00 New Revision: 9dffab9d524a05742a765dea27aedc8a7080a402 URL: https://github.com/llvm/llvm-project/commit/9dffab9d524a05742a765dea27aedc8a7080a402 DIFF: https://github.com/llvm/llvm-project/commit/9dffab9d524a05742a765dea27aedc8a7080a402.diff LOG: [

[clang] da201aa - [RISCV][NFC] Remove `*=` operator for LMULType

2022-05-19 Thread via cfe-commits
Author: eopXD Date: 2022-05-19T23:47:44-07:00 New Revision: da201aa4242ebb06209296962a28f89297d0c9a1 URL: https://github.com/llvm/llvm-project/commit/da201aa4242ebb06209296962a28f89297d0c9a1 DIFF: https://github.com/llvm/llvm-project/commit/da201aa4242ebb06209296962a28f89297d0c9a1.diff LOG: [R

[clang-tools-extra] 1fef69d - Avoid uninitialized Diag.ID (which we pass but never read)

2022-05-20 Thread via cfe-commits
Author: Sam McCall Date: 2022-05-20T20:29:47+02:00 New Revision: 1fef69da0bfd51de916f0a869f97740c51211cc1 URL: https://github.com/llvm/llvm-project/commit/1fef69da0bfd51de916f0a869f97740c51211cc1 DIFF: https://github.com/llvm/llvm-project/commit/1fef69da0bfd51de916f0a869f97740c51211cc1.diff LO

[clang] 8bfccb9 - [clang-format] Fix an infinite loop in parseJavaEnumBody()

2022-05-21 Thread via cfe-commits
Author: owenca Date: 2022-05-21T10:33:59-07:00 New Revision: 8bfccb963b3519393c0266b452a115a4bb46d207 URL: https://github.com/llvm/llvm-project/commit/8bfccb963b3519393c0266b452a115a4bb46d207 DIFF: https://github.com/llvm/llvm-project/commit/8bfccb963b3519393c0266b452a115a4bb46d207.diff LOG: [

[clang] 1443dba - [clang-format] Handle "complex" conditionals in RemoveBracesLLVM

2022-05-21 Thread via cfe-commits
Author: owenca Date: 2022-05-21T14:46:38-07:00 New Revision: 1443dbaba6f0e57be066995db9164f89fb57b413 URL: https://github.com/llvm/llvm-project/commit/1443dbaba6f0e57be066995db9164f89fb57b413 DIFF: https://github.com/llvm/llvm-project/commit/1443dbaba6f0e57be066995db9164f89fb57b413.diff LOG: [

[clang] f4d52ca - [clang-format] Fix a bug in "AfterControlStatement: MultiLine"

2022-05-21 Thread via cfe-commits
Author: owenca Date: 2022-05-21T15:10:21-07:00 New Revision: f4d52cad671380d9fa6c1637e1c82b7296fd7da0 URL: https://github.com/llvm/llvm-project/commit/f4d52cad671380d9fa6c1637e1c82b7296fd7da0 DIFF: https://github.com/llvm/llvm-project/commit/f4d52cad671380d9fa6c1637e1c82b7296fd7da0.diff LOG: [

[clang] 130a9cc - [clang-format] Fix a crash on lambda trailing return type

2022-05-21 Thread via cfe-commits
Author: owenca Date: 2022-05-21T15:50:50-07:00 New Revision: 130a9cc0a5e25e3be8ff3738518e86ae3ae0b5ba URL: https://github.com/llvm/llvm-project/commit/130a9cc0a5e25e3be8ff3738518e86ae3ae0b5ba DIFF: https://github.com/llvm/llvm-project/commit/130a9cc0a5e25e3be8ff3738518e86ae3ae0b5ba.diff LOG: [

[clang] 554efc2 - [clang-format] Format unit tests with InsertBraces/RemoveBracesLLVM

2022-05-21 Thread via cfe-commits
Author: owenca Date: 2022-05-21T16:13:35-07:00 New Revision: 554efc225217272df755a962d841d57056af83f4 URL: https://github.com/llvm/llvm-project/commit/554efc225217272df755a962d841d57056af83f4 DIFF: https://github.com/llvm/llvm-project/commit/554efc225217272df755a962d841d57056af83f4.diff LOG: [

[clang-tools-extra] 89e663c - [clang-tidy] Improve add_new_check.py to recognize more checks

2022-05-23 Thread via cfe-commits
Author: Richard Date: 2022-05-23T09:47:54-06:00 New Revision: 89e663c4f83a6736fc74a01ec48cb4f01210f86f URL: https://github.com/llvm/llvm-project/commit/89e663c4f83a6736fc74a01ec48cb4f01210f86f DIFF: https://github.com/llvm/llvm-project/commit/89e663c4f83a6736fc74a01ec48cb4f01210f86f.diff LOG:

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/81102 >From d489acbd3cfb656d203e1f05b74c238351c5428a Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 8 Feb 2024 08:33:03 +0100 Subject: [PATCH 1/6] [Clang] Properly get captured 'this' pointer in lambdas with an e

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
@@ -4912,3 +4922,279 @@ void AutoType::Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context) { Profile(ID, Context, getDeducedType(), getKeyword(), isDependentType(), getTypeConstraintConcept(), getTypeConstraintArguments()); } + +FunctionEffect::~Function

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
@@ -0,0 +1,84 @@ +// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s Sirraide wrote: It’s usually not required to separate code that errors and code that is supposed to compile without errors, but if it is required for something like this, then sure, go ahead

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
eddyz87 wrote: @yonghong-song , if I understand @efriedma-quic correctly (thank you for explanations), the following fragment is not RISC-V ABI conformant: ``` $ cat u.c void foo(unsigned); void bar(unsigned a, unsigned b) { foo(a + b); } 1: 67 02 00 00 20 00 00 00 r2 <<= 0x20

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
@@ -4912,3 +4922,279 @@ void AutoType::Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context) { Profile(ID, Context, getDeducedType(), getKeyword(), isDependentType(), getTypeConstraintConcept(), getTypeConstraintArguments()); } + +FunctionEffect::~Function

[clang] [InstallAPI] Add installapi specific options & diagnostics (PR #85100)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Cyndy Ishida (cyndyishida) Changes * A lot of `tapi installapi` options are already shared with clang, but not all. This patch handles installapi specific options by filtering for them in initial argv input, then passing the rest to the c

[clang] [InstallAPI] Add installapi specific options & diagnostics (PR #85100)

2024-03-13 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 e4edbae0aa6a9739954ee3b494b18f8c599d9d79 a71d8d338c9a5cc2f21957b7907f676f2f11d4d6 --

[clang] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
https://github.com/T-Gruber created https://github.com/llvm/llvm-project/pull/85104 Fixes https://github.com/llvm/llvm-project/issues/84463 Changes: - Adapted MemRegion::getDescriptiveName - Added unittest to check name for a given clang::ento::ElementRegion - Some format changes due to clang-f

[clang] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (T-Gruber) Changes Fixes https://github.com/llvm/llvm-project/issues/84463 Changes: - Adapted MemRegion::getDescriptiveName - Added unittest to check name for a given clang::ento::ElementRegion - Some format changes due to clang-forma

[clang] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (T-Gruber) Changes Fixes https://github.com/llvm/llvm-project/issues/84463 Changes: - Adapted MemRegion::getDescriptiveName - Added unittest to check name for a given clang::ento::ElementRegion - Some format changes

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
@@ -4912,3 +4922,279 @@ void AutoType::Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context) { Profile(ID, Context, getDeducedType(), getKeyword(), isDependentType(), getTypeConstraintConcept(), getTypeConstraintArguments()); } + +FunctionEffect::~Function

[clang] ccd1608 - Diagnose misuse of the cleanup attribute (#80040)

2024-03-13 Thread via cfe-commits
Author: Bhuminjay Soni Date: 2024-03-13T12:28:25-04:00 New Revision: ccd16085f70105d457f052543d731dd51089945b URL: https://github.com/llvm/llvm-project/commit/ccd16085f70105d457f052543d731dd51089945b DIFF: https://github.com/llvm/llvm-project/commit/ccd16085f70105d457f052543d731dd51089945b.diff

[clang] 69afb9d - [Clang] [Sema] Fix bug in `_Complex float`+`int` arithmetic (#83063)

2024-03-13 Thread via cfe-commits
Author: Sirraide Date: 2024-03-13T17:39:23+01:00 New Revision: 69afb9d7875d79fdacaaa2f22b5ee3a06faf5373 URL: https://github.com/llvm/llvm-project/commit/69afb9d7875d79fdacaaa2f22b5ee3a06faf5373 DIFF: https://github.com/llvm/llvm-project/commit/69afb9d7875d79fdacaaa2f22b5ee3a06faf5373.diff LOG:

[clang] [Clang] [Sema] Fix bug in `_Complex float`+`int` arithmetic (PR #83063)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/83063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
yonghong-song wrote: > But **after this patch**, the two numbers get the same result as before this > patch. I don't see ld_imm64 becoming a mov instruction, as well as explicit > zero extension for 'unsigned int'. Is that expected? IIUC, we have the same result before and after this patch. So

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
yonghong-song wrote: > @yonghong-song , if I understand @efriedma-quic correctly (thank you for > explanations), the following fragment is not RISC-V ABI conformant: > > ``` > $ cat u.c > void foo(unsigned); > void bar(unsigned a, unsigned b) { > foo(a + b); > } > >1: 67 02 00

[clang] [clang][AArch64] Enable fp128 for aarch64 linux target (PR #85070)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matthew Devereau (MDevereau) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/85070.diff 2 Files Affected: - (modified) clang/lib/Basic/Targets/OSTargets.h (+1) - (modified) clang/test/CodeGenCXX/float128-declarations.

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/81102 >From d489acbd3cfb656d203e1f05b74c238351c5428a Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 8 Feb 2024 08:33:03 +0100 Subject: [PATCH 1/7] [Clang] Properly get captured 'this' pointer in lambdas with an e

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
@@ -8485,6 +8485,53 @@ class LValueExprEvaluator }; } // end anonymous namespace +/// Get an lvalue to a field of a lambda's closure type. +static bool HandleLambdaCapture(EvalInfo &Info, const Expr *E, LValue &Result, +const CXXMethodDecl *MD,

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/81102 >From d489acbd3cfb656d203e1f05b74c238351c5428a Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 8 Feb 2024 08:33:03 +0100 Subject: [PATCH 1/8] [Clang] Properly get captured 'this' pointer in lambdas with an e

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/81102 >From d489acbd3cfb656d203e1f05b74c238351c5428a Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 8 Feb 2024 08:33:03 +0100 Subject: [PATCH 1/8] [Clang] Properly get captured 'this' pointer in lambdas with an e

[clang] bd77a26 - [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (#81102)

2024-03-13 Thread via cfe-commits
Author: Sirraide Date: 2024-03-13T18:49:44+01:00 New Revision: bd77a26e9a15981114e9802d83047f42631125a2 URL: https://github.com/llvm/llvm-project/commit/bd77a26e9a15981114e9802d83047f42631125a2 DIFF: https://github.com/llvm/llvm-project/commit/bd77a26e9a15981114e9802d83047f42631125a2.diff LOG:

[clang] [Clang][Sema] Properly get captured 'this' pointer in lambdas with an explicit object parameter in constant evaluator (PR #81102)

2024-03-13 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/81102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 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 0d98582c8b86644e77f8ddd68fc251e41127b7f4 9c7a82264ffbebc370fdd91f7dc2869c4c488a0b --

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
https://github.com/yonghong-song updated https://github.com/llvm/llvm-project/pull/84874 >From 3c3ce0ddef2cc9955b00317aaec69406f38b86f6 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Mon, 11 Mar 2024 22:27:37 -0700 Subject: [PATCH] [Clang][BPF] Allow sign extension for int type call parame

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/84874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

2024-03-13 Thread via cfe-commits
yonghong-song wrote: Just uploaded a new revision which targets 'Int' type only, i.e, v1. https://github.com/llvm/llvm-project/pull/84874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] f50d358 - [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127)

2024-03-13 Thread via cfe-commits
Author: Ian Anderson Date: 2024-03-13T11:15:41-07:00 New Revision: f50d3582b4844b86ad86372028e44b52c560ec7d URL: https://github.com/llvm/llvm-project/commit/f50d3582b4844b86ad86372028e44b52c560ec7d DIFF: https://github.com/llvm/llvm-project/commit/f50d3582b4844b86ad86372028e44b52c560ec7d.diff

[clang] [llvm] [Clang][BPF] Allow sign extension for call parameters with int types (PR #84874)

2024-03-13 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/84874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][BPF] Allow sign extension for call parameters with int types (PR #84874)

2024-03-13 Thread via cfe-commits
yonghong-song wrote: @pulehui On top of this patch, the following is a hack to emit 'sign-extension' for uint types (unsigned char/short not affected). The llvm hack: ``` diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index b8ca8ec98c06..e4ab04c9

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
T-Gruber wrote: Hi @steakhal, thank you very much for your additional changes! https://github.com/llvm/llvm-project/pull/85104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
Sirraide wrote: > * the bug where `AttributedType` sugar gets lost on lambdas (when the > "inferred" return type gets converted to a concrete one) happens here and the > `nolock(false)` attribute is lost from `h`. Opened an issue for this (#85120) because it really does seem like a bug to me.

[clang] [clang][Sema] Skip the RequiresExprBodyDecls for lambda dependencies (PR #83997)

2024-03-13 Thread via cfe-commits
alexfh wrote: I have a reduced test case, which is accepted by clang 18, but fails with this patch: https://gcc.godbolt.org/z/zMbKvsf7K https://github.com/llvm/llvm-project/pull/83997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] nolock/noalloc attributes (PR #84983)

2024-03-13 Thread via cfe-commits
@@ -11100,6 +11136,48 @@ Attr *Sema::getImplicitCodeSegOrSectionAttrForFunction(const FunctionDecl *FD, return nullptr; } +// Should only be called when getFunctionEffects() returns a non-empty set. +// Decl should be a FunctionDecl or BlockDecl. +void Sema::CheckAddCallabl

[clang] [clang][Sema] Skip the RequiresExprBodyDecls for lambda dependencies (PR #83997)

2024-03-13 Thread via cfe-commits
alexfh wrote: A bit more compact one: https://gcc.godbolt.org/z/4rzYPKaze https://github.com/llvm/llvm-project/pull/83997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0` (PR #82404)

2024-03-13 Thread via cfe-commits
goldsteinn wrote: ping https://github.com/llvm/llvm-project/pull/82404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Set and display CSA analysis entry points as notes on debugging (PR #84823)

2024-03-13 Thread via cfe-commits
https://github.com/NagyDonat commented: Seems reasonable at first glance. However, I feel an urge to bikeshed that the "[invisible]" prefix is a bit puzzling for the developer who encounters it. Consider replacing it with the prefix "[debug]" which is a more conventional signal for "this is a

[libunwind] 1f973ef - [runtimes] Prefer -fvisibility-global-new-delete=force-hidden (#84917)

2024-03-13 Thread via cfe-commits
Author: Martin Storsjö Date: 2024-03-13T16:01:01-04:00 New Revision: 1f973efd335f34c75fcba1ccbe288fd5ece15a64 URL: https://github.com/llvm/llvm-project/commit/1f973efd335f34c75fcba1ccbe288fd5ece15a64 DIFF: https://github.com/llvm/llvm-project/commit/1f973efd335f34c75fcba1ccbe288fd5ece15a64.diff

[libcxx] [libcxxabi] [libunwind] [libcxx, libcxxabi, libunwind] Prefer -fvisibility-global-new-delete=force-hidden (PR #84917)

2024-03-13 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#85126 https://github.com/llvm/llvm-project/pull/84917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c0f2177 - Revert "[NFC] Remove unnecessary 'Builtins.def' file."

2024-03-13 Thread via cfe-commits
Author: erichkeane Date: 2024-03-13T13:30:27-07:00 New Revision: c0f2177dac02903bb1ae85af5d91760d0a1b6a02 URL: https://github.com/llvm/llvm-project/commit/c0f2177dac02903bb1ae85af5d91760d0a1b6a02 DIFF: https://github.com/llvm/llvm-project/commit/c0f2177dac02903bb1ae85af5d91760d0a1b6a02.diff LO

[clang] Revert "[Clang][C++23] Implement P2448R2 ..." (PR #85136)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amy Huang (amykhuang) Changes Revert "[Clang][C++23] Implement P2448R2: Relaxing some constexpr restrictions (#77753)" This reverts commit 99500e8c08a4d941acb8a7eb00523296fb2acf7a because it causes a behavior change for std=c++20. See ht

[clang] Revert "[Clang][C++23] Implement P2448R2 ..." (PR #85136)

2024-03-13 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 ccfb9e6eb7429885e6d09e99cf89bce41f1ca3cc 2f67dfb012038678dd0b873394a55bd5c937f843 --

[clang] 003e292 - Revert "[Clang][C++23] Implement P2448R2 ..." (#85136)

2024-03-13 Thread via cfe-commits
Author: Amy Huang Date: 2024-03-13T21:53:38Z New Revision: 003e292f9895a9cf4e30688269efa668d1fcbb09 URL: https://github.com/llvm/llvm-project/commit/003e292f9895a9cf4e30688269efa668d1fcbb09 DIFF: https://github.com/llvm/llvm-project/commit/003e292f9895a9cf4e30688269efa668d1fcbb09.diff LOG: Rev

[clang] 207e45f - [RISCV] Add back SiFive's cdiscard.d.l1, cflush.d.l1, and cease instructions. (#83896)

2024-03-13 Thread via cfe-commits
Author: Craig Topper Date: 2024-03-13T14:56:25-07:00 New Revision: 207e45fb67ee3dbec9590d9303eebf4f720c8a40 URL: https://github.com/llvm/llvm-project/commit/207e45fb67ee3dbec9590d9303eebf4f720c8a40 DIFF: https://github.com/llvm/llvm-project/commit/207e45fb67ee3dbec9590d9303eebf4f720c8a40.diff

[clang] [llvm] [InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0` (PR #82404)

2024-03-13 Thread via cfe-commits
goldsteinn wrote: @nikic, what do you think about adding `nneg` for `uitofp`? https://github.com/llvm/llvm-project/pull/82404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++23] Implement P2448R2: Relaxing some constexpr restrictions (PR #77753)

2024-03-13 Thread via cfe-commits
dyung wrote: > Nevermind, unreverted since there appear to be newer tests that use this > patch. @amykhuang your unrevert (9bfa506d69b9177ced00b69bf94b28038b063d6d) appears to be an empty commit? Was that intended? https://github.com/llvm/llvm-project/pull/77753 __

[clang] Reapply "[Clang][C++23] Implement P2448R2 ..." (#85136) (PR #85145)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amy Huang (amykhuang) Changes This reverts commit 003e292f9895a9cf4e30688269efa668d1fcbb09 because there were dependent changes in the codebase that now fail. --- Patch is 83.76 KiB, truncated to 20.00 KiB below, full version: https://

[clang] Rough first stab at addressing #85120 (PR #85147)

2024-03-13 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Rough first stab at addressing #85120 (PR #85147)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Doug Wyatt (dougsonos) Changes I pointed out this issue in the review for nolock/noalloc, and @Sirraide opened #85120 Here are some (very rough) bits of code I'd written to try to address the loss of type sugar, plus a subsequent crash i

[clang] Rough first stab at addressing #85120 (PR #85147)

2024-03-13 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 ad23127222fe23e28ac3deaa16f3ae64d13b7b6f 613f04e311f083c129acaa4598cbfd9894fe3805 --

[clang] f9a1478 - Reapply "[Clang][C++23] Implement P2448R2 ..." (#85136) (#85145)

2024-03-13 Thread via cfe-commits
Author: Amy Huang Date: 2024-03-13T23:15:01Z New Revision: f9a14782000e6aa2c4031bc97b20c351a9f281c3 URL: https://github.com/llvm/llvm-project/commit/f9a14782000e6aa2c4031bc97b20c351a9f281c3 DIFF: https://github.com/llvm/llvm-project/commit/f9a14782000e6aa2c4031bc97b20c351a9f281c3.diff LOG: Rea

[clang] Rough first stab at addressing #85120 (PR #85147)

2024-03-13 Thread via cfe-commits
Sirraide wrote: @dougsonos I may have some time to look into this since there are probably (as always) some annoying edge cases—particularly w/ templates. Would you be fine with me committing to this branch or would it be easier for you if I made a separate branch for that? Either is fine by m

[clang] [llvm] [InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0` (PR #82404)

2024-03-13 Thread via cfe-commits
https://github.com/goldsteinn closed https://github.com/llvm/llvm-project/pull/82404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Rough first stab at addressing #85120 (PR #85147)

2024-03-13 Thread via cfe-commits
Sirraide wrote: > a subsequent crash involving lambdas There definitely is a crash involving templated lambdas on trunk: https://github.com/llvm/llvm-project/issues/85154 https://github.com/llvm/llvm-project/pull/85147 ___ cfe-commits mailing list cf

[clang] [llvm] [Clang][BPF] Allow sign extension for call parameters with int types (PR #84874)

2024-03-13 Thread via cfe-commits
4ast wrote: > Just uploaded a new revision which targets 'Int' type only, i.e, v1. Looks like it's a bug in risc-v JIT. We never promised that kfunc call from bpf calling convention into native cpu calling convention will be free on all architectures. That's why we have btf_func_model and JITs

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
https://github.com/eddyz87 created https://github.com/llvm/llvm-project/pull/85161 There are a few places where `arena` name is used for pointers in non-zero address space in BPF backend, rename these to use a more generic `address_space`: - macro `__BPF_FEATURE_ARENA_CAST` -> `__BPF_FEATURE_A

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (eddyz87) Changes There are a few places where `arena` name is used for pointers in non-zero address space in BPF backend, rename these to use a more generic `address_space`: - macro `__BPF_FEATURE_ARENA_CAST` -> `__BPF_FEATURE_ADDRE

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
eddyz87 wrote: I also tested this change using [this](https://gist.github.com/eddyz87/1921247819138a9ed70d77db40db8a7c) kernel patch and arena tests are passing. https://github.com/llvm/llvm-project/pull/85161 ___ cfe-commits mailing list cfe-commits

[clang] [llvm] [Clang] Correct __builtin_dynamic_object_size for subobject types (PR #83204)

2024-03-13 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 55d4816393f897054a4721920502d45c645edf1d cb86c3c12959513309ccf97592d602ba4da36d1d --

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
https://github.com/4ast edited https://github.com/llvm/llvm-project/pull/85161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
https://github.com/4ast requested changes to this pull request. https://github.com/llvm/llvm-project/pull/85161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-13 Thread via cfe-commits
@@ -517,13 +517,13 @@ bool BPFCheckAndAdjustIR::insertASpaceCasts(Module &M) { Changed |= !CastsCache.empty(); } // Merge all globals within same address space into single - // .arena. section + // .address_space. section for (GlobalVariable &G : M.globals()) {

[clang] [clang-tools-extra] [CLANGD] Do not crash on designator initialization of union (PR #83369)

2024-03-13 Thread via cfe-commits
https://github.com/alirezamoshtaghi updated https://github.com/llvm/llvm-project/pull/83369 >From 3d6afe011221ac239bb668b375ed3f6c356fc47d Mon Sep 17 00:00:00 2001 From: alirezamoshtaghi Date: Wed, 28 Feb 2024 13:55:11 -0800 Subject: [PATCH 1/4] [CLANGD] Do not crash on designator initializatio

[clang] [clang-tools-extra] [CLANGD] Do not crash on designator initialization of union (PR #83369)

2024-03-13 Thread via cfe-commits
@@ -4601,8 +4601,15 @@ SourceRange DesignatedInitExpr::getDesignatorsSourceRange() const { SourceLocation DesignatedInitExpr::getBeginLoc() const { auto *DIE = const_cast(this); Designator &First = *DIE->getDesignator(0); - if (First.isFieldDesignator()) -return GNUSy

[clang] [clang-tools-extra] [CLANGD] Do not crash on designator initialization of union (PR #83369)

2024-03-13 Thread via cfe-commits
https://github.com/alirezamoshtaghi deleted https://github.com/llvm/llvm-project/pull/83369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] c1c8a0c - [concepts] Preserve the FoundDecl of ConceptReference properly (#85032)

2024-03-13 Thread via cfe-commits
Author: Younan Zhang Date: 2024-03-14T10:09:47+08:00 New Revision: c1c8a0cb17468bcece489adea2b31df6920c96cb URL: https://github.com/llvm/llvm-project/commit/c1c8a0cb17468bcece489adea2b31df6920c96cb DIFF: https://github.com/llvm/llvm-project/commit/c1c8a0cb17468bcece489adea2b31df6920c96cb.diff

[clang] b84ce99 - [clang] Define SwiftInfo for RISCVTargetCodeGenInfo (#82152)

2024-03-13 Thread via cfe-commits
Author: Kuba (Brecka) Mracek Date: 2024-03-13T20:04:30-07:00 New Revision: b84ce9979990283aa4398ad5a654b8b283baa532 URL: https://github.com/llvm/llvm-project/commit/b84ce9979990283aa4398ad5a654b8b283baa532 DIFF: https://github.com/llvm/llvm-project/commit/b84ce9979990283aa4398ad5a654b8b283baa53

[clang] [llvm] MIPS: Support -m(no-)unaligned-access for r6 (PR #85174)

2024-03-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YunQiang Su (wzssyqa) Changes MIPSr6 ISA requires normal load/store instructions support misunaligned memory access, while it is not always do so by hardware. On some microarchitectures or some corner cases it may need support by OS. Don

[clang] [llvm] MIPS: Support -m(no-)unaligned-access for r6 (PR #85174)

2024-03-13 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 437fcc6eed99694a9f9486d29ead6a3d3275ede9 a74a9bbd2ff2c6589db4c9756cf809c22e98fa64 --

[clang] 162180d - [HLSL] Add -HV option translation to clang-dxc.exe (#83938)

2024-03-13 Thread via cfe-commits
Author: Joshua Batista Date: 2024-03-13T21:55:09-07:00 New Revision: 162180decf532acd31c9aa4b876804848d1761c0 URL: https://github.com/llvm/llvm-project/commit/162180decf532acd31c9aa4b876804848d1761c0 DIFF: https://github.com/llvm/llvm-project/commit/162180decf532acd31c9aa4b876804848d1761c0.diff

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-13 Thread via cfe-commits
T-Gruber wrote: Hello @steakhal, I have just looked through the changes again. What is the advantage of using checkPreCall instead of checkLocation? I would very much appreciate some background information. Thanks for your help! https://github.com/llvm/llvm-project/pull/85104 _

[clang] 3b5e7c8 - [Clang][Sema] Fix a bug on type constraint checking (#84671)

2024-03-13 Thread via cfe-commits
Author: Qizhi Hu Date: 2024-03-14T14:24:27+08:00 New Revision: 3b5e7c83a6e226d5bd7ed2e9b67449b64812074c URL: https://github.com/llvm/llvm-project/commit/3b5e7c83a6e226d5bd7ed2e9b67449b64812074c DIFF: https://github.com/llvm/llvm-project/commit/3b5e7c83a6e226d5bd7ed2e9b67449b64812074c.diff LOG:

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-14 Thread via cfe-commits
T-Gruber wrote: Thanks again @steakhal! This is helpful and interesting background information. I really appreciate your help! https://github.com/llvm/llvm-project/pull/85104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang][dataflow] Add a test for result object location on `CXXDefaultArgExpr`. (PR #85072)

2024-03-14 Thread via cfe-commits
martinboehme wrote: The newly added test is failing, but apparently only on Windows. Will need to take a closer look at why this is, and will update this PR when I have something new. https://github.com/llvm/llvm-project/pull/85072 ___ cfe-commits ma

[clang] 8f68022 - [clang][analyzer] Fix crash in loop unrolling (#82089)

2024-03-14 Thread via cfe-commits
Author: huang-me Date: 2024-03-14T09:16:40+01:00 New Revision: 8f68022f8e6e54d1aeae4ed301f5a015963089b7 URL: https://github.com/llvm/llvm-project/commit/8f68022f8e6e54d1aeae4ed301f5a015963089b7 DIFF: https://github.com/llvm/llvm-project/commit/8f68022f8e6e54d1aeae4ed301f5a015963089b7.diff LOG:

[clang] [clang][analyzer] Fix crash in loop unrolling (PR #82089)

2024-03-14 Thread via cfe-commits
github-actions[bot] wrote: @huang-me Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-14 Thread via cfe-commits
https://github.com/eddyz87 updated https://github.com/llvm/llvm-project/pull/85161 >From ab31efc46153f7065b186b37e406d72188c4f780 Mon Sep 17 00:00:00 2001 From: Eduard Zingerman Date: Thu, 14 Mar 2024 01:56:18 +0200 Subject: [PATCH 1/2] [BPF] rename 'arena' to 'address_space' There are a few p

[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

2024-03-14 Thread via cfe-commits
@@ -517,13 +517,13 @@ bool BPFCheckAndAdjustIR::insertASpaceCasts(Module &M) { Changed |= !CastsCache.empty(); } // Merge all globals within same address space into single - // .arena. section + // .address_space. section for (GlobalVariable &G : M.globals()) {

[clang] [clang][dataflow] Add a test for result object location on `CXXDefaultArgExpr`. (PR #85072)

2024-03-14 Thread via cfe-commits
martinboehme wrote: The new test now does actually also fail for me locally. Not sure why I didn't notice this before. Will add a fix. https://github.com/llvm/llvm-project/pull/85072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

<    54   55   56   57   58   59   60   61   62   63   >