[Lldb-commits] [PATCH] D123582: [lldb][AArch64] Automatically add all extensions to disassembler
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 12 05:31:48 PDT 2022
This revision was automatically updated to reflect the committed changes.
DavidSpickett marked an inline comment as done.
Closed by commit rG0231a90bc438: [lldb][AArch64] Automatically add all extensions to disassembler (authored by DavidSpickett).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123582/new/
https://reviews.llvm.org/D123582
Files:
lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
Index: lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
===================================================================
--- lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
+++ lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
@@ -10,6 +10,7 @@
#include "llvm-c/Disassembler.h"
#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
@@ -22,6 +23,7 @@
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/MC/TargetRegistry.h"
+#include "llvm/Support/AArch64TargetParser.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/TargetSelect.h"
@@ -1177,12 +1179,13 @@
features_str += "+dspr2,";
}
- // If any AArch64 variant, enable latest ISA with any optional
- // extensions like MTE.
+ // If any AArch64 variant, enable latest ISA with all extensions.
if (triple.isAArch64()) {
- features_str += "+v9.3a,+mte,+sm4,+sha2,+sha3,+aes,+fp16fml,+sve2-aes,+"
- "sve2-sm4,+sve2-sha3,+sve2-bitperm,+f32mm,+f64mm,+tme,+"
- "ls64,+sme,+sme-f64,+sme-i64,+spe,+rand,+brbe";
+ features_str += "+v9.3a,";
+ std::vector<llvm::StringRef> features;
+ // Get all possible features
+ llvm::AArch64::getExtensionFeatures(-1, features);
+ features_str += llvm::join(features, ",");
if (triple.getVendor() == llvm::Triple::Apple)
cpu = "apple-latest";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123582.422192.patch
Type: text/x-patch
Size: 1585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220412/b5ef1eaa/attachment.bin>
More information about the lldb-commits
mailing list