[llvm] Store sysreg names in-line with their descriptors. (PR #119157)

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 03:31:11 PST 2024


================
@@ -700,8 +700,8 @@ AArch64StringToVectorLayout(StringRef LayoutStr) {
 
 namespace AArch64SysReg {
   struct SysReg {
-    const char *Name;
-    const char *AltName;
+    const char Name[32];
----------------
chandlerc wrote:

Under the hood, a `StringLiteral` is still a pointer and a size, and the pointer has to be dynamically relocated so it won't achieve the goal of the PR.

https://github.com/llvm/llvm-project/pull/119157


More information about the llvm-commits mailing list