[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-25 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: @BeMg, does the RISC-V code look okay to you? https://github.com/llvm/llvm-project/pull/116257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-25 Thread Alexandros Lamprineas via cfe-commits
@@ -4303,21 +4288,15 @@ void CodeGenModule::emitMultiVersionFunctions() { continue; llvm::Function *Func = createFunction(CurFD, I); - StringRef Architecture; Feats.clear(); - if (getTarget().getTriple().is

[clang] [llvm] [InstCombine] Fold `X Pred C2 ? X BOp C1 : C2 BOp C1` to `min/max(X, C2) BOp C1` (PR #116888)

2024-11-25 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw edited https://github.com/llvm/llvm-project/pull/116888 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Fold `X > C2 ? X + C1 : C2 + C1` to `max(X, C2) + C1` (PR #116888)

2024-11-25 Thread Yingwei Zheng via cfe-commits
@@ -1793,10 +1793,9 @@ define i32 @not_uadd_sat(i32 %x, i32 %y) { define i32 @not_uadd_sat2(i32 %x, i32 %y) { ; CHECK-LABEL: @not_uadd_sat2( -; CHECK-NEXT:[[A:%.*]] = add i32 [[X:%.*]], -2 -; CHECK-NEXT:[[C:%.*]] = icmp ugt i32 [[X]], 1 -; CHECK-NEXT:[[R:%.*]] = se

[clang] [llvm] [InstCombine] Fold `X > C2 ? X + C1 : C2 + C1` to `max(X, C2) + C1` (PR #116888)

2024-11-25 Thread Yingwei Zheng via cfe-commits
@@ -1182,6 +1182,10 @@ SelectPatternResult matchDecomposedSelectPattern( /// minimum/maximum flavor. CmpInst::Predicate getMinMaxPred(SelectPatternFlavor SPF, bool Ordered = false); +/// Convert given `SPF` to equivalent min/max intrinsic. +/// Caller must ensure `SPF` is a m

[clang] [llvm] [InstCombine] Fold `X > C2 ? X + C1 : C2 + C1` to `max(X, C2) + C1` (PR #116888)

2024-11-25 Thread Yingwei Zheng via cfe-commits
@@ -1898,6 +1882,55 @@ static Instruction *foldSelectICmpEq(SelectInst &SI, ICmpInst *ICI, return nullptr; } +// Turn select (Cmp X C1) (BOp X C2) C3 dtcxzyw wrote: ```suggestion /// Turn select (Cmp X C1) (BOp X C2) C3 ``` Use `///` for header comments.

[clang] [llvm] [InstCombine] Fold `X > C2 ? X + C1 : C2 + C1` to `max(X, C2) + C1` (PR #116888)

2024-11-25 Thread Yingwei Zheng via cfe-commits
@@ -1898,6 +1882,55 @@ static Instruction *foldSelectICmpEq(SelectInst &SI, ICmpInst *ICI, return nullptr; } +// Turn select (Cmp X C1) (BOp X C2) C3 +// -> BOp (min/max X C1) C2 +// iff C3 == BOp C1 C2 +// Fold `select` with a const operand to a binary operation. +// Thi

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang-tools-extra` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/158

[clang] [ASTMatcher] Fix redundant macro expansion checks in getExpansionLocOfMacro (PR #117143)

2024-11-25 Thread via cfe-commits
https://github.com/mandymimi ready_for_review https://github.com/llvm/llvm-project/pull/117143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatcher] Fix redundant macro expansion checks in getExpansionLocOfMacro (PR #117143)

2024-11-25 Thread via cfe-commits
https://github.com/mandymimi edited https://github.com/llvm/llvm-project/pull/117143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix redundant macro expansion checks in ASTMatchers (PR #117143)

2024-11-25 Thread via cfe-commits
https://github.com/mandymimi updated https://github.com/llvm/llvm-project/pull/117143 >From b411d9185a6f761901bcc7c8ed147a8efd3b5301 Mon Sep 17 00:00:00 2001 From: wangmi Date: Tue, 26 Nov 2024 07:11:58 + Subject: [PATCH] [ASTMatcher] Fix redundant macro expansion checks in getExpansionLoc

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang-tools-extra` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/13090 Her

[clang-tools-extra] [clangd] Drop requirement for named template parameters (PR #117565)

2024-11-25 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/117565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-REPL] Fix crash during `__run_exit_handlers` with dynamic libraries. (PR #117475)

2024-11-25 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > I came across the following setup: > > ```c++ > // REQUIRES: host-supports-jit > > // RUN: rm -rf %t > // RUN: mkdir -p %t > // > // RUN: split-file %s %t > // > // RUN: %clang++ -std=c++20 -fPIC -c %t/vec.cpp -o %t/vec.o > // RUN: %clang++ -shared %t/vec.o -o %t/vec.dylib >

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -807,6 +807,10 @@ def err_drv_loongarch_invalid_simd_option_combination : Error< "invalid option combination; LASX depends on LSX">; def err_drv_loongarch_invalid_msimd_EQ : Error< "invalid argument '%0' to -msimd=; must be one of: none, lsx, lasx">; +// Support for oth

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -0,0 +1,13 @@ +! RUN: not %flang -### -c --target=loongarch64-unknown-linux -mabi=lp64s %s 2>&1 | FileCheck --check-prefix=INVALID1 %s +! RUN: not %flang -### -c --target=loongarch64-unknown-linux -mabi=lp64f %s 2>&1 | FileCheck --check-prefix=INVALID2 %s +! RUN: %flang -###

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -0,0 +1,13 @@ +! RUN: not %flang -### -c --target=loongarch64-unknown-linux -mabi=lp64s %s 2>&1 | FileCheck --check-prefix=INVALID1 %s SixWeining wrote: Usually `###` is the last option. ```suggestion ! RUN: not %flang -c --target=loongarch64-unknown-linux -m

[clang] [llvm] [RISCV][SLEEF]: Support SLEEF vector library for RISC-V target. (PR #114014)

2024-11-25 Thread Mark Goncharov via cfe-commits
mga-sc wrote: I can't merge this PR. @topperc , could please merge it. https://github.com/llvm/llvm-project/pull/114014 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

2024-11-25 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: I've fixed the build failure that was reported by the majority of the buildbots (which is just a new test case using a test utility function that the patch renames). However, there is an additional build failured reported by [this buildbot](https://github.com/llvm/llvm-p

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -0,0 +1,79 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc --mtriple=loongarch64 -mattr=+d,-div32 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch64 -mattr=+d,+div32 < %s | FileCheck %s --check-prefix=LA64-D

[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes Previously reviewed at https://github.com/llvm/llvm-project/pull/77556 but was backed out due to build failures. --- Patch is 48.62 KiB, truncated to 20.00 KiB below, full version: https

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Resubmitted with the build failures fixed at https://github.com/llvm/llvm-project/pull/117673. https://github.com/llvm/llvm-project/pull/77556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang-tools-extra] [clangd] Re-land "support outgoing calls in call hierarchy" (PR #117673)

2024-11-25 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/117673 Previously reviewed at https://github.com/llvm/llvm-project/pull/77556 but was backed out due to build failures. >From 65f93cd05d9d792bba9a07bda738503f43221221 Mon Sep 17 00:00:00 2001 From: Quentin Chat

[clang] [Clang] use begin member expr location for call expr with deducing this (PR #117345)

2024-11-25 Thread Younan Zhang via cfe-commits
@@ -717,6 +717,8 @@ Bug Fixes to C++ Support - Clang now uses valid deduced type locations when diagnosing functions with trailing return type missing placeholder return type. (#GH78694) - Fixed a bug where bounds of partially expanded pack indexing expressions were checked

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot6` while building `clang-tools-extra` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/4934 Here i

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,106 @@ +// NOTE: Assertions have mostly been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// The most important assertion is the attributes at the end of the file, which +// shows that ubsan attaches 'nomerge' to each ubsantrap intrinsic. +//

[clang] [llvm] [NFC][clang][FMV][TargetInfo] Refactor API for FMV feature priority. (PR #116257)

2024-11-25 Thread Phoebe Wang via cfe-commits
@@ -4303,21 +4288,15 @@ void CodeGenModule::emitMultiVersionFunctions() { continue; llvm::Function *Func = createFunction(CurFD, I); - StringRef Architecture; Feats.clear(); - if (getTarget().getTriple().is

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/8369 Here is the r

[clang-tools-extra] d77cab8 - Revert "[clangd] Support outgoing calls in call hierarchy (#77556)" (#117668)

2024-11-25 Thread via cfe-commits
Author: Nathan Ridge Date: 2024-11-26T00:08:33-05:00 New Revision: d77cab823fc03f6933c3375baaddaae1477bb1d2 URL: https://github.com/llvm/llvm-project/commit/d77cab823fc03f6933c3375baaddaae1477bb1d2 DIFF: https://github.com/llvm/llvm-project/commit/d77cab823fc03f6933c3375baaddaae1477bb1d2.diff

[clang-tools-extra] Revert "[clangd] Support outgoing calls in call hierarchy (#77556)" (PR #117668)

2024-11-25 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Reverting https://github.com/llvm/llvm-project/pull/77556 due to build breakage. https://github.com/llvm/llvm-project/pull/117668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] Revert "[clangd] Support outgoing calls in call hierarchy (#77556)" (PR #117668)

2024-11-25 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/117668 This reverts commit ca184cfc088a843e545e5f04b48813e6f9bfba77. >From 08003a8cc09ad8a6afab582be0d90078d84e617b Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 26 Nov 2024 00:07:31 -0500 Subject: [PA

[clang] [llvm] AMDGPU: Add support for v_dot2_f32_bf16 instruction for gfx950 (PR #117597)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/8052 Here is the rele

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/2558 Here is the rele

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan` running on `clangd-ubuntu-clang` while building `clang-tools-extra` at step 5 "build-clangd-clangd-index-server-clangd-indexer". Full details are available at: https://lab.llvm.org/buildbot/#/builders/134/

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang-tools-extra` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/10189 Here is the r

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
igorkudrin wrote: > Please check if this fixes #109778 too. Seems very similar. This patch fixes #109778, but only for AArch64. https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/77556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] ca184cf - [clangd] Support outgoing calls in call hierarchy (#77556)

2024-11-25 Thread via cfe-commits
Author: Nathan Ridge Date: 2024-11-25T23:58:33-05:00 New Revision: ca184cfc088a843e545e5f04b48813e6f9bfba77 URL: https://github.com/llvm/llvm-project/commit/ca184cfc088a843e545e5f04b48813e6f9bfba77 DIFF: https://github.com/llvm/llvm-project/commit/ca184cfc088a843e545e5f04b48813e6f9bfba77.diff

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > Appears to work fine. Regarding the slight memory increase: If anyone feels > strongly about it, they had plenty of time to chime in. Thanks! I'll go ahead and merge. https://github.com/llvm/llvm-project/pull/77556 ___ cfe-com

[clang-tools-extra] [clangd] Support outgoing calls in call hierarchy (PR #77556)

2024-11-25 Thread Nathan Ridge via cfe-commits
@@ -1700,6 +1700,7 @@ declToHierarchyItem(const NamedDecl &ND, llvm::StringRef TUPath) { HierarchyItem HI; HI.name = printName(Ctx, ND); + // FIXME: Populate HI.detail the way we do in symbolToHierarchyItem? HighCommander4 wrote: See also https://github

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
@@ -232,13 +232,23 @@ bool AArch64TargetInfo::validateTarget(DiagnosticsEngine &Diags) const { bool AArch64TargetInfo::validateGlobalRegisterVariable( StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const { - if ((RegName == "sp") || RegName.starts_with("x"))

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin edited https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/117419 >From 54fc788cca22b1b30313f4349d9ef2ba8cf58079 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 22 Nov 2024 21:36:54 -0800 Subject: [PATCH 1/2] [clang][AArch64] Avoid a crash when a non-reserved registe

[clang] [SystemZ][z/OS] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-11-25 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/111035 >From e8d355c9cd165e0a255bbbfb5b0126cf7b1461a6 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Wed, 2 Oct 2024 12:56:43 -0500 Subject: [PATCH 1/9] initial work for pragma export & _Export keyword --- clang/in

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types. (PR #117108)

2024-11-25 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/117108 >From 32e04b6538486006c98c6b805b1057110c3a2c1a Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Wed, 20 Nov 2024 17:30:43 +0800 Subject: [PATCH 1/2] [Flang] LoongArch64 support for BIND(C) derived types. This pat

[clang] 7fc71f7 - AMDGPU: Support buffer_atomic_pk_add_bf16 for gfx950 (#117599)

2024-11-25 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-25T19:54:50-08:00 New Revision: 7fc71f79099b1556a57c9e96f7d62064dcff44d4 URL: https://github.com/llvm/llvm-project/commit/7fc71f79099b1556a57c9e96f7d62064dcff44d4 DIFF: https://github.com/llvm/llvm-project/commit/7fc71f79099b1556a57c9e96f7d62064dcff44d4.diff

[clang] [llvm] AMDGPU: Support buffer_atomic_pk_add_bf16 for gfx950 (PR #117599)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add encodings for minimum3/maximum3 f32 for gfx950 (PR #117600)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-25 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx edited https://github.com/llvm/llvm-project/pull/117108 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Support buffer_atomic_pk_add_bf16 for gfx950 (PR #117599)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117599 >From 312361ba142763030a18c350a70a84aaaf284857 Mon Sep 17 00:00:00 2001 From: Sirish Pande Date: Thu, 16 May 2024 16:21:42 -0500 Subject: [PATCH] AMDGPU: Support buffer_atomic_pk_add_bf16 for gfx950 Co-authored-

[clang] [llvm] AMDGPU: Add support for v_dot2c_f32_bf16 instruction for gfx950 (PR #117598)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 716364e - AMDGPU: Add support for v_dot2c_f32_bf16 instruction for gfx950 (#117598)

2024-11-25 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-25T19:51:01-08:00 New Revision: 716364ebd6649aeca8658680ebb8b0424d028006 URL: https://github.com/llvm/llvm-project/commit/716364ebd6649aeca8658680ebb8b0424d028006 DIFF: https://github.com/llvm/llvm-project/commit/716364ebd6649aeca8658680ebb8b0424d028006.diff

[clang] [llvm] AMDGPU: Support buffer_atomic_pk_add_bf16 for gfx950 (PR #117599)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types. (PR #117108)

2024-11-25 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx edited https://github.com/llvm/llvm-project/pull/117108 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_dot2c_f32_bf16 instruction for gfx950 (PR #117598)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117598 >From f603cf14e105b340f20f33e0efe392bda8559f68 Mon Sep 17 00:00:00 2001 From: Sirish Pande Date: Sat, 11 May 2024 11:54:40 -0500 Subject: [PATCH] AMDGPU: Add support for v_dot2c_f32_bf16 instruction for gfx950

[clang] [llvm] AMDGPU: Add support for v_dot2c_f32_bf16 instruction for gfx950 (PR #117598)

2024-11-25 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] aa7eb57 - AMDGPU: Add support for v_dot2_f32_bf16 instruction for gfx950 (#117597)

2024-11-25 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-25T19:47:48-08:00 New Revision: aa7eb5723cb4499f35ed1c5455f668ccc078e7c2 URL: https://github.com/llvm/llvm-project/commit/aa7eb5723cb4499f35ed1c5455f668ccc078e7c2 DIFF: https://github.com/llvm/llvm-project/commit/aa7eb5723cb4499f35ed1c5455f668ccc078e7c2.diff

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread via cfe-commits
https://github.com/tangaac updated https://github.com/llvm/llvm-project/pull/116764 >From 78e214321a273636f7cf4838f0b1ce04ba21d445 Mon Sep 17 00:00:00 2001 From: tangaac Date: Tue, 19 Nov 2024 15:04:29 +0800 Subject: [PATCH 1/4] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] in

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -5722,6 +5726,58 @@ bool LoongArchTargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info, } } +void LoongArchTargetLowering::emitExpandAtomicRMW(AtomicRMWInst *AI) const { SixWeining wrote: Please add some comments for this func and add a test (ir -> ir

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -118,6 +118,12 @@ def FeatureLAM_BH "Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions.">; def HasLAM_BH : Predicate<"Subtarget->hasLAM_BH()">; +// Assume div.w[u] and mod.w[u] can handle inputs that are not sign-extended. +def FeatureDiv3

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -0,0 +1,75 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc --mtriple=loongarch64 -mattr=+d,-div32 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch64 -mattr=+d,+div32 < %s | FileCheck %s --check-prefix=LA64-D

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
@@ -0,0 +1,75 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc --mtriple=loongarch64 -mattr=+d,-div32 < %s | FileCheck %s --check-prefix=LA64 +; RUN: llc --mtriple=loongarch64 -mattr=+d,+div32 < %s | FileCheck %s --check-prefix=LA64-D

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
https://github.com/SixWeining commented: Please remove the changes of #117298. https://github.com/llvm/llvm-project/pull/116764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

2024-11-25 Thread Lu Weining via cfe-commits
https://github.com/SixWeining edited https://github.com/llvm/llvm-project/pull/116764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-25 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/115657 >From 0c95051b617be8fd242e317c442a1881d5f28034 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Mon, 5 Aug 2024 11:59:52 +0800 Subject: [PATCH 1/4] [RISCV] Support `svukte` extension This is the extension for "A

[clang-tools-extra] [clang-tidy] Adjust size-empty doc because C++11 size() is constant-time (PR #117629)

2024-11-25 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: > In such case claim is still valid I think we should remove the discussion about efficient in claim since it is misleading after C++11. For self-defined container, because implement of empty and size can be totally different, this claim is still misleading. https://github

[clang] [llvm] [RISCV][SLEEF]: Support SLEEF vector library for RISC-V target. (PR #114014)

2024-11-25 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. Lgtm https://github.com/llvm/llvm-project/pull/114014 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Allow usage of applyFirst with rewriteDescendants (PR #117658)

2024-11-25 Thread via cfe-commits
SherAndrei wrote: @ymand, please review https://github.com/llvm/llvm-project/pull/117658 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Adjust size-empty doc because C++11 size() is constant-time (PR #117629)

2024-11-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: Please update `clang-tools-extra/docs/clang-tidy/checks/readability/container-size-empty.rst` also. https://github.com/llvm/llvm-project/pull/117629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang] [HLSL][NFC] Refactor resource buffers AST tests (PR #117659)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes This is a test-only change. This PR merges 5 tests for structured buffers ASTs into one file with multiple run lines and check prefixes because these tests have a lot of common output. It also renames RWBuffer

[clang] [HLSL][NFC] Refactor resource buffers AST tests (PR #117659)

2024-11-25 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/117659 This is a test-only change. This PR merges 5 tests for structured buffers ASTs into one file with multiple run lines and check prefixes because these tests have a lot of common output. It also renames RWBuffer-A

[clang] Allow usage of applyFirst with rewriteDescendants (PR #117658)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (SherAndrei) Changes Without these changes a clash appears between a Tag, which is bound to enclosing match, and a Tag, which is associated with first Case of applyFirst in rewriteDescendands. We fix this by making sure that associa

[clang] Allow usage of applyFirst with rewriteDescendants (PR #117658)

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

[clang] Allow usage of applyFirst with rewriteDescendants (PR #117658)

2024-11-25 Thread via cfe-commits
https://github.com/SherAndrei created https://github.com/llvm/llvm-project/pull/117658 Without these changes a clash appears between a Tag, which is bound to enclosing match, and a Tag, which is associated with first Case of applyFirst in rewriteDescendands. We fix this by making sure that as

[clang] [Driver] Support fprofile-sample-use= for CL (PR #117282)

2024-11-25 Thread Haohai Wen via cfe-commits
@@ -8484,6 +8484,9 @@ def _SLASH_fp_strict : CLFlag<"fp:strict">, HelpText<"">, Alias, A def _SLASH_fsanitize_EQ_address : CLFlag<"fsanitize=address">, HelpText<"Enable AddressSanitizer">, Alias, AliasArgs<["address"]>; +def : CLJoined<"fno-profile-sample-use">, Alias; ---

[clang] [compiler-rt] [llvm] [XRay][RISCV] RISCV support for XRay (PR #117368)

2024-11-25 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave edited https://github.com/llvm/llvm-project/pull/117368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Consider preferred_type in bitfield warnings (#116760) (PR #116785)

2024-11-25 Thread Oliver Hunt via cfe-commits
@@ -10509,14 +10516,18 @@ static bool AnalyzeBitFieldAssignment(Sema &S, FieldDecl *Bitfield, Expr *Init, ED->getNumPositiveBits() == FieldWidth) { DiagID = diag::warn_signed_bitfield_enum_conversion; } - + unsigned PreferredTypeDiagIndex =

[clang] [Clang] Consider preferred_type in bitfield warnings (#116760) (PR #116785)

2024-11-25 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @erichkeane @Fznamznon what should the release note be - just something akin to "added warning flag -W... to warn when bitfield packing differs from MSVC"? https://github.com/llvm/llvm-project/pull/116785 ___ cfe-commits mailing list cfe

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/117651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-25 Thread Phoebe Wang via cfe-commits
@@ -208,10 +209,34 @@ void llvm::setKCFIType(Module &M, Function &F, StringRef MangledType) { std::string Type = MangledType.str(); if (M.getModuleFlag("cfi-normalize-integers")) Type += ".normalized"; + + uint32_t OutHash = static_cast(llvm::xxHash64(Type)); + auto

[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

2024-11-25 Thread Helena Kotas via cfe-commits
@@ -343,27 +336,224 @@ struct TemplateParameterListBuilder { Params.clear(); QualType T = Builder.Template->getInjectedClassNameSpecialization(); -T = S.Context.getInjectedClassNameType(Builder.Record, T); +T = AST.getInjectedClassNameType(Builder.Record, T);

[clang] [clang] constexpr built-in elementwise popcount function. (PR #117473)

2024-11-25 Thread via cfe-commits
c8ef wrote: > Update LanguageExtensions.rst to mention __builtin_elementwise_popcount is > constexpr compatible Done. https://github.com/llvm/llvm-project/pull/117473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang] constexpr built-in elementwise popcount function. (PR #117473)

2024-11-25 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/117473 >From 95f2b6b0742b9b5b675f5d2f24aa4eb90c03b18c Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 24 Nov 2024 18:14:51 +0800 Subject: [PATCH 1/8] constexpr elementwise popcount --- clang/docs/ReleaseNotes.rst

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/117651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/117651 >From f24a87de48c42f310ee73ecf480ea2dcf631881f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Tue, 26 Nov 2024 00:33:09 + Subject: [PATCH 1/3] [ubsan] Change ubsan-unique-traps to use nomerge instead

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/117651 >From f24a87de48c42f310ee73ecf480ea2dcf631881f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Tue, 26 Nov 2024 00:33:09 + Subject: [PATCH 1/2] [ubsan] Change ubsan-unique-traps to use nomerge instead

[clang] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 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 fe3c23b439b9a2d00442d9bc6a4ca86f73066a3d f24a87de48c42f310ee73ecf480ea2dcf631881f --e

[clang] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/117651 https://github.com/llvm/llvm-project/pull/65972 (continuation of https://reviews.llvm.org/D148654) had considered adding nomerge to ubsantrap, but did not proceed with that because of https://github.com/llvm

[clang] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Thurston Dang (thurstond) Changes https://github.com/llvm/llvm-project/pull/65972 (continuation of https://reviews.llvm.org/D148654) had considered adding nomerge to ubsantrap, but did not proceed with that because of https://git

[clang] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes https://github.com/llvm/llvm-project/pull/65972 (continuation of https://reviews.llvm.org/D148654) had considered adding nomerge to ubsantrap, but did not proceed with that because of https://github.com/

[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

2024-11-25 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm edited https://github.com/llvm/llvm-project/pull/117573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

2024-11-25 Thread Paul Osmialowski via cfe-commits
@@ -0,0 +1 @@ +-ffast-math -lm -lhappy pawosm-arm wrote: yes https://github.com/llvm/llvm-project/pull/117573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [NFC][clang] Add ubsan-trap-merge.c test to show absence of nomerge (PR #117649)

2024-11-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes This test (copied from https://github.com/llvm/llvm-project/pull/83470) demonstrates that UBSan does not add the nomerge annotation. This is significant because it results in them being merged by the back

[clang] [NFC][clang] Add ubsan-trap-merge.c test to show absence of nomerge (PR #117649)

2024-11-25 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/117649 This test (copied from https://github.com/llvm/llvm-project/pull/83470) demonstrates that UBSan does not add the nomerge annotation. This is significant because it results in them being merged by the backend.

[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

2024-11-25 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: > I think it makes sense to handle linker options differently so I'm in favour > of this change in principle. > > Am I right in thinking that if the config file puts things last, the `-l` > options provided by users will come before the config file ones, and unlike > other o

[clang] [NFC][HLSL] Allow target intrinsic switching to optionally be set. (PR #117648)

2024-11-25 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/117648 >From 15b31c3528de5a955b465da2ab2699070628e64f Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Mon, 25 Nov 2024 19:04:47 -0500 Subject: [PATCH] [NFC] Allow target intrinsic switching to optionally be set. ---

[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

2024-11-25 Thread Paul Osmialowski via cfe-commits
@@ -61,3 +61,22 @@ ! CHECK-TWO-CONFIGS-NEXT: Configuration file: {{.*}}Inputs{{.}}config2{{.}}config-4.cfg ! CHECK-TWO-CONFIGS: -ffp-contract=fast ! CHECK-TWO-CONFIGS: -O3 + +!--- The -l flags should be moved to the end of input list and appear only when linking. +! RUN: %fla

[clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)

2024-11-25 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm updated https://github.com/llvm/llvm-project/pull/117573 >From 2acf432b48c275492d9c5d012e85da36750c9299 Mon Sep 17 00:00:00 2001 From: Pawel Osmialowski Date: Mon, 25 Nov 2024 14:46:55 + Subject: [PATCH] [clang][driver] Special care for -l and -Wl, flags in con

[clang] [NFC][HLSL] Allow target intrinsic switching to optionally be set. (PR #117648)

2024-11-25 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/117648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >