LLVM  14.0.0git
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 public:
25  }
26 };
27 
28 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
30 public:
32 
34  unsigned Encoding,
35  const TargetMachine &TM,
36  MachineModuleInfo *MMI,
37  MCStreamer &Streamer) const override;
38 
40  const TargetMachine &TM,
41  MachineModuleInfo *MMI) const override;
42 
44  const MCSymbol *Sym,
45  const MCValue &MV, int64_t Offset,
46  MachineModuleInfo *MMI,
47  MCStreamer &Streamer) const override;
48 
49  void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
50  const TargetMachine &TM) const override;
51 };
52 
53 /// This implementation is used for AArch64 COFF targets.
55 
56 } // end namespace llvm
57 
58 #endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::TargetLoweringObjectFileELF
Definition: TargetLoweringObjectFileImpl.h:33
Offset
uint64_t Offset
Definition: ELFObjHandler.cpp:81
llvm::TargetLoweringObjectFileMachO
Definition: TargetLoweringObjectFileImpl.h:114
llvm::AArch64_ELFTargetObjectFile
This implementation is used for AArch64 ELF targets (Linux in particular).
Definition: AArch64TargetObjectFile.h:19
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::TargetLoweringObjectFileELF::PLTRelativeVariantKind
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind
Definition: TargetLoweringObjectFileImpl.h:39
llvm::AArch64_MachoTargetObjectFile
AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
Definition: AArch64TargetObjectFile.h:29
llvm::MachineModuleInfo
This class contains meta information specific to a module.
Definition: MachineModuleInfo.h:78
llvm::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition: TargetLoweringObjectFile.h:67
llvm::GlobalValue
Definition: GlobalValue.h:44
llvm::MCSymbolRefExpr::VK_PLT
@ VK_PLT
Definition: MCExpr.h:208
llvm::AArch64_COFFTargetObjectFile
This implementation is used for AArch64 COFF targets.
Definition: AArch64TargetObjectFile.h:54
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:80
llvm::AArch64_MachoTargetObjectFile::AArch64_MachoTargetObjectFile
AArch64_MachoTargetObjectFile()
Definition: AArch64TargetObjectFile.cpp:28
llvm::AArch64_MachoTargetObjectFile::getIndirectSymViaGOTPCRel
const MCExpr * getIndirectSymViaGOTPCRel(const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Get MachO PC relative GOT entry relocation.
Definition: AArch64TargetObjectFile.cpp:60
TargetLoweringObjectFile.h
llvm::AArch64_MachoTargetObjectFile::getTTypeGlobalReference
const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
The mach-o version of this method defaults to returning a stub reference.
Definition: AArch64TargetObjectFile.cpp:33
llvm::SmallVectorImpl< char >
llvm::MCValue
This represents an "assembler immediate".
Definition: MCValue.h:37
llvm::AArch64_MachoTargetObjectFile::getNameWithPrefix
void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const override
Definition: AArch64TargetObjectFile.cpp:75
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
llvm::TargetLoweringObjectFileCOFF
Definition: TargetLoweringObjectFileImpl.h:157
llvm::AArch64_MachoTargetObjectFile::getCFIPersonalitySymbol
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
Definition: AArch64TargetObjectFile.cpp:54
llvm::AArch64_ELFTargetObjectFile::AArch64_ELFTargetObjectFile
AArch64_ELFTargetObjectFile()
Definition: AArch64TargetObjectFile.h:23
TargetLoweringObjectFileImpl.h