LLVM 19.0.0git
ARMTargetObjectFile.h
Go to the documentation of this file.
1//===-- llvm/Target/ARMTargetObjectFile.h - ARM 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_ARM_ARMTARGETOBJECTFILE_H
10#define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
11
13#include "llvm/MC/MCExpr.h"
14#include "llvm/MC/MCRegister.h"
15
16namespace llvm {
17
19public:
23 }
24
25 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
26
27 MCRegister getStaticBase() const override;
28
30 const MCSymbol *Sym,
31 const MCValue &MV, int64_t Offset,
33 MCStreamer &Streamer) const override;
34
35 const MCExpr *getIndirectSymViaRWPI(const MCSymbol *Sym) const override;
36
38 unsigned Encoding,
39 const TargetMachine &TM,
41 MCStreamer &Streamer) const override;
42
43 /// Describe a TLS variable address within debug info.
44 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
45
47 const TargetMachine &TM) const override;
48
50 const TargetMachine &TM) const override;
51};
52
53} // end namespace llvm
54
55#endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
Symbol * Sym
Definition: ELF_riscv.cpp:479
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const override
Describe a TLS variable address within debug info.
MCRegister getStaticBase() const override
Returns the register used as static base in RWPI variants.
MCSection * getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Targets should implement this method to assign a section to globals with an explicit section specfied...
const MCExpr * getIndirectSymViaGOTPCRel(const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Get the target specific PC relative GOT entry relocation.
const MCExpr * getIndirectSymViaRWPI(const MCSymbol *Sym) const override
Get the target specific RWPI relocation.
const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Return an MCExpr to use for a reference to the specified type info global variable from exception han...
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
Context object for machine code objects.
Definition: MCContext.h:76
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Wrapper class representing physical registers. Should be passed by value.
Definition: MCRegister.h:33
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
Streaming machine code generation interface.
Definition: MCStreamer.h:212
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:40
This represents an "assembler immediate".
Definition: MCValue.h:36
This class contains meta information specific to a module.
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:22
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:76
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:456