LLVM  9.0.0svn
ARMAsmBackendDarwin.h
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
10 #define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
11 
12 #include "ARMAsmBackend.h"
14 #include "llvm/MC/MCObjectWriter.h"
15 
16 namespace llvm {
18  const MCRegisterInfo &MRI;
19 public:
22  const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
23  : ARMAsmBackend(T, STI, support::little), MRI(MRI), Subtype(st) {}
24 
25  std::unique_ptr<MCObjectTargetWriter>
26  createObjectTargetWriter() const override {
27  return createARMMachObjectWriter(/*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
28  Subtype);
29  }
30 
32  ArrayRef<MCCFIInstruction> Instrs) const override;
33 };
34 } // end namespace llvm
35 
36 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:32
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
uint32_t generateCompactUnwindEncoding(ArrayRef< MCCFIInstruction > Instrs) const override
Generate compact unwind encoding for the function based on the CFI instructions.
std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const override
ARMAsmBackendDarwin(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
const MachO::CPUSubTypeARM Subtype
Target - Wrapper for Target specific information.
std::unique_ptr< MCObjectTargetWriter > createARMMachObjectWriter(bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct an ARM Mach-O object writer.
Generic base class for all target subtargets.