[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / ARM / MCTargetDesc / ARMAsmBackendDarwin.h
blobe27bb134670f7367fa9bb7e6142c0037d0274308
1 //===-- ARMAsmBackendDarwin.h ARM Asm Backend Darwin ----------*- 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 LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
10 #define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
12 #include "ARMAsmBackend.h"
13 #include "llvm/BinaryFormat/MachO.h"
14 #include "llvm/MC/MCObjectWriter.h"
16 namespace llvm {
17 class ARMAsmBackendDarwin : public ARMAsmBackend {
18 const MCRegisterInfo &MRI;
19 Triple TT;
20 public:
21 const MachO::CPUSubTypeARM Subtype;
22 ARMAsmBackendDarwin(const Target &T, const MCSubtargetInfo &STI,
23 const MCRegisterInfo &MRI)
24 : ARMAsmBackend(T, STI, support::little), MRI(MRI),
25 TT(STI.getTargetTriple()),
26 Subtype((MachO::CPUSubTypeARM)cantFail(
27 MachO::getCPUSubType(STI.getTargetTriple()))) {}
29 std::unique_ptr<MCObjectTargetWriter>
30 createObjectTargetWriter() const override {
31 return createARMMachObjectWriter(
32 /*Is64Bit=*/false, cantFail(MachO::getCPUType(TT)), Subtype);
35 uint32_t generateCompactUnwindEncoding(
36 ArrayRef<MCCFIInstruction> Instrs) const override;
38 } // end namespace llvm
40 #endif