[clang] c640b8c - [NFC][clang] LLVM_FALLTHROUGH => [[fallthrough]]

2022-09-01 Thread via cfe-commits
Author: Sheng Date: 2022-09-01T09:19:00Z New Revision: c640b8ce33f7d128c4d25c282bd245ae7177cf04 URL: https://github.com/llvm/llvm-project/commit/c640b8ce33f7d128c4d25c282bd245ae7177cf04 DIFF: https://github.com/llvm/llvm-project/commit/c640b8ce33f7d128c4d25c282bd245ae7177cf04.diff LOG: [NFC][c

[clang] e0746a8 - [clang] cleanup -fstrict-flex-arrays implementation

2022-09-01 Thread via cfe-commits
Author: serge-sans-paille Date: 2022-09-01T15:06:21+02:00 New Revision: e0746a8a8d647ccee41accf16df895c9b03552c2 URL: https://github.com/llvm/llvm-project/commit/e0746a8a8d647ccee41accf16df895c9b03552c2 DIFF: https://github.com/llvm/llvm-project/commit/e0746a8a8d647ccee41accf16df895c9b03552c2.d

[clang] 3bbdf06 - [clang-format] Fix annotating when deleting array of pointers

2022-09-02 Thread via cfe-commits
Author: jackh Date: 2022-09-03T05:56:49+08:00 New Revision: 3bbdf06b28275a56ad36a844d271d84956d1d7e9 URL: https://github.com/llvm/llvm-project/commit/3bbdf06b28275a56ad36a844d271d84956d1d7e9 DIFF: https://github.com/llvm/llvm-project/commit/3bbdf06b28275a56ad36a844d271d84956d1d7e9.diff LOG: [c

[clang] b514793 - [analyzer] Add more information to the Exploded Graph

2022-09-02 Thread via cfe-commits
Author: isuckatcs Date: 2022-09-03T00:21:05+02:00 New Revision: b5147937b2a9ffdc12110a5df5ba4d482f83d2a8 URL: https://github.com/llvm/llvm-project/commit/b5147937b2a9ffdc12110a5df5ba4d482f83d2a8 DIFF: https://github.com/llvm/llvm-project/commit/b5147937b2a9ffdc12110a5df5ba4d482f83d2a8.diff LOG

