[C++20][modules] Fix std::initializer_list recognition if it's exported out of a...
[llvm-project.git] / lldb / source / Plugins / Architecture / AArch64 / ArchitectureAArch64.h
blobba409428c951ee768e3766d00aa9b1f55e7bc3b2
1 //===-- ArchitectureAArch64.h -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_ARCHITECTURE_AARCH64_ARCHITECTUREAARCH64_H
10 #define LLDB_SOURCE_PLUGINS_ARCHITECTURE_AARCH64_ARCHITECTUREAARCH64_H
12 #include "Plugins/Process/Utility/MemoryTagManagerAArch64MTE.h"
13 #include "lldb/Core/Architecture.h"
15 namespace lldb_private {
17 class ArchitectureAArch64 : public Architecture {
18 public:
19 static llvm::StringRef GetPluginNameStatic() { return "aarch64"; }
20 static void Initialize();
21 static void Terminate();
23 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
25 void OverrideStopInfo(Thread &thread) const override {}
27 const MemoryTagManager *GetMemoryTagManager() const override {
28 return &m_memory_tag_manager;
31 bool
32 RegisterWriteCausesReconfigure(const llvm::StringRef name) const override {
33 // lldb treats svg as read only, so only vg can be written. This results in
34 // the SVE registers changing size.
35 return name == "vg";
38 bool ReconfigureRegisterInfo(DynamicRegisterInfo &reg_info,
39 DataExtractor &reg_data,
40 RegisterContext &reg_context) const override;
42 private:
43 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
44 ArchitectureAArch64() = default;
45 MemoryTagManagerAArch64MTE m_memory_tag_manager;
48 } // namespace lldb_private
50 #endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_AARCH64_ARCHITECTUREAARCH64_H