@@ -18,6 +18,6 @@
.globl _start
_start:
.data
- .word foo@PLT - .
- .word foo@PLT - . + 1
- .word foo@PLT - . - 1
+ .word %plt(foo - .)
jrtc27 wrote:
We have %(got_)pcrel_hi and now %gotpcrel, what's so different about this one?
https://github.com/llvm/ll
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -18,6 +18,6 @@
.globl _start
_start:
.data
- .word foo@PLT - .
- .word foo@PLT - . + 1
- .word foo@PLT - . - 1
+ .word %plt(foo - .)
MaskRay wrote:
It's challenging to use an inherent PC-relative specifier (e.g. `%pltpcrel`;
which I actually thought ab
llvmbot wrote:
@llvm/pr-subscribers-backend-risc-v
Author: Fangrui Song (MaskRay)
Changes
clang -fexperimental-relative-c++-abi-vtables might generate @plt and
@gotpcrel specifiers in data directives. The syntax is not used in
humand-written assembly code, and is not supported by GNU assem
@@ -18,6 +18,6 @@
.globl _start
_start:
.data
- .word foo@PLT - .
- .word foo@PLT - . + 1
- .word foo@PLT - . - 1
+ .word %plt(foo - .)
jrtc27 wrote:
Yeah, I know, but it's pretty weird and confusing syntax. It's not really
written that way because it mak
@@ -18,6 +18,6 @@
.globl _start
_start:
.data
- .word foo@PLT - .
- .word foo@PLT - . + 1
- .word foo@PLT - . - 1
+ .word %plt(foo - .)
MaskRay wrote:
The core principle is that relocation specifiers must operate on the full
expression, not just a part of
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/MaskRay updated
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/MaskRay updated
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/zyn0217 approved this pull request.
Thanks for following up on it, this looks great.
Please flesh out the PR body before you commit, with the reason you said in
https://github.com/llvm/llvm-project/pull/132576#issuecomment-2745944724.
(Just a copy-paste is good enough)
https
https://github.com/HighCommander4 edited
https://github.com/llvm/llvm-project/pull/132576
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
HighCommander4 wrote:
This is a follow-up to https://github.com/llvm/llvm-project/pull/131074. After
moving the default argument heuristic to `simplifyType` as per [this
discussion](https://github.com/llvm/llvm-project/pull/131074#discussion_r2006918564),
I realized that this made it no longer
https://github.com/HighCommander4 created
https://github.com/llvm/llvm-project/pull/132576
None
>From ea949861a4b03123d7784fe5ef3bc1fe2f3cf2cd Mon Sep 17 00:00:00 2001
From: Nathan Ridge
Date: Sat, 22 Mar 2025 20:54:02 -0400
Subject: [PATCH] [clang][HeuristicResolver] Apply default argument he
HighCommander4 wrote:
(Rebased)
https://github.com/llvm/llvm-project/pull/132576
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/HighCommander4 updated
https://github.com/llvm/llvm-project/pull/132576
>From 2c9fc17bf2ef28c42df472598e4b7d09297cb668 Mon Sep 17 00:00:00 2001
From: Nathan Ridge
Date: Sat, 22 Mar 2025 20:54:02 -0400
Subject: [PATCH] [clang][HeuristicResolver] Apply default argument heuristi
@@ -18,6 +18,6 @@
.globl _start
_start:
.data
- .word foo@PLT - .
- .word foo@PLT - . + 1
- .word foo@PLT - . - 1
+ .word %plt(foo - .)
jrtc27 wrote:
Would `%plt(foo) - .` not be the saner syntax? PLT of an offset is a bit
nonsensical...
https://github.c
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Nathan Ridge (HighCommander4)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/132576.diff
3 Files Affected:
- (modified) clang-tools-extra/clangd/unittests/XRefsTests.cpp (+1-1)
- (modified) clang/lib/Sema/HeuristicRe
@@ -7,76 +7,96 @@
//===--===//
//
// This file contains instruction formats, definitions and patterns needed for
-// VIS, VIS II, VIS II instructions on SPARC.
+// VIS, VIS II, VIS III instructions on SPARC.
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -1,4 +1,237 @@
-! RUN: llvm-mc %s -triple=sparcv9 -mcpu=niagara -show-encoding | FileCheck %s
+! RUN: not llvm-mc %s -triple=sparcv9 -show-encoding 2>&1 | FileCheck %s
--check-prefixes=NO-VIS
MaskRay wrote:
might want `--implicit-check-not=error:` to ensure t
https://github.com/MaskRay created
https://github.com/llvm/llvm-project/pull/132569
clang -fexperimental-relative-c++-abi-vtables might generate @plt and
@gotpcrel specifiers in data directives. The syntax is not used in
humand-written assembly code, and is not supported by GNU assembler.
Note:
@@ -1194,18 +1194,34 @@ const MCExpr
*TargetLoweringObjectFileELF::lowerRelativeReference(
MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext());
MaskRay wrote:
`lowerRelativeReference` uses MCSymbolRefExpr. It seems legacy (probably sho
llvmbot wrote:
@llvm/pr-subscribers-github-workflow
Author: Aiden Grossman (boomanaiden154)
Changes
This helps keep things up to date, and should not cause any issues given we do
not need to care about binary compatibility for things built in the CI
container. This patch also changes the n
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/132569
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -7,76 +7,96 @@
//===--===//
//
// This file contains instruction formats, definitions and patterns needed for
-// VIS, VIS II, VIS II instructions on SPARC.
+// VIS, VIS II, VIS III instructions on SPARC.
https://github.com/boomanaiden154 created
https://github.com/llvm/llvm-project/pull/132568
This helps keep things up to date, and should not cause any issues given we do
not need to care about binary compatibility for things built in the CI
container. This patch also changes the name of the cont
petar-avramovic 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/132382?utm_source=stack-comment-downstack-mergeability-w
@@ -82,6 +82,8 @@ def UseDeprecatedInsts :
Predicate<"Subtarget->useV8DeprecatedInsts()">;
// Instruction Pattern Stuff
//===--===//
+def siam_mode : PatLeaf<(imm), [{ return isUInt<3>(N->getZExtValue()); }]
https://github.com/s-barannikov approved this pull request.
https://github.com/llvm/llvm-project/pull/130967
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -7,76 +7,96 @@
//===--===//
//
// This file contains instruction formats, definitions and patterns needed for
-// VIS, VIS II, VIS II instructions on SPARC.
+// VIS, VIS II, VIS III instructions on SPARC.
llvmbot wrote:
@llvm/pr-subscribers-pgo
Author: None (llvmbot)
Changes
Backport 94426df66a8d7c2321f9e197e5ef9636b0d5ce70
Requested by: @j-hui
---
Full diff: https://github.com/llvm/llvm-project/pull/132506.diff
1 Files Affected:
- (modified) compiler-rt/test/profile/instrprof-darwin-e
https://github.com/matthias-springer created
https://github.com/llvm/llvm-project/pull/132547
The runtime verification code used to verify that the result of a
`memref.reinterpret_cast` is in-bounds with respect to the source memref. This
is incorrect: `memref.reinterpret_cast` allows users to
https://github.com/matthias-springer edited
https://github.com/llvm/llvm-project/pull/132547
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
llvmbot wrote:
@llvm/pr-subscribers-mlir-memref
Author: Matthias Springer (matthias-springer)
Changes
The runtime verification code used to verify that the result of a
`memref.reinterpret_cast` is in-bounds with respect to the source memref. This
is incorrect: `memref.reinterpret_cast` a
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/131994
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
arsenm wrote:
> I tried it but the DAG immediately transforms (and x, 0xFF) into a zext and
> it seems pretty stubborn about it as it's a basic transform.
Then isUnneededShiftMask should probably recognize more forms of the pattern.
I'd assume this only forms the zext if it is legal
https://g
llvmbot wrote:
@llvm/pr-subscribers-bolt
Author: Anatoly Trosinenko (atrosinenko)
Changes
In addition to authenticated pointers, consider the contents of a
register safe if it was
* written by PC-relative address computation
* updated by an arithmetic instruction whose input address is saf
https://github.com/atrosinenko ready_for_review
https://github.com/llvm/llvm-project/pull/132540
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/atrosinenko updated
https://github.com/llvm/llvm-project/pull/132540
>From b79f18b92219916d47f134bf9a3da83889b69f4d Mon Sep 17 00:00:00 2001
From: Anatoly Trosinenko
Date: Thu, 20 Mar 2025 20:15:07 +0300
Subject: [PATCH] [BOLT] Gadget scanner: Detect address materialization a
atrosinenko 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/132540?utm_source=stack-comment-downstack-mergeability-warni
https://github.com/atrosinenko created
https://github.com/llvm/llvm-project/pull/132540
In addition to authenticated pointers, consider the contents of a
register safe if it was
* written by PC-relative address computation
* updated by an arithmetic instruction whose input address is safe
>From
https://github.com/matthias-springer edited
https://github.com/llvm/llvm-project/pull/131876
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/129781
>From 072c44f0f9272682480cc2837196a906bd694276 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 28 Feb 2025 14:41:56 -0800
Subject: [PATCH 1/2] [CodeGen][StaticDataSplitter]Support constant pool
parti
llvmbot wrote:
@llvm/pr-subscribers-bolt
Author: Amir Ayupov (aaupov)
Changes
We need a hook for metadata rewriters after functions are identified
but before functions are disassembled. Currently we only have
section rewriters (after storage is discovered but before functions
are identifie
https://github.com/mizvekov updated
https://github.com/llvm/llvm-project/pull/132442
>From 67a09813823003681954b0fa9adeeb834ec4e576 Mon Sep 17 00:00:00 2001
From: Matheus Izvekov
Date: Mon, 30 May 2022 01:46:31 +0200
Subject: [PATCH] [clang] Template Specialization Resugaring - Template Type
A
46 matches
Mail list logo