[clang] [OpenACC] Implement enter data/exit data construct parsing (PR #72916)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes These two constructs, 'enter data' and 'exit data', are novel compared to what is currently in the parser, as this is the first set implemented where the first token is itself not a valid construct. Becau

[clang] 48ff354 - [clang] Add support for new loop attribute [[clang::code_align()]] (#70762)

2023-11-20 Thread via cfe-commits
Author: smanna12 Date: 2023-11-20T16:09:42-06:00 New Revision: 48ff35415c06cdbd9115bfe5318449afddcc7ff5 URL: https://github.com/llvm/llvm-project/commit/48ff35415c06cdbd9115bfe5318449afddcc7ff5 DIFF: https://github.com/llvm/llvm-project/commit/48ff35415c06cdbd9115bfe5318449afddcc7ff5.diff LOG:

[llvm] [clang] [flang] [clang-tools-extra] [compiler-rt] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-20 Thread via cfe-commits
https://github.com/smanna12 closed 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][driver] Remove -v from mkdir & ln -s from a test since it fails on ppc64 (PR #72924)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Liviu Ionescu (ilg-ul) Changes The PR https://github.com/llvm/llvm-project/pull/70817 introduced a small bug, the tests failed on ppc64 with: ``` RUN: at line 186: mkdir -pv /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/t

[clang] [clang][driver] Remove -v from mkdir & ln -s from a test since it fails on ppc64 (PR #72924)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Liviu Ionescu (ilg-ul) Changes The PR https://github.com/llvm/llvm-project/pull/70817 introduced a small bug, the tests failed on ppc64 with: ``` RUN: at line 186: mkdir -pv /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/

[clang] d328512 - [Clang] Fix finding instantiated decls for class template specializations during instantiation (#72346)

2023-11-20 Thread via cfe-commits
Author: Yuxuan Chen Date: 2023-11-20T16:11:11-08:00 New Revision: d3285123bc9c2e170c8aa7e418c132119bc7aaf1 URL: https://github.com/llvm/llvm-project/commit/d3285123bc9c2e170c8aa7e418c132119bc7aaf1 DIFF: https://github.com/llvm/llvm-project/commit/d3285123bc9c2e170c8aa7e418c132119bc7aaf1.diff L

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-p… (PR #72928)

2023-11-20 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/72928 …roject/pull/70762 >From 55d5f22645b8f76c4daf15f220974e2b00a0157b Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 20 Nov 2023 16:19:37 -0800 Subject: [PATCH] [clang] Fix lit test failure caused by htt

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-p… (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-p… (PR #72928)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72928.diff 1 Files Affected: - (modified) clang/test/Sema/code_align.c (+4-5) ``diff diff --git a/clang/test/Sema/code_align.c b/clang/test/Sem

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

2023-11-20 Thread via cfe-commits
smanna12 wrote: Buildbot is showing the failures below: ``` Step 5 (ninja check 1) failure: 1 unexpected failures 38623 expected passes 71 expected failures 36752 unsupported tests (failure) TEST 'Clang :: Sema/code_align.c' FAILED Exit Code: 1 Command

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-20 Thread via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/72452 >From f6e400224b3a90b4ec47bce2212a8e760b0fe9d8 Mon Sep 17 00:00:00 2001 From: Ben Dunbobbin Date: Wed, 15 Nov 2023 23:09:41 + Subject: [PATCH 1/2] [clang codegen] Add dso_local/hidden/etc. markings to VTT

[clang] Allow multiple sanitizers on baremetal targets. (PR #72933)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Evgenii Stepanov (eugenis) Changes Baremetal targets tend to implement their own runtime support for sanitizers. Clang driver gatekeeping of allowed sanitizer types is counter productive. This change allo

[clang] [Clang] Fix ICE when `initial_suspend()`'s `await_resume()` returns a non-trivially destructible type (PR #72935)

2023-11-20 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 2ca028ce7c6de5f1350440012355a65383b8729a 72fcc02a032e28517d87c8c0fe8279b9833bc9a9 --

[clang] [clang codegen][regression] Add dso_local/hidden/etc. markings to VTT definitions and declarations (PR #72452)

2023-11-20 Thread via cfe-commits
bd1976bris wrote: > Okay. Please add a comment to the code briefly explaining that. Done. https://github.com/llvm/llvm-project/pull/72452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-20 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/72197 >From 9a00824d0ac164d94c9cabfb4544eb6ef2e81802 Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Sat, 18 Nov 2023 11:00:29 + Subject: [PATCH] fix: empty record size > 64 with align let va_list get out of sync

[clang] Supports viewing class member variables in lambda when using the vs debugger (PR #71564)

2023-11-20 Thread via cfe-commits
GkvJwa wrote: Help me merge it into the main branch, Thanks https://github.com/llvm/llvm-project/pull/71564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [llvm] [clang] [flang][OpenMP] Add semantic check for declare target (PR #72770)

2023-11-20 Thread via cfe-commits
shraiysh wrote: > Might be worth asking someone from the Clang team to have a look at the Clang > changes if you're a little unsure on them, but if you're happy with them can > disregard doing that! Thank you for the review @agozillon @skatrak. I am not sure who I should request the review fr

[clang] fix: compatible C++ empty record with align UB with gcc (PR #72197)

2023-11-20 Thread via cfe-commits
hstk30-hw wrote: For now, empty record with size <= 64, still use `i8` in IR (before empty record without align always use `i8`), and lowering to a general purpose register. empty record with size <= 128, use `i128` in IR, and lowering to two gr-registers (C.10). empty record with size > 128,

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

2023-11-20 Thread via cfe-commits
https://github.com/mzyKi created https://github.com/llvm/llvm-project/pull/72951 fixed #72618 inlined_uses_arg call_vprintf_bad, but still fail in call_vsprintf_bad in valist-uninitialized-no-undef.c >From a3bf0f3ac007ee9475fb302ea9c458814e06e6c0 Mon Sep 17 00:00:00 2001 From: miaozhiyuan Dat

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Exile (mzyKi) Changes fixed #72618 inlined_uses_arg call_vprintf_bad, but still fail in call_vsprintf_bad in valist-uninitialized-no-undef.c --- Full diff: https://github.com/llvm/llvm-project

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

2023-11-20 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/72928 >From 55d5f22645b8f76c4daf15f220974e2b00a0157b Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 20 Nov 2023 16:19:37 -0800 Subject: [PATCH 1/2] [clang] Fix lit test failure caused by https://github.com/

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

2023-11-20 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/72928 >From 55d5f22645b8f76c4daf15f220974e2b00a0157b Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 20 Nov 2023 16:19:37 -0800 Subject: [PATCH 1/3] [clang] Fix lit test failure caused by https://github.com/

[clang] [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (PR #72928)

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

[clang] Allow multiple sanitizers on baremetal targets. (PR #72933)

2023-11-20 Thread via cfe-commits
https://github.com/pirama-arumuga-nainar approved this pull request. Thanks for the PR @eugenis! https://github.com/llvm/llvm-project/pull/72933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang-tools-extra] [clangtidy] Allow safe suspensions in coroutine-hostile-raii check (PR #72954)

2023-11-20 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 a1de0946abe8d0195bc06651e0abe32966be47cd c863646669d0b2b54e1c1c353b063a8209730528 --

[clang] [C++20] [Modules] Introduce a tool 'clang-named-modules-querier' and two plugins 'ClangGetUsedFilesFromModulesPlugin' and 'ClangGetDeclsInModulesPlugin' (PR #72956)

2023-11-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes This patch introduces a tool 'clang-named-modules-querier' and two plugins 'ClangGetUsedFilesFromModulesPlugin' and 'ClangGetDeclsInModulesPlugin' to help the build systems to avoid compilations in

[clang] [C++20] [Modules] Introduce a tool 'clang-named-modules-querier' and two plugins 'ClangGetUsedFilesFromModulesPlugin' and 'ClangGetDeclsInModulesPlugin' (PR #72956)

2023-11-20 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 a1de0946abe8d0195bc06651e0abe32966be47cd 05453bc0da214ad69ab94d901c997c61fae86ab6 --

[clang-tools-extra] ba35986 - Fix tab spaces in coroutine-hostile-raii.cpp

2023-11-20 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2023-11-21T07:29:49+01:00 New Revision: ba3598667f0da87961b6bec390bc7b03cfa72583 URL: https://github.com/llvm/llvm-project/commit/ba3598667f0da87961b6bec390bc7b03cfa72583 DIFF: https://github.com/llvm/llvm-project/commit/ba3598667f0da87961b6bec390bc7b03cfa72583.diff

[clang] e4151cc - [Driver,test] Remove -v from mkdir & ln -s from a test since it fails on AIX (#72924)

2023-11-20 Thread via cfe-commits
Author: Liviu Ionescu Date: 2023-11-20T22:42:49-08:00 New Revision: e4151cc9d6cc977e9f49500d6a45f4eb41085130 URL: https://github.com/llvm/llvm-project/commit/e4151cc9d6cc977e9f49500d6a45f4eb41085130 DIFF: https://github.com/llvm/llvm-project/commit/e4151cc9d6cc977e9f49500d6a45f4eb41085130.diff

[flang] [llvm] [clang] [flang][OpenMP] Add semantic check for declare target (PR #72770)

2023-11-20 Thread via cfe-commits
https://github.com/shraiysh updated https://github.com/llvm/llvm-project/pull/72770 >From 41ec490391d8d299c42ee4f5a39c3cdf3e457eef Mon Sep 17 00:00:00 2001 From: Shraiysh Vaishay Date: Sat, 18 Nov 2023 20:02:30 -0600 Subject: [PATCH] [flang][OpenMP] Add semantic check for declare target This p

[flang] [llvm] [clang] [flang][OpenMP] Add semantic check for declare target (PR #72770)

2023-11-20 Thread via cfe-commits
@@ -590,6 +590,8 @@ class ClauseProcessor { bool processSectionsReduction(mlir::Location currentLocation) const; bool processTo(llvm::SmallVectorImpl &result) const; bool + processEnter(llvm::SmallVectorImpl &result) const; shraiysh wrote: Thanks for t

[clang] cac82e2 - [Driver] Make ELF -nopie specific to OpenBSD (#72578)

2023-11-20 Thread via cfe-commits
Author: Fangrui Song Date: 2023-11-20T23:15:17-08:00 New Revision: cac82e26c642d55672b1de6f3d026826c89994ec URL: https://github.com/llvm/llvm-project/commit/cac82e26c642d55672b1de6f3d026826c89994ec DIFF: https://github.com/llvm/llvm-project/commit/cac82e26c642d55672b1de6f3d026826c89994ec.diff

[lld] [flang] [mlir] [llvm] [clang-tools-extra] [clang] [clangtidy] Allow safe suspensions in coroutine-hostile-raii check (PR #72954)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Utkarsh Saxena (usx95) Changes Certain `awaitable` types could be safe to `co_await` on even when we have suspension-hostile RAII objects in scope. This PR adds a way for users to mark such safe `awaitable` and silence false positiv

[clang] [llvm] [clang-tools-extra] [InstCombine] Convert or concat to fshl if opposite or concat exists (PR #68502)

2023-11-21 Thread via cfe-commits
HaohaiWen wrote: > For my money this was merged prematurely. There are still outstanding > concerns about whether this transform is desirable, as well there is an > outstanding comment about the implementation itself. I'm fairly agnostic > about this code getting in, but I think it should be r

[clang] [Driver] Default Generic_GCC aarch64_be to -fasynchronous-unwind-tables (PR #72971)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: dong jianqiang (dongjianqiang2) Changes This patch defaults Generic_GCC aarch64_be to use -fasynchronous-unwind-tables and ensures consistent behavior with aarch64 little endian. --- Full diff: https://gi

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-21 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From e2b6fa1cb088f2c3cf05a38959a3f3d34eda92c5 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/6] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

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

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-21 Thread via cfe-commits
simpal01 wrote: > Hi. From what I can tell the logic looks OK. We add the archextension in > places we expect to now? > > It is generally considered best practice to not have clang test that run the > entire pass pipeline. In this case it looks like it's trying to SLP vectorize > the code to

[clang] [llvm] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-21 Thread via cfe-commits
https://github.com/simpal01 reopened https://github.com/llvm/llvm-project/pull/71545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang] [llvm] [SVE2.1][Clang][LLVM]Add BFloat16 builtin in Clang and LLVM intrinisc (PR #70362)

2023-11-21 Thread via cfe-commits
CarolineConcatto wrote: @momchil-velikov is the changes good? https://github.com/llvm/llvm-project/pull/70362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SVE2.1][Clang][LLVM]Add 128bits builtin in Clang and LLVM intrinisc (PR #71930)

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

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

2023-11-21 Thread via cfe-commits
martinboehme wrote: I'm intentionally not responding to comments in the code for now -- wanted to wrap up this high-level discussion first. > Overall seemed good (mostly just piping), but I think we need more > explanation (on the review thread and somewhere appropriate in the code) of > what

[clang] [clang][DebugInfo] Improve heuristic to determine whether to evaluate a static variable's initializer (PR #72974)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Michael Buch (Michael137) Changes This patch extracts the logic to evaluate a C++ static data-member's constant initializer such that it can be used by an upcoming patch. It also makes the check for whether we are dealing with a c

[clang] [clang][DebugInfo] Improve heuristic to determine whether to evaluate a static variable's initializer (PR #72974)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This patch extracts the logic to evaluate a C++ static data-member's constant initializer such that it can be used by an upcoming patch. It also makes the check for whether we are dealing with a constant

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

2023-11-21 Thread via cfe-commits
@@ -311,7 +318,10 @@ computeBlockInputState(const CFGBlock &Block, AnalysisContext &AC) { } } - JoinedStateBuilder Builder(AC); + // When performing the join, only retain state for those expressions that are + // consumed by this block. This avoids performing joins a

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

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

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

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

[llvm] [clang-tools-extra] [BOLT][NFC] Extract a function for dump MCInst (PR #67225)

2023-11-21 Thread via cfe-commits
https://github.com/llongint updated https://github.com/llvm/llvm-project/pull/67225 >From 3ab91ae89c792b2034f47dd3a74992d912db29d7 Mon Sep 17 00:00:00 2001 From: hezuoqiang Date: Sat, 23 Sep 2023 13:23:16 +0800 Subject: [PATCH] [BOLT][NFC] Extract a function for dump MCInst. Extract a function

[clang-tools-extra] [llvm] [InstCombine] Do not simplify lshr/shl arg if it is part of fshl rotate pattern. (PR #66115)

2023-11-21 Thread via cfe-commits
https://github.com/quic-eikansh updated https://github.com/llvm/llvm-project/pull/66115 >From 60b7c5c4250c69e8bda124649baa25d3c314e0ec Mon Sep 17 00:00:00 2001 From: Eikansh Gupta Date: Tue, 12 Sep 2023 05:14:43 -0700 Subject: [PATCH] [InstCombine] Do not simplify lshr/shl arg if it is part of

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-21 Thread via cfe-commits
https://github.com/CarolineConcatto approved this pull request. LGTM Momchil! Thank you for the work. I left a comments in the tests for gather and scatter. But it should not block the patch to be merged. I just think we have more tests than needed. https://github.com/llvm/llvm-project/pull/712

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-21 Thread via cfe-commits
@@ -0,0 +1,249 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 +; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2p1,+bf16 < %s | FileCheck %s + +declare @llvm.aarch64.sve.ld1q.gather.scalar.offset.nxv2i64.nxv2i64(, , i64

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

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

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-21 Thread via cfe-commits
@@ -0,0 +1,248 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3 +; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2p1,+bf16 < %s | FileCheck %s + +declare void @llvm.aarch64.sve.st1q.scatter.scalar.offset.nxv2i64.nxv2i64(, ,

[clang] [AArch64][SME2] Add PEXT, PSEL builtins for SME2 (PR #72827)

2023-11-21 Thread via cfe-commits
@@ -5,6 +5,11 @@ // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu \ // RUN: -target-feature +sve2p1 -S -O1 -Werror -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefix=CPP-CHECK // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-li

[clang] Refactor ASTContext::getDeclAlign() (NFC) (PR #72977)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jonas Paulsson (JonPsson1) Changes @efriedma-quic @rjmccall While working on this (with the other patch: 72886), I found this refactoring at the top of the function which I like. What do you think? --- Full diff: https://github.com/llvm

[clang] [AArch64][SME2] Add FCLAMP, CNTP builtins for SME2 (PR #72487)

2023-11-21 Thread via cfe-commits
https://github.com/CarolineConcatto commented: I would imagine you need to update the tests to add the arm_streaming into the functions. Is this correct? Or it is not needed anymore? https://github.com/llvm/llvm-project/pull/72487 ___ cfe-commits mail

[clang] Refactor ASTContext::getDeclAlign() (NFC) (PR #72977)

2023-11-21 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 7f740be4acddd8acf46796229c46117b735a9be8 90938183b35284cff65d100f3cb5284b816f28cc --

[clang] 72d3bf2 - [clang][Analyzer] Move checker 'alpha.unix.Errno' to 'unix.Errno'. (#69469)

2023-11-21 Thread via cfe-commits
Author: Balázs Kéri Date: 2023-11-21T13:34:03+01:00 New Revision: 72d3bf2b87ff7fab1a189d76f516bc03eac3271d URL: https://github.com/llvm/llvm-project/commit/72d3bf2b87ff7fab1a189d76f516bc03eac3271d DIFF: https://github.com/llvm/llvm-project/commit/72d3bf2b87ff7fab1a189d76f516bc03eac3271d.diff L

[clang] [clang][Interp] Implement __builtin_rotate{right, left} (PR #72984)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Tests are from test/Sema/constant-builtins-2.c again. --- Full diff: https://github.com/llvm/llvm-project/pull/72984.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/InterpBuiltin.cpp (+49) - (mod

[clang] 52204a2 - [Offload] Initial support for registering offloading entries on COFF targets (#72697)

2023-11-21 Thread via cfe-commits
Author: Joseph Huber Date: 2023-11-21T06:48:34-06:00 New Revision: 52204a29aba2ca8a10f0bd1b5d5c3b8e0b8fa082 URL: https://github.com/llvm/llvm-project/commit/52204a29aba2ca8a10f0bd1b5d5c3b8e0b8fa082 DIFF: https://github.com/llvm/llvm-project/commit/52204a29aba2ca8a10f0bd1b5d5c3b8e0b8fa082.diff

[lldb] [libcxx] [llvm] [clang] [compiler-rt] [libc] [clang-tools-extra] [flang] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

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

[lldb] [libc] [flang] [clang-tools-extra] [compiler-rt] [llvm] [libcxx] [clang] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2023-11-21 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. Thanks, please add the POSIX macros to use ctime_r, and looks great otherwise. https://github.com/llvm/llvm-project/pull/71222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[libc] [compiler-rt] [libcxx] [clang-tools-extra] [lldb] [llvm] [clang] [flang] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2023-11-21 Thread via cfe-commits
@@ -10,9 +10,26 @@ // extensions that will eventually be implemented in Fortran. #include "flang/Runtime/extensions.h" +#include "terminator.h" #include "flang/Runtime/command.h" #include "flang/Runtime/descriptor.h" #include "flang/Runtime/io-api.h" +#include "flang/Runtim

[clang] f4418f8 - [SystemZ][z/OS] Replace unconventional characters that are not within the ASCII range (#72906)

2023-11-21 Thread via cfe-commits
Author: Abhina Sree Date: 2023-11-21T07:51:17-05:00 New Revision: f4418f8813ee15d13217ab0dd995a2a519d9c688 URL: https://github.com/llvm/llvm-project/commit/f4418f8813ee15d13217ab0dd995a2a519d9c688 DIFF: https://github.com/llvm/llvm-project/commit/f4418f8813ee15d13217ab0dd995a2a519d9c688.diff L

[clang] 527fcb8 - [analyzer] Add std::variant checker (#66481)

2023-11-21 Thread via cfe-commits
Author: Gábor Spaits Date: 2023-11-21T14:02:22+01:00 New Revision: 527fcb8e5d6b1d491b6699cde818db1127bbb12c URL: https://github.com/llvm/llvm-project/commit/527fcb8e5d6b1d491b6699cde818db1127bbb12c DIFF: https://github.com/llvm/llvm-project/commit/527fcb8e5d6b1d491b6699cde818db1127bbb12c.diff

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/72985 We never need to access entries from these maps outside of the current basic block. This could only ever become a consideration when flow control happens inside a full-expression (i.e. we have multiple basic

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 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 527fcb8e5d6b1d491b6699cde818db1127bbb12c c50be6452130d2ea01f8845b037ce1fe9b9c9367 --

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

2023-11-21 Thread via cfe-commits
martinboehme wrote: Update: Here's a draft implementation of the "simpler, bolder approach" referenced above: https://github.com/llvm/llvm-project/pull/72985 The code is a _lot_ simpler -- it's mainly deleting code -- and I think I'm convinced at this point that this is the preferable thing t

[clang] [clang][dataflow] Remove deprecated synonyms from `Environment`. (PR #72987)

2023-11-21 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/72987 None >From 16434d49d87b3da8778de5ee3a0355eec2e2ba13 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Tue, 21 Nov 2023 13:07:23 + Subject: [PATCH] [clang][dataflow] Remove deprecated synonyms from `E

[clang] [clang][dataflow] Remove deprecated synonyms from `Environment`. (PR #72987)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72987.diff 1 Files Affected: - (modified) clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h (-6) ``diff diff --git

[clang] [clang][Interp] Implement __builtin_ffs (PR #72988)

2023-11-21 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/72988.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/InterpBuiltin.cpp (+67) - (modif

[clang-tools-extra] [clang] [llvm] [SVE2.1][Clang][LLVM]Add BFloat16 builtin in Clang and LLVM intrinisc (PR #70362)

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

[lldb] [libcxx] [clang] [clang-tools-extra] [flang] [compiler-rt] [libc] [llvm] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2023-11-21 Thread via cfe-commits
@@ -10,9 +10,26 @@ // extensions that will eventually be implemented in Fortran. #include "flang/Runtime/extensions.h" +#include "terminator.h" #include "flang/Runtime/command.h" #include "flang/Runtime/descriptor.h" #include "flang/Runtime/io-api.h" +#include "flang/Runtim

[clang] e6ef315 - [APINotes] Introduce APINotes infrastructure in Clang Sema and Frontend

2023-11-21 Thread via cfe-commits
Author: Egor Zhdan Date: 2023-11-21T13:36:50Z New Revision: e6ef31524729fc03275b1ea4f92b66c1e1eb013e URL: https://github.com/llvm/llvm-project/commit/e6ef31524729fc03275b1ea4f92b66c1e1eb013e DIFF: https://github.com/llvm/llvm-project/commit/e6ef31524729fc03275b1ea4f92b66c1e1eb013e.diff LOG: [A

[clang-tools-extra] [llvm] [clang] [SVE2.1][Clang][LLVM]Add BFloat16 builtin in Clang and LLVM intrinisc (PR #70362)

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

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

2023-11-21 Thread via cfe-commits
https://github.com/DonatNagyE requested changes to this pull request. While this commit may fix some of the false negatives, it is introducing a very general and (if I understood it correctly) semantically incorrect modeling step, so I don't think that it can be merged. The first issue is that

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

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

[llvm] [clang] [AArch64] Add SVE2.1 intrinsics for indexed quadword gather loads and scatter stores (PR #70476)

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

[clang] [llvm] [AArch64] Add SVE2.1 intrinsics for indexed quadword gather loads and scatter stores (PR #70476)

2023-11-21 Thread via cfe-commits
https://github.com/CarolineConcatto approved this pull request. https://github.com/llvm/llvm-project/pull/70476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AArch64] Add SVE2.1 intrinsics for indexed quadword gather loads and scatter stores (PR #70476)

2023-11-21 Thread via cfe-commits
@@ -420,6 +449,35 @@ let TargetGuard = "sve,bf16" in { def SVSTNT1_VNUM_BF : MInst<"svstnt1_vnum[_{d}]", "vPpld", "b", [IsStore], MemEltTyDefault, "aarch64_sve_stnt1">; } +let TargetGuard = "sve2p1" in { + // Contiguous truncating store from quadword (single vector). + de

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/72985 >From ca3aef11b57e3c1ee9d04061064867dfbece8bef Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Tue, 21 Nov 2023 14:25:57 + Subject: [PATCH] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
https://github.com/martinboehme ready_for_review https://github.com/llvm/llvm-project/pull/72985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes We never need to access entries from these maps outside of the current basic block. This could only ever become a consideration when flow control happens inside a full-expression (i.e. we have multiple basic bloc

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes We never need to access entries from these maps outside of the current basic block. This could only ever become a consideration when flow control happens inside a full-expression (i.e. we have multiple b

[clang] 9cd617c - [clang] Fix lit test failure caused by https://github.com/llvm/llvm-project/pull/70762 (#72928)

2023-11-21 Thread via cfe-commits
Author: smanna12 Date: 2023-11-21T06:37:47-08:00 New Revision: 9cd617c5dc5c082fb64c3436bb6b0d46088d8ac1 URL: https://github.com/llvm/llvm-project/commit/9cd617c5dc5c082fb64c3436bb6b0d46088d8ac1 DIFF: https://github.com/llvm/llvm-project/commit/9cd617c5dc5c082fb64c3436bb6b0d46088d8ac1.diff LOG:

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
martinboehme wrote: The clang-format check is failing on code that this PR does not touch. To avoid touching unrelated code, I suggest not fixing the issue reported by clang-format. https://github.com/llvm/llvm-project/pull/72985 ___ cfe-commits mail

[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

2023-11-21 Thread via cfe-commits
martinboehme wrote: After some internal discussion with @ymand, I think I'd like to retract this PR in favor of https://github.com/llvm/llvm-project/pull/72985. I will still keep this PR open for the time being however, until we've resolved the discussion. https://github.com/llvm/llvm-project

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

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

[clang] [analyzer]:fix valistChecker false negative in windows platform (PR #72951)

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

[clang] [clang][dataflow] Clear `ExprToLoc` and `ExprToVal` at the start of a block. (PR #72985)

2023-11-21 Thread via cfe-commits
@@ -257,7 +257,12 @@ class JoinedStateBuilder { // initialize the state of each basic block differently. return {AC.Analysis.typeErasedInitialElement(), AC.InitEnv.fork()}; if (All.size() == 1) - return Owned.empty() ? All.front()->fork() : std::move(Owned.

[clang] [llvm] [mlir] [lld] [AMDGPU] Change default AMDHSA Code Object version to 5 (PR #73000)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld @llvm/pr-subscribers-clang Author: Saiyedul Islam (saiislam) Changes Also update LIT tests and docs. For more details, see https://llvm.org/docs/AMDGPUUsage.html#code-object-v5-metadata --- Patch is 1.95 MiB, truncated to 20.00 KiB below, full vers

[clang] [lld] [mlir] [llvm] [AMDGPU] Change default AMDHSA Code Object version to 5 (PR #73000)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Saiyedul Islam (saiislam) Changes Also update LIT tests and docs. For more details, see https://llvm.org/docs/AMDGPUUsage.html#code-object-v5-metadata --- Patch is 1.95 MiB, truncated to 20.00 KiB below, full version: https://gi

[mlir] [lld] [clang] [llvm] [AMDGPU] Change default AMDHSA Code Object version to 5 (PR #73000)

2023-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-llvm Author: Saiyedul Islam (saiislam) Changes Also update LIT tests and docs. For more details, see https://llvm.org/docs/AMDGPUUsage.html#code-object-v5-metadata --- Patch is 1.95 MiB, truncated to 20.00 KiB below, full version: https://github.

[clang] 49f0070 - [clang][dataflow] Remove deprecated synonyms from `Environment`. (#72987)

2023-11-21 Thread via cfe-commits
Author: martinboehme Date: 2023-11-21T16:01:04+01:00 New Revision: 49f0070237709a979905d8fe823f47a1b0ebd8ee URL: https://github.com/llvm/llvm-project/commit/49f0070237709a979905d8fe823f47a1b0ebd8ee DIFF: https://github.com/llvm/llvm-project/commit/49f0070237709a979905d8fe823f47a1b0ebd8ee.diff

<    16   17   18   19   20   21   22   23   24   25   >