LLVM  9.0.0svn
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 
14 
15 namespace llvm {
16 
17  /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
18  /// x86-64.
20  public:
22  unsigned Encoding,
23  const TargetMachine &TM,
24  MachineModuleInfo *MMI,
25  MCStreamer &Streamer) const override;
26 
27  // getCFIPersonalitySymbol - The symbol that gets passed to
28  // .cfi_personality.
30  const TargetMachine &TM,
31  MachineModuleInfo *MMI) const override;
32 
33  const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
34  const MCValue &MV, int64_t Offset,
35  MachineModuleInfo *MMI,
36  MCStreamer &Streamer) const override;
37  };
38 
39  /// This implemenatation is used for X86 ELF targets that don't
40  /// have a further specialization.
42  public:
44  PLTRelativeVariantKind = MCSymbolRefExpr::VK_PLT;
45  }
46 
47  /// Describe a TLS variable address within debug info.
48  const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
49  };
50 
51  /// X86FreeBSDTargetObjectFile - This implementation is used for FreeBSD
52  /// on x86 and x86-64.
54  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
55  };
56 
57  /// This implementation is used for Fuchsia on x86-64.
59  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
60  };
61 
62  /// X86LinuxNaClTargetObjectFile - This implementation is used for linux and
63  /// Native Client on x86 and x86-64.
65  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
66  };
67 
68  /// This implementation is used for Solaris on x86/x86-64.
70  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
71  };
72 
73 } // end namespace llvm
74 
75 #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
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.
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
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
This implementation is used for Fuchsia on x86-64.
Streaming machine code generation interface.
Definition: MCStreamer.h:188
This implementation is used for Solaris on x86/x86-64.
X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin x86-64. ...
X86FreeBSDTargetObjectFile - This implementation is used for FreeBSD on x86 and x86-64.
const MCExpr * getIndirectSymViaGOTPCRel(const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Get MachO PC relative GOT entry relocation.
This implemenatation is used for X86 ELF targets that don't have a further specialization.
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:58
virtual const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const
Create a symbol reference to describe the given TLS variable when emitting the address in debug info...
This class contains meta information specific to a module.
X86LinuxNaClTargetObjectFile - This implementation is used for linux and Native Client on x86 and x86...