Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / ABI / AArch64 / ABIAArch64.h
blob52e42f1260a831ed1c0fdb4051af3d8f66a5310f
1 //===-- AArch64.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_ABI_AARCH64_ABIAARCH64_H
10 #define LLDB_SOURCE_PLUGINS_ABI_AARCH64_ABIAARCH64_H
12 #include "lldb/Target/ABI.h"
14 class ABIAArch64 : public lldb_private::MCBasedABI {
15 public:
16 static void Initialize();
17 static void Terminate();
19 lldb::addr_t FixCodeAddress(lldb::addr_t pc) override;
20 lldb::addr_t FixDataAddress(lldb::addr_t pc) override;
22 protected:
23 virtual lldb::addr_t FixAddress(lldb::addr_t pc, lldb::addr_t mask) {
24 return pc;
27 std::pair<uint32_t, uint32_t>
28 GetEHAndDWARFNums(llvm::StringRef name) override;
30 std::string GetMCName(std::string reg) override;
32 uint32_t GetGenericNum(llvm::StringRef name) override;
34 void AugmentRegisterInfo(
35 std::vector<lldb_private::DynamicRegisterInfo::Register> &regs) override;
37 using lldb_private::MCBasedABI::MCBasedABI;
39 #endif