[clang] [analyzer] Let the checkers query upper and lower bounds on symbols (PR #74141)

2023-12-04 Thread via cfe-commits
DonatNagyE wrote: I tested this patch on four open source projects (openssl, ffmpeg, postgres, contour) and the results were not affected (and there were no crashes). This is not surprising, because released open source code doesn't contain too many bugs and the message change only affects a s

[clang] 67f387c - [analyzer] Let the checkers query upper and lower bounds on symbols (#74141)

2023-12-04 Thread via cfe-commits
Author: DonatNagyE Date: 2023-12-04T17:19:50+01:00 New Revision: 67f387c67e2a1bfa9432cff372462e204e0952bc URL: https://github.com/llvm/llvm-project/commit/67f387c67e2a1bfa9432cff372462e204e0952bc DIFF: https://github.com/llvm/llvm-project/commit/67f387c67e2a1bfa9432cff372462e204e0952bc.diff LO

[clang] [analyzer] Let the checkers query upper and lower bounds on symbols (PR #74141)

2023-12-04 Thread via cfe-commits
https://github.com/DonatNagyE closed https://github.com/llvm/llvm-project/pull/74141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 8ac84a9 - [clang-tidy] readability-container-contains literal suffixes (#74215)

2023-12-04 Thread via cfe-commits
Author: Thomas Schenker Date: 2023-12-04T17:30:12+01:00 New Revision: 8ac84a9555bc25ed9a53ea6a5a09432e18ee9042 URL: https://github.com/llvm/llvm-project/commit/8ac84a9555bc25ed9a53ea6a5a09432e18ee9042 DIFF: https://github.com/llvm/llvm-project/commit/8ac84a9555bc25ed9a53ea6a5a09432e18ee9042.dif

[clang] [clang][dataflow] Re-land: Retrieve members from accessors called usi… (PR #74336)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samira Bazuzi (bazuzi) Changes …ng member pointers. This initially landed with a broken test due to a mid-air collision with a new requirement for Environment initialization before field modeling. Have added that initialization in the te

[clang] [clang][dataflow] Re-land: Retrieve members from accessors called usi… (PR #74336)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Samira Bazuzi (bazuzi) Changes …ng member pointers. This initially landed with a broken test due to a mid-air collision with a new requirement for Environment initialization before field modeling. Have added that initialization

[clang] [flang] [flang] remove -f[no-]alias-analysis (PR #74343)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tom Eccles (tblah) Changes Now that tbaa tags pass is enabled by default, I would like to remove these flags. `-fno-alias-analysis` was originally intended to be useful for debugging, but as it also disables tbaa tag generation in codegen

[clang] [analyzer] Fix "sprintf" parameter modeling in CStringChecker (PR #74345)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes Review the commits one by one. I plan to merge them manually by pushing both of these at once. This PR intends to fix #74269. --- Patch is 40.76 KiB, truncated

[llvm] [clang] [ValueTracking] Add dominating condition support in computeKnownBits() (PR #73662)

2023-12-04 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 f368e6424fbfb7fdea4b9d9a2e44f2f7e188c133 3575ad5701a852dd8b79d144ea17a729cfb4d94c --

[clang] Use Address for CGBuilder's CreateAtomicRMW and CreateAtomicCmpXchg. (PR #74349)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: James Y Knight (jyknight) Changes Update all callers to pass through the Address. For the older builtins such as `__sync_*` and MSVC `_Interlocked*`, natural alignment of the atomic access is _assumed_. This change preserves that

[clang] Use Address for CGBuilder's CreateAtomicRMW and CreateAtomicCmpXchg. (PR #74349)

2023-12-04 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 f368e6424fbfb7fdea4b9d9a2e44f2f7e188c133 7fd7ebbf60beacb63ddfff16a7c4405e80cb62b4 --

[clang-tools-extra] [llvm] [lld] [libcxxabi] [flang] [clang] [lldb] [libcxx] [libc] [flang] Pass Argv0 to getIntriniscDir and getOpenMPHeadersDir (PR #73254)

2023-12-04 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/73254 >From 81d1e05dd084dd5bb88dab88d2f23008b8dc6cfb Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Tue, 21 Nov 2023 12:18:40 -0500 Subject: [PATCH 1/2] Pass the correct path to getIntriniscDir and getOpenMPHeader

[clang] 4d4c30a - Use Address for CGBuilder's CreateAtomicRMW and CreateAtomicCmpXchg. (#74349)

2023-12-04 Thread via cfe-commits
Author: James Y Knight Date: 2023-12-04T13:37:04-05:00 New Revision: 4d4c30a37c75a4c41bcc70be1431651704624b6a URL: https://github.com/llvm/llvm-project/commit/4d4c30a37c75a4c41bcc70be1431651704624b6a DIFF: https://github.com/llvm/llvm-project/commit/4d4c30a37c75a4c41bcc70be1431651704624b6a.diff

[libc] [compiler-rt] [clang-tools-extra] [clang] [libunwind] [mlir] [lld] [flang] [libcxx] [llvm] [lldb] Fix clang to recognize new C23 modifiers %w and %wf when printing and scanning (PR #71771)

2023-12-04 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/4] Fix clang to recognize new C23 modifiers %w and %wf when pri

[clang] [llvm] [clang-tools-extra] [compiler-rt] [libc] [mlir] [OpenMP] atomic compare fail : Codegen support (PR #75709)

2023-12-20 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/75709 >From fe931d64741f427629407bca3e68a61bec6f2b67 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Sat, 16 Dec 2023 11:43:35 -0600 Subject: [PATCH 1/3] Adding parameter to fail clause (i.e. memory ord

[clang] b03f0c5 - [RISCV] Add sifive-p450 CPU. (#75760)

2023-12-20 Thread via cfe-commits
Author: Craig Topper Date: 2023-12-20T09:52:02-08:00 New Revision: b03f0c596a180399f7730ed75d78055c81b3d771 URL: https://github.com/llvm/llvm-project/commit/b03f0c596a180399f7730ed75d78055c81b3d771 DIFF: https://github.com/llvm/llvm-project/commit/b03f0c596a180399f7730ed75d78055c81b3d771.diff

[clang] 9055519 - [clang] Add getClangVendor() and use it in CodeGenModule.cpp (#75935)

2023-12-20 Thread via cfe-commits
Author: Dimitry Andric Date: 2023-12-20T20:03:19+01:00 New Revision: 9055519103eadfba0b48810be926883a71890c55 URL: https://github.com/llvm/llvm-project/commit/9055519103eadfba0b48810be926883a71890c55 DIFF: https://github.com/llvm/llvm-project/commit/9055519103eadfba0b48810be926883a71890c55.diff

[clang] [Sema] Add -Wc++11-narrowing-const-reference (PR #76094)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes https://github.com/llvm/llvm-project/pull/75332 diagnosed narrowing involving const reference. Our depot has hundreds if not thousands of breakages (https://github.com/llvm/llvm-project/pull/75332#issuecomment

[clang-tools-extra] [llvm] [clang] [XCOFF] Use RLDs to print branches even without -r (PR #74342)

2023-12-20 Thread via cfe-commits
https://github.com/stephenpeckham updated https://github.com/llvm/llvm-project/pull/74342 >From 4d255c7164b92e6dbfa34226d31055f9438855f0 Mon Sep 17 00:00:00 2001 From: Stephen Peckham Date: Mon, 4 Dec 2023 11:41:32 -0500 Subject: [PATCH 01/13] [XCOFF] Use RLDs to print branches even without -r

[clang] [Sema] Warning for _Float16 passed to format specifier '%f' (PR #74439)

2023-12-20 Thread via cfe-commits
apple-fcloutier wrote: [N2844](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2844.pdf), as linked by OP, references the removed language that you are looking for. As Aaron said, it doesn't matter if clang never claimed conformance/never implemented default argument promotion for these type

[clang-tools-extra] clang-tidy/misc: introduce a must use check (PR #76101)

2023-12-20 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 i

[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Tyler Rockwood (rockwotj) Changes Introduce a new (off by default) clang tidy check to ensure that variables of a specific type are always used even if -Wunused-variables wouldn't generate a warning. This check has already caught a

[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

2023-12-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 8bbeed05c4da832a2abf532fee8665c0d6576cbc f7f94494372c4e9b42d027b6fc100e90f2bfe1e0 --

[clang-tools-extra] [llvm] [clang] [PowerPC][CodeGen] Exploit STMW and LMW in 32-bit big-endian mode. (PR #74415)

2023-12-20 Thread via cfe-commits
https://github.com/EsmeYi updated https://github.com/llvm/llvm-project/pull/74415 >From 6243b1b8529779f0c09da35c844bd0038d6c4121 Mon Sep 17 00:00:00 2001 From: esmeyi Date: Tue, 12 Dec 2023 01:17:55 -0500 Subject: [PATCH 1/3] Draft. --- llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 86 ++

[mlir] [clang] [clang-tools-extra] [emacs] Fix Emacs library formatting (PR #76110)

2023-12-20 Thread via cfe-commits
https://github.com/darkfeline created https://github.com/llvm/llvm-project/pull/76110 This makes it easier to ship/install these using the builtin Emacs package format (in particular, a Version is required). >From 302e410d6185f02ec6a9113a70ed489415e5c208 Mon Sep 17 00:00:00 2001 From: Allen Li

[mlir] [clang] [clang-tools-extra] [emacs] Fix Emacs library formatting (PR #76110)

2023-12-20 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 i

[clang-tools-extra] [clang] [mlir] [emacs] Fix Emacs library formatting (PR #76110)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (darkfeline) Changes This makes it easier to ship/install these using the builtin Emacs package format (in particular, a Version is required). --- Full diff: https://github.com/llvm/llvm-project/pull/76110.diff 5 Files Affected: -

[mlir] [clang] [clang-tools-extra] [emacs] Fix Emacs library formatting (PR #76110)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: None (darkfeline) Changes This makes it easier to ship/install these using the builtin Emacs package format (in particular, a Version is required). --- Full diff: https://github.com/llvm/llvm-project/pull/76110.diff 5 Files Affected: -

[clang] 0ea8756 - [clang] Separate Intel ADC instrinsics from ADX intrinsics (#75992)

2023-12-20 Thread via cfe-commits
Author: Max Winkler Date: 2023-12-21T08:43:46+08:00 New Revision: 0ea87560cca4993b89aecf6cd3d93d6d97f2b3fb URL: https://github.com/llvm/llvm-project/commit/0ea87560cca4993b89aecf6cd3d93d6d97f2b3fb DIFF: https://github.com/llvm/llvm-project/commit/0ea87560cca4993b89aecf6cd3d93d6d97f2b3fb.diff L

[clang-tools-extra] Fix #75687: add std::span to the default types. (PR #76116)

2023-12-20 Thread via cfe-commits
https://github.com/Da-Viper created https://github.com/llvm/llvm-project/pull/76116 Fixes #75687 >From 746ee1451cb96a5a320ff2bfbed62c3ad21e7345 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Thu, 21 Dec 2023 01:59:29 + Subject: [PATCH] Fix #75687: add std::span to the default types. ---

[clang-tools-extra] Fix #75687: add std::span to the default types. (PR #76116)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (Da-Viper) Changes Fixes #75687 --- Full diff: https://github.com/llvm/llvm-project/pull/76116.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/SimplifySubscriptExprCheck.cpp (+2-1) - (modified)

[llvm] [mlir] [clang-tools-extra] [clang] [emacs] Fix Emacs library formatting (PR #76110)

2023-12-20 Thread via cfe-commits
https://github.com/darkfeline updated https://github.com/llvm/llvm-project/pull/76110 >From e6e31f536b0027f68c86a94d3e0bd29f2f8d946c Mon Sep 17 00:00:00 2001 From: Allen Li Date: Wed, 20 Dec 2023 15:31:42 -0800 Subject: [PATCH] Fix Emacs library formatting This makes it easier to ship/install

[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

2023-12-20 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/74927 >From 956ca7e210a438caac7c5dda8c9945305a53de39 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Wed, 29 Nov 2023 08:08:29 +0700 Subject: [PATCH 1/2] [SPARC] Support reserving arbitrary general purpose registers Thi

[llvm] [clang-tools-extra] [clang] [PowerPC][CodeGen] Exploit STMW and LMW in 32-bit big-endian mode. (PR #74415)

2023-12-20 Thread via cfe-commits
https://github.com/EsmeYi updated https://github.com/llvm/llvm-project/pull/74415 >From 6243b1b8529779f0c09da35c844bd0038d6c4121 Mon Sep 17 00:00:00 2001 From: esmeyi Date: Tue, 12 Dec 2023 01:17:55 -0500 Subject: [PATCH 1/4] Draft. --- llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 86 ++

[clang-tools-extra] Fix #75686: add iter_swap and iter_move to the matched name (PR #76117)

2023-12-20 Thread via cfe-commits
https://github.com/Da-Viper created https://github.com/llvm/llvm-project/pull/76117 Fixes #75686 >From 97eeda4684804229d9faad19ea7b7888dcd91786 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Thu, 21 Dec 2023 02:30:34 + Subject: [PATCH] Fix #75686: add iter_swap and iter_move to the matc

[clang-tools-extra] Fix #75686: add iter_swap and iter_move to the matched name (PR #76117)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (Da-Viper) Changes Fixes #75686 --- Full diff: https://github.com/llvm/llvm-project/pull/76117.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/ExceptionEscapeCheck.cpp (+9-8) ``diff diff

[clang] [Modules] [HeaderSearch] Don't reenter headers if it is pragma once o… (PR #76119)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes …f #import Close https://github.com/llvm/llvm-project/issues/73023 The direct issue of https://github.com/llvm/llvm-project/issues/73023 is that we entered a header which is marked as pragma once s

[clang-tools-extra] [clangd][RFC] Add container field to remote index Refs grpc method (PR #71605)

2023-12-20 Thread via cfe-commits
https://github.com/tdupes updated https://github.com/llvm/llvm-project/pull/71605 >From 4282c39fd0b40c26c68f57257c150b984264f50b Mon Sep 17 00:00:00 2001 From: dup Date: Fri, 3 Nov 2023 09:03:24 -0700 Subject: [PATCH] Add container field to remote index Refs grpc method --- clang-tools-extra/

[clang] 72e8ab7 - [clang][ASTImporter] add processing of SubstNonTypeTemplateParmExpr in isAncestorDeclContextOf (#74991)

2023-12-20 Thread via cfe-commits
Author: Qizhi Hu Date: 2023-12-21T15:05:33+08:00 New Revision: 72e8ab7d442f57cd65c89a4a99e76acd94788707 URL: https://github.com/llvm/llvm-project/commit/72e8ab7d442f57cd65c89a4a99e76acd94788707 DIFF: https://github.com/llvm/llvm-project/commit/72e8ab7d442f57cd65c89a4a99e76acd94788707.diff LOG:

[llvm] [clang] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-20 Thread via cfe-commits
https://github.com/jinge90 created https://github.com/llvm/llvm-project/pull/76127 In offloading scenario, the whole compiling process consists of device and host compilation phase, device and host code will be bundled together. Address sanitizer can be enabled in either one or both compilatio

[llvm] [clang] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (jinge90) Changes In offloading scenario, the whole compiling process consists of device and host compilation phase, device and host code will be bundled together. Address sanitizer can be enabled in either one or both compilation ph

[llvm] [clang] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-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 5e92fa69eaf0a3d18ff9a8ba0fb27726b38ba035 48684cf6397ddc7d1a941fdbfbb9e28591bf0240 --

[llvm] [clang] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-20 Thread via cfe-commits
jinge90 wrote: Hi, @vitalybuka and @bader Recently, we are working to enable address sanitizer for SYCL and OMP offloading compiler. After enabling Asan instrumentation pass, ASanPass will insert "__asan_*" functions into user code in both device and host compilation. Although host code sanit

[clang] [clang-tools-extra] [llvm] [PowerPC][CodeGen] Exploit STMW and LMW in 32-bit big-endian mode. (PR #74415)

2023-12-20 Thread via cfe-commits
https://github.com/EsmeYi updated https://github.com/llvm/llvm-project/pull/74415 >From 6243b1b8529779f0c09da35c844bd0038d6c4121 Mon Sep 17 00:00:00 2001 From: esmeyi Date: Tue, 12 Dec 2023 01:17:55 -0500 Subject: [PATCH 1/5] Draft. --- llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 86 ++

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76027 >From 9fd1ed96c1b7934754b6fefd7b01a62d4a391d73 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 10:01:10 + Subject: [PATCH 1/2] [clang][dataflow] Add `Environment::get<>()`. This tem

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76027 >From 9fd1ed96c1b7934754b6fefd7b01a62d4a391d73 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 10:01:10 + Subject: [PATCH 1/3] [clang][dataflow] Add `Environment::get<>()`. This tem

[clang] [llvm] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-20 Thread via cfe-commits
https://github.com/jinge90 updated https://github.com/llvm/llvm-project/pull/76127 >From 48684cf6397ddc7d1a941fdbfbb9e28591bf0240 Mon Sep 17 00:00:00 2001 From: jinge90 Date: Thu, 21 Dec 2023 15:36:37 +0800 Subject: [PATCH 1/2] [ASan][Driver] Add sanitize-target flag to support enabling ASan i

[clang] [clang-tools-extra] [llvm] [PowerPC][CodeGen] Exploit STMW and LMW in 32-bit big-endian mode. (PR #74415)

2023-12-20 Thread via cfe-commits
https://github.com/EsmeYi ready_for_review https://github.com/llvm/llvm-project/pull/74415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
@@ -489,8 +489,7 @@ Environment Environment::pushCall(const CallExpr *Call) const { if (const auto *MethodCall = dyn_cast(Call)) { if (const Expr *Arg = MethodCall->getImplicitObjectArgument()) { if (!isa(Arg)) - Env.ThisPointeeLoc = - cast(ge

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
@@ -489,8 +489,7 @@ Environment Environment::pushCall(const CallExpr *Call) const { if (const auto *MethodCall = dyn_cast(Call)) { if (const Expr *Arg = MethodCall->getImplicitObjectArgument()) { if (!isa(Arg)) - Env.ThisPointeeLoc = - cast(ge

[clang] 2ee396b - [clang][dataflow] Add `Environment::get<>()`. (#76027)

2023-12-21 Thread via cfe-commits
Author: martinboehme Date: 2023-12-21T09:02:20+01:00 New Revision: 2ee396b0b102a857ec918beb583c3e71718efbce URL: https://github.com/llvm/llvm-project/commit/2ee396b0b102a857ec918beb583c3e71718efbce DIFF: https://github.com/llvm/llvm-project/commit/2ee396b0b102a857ec918beb583c3e71718efbce.diff

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

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

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-21 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76042 >From 86a00577bcdb78b7d119579df1fa74ce66022d66 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 11:54:49 + Subject: [PATCH 1/2] [clang][dataflow] Disallow setting properties on `Reco

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-21 Thread via cfe-commits
@@ -184,33 +188,23 @@ class PointerValue final : public Value { /// In C++, prvalues of class type serve only a limited purpose: They can only /// be used to initialize a result object. It is not possible to access member /// variables or call member functions on a prvalue of c

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-21 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76042 >From 609f562f08a601c14faf078086313c18f22cd407 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 11:54:49 + Subject: [PATCH 1/2] [clang][dataflow] Disallow setting properties on `Reco

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-21 Thread via cfe-commits
@@ -636,40 +636,37 @@ class OptionalIntAnalysis final if (!CS) return; const Stmt *S = CS->getStmt(); -auto OptionalIntRecordDecl = recordDecl(hasName("OptionalInt")); -auto HasOptionalIntType = hasType(OptionalIntRecordDecl); - -SmallVector Matches =

[clang] 469374e - [clang][dataflow] Disallow setting properties on `RecordValue`s. (#76042)

2023-12-21 Thread via cfe-commits
Author: martinboehme Date: 2023-12-21T09:21:24+01:00 New Revision: 469374e5c4ba7c75327096a4db6b8ee92065c378 URL: https://github.com/llvm/llvm-project/commit/469374e5c4ba7c75327096a4db6b8ee92065c378 DIFF: https://github.com/llvm/llvm-project/commit/469374e5c4ba7c75327096a4db6b8ee92065c378.diff

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

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

[clang] [llvm] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2023-12-21 Thread via cfe-commits
jinge90 wrote: Hi, @MaskRay Could you help review this patch? Thanks very much. https://github.com/llvm/llvm-project/pull/76127 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 73948ec - [clang][analyzer] Support `fflush` in the StreamChecker (#74296)

2023-12-21 Thread via cfe-commits
Author: Ben Shi Date: 2023-12-21T17:57:06+08:00 New Revision: 73948ec6b276ba6ab7c18eb543dd4ea5a37eeab8 URL: https://github.com/llvm/llvm-project/commit/73948ec6b276ba6ab7c18eb543dd4ea5a37eeab8 DIFF: https://github.com/llvm/llvm-project/commit/73948ec6b276ba6ab7c18eb543dd4ea5a37eeab8.diff LOG:

[clang] [Clang][Builtin] add __builtin_exit (PR #74803)

2023-12-21 Thread via cfe-commits
W-50243 wrote: I added __builtin_exit() because __builtin_exit() was used in some projects when I switched from GCC to LLVM. I don't think this is an isolated case, because the __builtin_exit() function is still widely used.[https://sourcegraph.com/search?q=context:global+__builtin_exit&patter

[clang] [clang][ASTImporter] Import AlignValueAttr correctly. (PR #75308)

2023-12-21 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. I'm not familiar with the context, but this seems to be a reasonable change. I have one very minor remark that a comment was not updated to reflect a changed name. https://github.com/llvm/llvm-project/pull/75308

[clang] [clang][ASTImporter] Import AlignValueAttr correctly. (PR #75308)

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

[clang] [clang][ASTImporter] Import AlignValueAttr correctly. (PR #75308)

2023-12-21 Thread via cfe-commits
@@ -7425,67 +7425,46 @@ void ImportAttributes::checkImported(const Decl *From, const Decl *To) { ToAST->getASTContext().getTranslationUnitDecl()); } -// FIXME: Use ImportAttributes for this test. -TEST_P(ASTImporterOptionSpecificTestBase, ImportExprOfAlignmentAttr

[clang-tools-extra] [libc] [compiler-rt] [clang] [flang] [mlir] [lldb] [libcxx] [lld] [llvm] Don't emit relax relocs like R_X86_64_REX_GOTPCRELX on X86 target for OPENMP internal vars. (PR #75564)

2023-12-21 Thread via cfe-commits
https://github.com/UmeshKalappa0 updated https://github.com/llvm/llvm-project/pull/75564 >From 4125e4a709c594562fa6c52f045ba7442e3cb523 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Fri, 15 Dec 2023 11:52:52 +0530 Subject: [PATCH 1/4] Problem :For Kernel Modules ,emitting the relocs like

[clang] a047675 - [Clang][SME2] Add builtins for multi-vector fp round to integral value (#75941)

2023-12-21 Thread via cfe-commits
Author: Kerry McLaughlin Date: 2023-12-21T12:08:47Z New Revision: a047675bbf476300fd159736d8ab0d6cb23fe934 URL: https://github.com/llvm/llvm-project/commit/a047675bbf476300fd159736d8ab0d6cb23fe934 DIFF: https://github.com/llvm/llvm-project/commit/a047675bbf476300fd159736d8ab0d6cb23fe934.diff L

[openmp] [clang-tools-extra] [libc] [compiler-rt] [clang] [flang] [mlir] [lldb] [libcxx] [llvm] [OpenMP] atomic compare fail : Codegen support (PR #75709)

2023-12-21 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/75709 >From fe931d64741f427629407bca3e68a61bec6f2b67 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Sat, 16 Dec 2023 11:43:35 -0600 Subject: [PATCH 1/3] Adding parameter to fail clause (i.e. memory ord

[clang] [Clang][Sema] Fix Wswitch-default bad warning in template (PR #76007)

2023-12-21 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/76007 >From d6c5cfe089b283b35660a48c5d056f44c65e2be4 Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Wed, 20 Dec 2023 12:26:15 +0800 Subject: [PATCH] [Clang][Sema] Fix Wswitch-default bad warning in template [#73077]

[clang] [Clang][Sema] Fix Wswitch-default bad warning in template (PR #76007)

2023-12-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 92f17714e8410986ebfd7b3ebbc48529d6449253 d6c5cfe089b283b35660a48c5d056f44c65e2be4 --

[libcxx] [llvm] [clang] [flang] [mlir] [lld] [clang-tools-extra] [libc] [lldb] [compiler-rt] Don't emit relax relocs like R_X86_64_REX_GOTPCRELX on X86 target for OPENMP internal vars. (PR #75564)

2023-12-21 Thread via cfe-commits
https://github.com/UmeshKalappa0 updated https://github.com/llvm/llvm-project/pull/75564 >From 4125e4a709c594562fa6c52f045ba7442e3cb523 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Fri, 15 Dec 2023 11:52:52 +0530 Subject: [PATCH 1/4] Problem :For Kernel Modules ,emitting the relocs like

[clang-tools-extra] [clang] [llvm] [clang-tidy] modernize-use-digit-separator issue #35414 (PR #76153)

2023-12-21 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 i

[clang-tools-extra] [llvm] [clang] [clang-tidy] modernize-use-digit-separator issue #35414 (PR #76153)

2023-12-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 513c2151cd0cddd90af91a6614b15b74b538963e 1db3de8b415a5526309c7167dec43d513a1d6570 --

[clang-tools-extra] [llvm] [RegAllocFast] Refactor dominates algorithm for large basic block (PR #72250)

2023-12-21 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/72250 >From 581b28b6827855643bd5bdbca0cf9ccef0de2584 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Tue, 14 Nov 2023 20:20:29 +0800 Subject: [PATCH 1/2] [RegAllocFast] Refactor dominates algorithm for large basic b

[clang] [Clang][Sema] Fix Wswitch-default bad warning in template (PR #76007)

2023-12-21 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/76007 >From 8e00f9313edb18afd087433e69d9469bec4c7b19 Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Wed, 20 Dec 2023 12:26:15 +0800 Subject: [PATCH] [Clang][Sema] Fix Wswitch-default bad warning in template [#73077]

[clang] [clang][ASTImporter] Import AlignValueAttr correctly. (PR #75308)

2023-12-21 Thread via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: https://github.com/DonatNagyE approved this pull request. https://github.com/llvm/llvm-project/pull/75308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [Sema] Add -Wc++11-narrowing-const-reference (PR #76094)

2023-12-21 Thread via cfe-commits
https://github.com/alexfh approved this pull request. Thanks for implementing the separate warning option! https://github.com/llvm/llvm-project/pull/76094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [Sema] Add -Wc++11-narrowing-const-reference (PR #76094)

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

[clang] [Sema] Add -Wc++11-narrowing-const-reference (PR #76094)

2023-12-21 Thread via cfe-commits
@@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s - +// RUN: %clang_cc1 -fsyntax-only -Wno-c++11-narrowing-const-reference -verify=allow %s alexfh wrote: "allow" is slightly confusing as the verify prefix. Maybe use `-verify=narrowing` and `-verify=n

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-21 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/76039 >From a61a1c050612493d17b5ec199d00c38afdee8663 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Wed, 20 Dec 2023 05:38:28 -0500 Subject: [PATCH 1/2] [Flang] remove whole-archive option for AIX linker --- clan

[clang] 11c2c09 - [Flang] Add fortran runtime libraries to AIX driver (#75921)

2023-12-21 Thread via cfe-commits
Author: madanial0 Date: 2023-12-21T08:59:21-05:00 New Revision: 11c2c0940b5e44920847b4d191a1272141de65f9 URL: https://github.com/llvm/llvm-project/commit/11c2c0940b5e44920847b4d191a1272141de65f9 DIFF: https://github.com/llvm/llvm-project/commit/11c2c0940b5e44920847b4d191a1272141de65f9.diff LOG

[clang] [Flang] Add fortran runtime libraries to AIX driver (PR #75921)

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

[clang-tools-extra] [llvm] [clang] [XCOFF] Use RLDs to print branches even without -r (PR #74342)

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

[clang] [ARM] arm_acle.h add Coprocessor Instrinsics (PR #75440)

2023-12-21 Thread via cfe-commits
https://github.com/hstk30-hw edited https://github.com/llvm/llvm-project/pull/75440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3107f31 - [Flang, Clang] Enable and test 'rdynamic' flag (#75598)

2023-12-21 Thread via cfe-commits
Author: Radu Salavat Date: 2023-12-21T14:37:51Z New Revision: 3107f313f19a921469776ca498b6aaa0984feda0 URL: https://github.com/llvm/llvm-project/commit/3107f313f19a921469776ca498b6aaa0984feda0 DIFF: https://github.com/llvm/llvm-project/commit/3107f313f19a921469776ca498b6aaa0984feda0.diff LOG:

[clang] [ARM] arm_acle.h add Coprocessor Instrinsics (PR #75440)

2023-12-21 Thread via cfe-commits
hstk30-hw wrote: I follow the gcc arm_acle.h https://github.com/gcc-mirror/gcc/blob/144c531fe25483b65ad3189d7b5e9f78154477c2/gcc/config/arm/arm_acle.h#L99C1-L239C1 code. And check the doc https://developer.arm.com/documentation/101028/latest/ . I think It's ok to merge it. Check it plz. @vhscamp

[clang-tools-extra] Fix #75686: add iter_swap and iter_move to the matched name (PR #76117)

2023-12-21 Thread via cfe-commits
EugeneZelenko wrote: Should Release Notes be updated? https://github.com/llvm/llvm-project/pull/76117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Fix #75687: add std::span to the default types. (PR #76116)

2023-12-21 Thread via cfe-commits
EugeneZelenko wrote: Should Release Notes be updated? https://github.com/llvm/llvm-project/pull/76116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

2023-12-21 Thread via cfe-commits
@@ -0,0 +1,28 @@ +.. title:: clang-tidy - misc-must-use + +misc-must-use += + +Allows for strictly enforce variables are used for specific classes, even with +they would not be normally warned using -Wunused-variable due to templates or +custom destructors. + +In the f

[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

2023-12-21 Thread via cfe-commits
@@ -187,6 +187,13 @@ New checks points in a coroutine. Such hostile types include scoped-lockable types and types belonging to a configurable denylist. +- New :doc:`misc-must-use + ` check. + + Add the ability to strictly enforce variables are used for specific classes,

[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

2023-12-21 Thread via cfe-commits
@@ -0,0 +1,28 @@ +.. title:: clang-tidy - misc-must-use + +misc-must-use += + +Allows for strictly enforce variables are used for specific classes, even with EugeneZelenko wrote: Please make this statement same as in Release Notes. https://github.com

[clang] 6b50540 - [Flang] remove whole-archive option for AIX linker (#76039)

2023-12-21 Thread via cfe-commits
Author: madanial0 Date: 2023-12-21T10:22:30-05:00 New Revision: 6b505406a3403a9ab6c733ccf1fbcc52d9ca0601 URL: https://github.com/llvm/llvm-project/commit/6b505406a3403a9ab6c733ccf1fbcc52d9ca0601 DIFF: https://github.com/llvm/llvm-project/commit/6b505406a3403a9ab6c733ccf1fbcc52d9ca0601.diff LOG

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

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

[clang] [mlir] [flang] [clang-tools-extra] [compiler-rt] [libc] [llvm] [mlir][linalg] Implement common interface for depthwise convolution ops (PR #75017)

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

[clang] [flang] [clang-tools-extra] [compiler-rt] [llvm] [libc] [mlir] [mlir][Linalg] Support dynamic shapes in `lower_pack` transform (PR #76003)

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

[libc] [clang] [mlir] [flang] [compiler-rt] [clang-tools-extra] [llvm] [mlir][Linalg] Support dynamic shapes in `lower_pack` transform (PR #76003)

2023-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-linalg @llvm/pr-subscribers-mlir Author: None (srcarroll) Changes When an expanded dim is not factorable, emit a `tensor.reshape` instead of a `tensor.expand_shape` --- Full diff: https://github.com/llvm/llvm-project/pull/76003.diff 4 Files Affe

[llvm] [libc] [clang-tools-extra] [compiler-rt] [mlir] [clang] [flang] [mlir][Linalg] Support dynamic tiles in `lower_pack` transform (PR #76003)

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

[compiler-rt] [clang-tools-extra] [llvm] [mlir] [clang] [flang] [libc] [mlir][linalg] Implement common interface for depthwise convolution ops (PR #75017)

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

[clang] [llvm] [CMake] Move check for dlfcn.h and dladdr to clang (PR #76163)

2023-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhina Sree (abhina-sree) Changes This patch checks for the presence of dlfcn.h and dladdr in clang to be used in clang/tools/libclang/CIndexer.cpp --- Full diff: https://github.com/llvm/llvm-project/pull/76163.diff 5 Files Affected: -

[clang-tools-extra] [openmp] [libcxx] [llvm] [mlir] [flang] [clang] [lldb] [compiler-rt] [libc] [OpenMP] atomic compare fail : Codegen support (PR #75709)

2023-12-21 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/75709 >From fe931d64741f427629407bca3e68a61bec6f2b67 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Sat, 16 Dec 2023 11:43:35 -0600 Subject: [PATCH 1/3] Adding parameter to fail clause (i.e. memory ord

[clang] 6a870cc - Add tests for driver to propagate module map flags for layering check (#75827)

2023-12-21 Thread via cfe-commits
Author: Walter Lee Date: 2023-12-21T13:15:02-05:00 New Revision: 6a870cca70e3df6070bdcd2768d6569daae8e1ba URL: https://github.com/llvm/llvm-project/commit/6a870cca70e3df6070bdcd2768d6569daae8e1ba DIFF: https://github.com/llvm/llvm-project/commit/6a870cca70e3df6070bdcd2768d6569daae8e1ba.diff LO

<    38   39   40   41   42   43   44   45   46   47   >