[ARM] MVE integer min and max
[llvm-complete.git] / lib / Target / X86 / X86TargetObjectFile.h
blob13d7b4ad70d64baf408637a9d892db1f75ac3207
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
13 #include "llvm/Target/TargetLoweringObjectFile.h"
15 namespace llvm {
17 /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
18 /// x86-64.
19 class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
20 public:
21 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
22 unsigned Encoding,
23 const TargetMachine &TM,
24 MachineModuleInfo *MMI,
25 MCStreamer &Streamer) const override;
27 // getCFIPersonalitySymbol - The symbol that gets passed to
28 // .cfi_personality.
29 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
30 const TargetMachine &TM,
31 MachineModuleInfo *MMI) const override;
33 const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
34 const MCValue &MV, int64_t Offset,
35 MachineModuleInfo *MMI,
36 MCStreamer &Streamer) const override;
39 /// This implemenatation is used for X86 ELF targets that don't
40 /// have a further specialization.
41 class X86ELFTargetObjectFile : public TargetLoweringObjectFileELF {
42 public:
43 X86ELFTargetObjectFile() {
44 PLTRelativeVariantKind = MCSymbolRefExpr::VK_PLT;
47 /// Describe a TLS variable address within debug info.
48 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
51 /// X86FreeBSDTargetObjectFile - This implementation is used for FreeBSD
52 /// on x86 and x86-64.
53 class X86FreeBSDTargetObjectFile : public X86ELFTargetObjectFile {
54 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
57 /// This implementation is used for Fuchsia on x86-64.
58 class X86FuchsiaTargetObjectFile : public X86ELFTargetObjectFile {
59 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
62 /// X86LinuxNaClTargetObjectFile - This implementation is used for linux and
63 /// Native Client on x86 and x86-64.
64 class X86LinuxNaClTargetObjectFile : public X86ELFTargetObjectFile {
65 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
68 /// This implementation is used for Solaris on x86/x86-64.
69 class X86SolarisTargetObjectFile : public X86ELFTargetObjectFile {
70 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
73 } // end namespace llvm
75 #endif