Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / elf-core / RegisterContextPOSIXCore_ppc64le.h
blob8de77a7e25bff009d329dc1f9c2d9d8a3608c818
1 //===-- RegisterContextPOSIXCore_ppc64le.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_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_PPC64LE_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_PPC64LE_H
12 #include "Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h"
13 #include "Plugins/Process/elf-core/RegisterUtilities.h"
14 #include "lldb/Utility/DataExtractor.h"
16 class RegisterContextCorePOSIX_ppc64le : public RegisterContextPOSIX_ppc64le {
17 public:
18 RegisterContextCorePOSIX_ppc64le(
19 lldb_private::Thread &thread,
20 lldb_private::RegisterInfoInterface *register_info,
21 const lldb_private::DataExtractor &gpregset,
22 llvm::ArrayRef<lldb_private::CoreNote> notes);
24 bool ReadRegister(const lldb_private::RegisterInfo *reg_info,
25 lldb_private::RegisterValue &value) override;
27 bool WriteRegister(const lldb_private::RegisterInfo *reg_info,
28 const lldb_private::RegisterValue &value) override;
30 protected:
31 size_t GetFPRSize() const;
33 size_t GetVMXSize() const;
35 size_t GetVSXSize() const;
37 private:
38 lldb::DataBufferSP m_gpr_buffer;
39 lldb::DataBufferSP m_fpr_buffer;
40 lldb::DataBufferSP m_vmx_buffer;
41 lldb::DataBufferSP m_vsx_buffer;
42 lldb_private::DataExtractor m_gpr;
43 lldb_private::DataExtractor m_fpr;
44 lldb_private::DataExtractor m_vmx;
45 lldb_private::DataExtractor m_vsx;
48 #endif // LLDB_SOURCE_PLUGINS_PROCESS_ELF_CORE_REGISTERCONTEXTPOSIXCORE_PPC64LE_H