[clang] a887d9e - [NFC][clang] LLVM_FALLTHROUGH => [[fallthrough]

2022-09-02 Thread via cfe-commits
Author: Sheng Date: 2022-09-03T08:58:31+08:00 New Revision: a887d9efd696da42dd8bf19a63a3db4140361c07 URL: https://github.com/llvm/llvm-project/commit/a887d9efd696da42dd8bf19a63a3db4140361c07 DIFF: https://github.com/llvm/llvm-project/commit/a887d9efd696da42dd8bf19a63a3db4140361c07.diff LOG: [N

[clang] 92d8738 - [clang-format] Fix a bug in merging blocks with a wrapped l_brace

2022-09-02 Thread via cfe-commits
Author: owenca Date: 2022-09-02T21:38:36-07:00 New Revision: 92d8738c38448a478e0c5b097b24b450a224843f URL: https://github.com/llvm/llvm-project/commit/92d8738c38448a478e0c5b097b24b450a224843f DIFF: https://github.com/llvm/llvm-project/commit/92d8738c38448a478e0c5b097b24b450a224843f.diff LOG: [

[clang] 3ad2fe9 - [Clang][CodeGen] Avoid __builtin_assume_aligned crash when the 1st arg is array type

2022-09-03 Thread via cfe-commits
Author: yronglin Date: 2022-09-03T23:26:01+08:00 New Revision: 3ad2fe913ae08ca062105731ad2da2eae825c731 URL: https://github.com/llvm/llvm-project/commit/3ad2fe913ae08ca062105731ad2da2eae825c731 DIFF: https://github.com/llvm/llvm-project/commit/3ad2fe913ae08ca062105731ad2da2eae825c731.diff LOG:

[clang] a46154c - [analyzer] Warn if the size of the array in `new[]` is undefined

2022-09-04 Thread via cfe-commits
Author: isuckatcs Date: 2022-09-04T23:06:58+02:00 New Revision: a46154cb1cd09aa26bc803d8696e6e9283aac6a9 URL: https://github.com/llvm/llvm-project/commit/a46154cb1cd09aa26bc803d8696e6e9283aac6a9 DIFF: https://github.com/llvm/llvm-project/commit/a46154cb1cd09aa26bc803d8696e6e9283aac6a9.diff LOG

[clang] ab09043 - [clang] Fix crash when parsing scanf format string with missing arguments

2022-09-05 Thread via cfe-commits
Author: serge-sans-paille Date: 2022-09-05T10:54:18+02:00 New Revision: ab09043a1985bfb9f1e4393a29a9d83326d306fe URL: https://github.com/llvm/llvm-project/commit/ab09043a1985bfb9f1e4393a29a9d83326d306fe DIFF: https://github.com/llvm/llvm-project/commit/ab09043a1985bfb9f1e4393a29a9d83326d306fe.d

[clang] a11e51e - [analyzer] Track trivial copy/move constructors and initializer lists in the BugReporter

2022-09-05 Thread via cfe-commits
Author: isuckatcs Date: 2022-09-05T17:06:27+02:00 New Revision: a11e51e91f73e413eb044bc0b2f2e205735618d7 URL: https://github.com/llvm/llvm-project/commit/a11e51e91f73e413eb044bc0b2f2e205735618d7 DIFF: https://github.com/llvm/llvm-project/commit/a11e51e91f73e413eb044bc0b2f2e205735618d7.diff LOG

[clang] 28bd794 - [clang-format] NFC remove incorrect whitespace causing documentation issue

2022-09-09 Thread via cfe-commits
Author: mydeveloperday Date: 2022-09-09T16:03:48+01:00 New Revision: 28bd7945eabdbde2b1fc071ab2f9b78e6e754a1a URL: https://github.com/llvm/llvm-project/commit/28bd7945eabdbde2b1fc071ab2f9b78e6e754a1a DIFF: https://github.com/llvm/llvm-project/commit/28bd7945eabdbde2b1fc071ab2f9b78e6e754a1a.diff

[clang] 5889ed8 - [clang-format] Don't insert braces for loops with a null statement

2022-09-12 Thread via cfe-commits
Author: owenca Date: 2022-09-12T00:37:47-07:00 New Revision: 5889ed83a0ffa71f2cf010b73bbbf210f9690778 URL: https://github.com/llvm/llvm-project/commit/5889ed83a0ffa71f2cf010b73bbbf210f9690778 DIFF: https://github.com/llvm/llvm-project/commit/5889ed83a0ffa71f2cf010b73bbbf210f9690778.diff LOG: [

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-06 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. This is straightforward small change that clarifies some _very confusing_ (but technically true positive) bug reports that I encountered on some open source projects. https://github.com/llvm/llvm-project/pull/71373

[clang] [analyzer] Fix assertion failure in `CXXInstanceCall::getCXXThisVal` (PR #70837)

2023-11-06 Thread via cfe-commits
@@ -30,3 +30,24 @@ void test(int i) { clang_analyzer_dump(g4); // expected-warning@-1 {{&i [as 64 bit integer]}} } + +struct A { + int n; + void set(int x) { +n = x; + } +}; +using ptr_size = decltype(sizeof(void *)); DonatNagyE wrote: Thanks! http

[clang] [clang-tools-extra] In compilation databases, add support for relative directories (PR #69856)

2023-11-06 Thread via cfe-commits
Overhatted wrote: @MaskRay Can you take a look at this PR? For now I'm not looking for a full review, just an answer to my question of whether supporting a relative directory in the "directory" field of a compilation database is an acceptable change. Thanks. https://github.com/llvm/llvm-proj

[clang] [clang][dataflow] Fix assert-fail when calling assignment operator with by-value parameter. (PR #71384)

2023-11-06 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/71384 The code assumed that the source parameter of an assignment operator is always passed by reference, but it is legal for it to be passed by value. This patch includes a test that assert-fails without the fix.

[clang] [clang][dataflow] Fix assert-fail when calling assignment operator with by-value parameter. (PR #71384)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes The code assumed that the source parameter of an assignment operator is always passed by reference, but it is legal for it to be passed by value. This patch includes a test that assert-fails without the

[clang-tools-extra] [clang-tidy] Improve alternate snake case warnings (PR #71385)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: J.C. Moyer (jcmoyer) Changes Improves the accuracy of `readability-identifier-naming` for cases `Camel_Snake_Case` and `camel_Snake_Back`. Prior to this commit, these cases matched identifiers with **only** a leading upper case lette

[clang] [analyzer][solver] On SymSym RelOps, check EQClass members for contradictions (PR #71284)

2023-11-06 Thread via cfe-commits
DonatNagyE wrote: > I think we haven't discussed yet the approach of applying the constraint to > every eqclass member. That would feel like defeating the purpose of eqclasses > at all. I only mentioned it because from a high-level perspective it's equivalent to applying the constraint on the

[clang-tools-extra] [clang] [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (PR #71322)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Vlad Serebrennikov (Endilll) Changes This patch converts `CXXNewExpr::InitializationStyle` into a scoped enum at namespace scope. It also affirms the status quo by adding a new enumerator to represent implicit initializer. --- Full

[clang-tools-extra] ace4489 - [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (#71322)

2023-11-06 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T17:34:22+04:00 New Revision: ace4489397d17abfb20d36de1404cfbe102401a7 URL: https://github.com/llvm/llvm-project/commit/ace4489397d17abfb20d36de1404cfbe102401a7 DIFF: https://github.com/llvm/llvm-project/commit/ace4489397d17abfb20d36de1404cfbe102401a7.

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes The checker now displays one combined note tag for errno-related and "case"-related notes. Previous functions in the errno-modeling part that were used for constr

[clang] [clang-repl] Fix BUILD_SHARED_LIBS symbols from libclangInterpreter on MinGW (PR #71393)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Martin Storsjö (mstorsjo) Changes A few symbols within libclangInterpreter have got explicit dllexport attributes, in order to make them exported (and thus visible at runtime) in any build, not only when they are part of e.g. a DLL libcla

[clang] 43e5f77 - Revert "[clang][NFC] Refactor `CXXNewExpr::InitializationStyle`" (#71395)

2023-11-06 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T17:54:09+04:00 New Revision: 43e5f77500acd64fb2738ef2832691ad488048a8 URL: https://github.com/llvm/llvm-project/commit/43e5f77500acd64fb2738ef2832691ad488048a8 DIFF: https://github.com/llvm/llvm-project/commit/43e5f77500acd64fb2738ef2832691ad488048a8.

[clang] [clang-tools-extra] Revert "[clang][NFC] Refactor `CXXNewExpr::InitializationStyle`" (PR #71395)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Vlad Serebrennikov (Endilll) Changes Reverts llvm/llvm-project#71322 --- Full diff: https://github.com/llvm/llvm-project/pull/71395.diff 8 Files Affected: - (modified) clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp

[clang-tools-extra] [clang] Revert "[clang][NFC] Refactor `CXXNewExpr::InitializationStyle`" (PR #71395)

2023-11-06 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 22a323e3db0cad736b2e793dd8143195fd9c0fc0 40921a217a4bda5ce739561606a4e16677ee48f5 --

[clang-tools-extra] [libcxx] [llvm] [flang] [clang] [compiler-rt] [libc] [C23] Complete support for WG14 N2508 (PR #71398)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-openmp Author: Aaron Ballman (AaronBallman) Changes In Clang 16, we implemented the ability to add a label at the end of a compound statement. These changes complete the implementation by allowing a label to be followed by a declaration in C. Note, th

[clang] feedb7c - [clang][Interp] Fix IntAP(s) to IntAP(s) casts (#69915)

2023-11-06 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-06T15:13:43+01:00 New Revision: feedb7c0db1e06b9082f9c015362cdbf334696ff URL: https://github.com/llvm/llvm-project/commit/feedb7c0db1e06b9082f9c015362cdbf334696ff DIFF: https://github.com/llvm/llvm-project/commit/feedb7c0db1e06b9082f9c015362cdbf334696ff.diff L

[clang] [clang-tools-extra] [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (PR #71322)

2023-11-06 Thread via cfe-commits
zmodem wrote: I landed a commit close to this one, and got at least 10 emails about broken buildbots so far (e.g. https://lab.llvm.org/buildbot/#/builders/188/builds/37563). How come presubmit testing isn't catching this? @metaflow https://github.com/llvm/llvm-project/pull/71322

[clang] clang/CodeGen/RISCV: test lowering of math builtins (PR #71399)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ramkumar Ramachandra (artagnon) Changes Ever since 98c90a1 (ISel: introduce vector ISD::LRINT, ISD::LLRINT; custom RISCV lowering) landed, there have been several discussions on how the lrint and llrint libcalls would lower to LLVM IR via

[clang] [clang][Interp] Fix creating APSInt from IntegralAP (PR #71410)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes The boolean argument in the APSInt constructor is IsUnsigned, not IsSigned. This marks the 10th time I've run into this issue. Happy anniversary. --- Full diff: https://github.com/llvm/llvm-project/pull/7141

[clang] [clang][Interp] Fix creating APSInt from IntegralAP (PR #71410)

2023-11-06 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 8f76522a61d01cf7d70debd39418259e969bb8d6 81836da057f2703f49f30d31955306577a0e1170 --

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Egor Zhdan (egorzhdan) Changes This upstreams more of the Clang API Notes functionality that is currently implemented in the Apple fork: https://github.com/apple/llvm-project/tree/next/clang/lib/APINotes --- Patch is 23.21 KiB, truncate

[clang-tools-extra] [clangd] Allow hover over 128-bit variable without crashing (PR #71415)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Björn Pettersson (bjope) Changes When hovering over variables larger than 64 bits, with more than 64 active bits, there were assertion failures since Hover is trying to print the value as a 64-bit hex value. There is already protection

[clang] [clang-tools-extra] [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (re-land) (PR #71417)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Vlad Serebrennikov (Endilll) Changes This patch converts CXXNewExpr::InitializationStyle into a scoped enum at namespace scope. It also affirms the status quo by adding a new enumerator to represent impl

[clang] [clang][ExtractAPI] Update availability serialization in SGF (PR #71418)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes The prevailiing symbol graph parsing library expects availability attributes to just be "introduced" instead of "introducedVersion" rdar://117823923 --- Full diff: https://github.com/llvm/llvm-pr

[clang-tools-extra] e929f06 - [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (re-land) (#71417)

2023-11-06 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2023-11-06T21:06:05+04:00 New Revision: e929f0694aeb5f8cdbd2369db6189d28bb6fbcf3 URL: https://github.com/llvm/llvm-project/commit/e929f0694aeb5f8cdbd2369db6189d28bb6fbcf3 DIFF: https://github.com/llvm/llvm-project/commit/e929f0694aeb5f8cdbd2369db6189d28bb6fbcf3.

[clang] 423ad04 - [PowerPC] Add an alias for -mregnames so that full register names used in assembly. (#70255)

2023-11-06 Thread via cfe-commits
Author: Stefan Pintilie Date: 2023-11-06T12:30:19-05:00 New Revision: 423ad04c67b7fbe7c6a6b4e0591bff40844c6027 URL: https://github.com/llvm/llvm-project/commit/423ad04c67b7fbe7c6a6b4e0591bff40844c6027 DIFF: https://github.com/llvm/llvm-project/commit/423ad04c67b7fbe7c6a6b4e0591bff40844c6027.dif

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 1/5] [clang] Add support for new loop attribute [[clang::code_a

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -322,6 +322,50 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -10026,6 +10026,10 @@ def err_duplicate_case_differing_expr : Error< def warn_case_empty_range : Warning<"empty case range specified">; def warn_missing_case_for_condition : Warning<"no case matching constant switch condition '%0'">; +def err_loop_attr_duplication : Error<

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -0,0 +1,127 @@ +// RUN: %clang_cc1 -fsyntax-only -verify=expected,c-local -x c %s +// RUN: %clang_cc1 -fsyntax-only -verify=expected,cpp-local -pedantic -x c++ -std=c++11 %s + +void foo() { + int i; + int a[10], b[10]; + + [[clang::code_align(8)]] + for (i = 0; i < 10; ++i

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 1/6] [clang] Add support for new loop attribute [[clang::code_a

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -322,6 +322,56 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 609fe2c - [ObjC] Fix offsets following `[[no_unique_address]]` for `@encode()` (#71321)

2023-11-06 Thread via cfe-commits
Author: Daniel Bertalan Date: 2023-11-06T20:36:47+01:00 New Revision: 609fe2cb4b2037b546686d5f50c2f330dbca4111 URL: https://github.com/llvm/llvm-project/commit/609fe2cb4b2037b546686d5f50c2f330dbca4111 DIFF: https://github.com/llvm/llvm-project/commit/609fe2cb4b2037b546686d5f50c2f330dbca4111.dif

[clang] [Clang] Remove unneeded template keyword (PR #71435)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes As noted in this bug report: https://github.com/llvm/llvm-project/issues/37647 Due to this clang bug we added the template keyword in Redeclarable.h. The bug has been fixed since then, so removing it. ---

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 1/7] [clang] Add support for new loop attribute [[clang::code_a

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -10026,6 +10026,11 @@ def err_duplicate_case_differing_expr : Error< def warn_case_empty_range : Warning<"empty case range specified">; def warn_missing_case_for_condition : Warning<"no case matching constant switch condition '%0'">; +def err_loop_attr_duplication : Error<

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -322,6 +322,57 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -322,6 +322,57 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[libc] [flang] [clang-tools-extra] [clang] [libcxx] [llvm] [mlir] [compiler-rt] Make SmallVectorImpl destructor protected (PR #71439)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt Author: Andy Kaylor (andykaylor) Changes Because the SmallVectorImpl destructor is not virtual, the destructor of derived classes will not be called if pointers to the SmallVectorImpl class are deleted directly. Making the SmallVectorImpl dest

[flang] [libcxx] [libc] [compiler-rt] [llvm] [clang-tools-extra] [clang] [mlir] Make SmallVectorImpl destructor protected (PR #71439)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Andy Kaylor (andykaylor) Changes Because the SmallVectorImpl destructor is not virtual, the destructor of derived classes will not be called if pointers to the SmallVectorImpl class are deleted directly. Making the SmallVectorImpl destruct

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -788,6 +797,17 @@ void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx, } } + // Identify loop attribute 'code_align' from Attrs. + // For attribute code_align: + // n - 'llvm.loop.align i32 n' metadata will be emitted. + for (const auto *A : Attrs

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [compiler-rt] [libc] [libcxx] [clang-tools-extra] [llvm] [clang] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

2023-11-06 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 b14d3441a67939533df1b10cc456516c85a3386a 57c4db247df3e02f83b287015de2a6154b6b5749 --

[clang] Refactor traverse function with clearer function names (PR #71441)

2023-11-06 Thread via cfe-commits
https://github.com/796e43a5a8cdb73b92b created https://github.com/llvm/llvm-project/pull/71441 The `traverse` function has been updated for better readability and maintainability. The function now has clearer function names. >From 1fc6f26966f0192bb1789b66778381d94cd6bbe5 Mon Sep 17 00:00:00 20

[clang] Refactor traverse function with clearer function names (PR #71441)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (796e43a5a8cdb73b92b) Changes The `traverse` function has been updated for better readability and maintainability. The function now has clearer function names. --- Full diff: https://github.com/llvm/llvm-project/pull/71441.diff 1 F

[clang] Refactor traverse function with clearer function names (PR #71441)

2023-11-06 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 74e0a26fd114cac39e251e4c2b6fbbadd6009887 1fc6f26966f0192bb1789b66778381d94cd6bbe5 --

[clang] Refactor traverse function with clearer function names (PR #71441)

2023-11-06 Thread via cfe-commits
https://github.com/796e43a5a8cdb73b92b closed https://github.com/llvm/llvm-project/pull/71441 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)

2023-11-06 Thread via cfe-commits
elizabethandrews wrote: @tahonermann @AaronBallman does that sound ok to you ? Can I merge this (after a rebase)? https://github.com/llvm/llvm-project/pull/70224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [clang-tools-extra] [llvm] [BOLT] Use direct storage for Label annotations. NFCI. (PR #70147)

2023-11-06 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 0156b6ed6561f67f1b86ceef027908dd425e0615 924768f777245a271cfb84243c2c6ac980df1671 --

[clang] Driver: Accept the --gcc-install-dir option multiple times (PR #71446)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Tom Stellard (tstellar) Changes The downside of the --gcc-install-dir is that you are required to specify a path that includes the gcc major version. This makes it hard to use for distributions in configuration files, because an u

[clang] Driver: Accept the --gcc-install-dir option multiple times (PR #71446)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tom Stellard (tstellar) Changes The downside of the --gcc-install-dir is that you are required to specify a path that includes the gcc major version. This makes it hard to use for distributions in configuration files, because an upgrade

[clang] Driver: Accept the --gcc-install-dir option multiple times (PR #71446)

2023-11-06 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 bc7a3bd864be696217c4d11eddf16bed7646b60f 2474aad8585829936af66d8b1238a1876c0f8327 --

[clang] [clang][modules] Avoid modules diagnostics for `__has_include()` (PR #71450)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes After #70144 Clang started resolving module maps even for `__has_include()` expressions. The unintended consequence of this is that diagnostics related to module mis-use started trigerring. These diagnos

[clang-tools-extra] [lld] [libc] [compiler-rt] [clang] [flang] [libcxxabi] [libcxx] [llvm] [libc][math] Add min/max/min_denorm/max_denorm constants to FPBits and clean up its constants return types. (

2023-11-06 Thread via cfe-commits
https://github.com/lntue updated https://github.com/llvm/llvm-project/pull/71298 >From e2142963eccd2ff4d3a0869445064f798fba1ff7 Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Sat, 4 Nov 2023 21:29:04 + Subject: [PATCH] [libc][math] Add min/max/min_denorm/max_denorm constants to FPBits and clea

[clang] [libcxx] [libcxxabi] [llvm] [compiler-rt] [lld] [clang-tools-extra] [libc] [flang] [libc][math] Add min/max/min_denorm/max_denorm constants to FPBits and clean up its constants return types. (

2023-11-06 Thread via cfe-commits
https://github.com/lntue updated https://github.com/llvm/llvm-project/pull/71298 >From e2142963eccd2ff4d3a0869445064f798fba1ff7 Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Sat, 4 Nov 2023 21:29:04 + Subject: [PATCH 1/2] [libc][math] Add min/max/min_denorm/max_denorm constants to FPBits and

[clang-tools-extra] [libcxx] [llvm] [libcxxabi] [flang] [clang] [libc] [compiler-rt] [lld] [libc][math] Add min/max/min_denorm/max_denorm constants to FPBits and clean up its constants return types. (

2023-11-06 Thread via cfe-commits
https://github.com/lntue closed https://github.com/llvm/llvm-project/pull/71298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #68932)

2023-11-06 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 ee1000573e5063f26dcc110983e98fde31e76c87 2c5c4b8ad1bbf11048c0ec14bf6ff64d840391c9 --

[clang] [Clang] Remove unneeded template keyword (PR #71435)

2023-11-06 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM (NFC change) https://github.com/llvm/llvm-project/pull/71435 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [compiler-rt] [libc] [clang] [libcxx] [flang] [clang-tools-extra] [C23] Complete support for WG14 N2508 (PR #71398)

2023-11-06 Thread via cfe-commits
@@ -712,9 +722,7 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs, assert(Tok.is(tok::identifier) && Tok.getIdentifierInfo() && "Not an identifier!"); - // The substatement is always a 'statement', not a 'declaration', but is - // otherwise in

[libc] [clang-tools-extra] [libcxx] [compiler-rt] [clang] [llvm] [flang] [C23] Complete support for WG14 N2508 (PR #71398)

2023-11-06 Thread via cfe-commits
@@ -698,6 +695,19 @@ StmtResult Parser::ParseSEHLeaveStatement() { return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); } +static void DiagnoseLabelFollowedByDecl(Parser &P, const Stmt *SubStmt) { + // When in C mode (but not Microsoft extensions mode), diagnose use o

[clang] bdb309c - [clang][modules] Avoid modules diagnostics for `__has_include()` (#71450)

2023-11-06 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-11-06T17:31:27-08:00 New Revision: bdb309c5fd4030ae6ff9d5114e3532d45a98a183 URL: https://github.com/llvm/llvm-project/commit/bdb309c5fd4030ae6ff9d5114e3532d45a98a183 DIFF: https://github.com/llvm/llvm-project/commit/bdb309c5fd4030ae6ff9d5114e3532d45a98a183.diff L

[clang] 9c34678 - [Clang] Remove unneeded template keyword (#71435)

2023-11-06 Thread via cfe-commits
Author: Shafik Yaghmour Date: 2023-11-06T17:52:45-08:00 New Revision: 9c346780dc1deed1c5362fcfca874e281c53e6e0 URL: https://github.com/llvm/llvm-project/commit/9c346780dc1deed1c5362fcfca874e281c53e6e0 DIFF: https://github.com/llvm/llvm-project/commit/9c346780dc1deed1c5362fcfca874e281c53e6e0.dif

[clang] ef618b5 - Revert "[Clang] Remove unneeded template keyword" (#71478)

2023-11-06 Thread via cfe-commits
Author: Shafik Yaghmour Date: 2023-11-06T18:22:42-08:00 New Revision: ef618b598e6d767208c0b93cc1e47fbec59857dd URL: https://github.com/llvm/llvm-project/commit/ef618b598e6d767208c0b93cc1e47fbec59857dd DIFF: https://github.com/llvm/llvm-project/commit/ef618b598e6d767208c0b93cc1e47fbec59857dd.dif

[clang] Revert "[Clang] Remove unneeded template keyword" (PR #71478)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Reverts llvm/llvm-project#71435 This is failing on some build bots e.g.: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/62315/consoleFull#-3939952849ba4694-19c4-4d7e-bec5-911270d8a58c --- Full

[clang] [Clang][OpenMP]: fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

2023-11-06 Thread via cfe-commits
https://github.com/sun-jacobi created https://github.com/llvm/llvm-project/pull/71480 This PR fixes https://github.com/llvm/llvm-project/issues/69069 . >From 265c0586330a678ef61a64c9610cf0ee7c51367f Mon Sep 17 00:00:00 2001 From: sun-jacobi Date: Tue, 7 Nov 2023 12:06:28 +0900 Subject: [PATC

[clang] [Clang][OpenMP]: fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chia (sun-jacobi) Changes This PR fixes https://github.com/llvm/llvm-project/issues/69069 . --- Full diff: https://github.com/llvm/llvm-project/pull/71480.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaOpenMP.cpp (+7) `

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 1/8] [clang] Add support for new loop attribute [[clang::code_a

[clang] [Clang][OpenMP]: fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

2023-11-06 Thread via cfe-commits
https://github.com/sun-jacobi updated https://github.com/llvm/llvm-project/pull/71480 >From 265c0586330a678ef61a64c9610cf0ee7c51367f Mon Sep 17 00:00:00 2001 From: sun-jacobi Date: Tue, 7 Nov 2023 12:06:28 +0900 Subject: [PATCH 1/2] [Clang][OpenMP]: fixed crash due to invalid binary expression

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 1/9] [clang] Add support for new loop attribute [[clang::code_a

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -322,6 +322,56 @@ static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, return ::new (S.Context) UnlikelyAttr(S.Context, A); } +CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, +Expr *E) { + if

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3c11ac5 - [Clang] Add codegen option to add passbuilder callback functions (#70171)

2023-11-06 Thread via cfe-commits
Author: William Moses Date: 2023-11-06T22:26:38-06:00 New Revision: 3c11ac51180ffebe7d71b8773ec03275aec2eb7a URL: https://github.com/llvm/llvm-project/commit/3c11ac51180ffebe7d71b8773ec03275aec2eb7a DIFF: https://github.com/llvm/llvm-project/commit/3c11ac51180ffebe7d71b8773ec03275aec2eb7a.diff

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
@@ -788,6 +797,20 @@ void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx, } } + // Translate 'loop attributes' arguments to equivalent Attr enums. + // It's being handled separately from LoopHintAttrs not to support + // legacy GNU attributes and prag

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/70762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/10] [clang] Add support for new loop attribute [[clang::code

[clang] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-06 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/11] [clang] Add support for new loop attribute [[clang::code

[clang] [SEH] Fix assertin when return scalar value from __try block. (PR #71488)

2023-11-06 Thread via cfe-commits
https://github.com/jyu2-git created https://github.com/llvm/llvm-project/pull/71488 Current compler assert with `!SI->isAtomic() && !SI->isVolatile()' failed This due to following rule: First, no exception can move in or out of _try region., i.e., no "potential faulty instruction can be moved

[clang] [SEH] Fix assertin when return scalar value from __try block. (PR #71488)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (jyu2-git) Changes Current compler assert with `!SI->isAtomic() && !SI->isVolatile()' failed This due to following rule: First, no exception can move in or out of _try region., i.e., no "potential faulty instruction can be moved acr

[clang] [SEH] Fix assertin when return scalar value from __try block. (PR #71488)

2023-11-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (jyu2-git) Changes Current compler assert with `!SI->isAtomic() && !SI->isVolatile()' failed This due to following rule: First, no exception can move in or out of _try region., i.e., no "potential faulty instruction can be m

[clang] [Clang][CodeGen] Stoping emitting alignment assumes for `align_{up,down}` (PR #71295)

2023-11-06 Thread via cfe-commits
https://github.com/goldsteinn closed https://github.com/llvm/llvm-project/pull/71295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c78aeab - [X86] Add a EVEX256 macro to match with GCC and MSVC (#71317)

2023-11-06 Thread via cfe-commits
Author: Phoebe Wang Date: 2023-11-07T14:39:24+08:00 New Revision: c78aeabaecb6c9b1df1fef4b3d42ceb48bca2152 URL: https://github.com/llvm/llvm-project/commit/c78aeabaecb6c9b1df1fef4b3d42ceb48bca2152 DIFF: https://github.com/llvm/llvm-project/commit/c78aeabaecb6c9b1df1fef4b3d42ceb48bca2152.diff L

[clang] [Clang][OpenMP] fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

2023-11-06 Thread via cfe-commits
sun-jacobi wrote: > This doesn't look like the right place to fix this issue to me. > @alexey-bataev might have better suggestion. The crash occurs at https://github.com/llvm/llvm-project/blob/d34a10a47d25103725174c62ed5e84e8ca380249/clang/lib/Sema/SemaOpenMP.cpp#L13011 The reason why I fix

[clang] [Clang][OpenMP] fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

2023-11-06 Thread via cfe-commits
sun-jacobi wrote: Moreover, in the original implementation, the `checkStatement` return false if and only if there is no error in the statement. The question is whether `checkStatement` should consider a statement, which contains semantic errors not related to the atomic directive, as a `NoErr

[clang] 6b573f4 - [clang][dataflow] Fix assert-fail when calling assignment operator with by-value parameter. (#71384)

2023-11-07 Thread via cfe-commits
Author: martinboehme Date: 2023-11-07T09:48:40+01:00 New Revision: 6b573f4611df470c23c7048fe820e0f216e9a8e1 URL: https://github.com/llvm/llvm-project/commit/6b573f4611df470c23c7048fe820e0f216e9a8e1 DIFF: https://github.com/llvm/llvm-project/commit/6b573f4611df470c23c7048fe820e0f216e9a8e1.diff

<    1   2   3   4   5   6   7   8   9   10   >