LLVM 20.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
15
16namespace llvm {
17
18/// This implementation is used for AArch64 ELF targets (Linux in particular).
20 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
21
22public:
26 }
27
29 const MCSymbol *Sym,
30 const MCValue &MV, int64_t Offset,
32 MCStreamer &Streamer) const override;
33
35 MachineModuleInfo *MMI, const MCSymbol *RawSym,
37 uint16_t Discriminator) const;
38
39 void emitPersonalityValueImpl(MCStreamer &Streamer, const DataLayout &DL,
40 const MCSymbol *Sym,
41 const MachineModuleInfo *MMI) const override;
42};
43
44/// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
46public:
48
50 unsigned Encoding,
51 const TargetMachine &TM,
53 MCStreamer &Streamer) const override;
54
56 const TargetMachine &TM,
57 MachineModuleInfo *MMI) const override;
58
60 const MCSymbol *Sym,
61 const MCValue &MV, int64_t Offset,
63 MCStreamer &Streamer) const override;
64
66 const TargetMachine &TM) const override;
67
69 MachineModuleInfo *MMI, const MCSymbol *RawSym,
71 uint16_t Discriminator) const;
72};
73
74/// This implementation is used for AArch64 COFF targets.
76
77} // end namespace llvm
78
79#endif
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Symbol * Sym
Definition: ELF_riscv.cpp:479
This implementation is used for AArch64 COFF targets.
This implementation is used for AArch64 ELF targets (Linux in particular).
void emitPersonalityValueImpl(MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym, const MachineModuleInfo *MMI) const override
const MCExpr * getIndirectSymViaGOTPCRel(const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Get the target specific PC relative GOT entry relocation.
MCSymbol * getAuthPtrSlotSymbol(const TargetMachine &TM, MachineModuleInfo *MMI, const MCSymbol *RawSym, AArch64PACKey::ID Key, uint16_t Discriminator) const
AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
MCSymbol * getAuthPtrSlotSymbol(const TargetMachine &TM, MachineModuleInfo *MMI, const MCSymbol *RawSym, AArch64PACKey::ID Key, uint16_t Discriminator) const
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.
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:63
Context object for machine code objects.
Definition: MCContext.h:83
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:34
Streaming machine code generation interface.
Definition: MCStreamer.h:213
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:573
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:77
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:480