LLVM 17.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
15namespace llvm {
16
17/// This implementation is used for AArch64 ELF targets (Linux in particular).
19 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
20
21public:
24 }
25};
26
27/// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
29public:
31
33 unsigned Encoding,
34 const TargetMachine &TM,
36 MCStreamer &Streamer) const override;
37
39 const TargetMachine &TM,
40 MachineModuleInfo *MMI) const override;
41
43 const MCSymbol *Sym,
44 const MCValue &MV, int64_t Offset,
46 MCStreamer &Streamer) const override;
47
49 const TargetMachine &TM) const override;
50};
51
52/// This implementation is used for AArch64 COFF targets.
54
55} // end namespace llvm
56
57#endif
This implementation is used for AArch64 COFF targets.
This implementation is used for AArch64 ELF targets (Linux in particular).
AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
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.
void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const override
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
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.
Context object for machine code objects.
Definition: MCContext.h:76
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Streaming machine code generation interface.
Definition: MCStreamer.h:212
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
This represents an "assembler immediate".
Definition: MCValue.h:36
This class contains meta information specific to a module.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:577
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:78
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:406