[llvm-branch-commits] [mlir] [mlir] Improve EnumProp, making it take an EnumInfo (PR #132349)

2025-03-20 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-core Author: Krzysztof Drewniak (krzysz00) Changes This commit improves the `EnumProp` class, causing it to wrap around an `EnumInfo` just like` EnumAttr` does. This EnumProp also has logic for converting to/from an integer attribute and for being

[llvm-branch-commits] [mlir] [mlir] Improve EnumProp, making it take an EnumInfo (PR #132349)

2025-03-20 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-ods Author: Krzysztof Drewniak (krzysz00) Changes This commit improves the `EnumProp` class, causing it to wrap around an `EnumInfo` just like` EnumAttr` does. This EnumProp also has logic for converting to/from an integer attribute and for being

[llvm-branch-commits] [mlir] [mlir] Improve EnumProp, making it take an EnumInfo (PR #132349)

2025-03-20 Thread Krzysztof Drewniak via llvm-branch-commits
https://github.com/krzysz00 created https://github.com/llvm/llvm-project/pull/132349 This commit improves the `EnumProp` class, causing it to wrap around an `EnumInfo` just like` EnumAttr` does. This EnumProp also has logic for converting to/from an integer attribute and for being read and wri

[llvm-branch-commits] [clang] [clang-tools-extra] [clang][HeuristicResolver] Default argument heuristic for template parameters (PR #131074)

2025-03-20 Thread Nathan Ridge via llvm-branch-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/131074 >From 9530a2186f46fa852021a67c17d06085360d5b9c Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 13 Mar 2025 01:23:03 -0400 Subject: [PATCH] [clang][HeuristicResolver] Default argument heuristic for

[llvm-branch-commits] [flang] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host constructs (PR #127633)

2025-03-20 Thread Kareem Ergawy via llvm-branch-commits
ergawy wrote: The same issue (requesting reviews from an enormous amounts of people) happened here as well. No idea why. I just did a simple rebase on `main`. Apologies for the noise once more. https://github.com/llvm/llvm-project/pull/127633 ___ llv

[llvm-branch-commits] [flang] [flang][OpenMP] Handle "loop-local values" in `do concurrent` nests (PR #127635)

2025-03-20 Thread Kareem Ergawy via llvm-branch-commits
ergawy wrote: I have no idea how the PR requested reviews from all these poeple!!! Sorry for the noise. https://github.com/llvm/llvm-project/pull/127635 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi

[llvm-branch-commits] [flang] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host constructs (PR #127633)

2025-03-20 Thread Kareem Ergawy via llvm-branch-commits
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/127633 >From f6a61dc9d383f19fa1cf38173829f2a732a4d544 Mon Sep 17 00:00:00 2001 From: ergawy Date: Tue, 18 Feb 2025 02:50:46 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host con

[llvm-branch-commits] [flang] [flang][OpenMP] Extend `do concurrent` mapping to multi-range loops (PR #127634)

2025-03-20 Thread Kareem Ergawy via llvm-branch-commits
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/127634 >From 4515ac1a9f1a3efe94c902b7882400d04d25d4e8 Mon Sep 17 00:00:00 2001 From: ergawy Date: Tue, 18 Feb 2025 06:17:17 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Extend `do concurrent` mapping to multi-range loops

[llvm-branch-commits] [llvm] release/20.x: [hexagon] Prevent alignment search beyond a label (#130631) (PR #132336)

2025-03-20 Thread Brian Cain via llvm-branch-commits
https://github.com/androm3da approved this pull request. https://github.com/llvm/llvm-project/pull/132336 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [hexagon] Prevent alignment search beyond a label (#130631) (PR #132336)

2025-03-20 Thread via llvm-branch-commits
llvmbot wrote: @androm3da What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/132336 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Zhaoxin Yang via llvm-branch-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/123680 >From 0f580567169ffbf1546a5389ab4b9f7d1fc07c71 Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Thu, 2 Jan 2025 20:58:56 +0800 Subject: [PATCH 1/8] Convert TLS IE to LE in the normal or medium code model. Origina

[llvm-branch-commits] [llvm] [BOLT][NFC] Define AArch64 jump table types (PR #132109)

2025-03-20 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-bolt Author: Amir Ayupov (aaupov) Changes Define new JumpTable types for AArch64 based on definitions used in LLVM: https://github.com/llvm/llvm-project/blob/335a4614dee4123ff4f86e6400fc6a305766e227/llvm/lib/Target/AArch64/AArch64InstrInfo.td#L1217-L122

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Zhaoxin Yang via llvm-branch-commits
@@ -1002,6 +1008,87 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [llvm] release/20.x: [HEXAGON] Add support to lower "FREEZE a half(f16)" instruction on Hexagon and fix the isel-buildvector-v2f16.ll assertion (#130977) (PR #132138)

2025-03-20 Thread Tom Stellard via llvm-branch-commits
tstellar wrote: > Assuming it's safe to define a new override for `softPromoteHalfType()` in a > new 20.x release, this LGTM. It's fine, but also it's a non-public header, so it wouldn't matter any way. https://github.com/llvm/llvm-project/pull/132138 __

[llvm-branch-commits] [llvm] Bump version to 20.1.2 (PR #132293)

2025-03-20 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/132293 None >From 10ade7a5d4567202ad7d9d0e29feb356c1d1372d Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 20 Mar 2025 15:02:33 -0700 Subject: [PATCH] Bump version to 20.1.2 --- cmake/Modules/LLVMVersion.cma

[llvm-branch-commits] [clang-tools-extra] [clang-doc][NFC] Remove unnecessary directory cleanup (PR #132101)

2025-03-20 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/132101?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] libcxx: In gdb test detect execute_mi with feature check instead of version check. (PR #132291)

2025-03-20 Thread via llvm-branch-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 46fb4c42cb77909ac86bfec701bfaca288eba33c...b4bcfb2ae2fd41636a7da4986b1da3da6cb31b60 libcx

[llvm-branch-commits] [llvm] release/20.x: [PowerPC] Support conversion between f16 and f128 (#130158) (PR #132049)

2025-03-20 Thread Alex Rønne Petersen via llvm-branch-commits
https://github.com/alexrp approved this pull request. https://github.com/llvm/llvm-project/pull/132049 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [BOLT][NFC] Pre-disasm metadata rewriters (PR #132113)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov edited https://github.com/llvm/llvm-project/pull/132113 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT][NFC] Define AArch64 jump table types (PR #132109)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov ready_for_review https://github.com/llvm/llvm-project/pull/132109 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT][NFC] Define AArch64 jump table types (PR #132109)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov edited https://github.com/llvm/llvm-project/pull/132109 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [BOLT][NFC] Pass JumpTable to analyzeJumpTable (PR #132110)

2025-03-20 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-bolt Author: Amir Ayupov (aaupov) Changes Optional arguments of `analyzeJumpTable` (`EntriesAsAddress` and `HasEntryInFragment`) are attributes of a JumpTable class. Instead of passing them separately, accept a pointer to `JumpTable`. #132114 is a follo

[llvm-branch-commits] [BOLT][NFC] Pass JumpTable to analyzeJumpTable (PR #132110)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov ready_for_review https://github.com/llvm/llvm-project/pull/132110 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [BOLT][NFC] Pass JumpTable to analyzeJumpTable (PR #132110)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov edited https://github.com/llvm/llvm-project/pull/132110 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Correct improper file paths in HTML output (PR #132103)

2025-03-20 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: ### Merge activity * **Mar 20, 5:02 PM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/132103). https://github.com/llvm/llvm-project/pull/132103

[llvm-branch-commits] [clang] 9d96ab9 - Revert "[clang] NFC: Clear some uses of MemberPointerType::getClass (#131965)"

2025-03-20 Thread via llvm-branch-commits
Author: Matheus Izvekov Date: 2025-03-20T17:53:19-03:00 New Revision: 9d96ab9704ba87c81e71d7b26095b68b2ca8aa80 URL: https://github.com/llvm/llvm-project/commit/9d96ab9704ba87c81e71d7b26095b68b2ca8aa80 DIFF: https://github.com/llvm/llvm-project/commit/9d96ab9704ba87c81e71d7b26095b68b2ca8aa80.dif

[llvm-branch-commits] [libcxxabi] [release/18.x][backport][libc++abi] Use __has_feature check to enable usage of thread_local for exception storage (PR #132241)

2025-03-20 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne closed https://github.com/llvm/llvm-project/pull/132241 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: refactor analysis of RET instructions (PR #131897)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131897 >From 00d2c847edfe93465587e3931e2bc805028f355b Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 19:28:25 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: refactor analysis of RET in

[llvm-branch-commits] [llvm] [BOLT] Skip out-of-range pending relocations (PR #116964)

2025-03-20 Thread Paschalis Mpeis via llvm-branch-commits
https://github.com/paschalis-mpeis converted_to_draft https://github.com/llvm/llvm-project/pull/116964 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: streamline issue reporting (PR #131896)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
@@ -480,28 +481,43 @@ static void printBB(const BinaryContext &BC, const BinaryBasicBlock *BB, static void reportFoundGadgetInSingleBBSingleOverwInst( raw_ostream &OS, const BinaryContext &BC, const MCInstReference OverwInst, -const MCInstReference RetInst) { - Binar

[llvm-branch-commits] [llvm] [SDAG] Introduce inbounds flag for pointer arithmetic (PR #131862)

2025-03-20 Thread Eli Friedman via llvm-branch-commits
efriedma-quic wrote: > with respect to whatever the address operand is pointing to Say you have two adjacent objects `a` and `b`. So `&a+1 == &b`. If you have an integer `x` such that `x == &a+1 == &b`, which object is `x` pointing to? In some cases, you might be able to disambiguate based o

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: reformulate the state for data-flow analysis (PR #131898)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131898 >From b0a9955a9af939019a1e720c3d78e7c07ece7a02 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 22:27:53 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: reformulate the state for d

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect non-protected indirect calls (PR #131899)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131899 >From f2b0aece24f35199e88b37ed8d6a6f96ee4b6b26 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 18 Mar 2025 21:32:11 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: detect non-protected indirec

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: reformulate the state for data-flow analysis (PR #131898)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131898 >From b0a9955a9af939019a1e720c3d78e7c07ece7a02 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 22:27:53 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: reformulate the state for d

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: refactor analysis of RET instructions (PR #131897)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131897 >From 136dc3d8728a3511bd524d416059c289f0118100 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 19:28:25 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: refactor analysis of RET in

[llvm-branch-commits] [llvm] [BOLT][NFC] Define AArch64 jump table types (PR #132109)

2025-03-20 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/132109 >From fda61935133623f207bf4e59af4291e31121ae60 Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Thu, 20 Mar 2025 08:45:44 -0700 Subject: [PATCH] Untangle changes Created using spr 1.3.4 --- bolt/lib/Core/Binary

[llvm-branch-commits] [libcxxabi] [release/18.x][backport][libc++abi] Use __has_feature check to enable usage of thread_local for exception storage (PR #132241)

2025-03-20 Thread Bushev Dmitry via llvm-branch-commits
https://github.com/dybv-sc created https://github.com/llvm/llvm-project/pull/132241 This is a backport of original commit #97591 to 18.x release. >From 881b155a6a432cd8caf96076ed8d53bd6ac029fb Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 8 Jul 2024 15:20:21 -0500 Subject: [PATCH] [li

[llvm-branch-commits] [llvm] release/20.x: [HEXAGON] Add support to lower "FREEZE a half(f16)" instruction on Hexagon and fix the isel-buildvector-v2f16.ll assertion (#130977) (PR #132138)

2025-03-20 Thread Brian Cain via llvm-branch-commits
https://github.com/androm3da approved this pull request. Assuming it's safe to define a new override for `softPromoteHalfType()` in a new 20.x release, this LGTM. https://github.com/llvm/llvm-project/pull/132138 ___ llvm-branch-commits mailing list ll

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: refactor analysis of RET instructions (PR #131897)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131897 >From 01cc7eef9495cf0d0dc14641fccb5b944bcf03b8 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 19:28:25 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: refactor analysis of RET in

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect non-protected indirect calls (PR #131899)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131899 >From 317a2d79f2b810be89f11fcf7afaa6f92c245e61 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 18 Mar 2025 21:32:11 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: detect non-protected indirec

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: streamline issue reporting (PR #131896)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131896 >From 4af05a4981ec82dd0bce922725ee5b0f72ff8c9b Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 18:21:30 +0300 Subject: [PATCH 1/3] [BOLT] Gadget scanner: streamline issue reporting

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: refactor analysis of RET instructions (PR #131897)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131897 >From 01cc7eef9495cf0d0dc14641fccb5b944bcf03b8 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 19:28:25 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: refactor analysis of RET in

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: reformulate the state for data-flow analysis (PR #131898)

2025-03-20 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/131898 >From da27c6c3ddaf09a97fff98365b457eb1e86828b0 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Mon, 17 Mar 2025 22:27:53 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: reformulate the state for d

[llvm-branch-commits] [BOLT][AArch64] Add jump table support using .llvm_jump_table_info (PR #132114)

2025-03-20 Thread Alexey Moksyakov via llvm-branch-commits
@@ -704,7 +713,10 @@ void BinaryContext::populateJumpTables() { uint64_t NextJTAddress = 0; auto NextJTI = std::next(JTI); -if (NextJTI != JTE) +if (isAArch64()) { yavtuk wrote: here can be a gap between JT, it's better to check $d symbol or n

[llvm-branch-commits] [BOLT][AArch64] Add jump table support using .llvm_jump_table_info (PR #132114)

2025-03-20 Thread Alexey Moksyakov via llvm-branch-commits
https://github.com/yavtuk edited https://github.com/llvm/llvm-project/pull/132114 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1002,6 +1008,89 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread via llvm-branch-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 9d29d9bbeb0695ec90e79017ed0fd420c073e47e 46f34a90ae7ca02fd57b59a0c38c570d0627f27f --e

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
https://github.com/SixWeining commented: Seem that the commit message has some typo. ``` The code sequence converted is as follows: lu12i.w $a0, %ie_pc_hi20(sym) # le_hi20 != 0, otherwise NOP ori $a0 $a0, %ie_pc_lo12(sym) ``` `%ie_pc_hi20` should be `%le_hi20`, right? And the source register

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1375,14 +1375,20 @@ unsigned RelocationScanner::handleTlsRelocation(RelExpr expr, RelType type, return 1; } + // LoongArch support IE to LE optimization in non-extreme code model. SixWeining wrote: ```suggestion // LoongArch supports IE to LE op

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1002,6 +1008,87 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1002,6 +1008,87 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
https://github.com/SixWeining edited https://github.com/llvm/llvm-project/pull/123680 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1002,6 +1008,87 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -0,0 +1,70 @@ +# REQUIRES: loongarch +## Test LA64 IE -> LE in various cases. + +# RUN: llvm-mc --filetype=obj --triple=loongarch64 -mattr=+relax %s -o %t.o + +## FIXME: IE relaxation has not yet been implemented. +## --relax/--no-relax has the same result. Also check --emit-re

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1002,6 +1008,87 @@ static bool relax(Ctx &ctx, InputSection &sec) { return changed; } +// Convert TLS IE to LE in the normal or medium code model. +// Original code sequence: +// * pcalau12i $a0, %ie_pc_hi20(sym) +// * ld.d $a0, $a0, %ie_pc_lo12(sym) +// +// The c

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-20 Thread Lu Weining via llvm-branch-commits
@@ -1375,14 +1375,20 @@ unsigned RelocationScanner::handleTlsRelocation(RelExpr expr, RelType type, return 1; } + // LoongArch support IE to LE optimization in non-extreme code model. + bool execOptimizeInLoongArch = + ctx.arg.emachine == EM_LOONGARCH && + (

[llvm-branch-commits] [llvm] [AMDGPU] Prevent SI_CS_CHAIN instruction from giving registers classes in generic instructions (PR #131329)

2025-03-20 Thread Diana Picus via llvm-branch-commits
rovka wrote: Oh, oops, I think this got closed automatically when I merged my branch into main. Can you please reopen and update the branch to main? Thanks! https://github.com/llvm/llvm-project/pull/131329 ___ llvm-branch-commits mailing list llvm-bra