LLVM  9.0.0svn
AArch64TargetObjectFile.h
Go to the documentation of this file.
1 //===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- 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_AARCH64_AARCH64TARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
11 
14 
15 namespace llvm {
16 class AArch64TargetMachine;
17 
18 /// This implementation is used for AArch64 ELF targets (Linux in particular).
20  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
21 };
22 
23 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
25 public:
27 
29  unsigned Encoding,
30  const TargetMachine &TM,
31  MachineModuleInfo *MMI,
32  MCStreamer &Streamer) const override;
33 
35  const TargetMachine &TM,
36  MachineModuleInfo *MMI) const override;
37 
38  const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
39  const MCValue &MV, int64_t Offset,
40  MachineModuleInfo *MMI,
41  MCStreamer &Streamer) const override;
42 
43  void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
44  const TargetMachine &TM) const override;
45 };
46 
47 /// This implementation is used for AArch64 COFF targets.
49 
50 } // end namespace llvm
51 
52 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
This represents an "assembler immediate".
Definition: MCValue.h:39
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Context object for machine code objects.
Definition: MCContext.h:62
Streaming machine code generation interface.
Definition: MCStreamer.h:188
const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Return an MCExpr to use for a reference to the specified type info global variable from exception han...
This implementation is used for AArch64 COFF targets.
virtual const MCExpr * getIndirectSymViaGOTPCRel(const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const
Get the target specific PC relative GOT entry relocation.
virtual void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const
This implementation is used for AArch64 ELF targets (Linux in particular).
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:58
AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
This class contains meta information specific to a module.