LLVM  14.0.0git
X86TargetObjectFile.h
Go to the documentation of this file.
1 //===-- X86TargetObjectFile.h - X86 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_X86_X86TARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
11 
13 
14 namespace llvm {
15 
16  /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
17  /// x86-64.
19  public:
21  unsigned Encoding,
22  const TargetMachine &TM,
23  MachineModuleInfo *MMI,
24  MCStreamer &Streamer) const override;
25 
26  // getCFIPersonalitySymbol - The symbol that gets passed to
27  // .cfi_personality.
29  const TargetMachine &TM,
30  MachineModuleInfo *MMI) const override;
31 
33  const MCSymbol *Sym,
34  const MCValue &MV, int64_t Offset,
35  MachineModuleInfo *MMI,
36  MCStreamer &Streamer) const override;
37  };
38 
39  /// This implementation is used for X86 ELF targets that don't
40  /// have a further specialization.
42  public:
45  }
46  /// Describe a TLS variable address within debug info.
47  const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
48  };
49 
50 } // end namespace llvm
51 
52 #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::X86_64MachoTargetObjectFile::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: X86TargetObjectFile.cpp:18
llvm::TargetLoweringObjectFileELF
Definition: TargetLoweringObjectFileImpl.h:33
llvm::X86_64MachoTargetObjectFile::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: X86TargetObjectFile.cpp:42
Offset
uint64_t Offset
Definition: ELFObjHandler.cpp:81
llvm::TargetLoweringObjectFileMachO
Definition: TargetLoweringObjectFileImpl.h:114
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::TargetLoweringObjectFileELF::PLTRelativeVariantKind
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind
Definition: TargetLoweringObjectFileImpl.h:39
llvm::X86ELFTargetObjectFile
This implementation is used for X86 ELF targets that don't have a further specialization.
Definition: X86TargetObjectFile.h:41
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::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:80
llvm::X86ELFTargetObjectFile::getDebugThreadLocalSymbol
const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const override
Describe a TLS variable address within debug info.
Definition: X86TargetObjectFile.cpp:55
llvm::X86_64MachoTargetObjectFile
X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin x86-64.
Definition: X86TargetObjectFile.h:18
llvm::X86ELFTargetObjectFile::X86ELFTargetObjectFile
X86ELFTargetObjectFile()
Definition: X86TargetObjectFile.h:43
llvm::MCValue
This represents an "assembler immediate".
Definition: MCValue.h:37
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
llvm::X86_64MachoTargetObjectFile::getCFIPersonalitySymbol
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
Definition: X86TargetObjectFile.cpp:36
TargetLoweringObjectFileImpl.h