Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
TargetLoweringObjectFile.h
Go to the documentation of this file.
1//===-- llvm/Target/TargetLoweringObjectFile.h - 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// This file implements classes used to handle lowerings specific to common
10// object file formats.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H
15#define LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H
16
17#include "llvm/MC/MCObjectFileInfo.h"
18#include "llvm/MC/MCRegister.h"
19#include <cstdint>
20
21namespacellvm {
22
23structAlign;
24classConstant;
25classDataLayout;
26classFunction;
27classGlobalObject;
28classGlobalValue;
29classMachineBasicBlock;
30classMachineModuleInfo;
31classMangler;
32classMCContext;
33classMCExpr;
34classMCSection;
35classMCSymbol;
36classMCSymbolRefExpr;
37classMCStreamer;
38classMCValue;
39classModule;
40classSectionKind;
41classStringRef;
42classTargetMachine;
43classDSOLocalEquivalent;
44
45classTargetLoweringObjectFile :publicMCObjectFileInfo {
46 /// Name-mangler for global names.
47Mangler *Mang =nullptr;
48
49protected:
50boolSupportIndirectSymViaGOTPCRel =false;
51boolSupportGOTPCRelWithOffset =true;
52boolSupportDebugThreadLocalLocation =true;
53boolSupportDSOLocalEquivalentLowering =false;
54
55 /// PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values
56 /// for EH.
57unsignedPersonalityEncoding = 0;
58unsignedLSDAEncoding = 0;
59unsignedTTypeEncoding = 0;
60unsignedCallSiteEncoding = 0;
61
62 /// This section contains the static constructor pointer list.
63MCSection *StaticCtorSection =nullptr;
64
65 /// This section contains the static destructor pointer list.
66MCSection *StaticDtorSection =nullptr;
67
68constTargetMachine *TM =nullptr;
69
70public:
71TargetLoweringObjectFile() =default;
72TargetLoweringObjectFile(constTargetLoweringObjectFile &) =delete;
73TargetLoweringObjectFile &
74operator=(constTargetLoweringObjectFile &) =delete;
75virtual~TargetLoweringObjectFile();
76
77Mangler &getMangler() const{return *Mang; }
78
79 /// This method must be called before any actual lowering is done. This
80 /// specifies the current context for codegen, and gives the lowering
81 /// implementations a chance to set up their default sections.
82virtualvoidInitialize(MCContext &ctx,constTargetMachine &TM);
83
84virtualvoidemitPersonalityValue(MCStreamer &Streamer,constDataLayout &TM,
85constMCSymbol *Sym,
86constMachineModuleInfo *MMI)const;
87
88 /// Emit the module-level metadata that the platform cares about.
89virtualvoidemitModuleMetadata(MCStreamer &Streamer,Module &M) const{}
90
91 /// Emit Call Graph Profile metadata.
92voidemitCGProfileMetadata(MCStreamer &Streamer,Module &M)const;
93
94 /// Process linker options metadata and emit platform-specific bits.
95virtualvoidemitLinkerDirectives(MCStreamer &Streamer,Module &M) const{}
96
97 /// Get the module-level metadata that the platform cares about.
98virtualvoidgetModuleMetadata(Module &M) {}
99
100 /// Given a constant with the SectionKind, return a section that it should be
101 /// placed in.
102virtualMCSection *getSectionForConstant(constDataLayout &DL,
103SectionKind Kind,constConstant *C,
104Align &Alignment)const;
105
106virtualMCSection *
107getSectionForMachineBasicBlock(constFunction &F,
108constMachineBasicBlock &MBB,
109constTargetMachine &TM)const;
110
111virtualMCSection *
112getUniqueSectionForFunction(constFunction &F,
113constTargetMachine &TM)const;
114
115 /// Classify the specified global variable into a set of target independent
116 /// categories embodied in SectionKind.
117staticSectionKindgetKindForGlobal(constGlobalObject *GO,
118constTargetMachine &TM);
119
120 /// This method computes the appropriate section to emit the specified global
121 /// variable or function definition. This should not be passed external (or
122 /// available externally) globals.
123MCSection *SectionForGlobal(constGlobalObject *GO,SectionKind Kind,
124constTargetMachine &TM)const;
125
126 /// This method computes the appropriate section to emit the specified global
127 /// variable or function definition. This should not be passed external (or
128 /// available externally) globals.
129MCSection *SectionForGlobal(constGlobalObject *GO,
130constTargetMachine &TM)const;
131
132virtualvoidgetNameWithPrefix(SmallVectorImpl<char> &OutName,
133constGlobalValue *GV,
134constTargetMachine &TM)const;
135
136virtualMCSection *getSectionForJumpTable(constFunction &F,
137constTargetMachine &TM)const;
138virtualMCSection *getSectionForLSDA(constFunction &,constMCSymbol &,
139constTargetMachine &) const{
140returnLSDASection;
141 }
142
143virtualboolshouldPutJumpTableInFunctionSection(bool UsesLabelDifference,
144constFunction &F)const;
145
146 /// Targets should implement this method to assign a section to globals with
147 /// an explicit section specfied. The implementation of this method can
148 /// assume that GO->hasSection() is true.
149virtualMCSection *
150getExplicitSectionGlobal(constGlobalObject *GO,SectionKind Kind,
151constTargetMachine &TM)const = 0;
152
153 /// Return an MCExpr to use for a reference to the specified global variable
154 /// from exception handling information.
155virtualconstMCExpr *getTTypeGlobalReference(constGlobalValue *GV,
156unsigned Encoding,
157constTargetMachine &TM,
158MachineModuleInfo *MMI,
159MCStreamer &Streamer)const;
160
161 /// Return the MCSymbol for a private symbol with global value name as its
162 /// base, with the specified suffix.
163MCSymbol *getSymbolWithGlobalValueBase(constGlobalValue *GV,
164StringRef Suffix,
165constTargetMachine &TM)const;
166
167// The symbol that gets passed to .cfi_personality.
168virtualMCSymbol *getCFIPersonalitySymbol(constGlobalValue *GV,
169constTargetMachine &TM,
170MachineModuleInfo *MMI)const;
171
172unsignedgetPersonalityEncoding() const{returnPersonalityEncoding; }
173unsignedgetLSDAEncoding() const{returnLSDAEncoding; }
174unsignedgetTTypeEncoding() const{returnTTypeEncoding; }
175unsignedgetCallSiteEncoding()const;
176
177constMCExpr *getTTypeReference(constMCSymbolRefExpr *Sym,unsigned Encoding,
178MCStreamer &Streamer)const;
179
180virtualMCSection *getStaticCtorSection(unsigned Priority,
181constMCSymbol *KeySym) const{
182returnStaticCtorSection;
183 }
184
185virtualMCSection *getStaticDtorSection(unsigned Priority,
186constMCSymbol *KeySym) const{
187returnStaticDtorSection;
188 }
189
190 /// Create a symbol reference to describe the given TLS variable when
191 /// emitting the address in debug info.
192virtualconstMCExpr *getDebugThreadLocalSymbol(constMCSymbol *Sym)const;
193
194virtualconstMCExpr *lowerRelativeReference(constGlobalValue *LHS,
195constGlobalValue *RHS,
196constTargetMachine &TM) const{
197returnnullptr;
198 }
199
200 /// Target supports a native lowering of a dso_local_equivalent constant
201 /// without needing to replace it with equivalent IR.
202boolsupportDSOLocalEquivalentLowering() const{
203returnSupportDSOLocalEquivalentLowering;
204 }
205
206virtualconstMCExpr *lowerDSOLocalEquivalent(constDSOLocalEquivalent *Equiv,
207constTargetMachine &TM) const{
208returnnullptr;
209 }
210
211 /// Target supports replacing a data "PC"-relative access to a symbol
212 /// through another symbol, by accessing the later via a GOT entry instead?
213boolsupportIndirectSymViaGOTPCRel() const{
214returnSupportIndirectSymViaGOTPCRel;
215 }
216
217 /// Target GOT "PC"-relative relocation supports encoding an additional
218 /// binary expression with an offset?
219boolsupportGOTPCRelWithOffset() const{
220returnSupportGOTPCRelWithOffset;
221 }
222
223 /// Target supports TLS offset relocation in debug section?
224boolsupportDebugThreadLocalLocation() const{
225returnSupportDebugThreadLocalLocation;
226 }
227
228 /// Returns the register used as static base in RWPI variants.
229virtualMCRegistergetStaticBase() const{returnMCRegister::NoRegister; }
230
231 /// Get the target specific RWPI relocation.
232virtualconstMCExpr *getIndirectSymViaRWPI(constMCSymbol *Sym) const{
233returnnullptr;
234 }
235
236 /// Get the target specific PC relative GOT entry relocation
237virtualconstMCExpr *getIndirectSymViaGOTPCRel(constGlobalValue *GV,
238constMCSymbol *Sym,
239constMCValue &MV,
240 int64_tOffset,
241MachineModuleInfo *MMI,
242MCStreamer &Streamer) const{
243returnnullptr;
244 }
245
246 /// If supported, return the section to use for the llvm.commandline
247 /// metadata. Otherwise, return nullptr.
248virtualMCSection *getSectionForCommandLines() const{
249returnnullptr;
250 }
251
252 /// On targets that use separate function descriptor symbols, return a section
253 /// for the descriptor given its symbol. Use only with defined functions.
254virtualMCSection *
255getSectionForFunctionDescriptor(constFunction *F,
256constTargetMachine &TM) const{
257returnnullptr;
258 }
259
260 /// On targets that support TOC entries, return a section for the entry given
261 /// the symbol it refers to.
262 /// TODO: Implement this interface for existing ELF targets.
263virtualMCSection *getSectionForTOCEntry(constMCSymbol *S,
264constTargetMachine &TM) const{
265returnnullptr;
266 }
267
268 /// On targets that associate external references with a section, return such
269 /// a section for the given external global.
270virtualMCSection *
271getSectionForExternalReference(constGlobalObject *GO,
272constTargetMachine &TM) const{
273returnnullptr;
274 }
275
276 /// Targets that have a special convention for their symbols could use
277 /// this hook to return a specialized symbol.
278virtualMCSymbol *getTargetSymbol(constGlobalValue *GV,
279constTargetMachine &TM) const{
280returnnullptr;
281 }
282
283 /// If supported, return the function entry point symbol.
284 /// Otherwise, returns nullptr.
285 /// Func must be a function or an alias which has a function as base object.
286virtualMCSymbol *getFunctionEntryPointSymbol(constGlobalValue *Func,
287constTargetMachine &TM) const{
288returnnullptr;
289 }
290
291protected:
292virtualMCSection *SelectSectionForGlobal(constGlobalObject *GO,
293SectionKind Kind,
294constTargetMachine &TM)const = 0;
295};
296
297}// end namespace llvm
298
299#endif// LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H
MBB
MachineBasicBlock & MBB
Definition:ARMSLSHardening.cpp:71
DL
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Definition:ARMSLSHardening.cpp:73
Align
uint64_t Align
Definition:ELFObjHandler.cpp:82
Sym
Symbol * Sym
Definition:ELF_riscv.cpp:479
MCObjectFileInfo.h
MCRegister.h
F
#define F(x, y, z)
Definition:MD5.cpp:55
Module
Machine Check Debug Module
Definition:MachineCheckDebugify.cpp:124
RHS
Value * RHS
Definition:X86PartialReduction.cpp:74
LHS
Value * LHS
Definition:X86PartialReduction.cpp:73
llvm::Constant
This is an important base class in LLVM.
Definition:Constant.h:42
llvm::DSOLocalEquivalent
Wrapper for a function that represents a value that functionally represents the original function.
Definition:Constants.h:941
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it.
Definition:DataLayout.h:63
llvm::Function
Definition:Function.h:63
llvm::GlobalObject
Definition:GlobalObject.h:27
llvm::GlobalValue
Definition:GlobalValue.h:48
llvm::MCContext
Context object for machine code objects.
Definition:MCContext.h:83
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:MCExpr.h:34
llvm::MCObjectFileInfo
Definition:MCObjectFileInfo.h:28
llvm::MCObjectFileInfo::LSDASection
MCSection * LSDASection
If exception handling is supported by the target, this is the section the Language Specific Data Area...
Definition:MCObjectFileInfo.h:69
llvm::MCRegister
Wrapper class representing physical registers. Should be passed by value.
Definition:MCRegister.h:33
llvm::MCRegister::NoRegister
static constexpr unsigned NoRegister
Definition:MCRegister.h:52
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition:MCSection.h:36
llvm::MCStreamer
Streaming machine code generation interface.
Definition:MCStreamer.h:213
llvm::MCSymbolRefExpr
Represent a reference to a symbol from inside an expression.
Definition:MCExpr.h:192
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:MCSymbol.h:41
llvm::MCValue
This represents an "assembler immediate".
Definition:MCValue.h:36
llvm::MachineBasicBlock
Definition:MachineBasicBlock.h:125
llvm::MachineModuleInfo
This class contains meta information specific to a module.
Definition:MachineModuleInfo.h:82
llvm::Mangler
Definition:Mangler.h:28
llvm::Module
A Module instance is used to store all the information related to an LLVM module.
Definition:Module.h:65
llvm::SectionKind
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition:SectionKind.h:22
llvm::SmallVectorImpl
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition:SmallVector.h:573
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:StringRef.h:51
llvm::TargetLoweringObjectFile
Definition:TargetLoweringObjectFile.h:45
llvm::TargetLoweringObjectFile::emitCGProfileMetadata
void emitCGProfileMetadata(MCStreamer &Streamer, Module &M) const
Emit Call Graph Profile metadata.
Definition:TargetLoweringObjectFile.cpp:148
llvm::TargetLoweringObjectFile::getNameWithPrefix
virtual void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.cpp:432
llvm::TargetLoweringObjectFile::StaticDtorSection
MCSection * StaticDtorSection
This section contains the static destructor pointer list.
Definition:TargetLoweringObjectFile.h:66
llvm::TargetLoweringObjectFile::getStaticBase
virtual MCRegister getStaticBase() const
Returns the register used as static base in RWPI variants.
Definition:TargetLoweringObjectFile.h:229
llvm::TargetLoweringObjectFile::getSectionForCommandLines
virtual MCSection * getSectionForCommandLines() const
If supported, return the section to use for the llvm.commandline metadata.
Definition:TargetLoweringObjectFile.h:248
llvm::TargetLoweringObjectFile::PersonalityEncoding
unsigned PersonalityEncoding
PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH.
Definition:TargetLoweringObjectFile.h:57
llvm::TargetLoweringObjectFile::SupportGOTPCRelWithOffset
bool SupportGOTPCRelWithOffset
Definition:TargetLoweringObjectFile.h:51
llvm::TargetLoweringObjectFile::getMangler
Mangler & getMangler() const
Definition:TargetLoweringObjectFile.h:77
llvm::TargetLoweringObjectFile::getCallSiteEncoding
unsigned getCallSiteEncoding() const
Definition:TargetLoweringObjectFile.cpp:59
llvm::TargetLoweringObjectFile::SupportIndirectSymViaGOTPCRel
bool SupportIndirectSymViaGOTPCRel
Definition:TargetLoweringObjectFile.h:50
llvm::TargetLoweringObjectFile::getKindForGlobal
static SectionKind getKindForGlobal(const GlobalObject *GO, const TargetMachine &TM)
Classify the specified global variable into a set of target independent categories embodied in Sectio...
Definition:TargetLoweringObjectFile.cpp:199
llvm::TargetLoweringObjectFile::getSectionForJumpTable
virtual MCSection * getSectionForJumpTable(const Function &F, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.cpp:349
llvm::TargetLoweringObjectFile::getStaticDtorSection
virtual MCSection * getStaticDtorSection(unsigned Priority, const MCSymbol *KeySym) const
Definition:TargetLoweringObjectFile.h:185
llvm::TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection
virtual bool shouldPutJumpTableInFunctionSection(bool UsesLabelDifference, const Function &F) const
Definition:TargetLoweringObjectFile.cpp:357
llvm::TargetLoweringObjectFile::getIndirectSymViaGOTPCRel
virtual const MCExpr * getIndirectSymViaGOTPCRel(const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const
Get the target specific PC relative GOT entry relocation.
Definition:TargetLoweringObjectFile.h:237
llvm::TargetLoweringObjectFile::SupportDebugThreadLocalLocation
bool SupportDebugThreadLocalLocation
Definition:TargetLoweringObjectFile.h:52
llvm::TargetLoweringObjectFile::operator=
TargetLoweringObjectFile & operator=(const TargetLoweringObjectFile &)=delete
llvm::TargetLoweringObjectFile::emitModuleMetadata
virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M) const
Emit the module-level metadata that the platform cares about.
Definition:TargetLoweringObjectFile.h:89
llvm::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition:TargetLoweringObjectFile.h:68
llvm::TargetLoweringObjectFile::getLSDAEncoding
unsigned getLSDAEncoding() const
Definition:TargetLoweringObjectFile.h:173
llvm::TargetLoweringObjectFile::getSectionForExternalReference
virtual MCSection * getSectionForExternalReference(const GlobalObject *GO, const TargetMachine &TM) const
On targets that associate external references with a section, return such a section for the given ext...
Definition:TargetLoweringObjectFile.h:271
llvm::TargetLoweringObjectFile::getCFIPersonalitySymbol
virtual MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const
Definition:TargetLoweringObjectFile.cpp:138
llvm::TargetLoweringObjectFile::LSDAEncoding
unsigned LSDAEncoding
Definition:TargetLoweringObjectFile.h:58
llvm::TargetLoweringObjectFile::supportDSOLocalEquivalentLowering
bool supportDSOLocalEquivalentLowering() const
Target supports a native lowering of a dso_local_equivalent constant without needing to replace it wi...
Definition:TargetLoweringObjectFile.h:202
llvm::TargetLoweringObjectFile::getTTypeEncoding
unsigned getTTypeEncoding() const
Definition:TargetLoweringObjectFile.h:174
llvm::TargetLoweringObjectFile::Initialize
virtual void Initialize(MCContext &ctx, const TargetMachine &TM)
This method must be called before any actual lowering is done.
Definition:TargetLoweringObjectFile.cpp:40
llvm::TargetLoweringObjectFile::getModuleMetadata
virtual void getModuleMetadata(Module &M)
Get the module-level metadata that the platform cares about.
Definition:TargetLoweringObjectFile.h:98
llvm::TargetLoweringObjectFile::getPersonalityEncoding
unsigned getPersonalityEncoding() const
Definition:TargetLoweringObjectFile.h:172
llvm::TargetLoweringObjectFile::supportDebugThreadLocalLocation
bool supportDebugThreadLocalLocation() const
Target supports TLS offset relocation in debug section?
Definition:TargetLoweringObjectFile.h:224
llvm::TargetLoweringObjectFile::StaticCtorSection
MCSection * StaticCtorSection
This section contains the static constructor pointer list.
Definition:TargetLoweringObjectFile.h:63
llvm::TargetLoweringObjectFile::SelectSectionForGlobal
virtual MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const =0
llvm::TargetLoweringObjectFile::SupportDSOLocalEquivalentLowering
bool SupportDSOLocalEquivalentLowering
Definition:TargetLoweringObjectFile.h:53
llvm::TargetLoweringObjectFile::getIndirectSymViaRWPI
virtual const MCExpr * getIndirectSymViaRWPI(const MCSymbol *Sym) const
Get the target specific RWPI relocation.
Definition:TargetLoweringObjectFile.h:232
llvm::TargetLoweringObjectFile::getSectionForConstant
virtual MCSection * getSectionForConstant(const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment) const
Given a constant with the SectionKind, return a section that it should be placed in.
Definition:TargetLoweringObjectFile.cpp:374
llvm::TargetLoweringObjectFile::getSymbolWithGlobalValueBase
MCSymbol * getSymbolWithGlobalValueBase(const GlobalValue *GV, StringRef Suffix, const TargetMachine &TM) const
Return the MCSymbol for a private symbol with global value name as its base, with the specified suffi...
Definition:TargetLoweringObjectFile.cpp:127
llvm::TargetLoweringObjectFile::getStaticCtorSection
virtual MCSection * getStaticCtorSection(unsigned Priority, const MCSymbol *KeySym) const
Definition:TargetLoweringObjectFile.h:180
llvm::TargetLoweringObjectFile::lowerDSOLocalEquivalent
virtual const MCExpr * lowerDSOLocalEquivalent(const DSOLocalEquivalent *Equiv, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.h:206
llvm::TargetLoweringObjectFile::getSectionForMachineBasicBlock
virtual MCSection * getSectionForMachineBasicBlock(const Function &F, const MachineBasicBlock &MBB, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.cpp:383
llvm::TargetLoweringObjectFile::getSectionForTOCEntry
virtual MCSection * getSectionForTOCEntry(const MCSymbol *S, const TargetMachine &TM) const
On targets that support TOC entries, return a section for the entry given the symbol it refers to.
Definition:TargetLoweringObjectFile.h:263
llvm::TargetLoweringObjectFile::supportGOTPCRelWithOffset
bool supportGOTPCRelWithOffset() const
Target GOT "PC"-relative relocation supports encoding an additional binary expression with an offset?
Definition:TargetLoweringObjectFile.h:219
llvm::TargetLoweringObjectFile::~TargetLoweringObjectFile
virtual ~TargetLoweringObjectFile()
Definition:TargetLoweringObjectFile.cpp:55
llvm::TargetLoweringObjectFile::getDebugThreadLocalSymbol
virtual const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const
Create a symbol reference to describe the given TLS variable when emitting the address in debug info.
Definition:TargetLoweringObjectFile.cpp:426
llvm::TargetLoweringObjectFile::getSectionForLSDA
virtual MCSection * getSectionForLSDA(const Function &, const MCSymbol &, const TargetMachine &) const
Definition:TargetLoweringObjectFile.h:138
llvm::TargetLoweringObjectFile::supportIndirectSymViaGOTPCRel
bool supportIndirectSymViaGOTPCRel() const
Target supports replacing a data "PC"-relative access to a symbol through another symbol,...
Definition:TargetLoweringObjectFile.h:213
llvm::TargetLoweringObjectFile::getTTypeGlobalReference
virtual const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const
Return an MCExpr to use for a reference to the specified global variable from exception handling info...
Definition:TargetLoweringObjectFile.cpp:397
llvm::TargetLoweringObjectFile::TTypeEncoding
unsigned TTypeEncoding
Definition:TargetLoweringObjectFile.h:59
llvm::TargetLoweringObjectFile::CallSiteEncoding
unsigned CallSiteEncoding
Definition:TargetLoweringObjectFile.h:60
llvm::TargetLoweringObjectFile::getExplicitSectionGlobal
virtual MCSection * getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const =0
Targets should implement this method to assign a section to globals with an explicit section specfied...
llvm::TargetLoweringObjectFile::TargetLoweringObjectFile
TargetLoweringObjectFile()=default
llvm::TargetLoweringObjectFile::getTTypeReference
const MCExpr * getTTypeReference(const MCSymbolRefExpr *Sym, unsigned Encoding, MCStreamer &Streamer) const
Definition:TargetLoweringObjectFile.cpp:407
llvm::TargetLoweringObjectFile::getFunctionEntryPointSymbol
virtual MCSymbol * getFunctionEntryPointSymbol(const GlobalValue *Func, const TargetMachine &TM) const
If supported, return the function entry point symbol.
Definition:TargetLoweringObjectFile.h:286
llvm::TargetLoweringObjectFile::getSectionForFunctionDescriptor
virtual MCSection * getSectionForFunctionDescriptor(const Function *F, const TargetMachine &TM) const
On targets that use separate function descriptor symbols, return a section for the descriptor given i...
Definition:TargetLoweringObjectFile.h:255
llvm::TargetLoweringObjectFile::emitLinkerDirectives
virtual void emitLinkerDirectives(MCStreamer &Streamer, Module &M) const
Process linker options metadata and emit platform-specific bits.
Definition:TargetLoweringObjectFile.h:95
llvm::TargetLoweringObjectFile::TargetLoweringObjectFile
TargetLoweringObjectFile(const TargetLoweringObjectFile &)=delete
llvm::TargetLoweringObjectFile::emitPersonalityValue
virtual void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &TM, const MCSymbol *Sym, const MachineModuleInfo *MMI) const
Definition:TargetLoweringObjectFile.cpp:144
llvm::TargetLoweringObjectFile::getTargetSymbol
virtual MCSymbol * getTargetSymbol(const GlobalValue *GV, const TargetMachine &TM) const
Targets that have a special convention for their symbols could use this hook to return a specialized ...
Definition:TargetLoweringObjectFile.h:278
llvm::TargetLoweringObjectFile::lowerRelativeReference
virtual const MCExpr * lowerRelativeReference(const GlobalValue *LHS, const GlobalValue *RHS, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.h:194
llvm::TargetLoweringObjectFile::getUniqueSectionForFunction
virtual MCSection * getUniqueSectionForFunction(const Function &F, const TargetMachine &TM) const
Definition:TargetLoweringObjectFile.cpp:389
llvm::TargetLoweringObjectFile::SectionForGlobal
MCSection * SectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const
This method computes the appropriate section to emit the specified global variable or function defini...
Definition:TargetLoweringObjectFile.cpp:320
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition:TargetMachine.h:77
llvm::CallingConv::C
@ C
The default llvm calling convention, compatible with C.
Definition:CallingConv.h:34
llvm::ISD::MCSymbol
@ MCSymbol
Definition:ISDOpcodes.h:178
llvm::ISD::Constant
@ Constant
Definition:ISDOpcodes.h:76
llvm::codeview::PublicSymFlags::Function
@ Function
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:AddressRanges.h:18
llvm::Offset
@ Offset
Definition:DWP.cpp:480
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition:Alignment.h:39

Generated on Thu Jul 17 2025 10:23:31 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp