| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 1 | //===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- C++ ---------*-===// |
| 2 | // |
| Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 9 | #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H |
| 10 | #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 11 | |
| 12 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| David Blaikie | 6054e65 | 2018-03-23 23:58:19 +0000 | [diff] [blame] | 13 | #include "llvm/Target/TargetLoweringObjectFile.h" |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 14 | |
| 15 | namespace llvm { |
| 16 | class AArch64TargetMachine; |
| 17 | |
| 18 | /// This implementation is used for AArch64 ELF targets (Linux in particular). |
| 19 | class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF { |
| 20 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
| 21 | }; |
| 22 | |
| 23 | /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin. |
| 24 | class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO { |
| 25 | public: |
| Bruno Cardoso Lopes | 52b1391 | 2015-03-06 13:48:45 +0000 | [diff] [blame] | 26 | AArch64_MachoTargetObjectFile(); |
| 27 | |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 28 | const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, |
| Eric Christopher | 4367c7f | 2016-09-16 07:33:15 +0000 | [diff] [blame] | 29 | unsigned Encoding, |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 30 | const TargetMachine &TM, |
| 31 | MachineModuleInfo *MMI, |
| 32 | MCStreamer &Streamer) const override; |
| 33 | |
| Eric Christopher | 4367c7f | 2016-09-16 07:33:15 +0000 | [diff] [blame] | 34 | MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 35 | const TargetMachine &TM, |
| 36 | MachineModuleInfo *MMI) const override; |
| Bruno Cardoso Lopes | 52b1391 | 2015-03-06 13:48:45 +0000 | [diff] [blame] | 37 | |
| Francis Visoiu Mistrih | 5b5ee61 | 2019-08-22 16:59:00 +0000 | [diff] [blame] | 38 | const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV, |
| 39 | const MCSymbol *Sym, |
| Bruno Cardoso Lopes | 618c67a | 2015-03-06 13:49:05 +0000 | [diff] [blame] | 40 | const MCValue &MV, int64_t Offset, |
| 41 | MachineModuleInfo *MMI, |
| 42 | MCStreamer &Streamer) const override; |
| Tim Northover | 203c6f0 | 2017-05-15 21:51:38 +0000 | [diff] [blame] | 43 | |
| 44 | void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, |
| 45 | const TargetMachine &TM) const override; |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 46 | }; |
| 47 | |
| Mandeep Singh Grang | 0c72172 | 2017-06-27 23:58:19 +0000 | [diff] [blame] | 48 | /// This implementation is used for AArch64 COFF targets. |
| 49 | class AArch64_COFFTargetObjectFile : public TargetLoweringObjectFileCOFF {}; |
| 50 | |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 51 | } // end namespace llvm |
| 52 | |
| 53 | #endif |