[llvm] [AArch64][NFC] Avoid relocations in LdStNInstrDesc (PR #202025)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 03:18:14 PDT 2026
https://github.com/aengelke created https://github.com/llvm/llvm-project/pull/202025
These are small strings, so instead of an 8 byte string pointer that
needs a relocation store the strings directly inline. This avoids 320
relocations in libLLVM.so.
>From db8555133937de4a3dc11535768ef5db8fae3ecf Mon Sep 17 00:00:00 2001
From: Alexis Engelke <engelke at in.tum.de>
Date: Sat, 6 Jun 2026 10:17:37 +0000
Subject: [PATCH] [spr] initial version
Created using spr 1.3.8-wip
---
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
index 2df769539960d..4e4b58839778b 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
@@ -421,8 +421,8 @@ static bool isTblTbxInstruction(unsigned Opcode, StringRef &Layout,
struct LdStNInstrDesc {
unsigned Opcode;
- const char *Mnemonic;
- const char *Layout;
+ char Mnemonic[6];
+ char Layout[6];
int ListOperand;
bool HasLane;
int NaturalOffset;
More information about the llvm-commits
mailing list