LLVM  4.0.0
ARMAsmBackendDarwin.h
Go to the documentation of this file.
1 //===-- ARMAsmBackendDarwin.h ARM Asm Backend Darwin ----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
11 #define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
12 
13 #include "ARMAsmBackend.h"
14 #include "llvm/Support/MachO.h"
15 
16 namespace llvm {
18  const MCRegisterInfo &MRI;
19 public:
21  ARMAsmBackendDarwin(const Target &T, const Triple &TT,
22  const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
23  : ARMAsmBackend(T, TT, /* IsLittleEndian */ true), MRI(MRI), Subtype(st) {
24  }
25 
27  return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
28  Subtype);
29  }
30 
32  ArrayRef<MCCFIInstruction> Instrs) const override;
33 };
34 } // end namespace llvm
35 
36 #endif
MCObjectWriter * createObjectWriter(raw_pwrite_stream &OS) const override
Create a new MCObjectWriter instance for use by the assembler backend to emit the final object file...
MCObjectWriter * createARMMachObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct an ARM Mach-O object writer.
Defines the object file and target independent interfaces used by the assembler backend to write nati...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:33
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.
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
const MachO::CPUSubTypeARM Subtype
Target - Wrapper for Target specific information.
Basic Alias true
ARMAsmBackendDarwin(const Target &T, const Triple &TT, const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:333