[PowerPC] Materialize more constants with CR-field set in late peephole
[llvm-core.git] / lib / Target / AArch64 / AArch64TargetObjectFile.h
blob9077eb7902fd468add5edcdb84c6a96c490ea9be
1 //===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- C++ ---------*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 #include "llvm/Target/TargetLoweringObjectFile.h"
16 namespace llvm {
17 class AArch64TargetMachine;
19 /// This implementation is used for AArch64 ELF targets (Linux in particular).
20 class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
21 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
24 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
25 class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
26 public:
27 AArch64_MachoTargetObjectFile();
29 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
30 unsigned Encoding,
31 const TargetMachine &TM,
32 MachineModuleInfo *MMI,
33 MCStreamer &Streamer) const override;
35 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
36 const TargetMachine &TM,
37 MachineModuleInfo *MMI) const override;
39 const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
40 const MCValue &MV, int64_t Offset,
41 MachineModuleInfo *MMI,
42 MCStreamer &Streamer) const override;
44 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
45 const TargetMachine &TM) const override;
48 /// This implementation is used for AArch64 COFF targets.
49 class AArch64_COFFTargetObjectFile : public TargetLoweringObjectFileCOFF {};
51 } // end namespace llvm
53 #endif