xref: /aosp_15_r20/external/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- C++ ---------*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker 
10*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
11*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
12*9880d681SAndroid Build Coastguard Worker 
13*9880d681SAndroid Build Coastguard Worker #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14*9880d681SAndroid Build Coastguard Worker #include "llvm/Target/TargetLoweringObjectFile.h"
15*9880d681SAndroid Build Coastguard Worker 
16*9880d681SAndroid Build Coastguard Worker namespace llvm {
17*9880d681SAndroid Build Coastguard Worker class AArch64TargetMachine;
18*9880d681SAndroid Build Coastguard Worker 
19*9880d681SAndroid Build Coastguard Worker /// This implementation is used for AArch64 ELF targets (Linux in particular).
20*9880d681SAndroid Build Coastguard Worker class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
21*9880d681SAndroid Build Coastguard Worker   void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
22*9880d681SAndroid Build Coastguard Worker };
23*9880d681SAndroid Build Coastguard Worker 
24*9880d681SAndroid Build Coastguard Worker /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
25*9880d681SAndroid Build Coastguard Worker class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
26*9880d681SAndroid Build Coastguard Worker public:
27*9880d681SAndroid Build Coastguard Worker   AArch64_MachoTargetObjectFile();
28*9880d681SAndroid Build Coastguard Worker 
29*9880d681SAndroid Build Coastguard Worker   const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
30*9880d681SAndroid Build Coastguard Worker                                         unsigned Encoding, Mangler &Mang,
31*9880d681SAndroid Build Coastguard Worker                                         const TargetMachine &TM,
32*9880d681SAndroid Build Coastguard Worker                                         MachineModuleInfo *MMI,
33*9880d681SAndroid Build Coastguard Worker                                         MCStreamer &Streamer) const override;
34*9880d681SAndroid Build Coastguard Worker 
35*9880d681SAndroid Build Coastguard Worker   MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
36*9880d681SAndroid Build Coastguard Worker                                     const TargetMachine &TM,
37*9880d681SAndroid Build Coastguard Worker                                     MachineModuleInfo *MMI) const override;
38*9880d681SAndroid Build Coastguard Worker 
39*9880d681SAndroid Build Coastguard Worker   const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
40*9880d681SAndroid Build Coastguard Worker                                           const MCValue &MV, int64_t Offset,
41*9880d681SAndroid Build Coastguard Worker                                           MachineModuleInfo *MMI,
42*9880d681SAndroid Build Coastguard Worker                                           MCStreamer &Streamer) const override;
43*9880d681SAndroid Build Coastguard Worker };
44*9880d681SAndroid Build Coastguard Worker 
45*9880d681SAndroid Build Coastguard Worker } // end namespace llvm
46*9880d681SAndroid Build Coastguard Worker 
47*9880d681SAndroid Build Coastguard Worker #endif
48