Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
SymbolizableObjectFile.cpp
Go to the documentation of this file.
1//===- SymbolizableObjectFile.cpp -----------------------------------------===//
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// Implementation of SymbolizableObjectFile class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "llvm/DebugInfo/Symbolize/SymbolizableObjectFile.h"
14#include "llvm/ADT/STLExtras.h"
15#include "llvm/BinaryFormat/COFF.h"
16#include "llvm/DebugInfo/DWARF/DWARFContext.h"
17#include "llvm/Object/COFF.h"
18#include "llvm/Object/ELFObjectFile.h"
19#include "llvm/Object/ObjectFile.h"
20#include "llvm/Object/SymbolSize.h"
21#include "llvm/Support/Casting.h"
22#include "llvm/Support/DataExtractor.h"
23#include "llvm/TargetParser/Triple.h"
24
25using namespacellvm;
26using namespaceobject;
27using namespacesymbolize;
28
29Expected<std::unique_ptr<SymbolizableObjectFile>>
30SymbolizableObjectFile::create(constobject::ObjectFile *Obj,
31 std::unique_ptr<DIContext> DICtx,
32bool UntagAddresses) {
33assert(DICtx);
34 std::unique_ptr<SymbolizableObjectFile> res(
35newSymbolizableObjectFile(Obj, std::move(DICtx), UntagAddresses));
36 std::unique_ptr<DataExtractor> OpdExtractor;
37uint64_t OpdAddress = 0;
38// Find the .opd (function descriptor) section if any, for big-endian
39// PowerPC64 ELF.
40if (Obj->getArch() ==Triple::ppc64) {
41for (section_iterator Section : Obj->sections()) {
42Expected<StringRef> NameOrErr = Section->getName();
43if (!NameOrErr)
44return NameOrErr.takeError();
45
46if (*NameOrErr ==".opd") {
47Expected<StringRef> E = Section->getContents();
48if (!E)
49return E.takeError();
50 OpdExtractor.reset(newDataExtractor(*E, Obj->isLittleEndian(),
51 Obj->getBytesInAddress()));
52 OpdAddress = Section->getAddress();
53break;
54 }
55 }
56 }
57 std::vector<std::pair<SymbolRef, uint64_t>> Symbols =
58computeSymbolSizes(*Obj);
59for (auto &P : Symbols)
60if (Error E =
61 res->addSymbol(P.first,P.second, OpdExtractor.get(), OpdAddress))
62return std::move(E);
63
64// If this is a COFF object and we didn't find any symbols, try the export
65// table.
66if (Symbols.empty()) {
67if (auto *CoffObj = dyn_cast<COFFObjectFile>(Obj))
68if (Error E = res->addCoffExportSymbols(CoffObj))
69return std::move(E);
70 }
71
72 std::vector<SymbolDesc> &SS = res->Symbols;
73// Sort by (Addr,Size,Name). If several SymbolDescs share the same Addr,
74// pick the one with the largest Size. This helps us avoid symbols with no
75// size information (Size=0).
76llvm::stable_sort(SS);
77autoI = SS.begin(), E = SS.end(), J = SS.begin();
78while (I != E) {
79auto OI =I;
80while (++I != E && OI->Addr ==I->Addr) {
81 }
82 *J++ =I[-1];
83 }
84 SS.erase(J, SS.end());
85
86return std::move(res);
87}
88
89SymbolizableObjectFile::SymbolizableObjectFile(constObjectFile *Obj,
90 std::unique_ptr<DIContext> DICtx,
91bool UntagAddresses)
92 :Module(Obj), DebugInfoContext(std::move(DICtx)),
93 UntagAddresses(UntagAddresses) {}
94
95namespace{
96
97structOffsetNamePair {
98uint32_tOffset;
99StringRefName;
100
101booloperator<(const OffsetNamePair &R) const{
102returnOffset < R.Offset;
103 }
104};
105
106}// end anonymous namespace
107
108Error SymbolizableObjectFile::addCoffExportSymbols(
109constCOFFObjectFile *CoffObj) {
110// Get all export names and offsets.
111 std::vector<OffsetNamePair> ExportSyms;
112for (constExportDirectoryEntryRef &Ref : CoffObj->export_directories()) {
113StringRefName;
114uint32_tOffset;
115if (auto EC =Ref.getSymbolName(Name))
116returnEC;
117if (auto EC =Ref.getExportRVA(Offset))
118returnEC;
119 ExportSyms.push_back(OffsetNamePair{Offset,Name});
120 }
121if (ExportSyms.empty())
122returnError::success();
123
124// Sort by ascending offset.
125array_pod_sort(ExportSyms.begin(), ExportSyms.end());
126
127// Approximate the symbol sizes by assuming they run to the next symbol.
128// FIXME: This assumes all exports are functions.
129uint64_t ImageBase = CoffObj->getImageBase();
130for (autoI = ExportSyms.begin(), E = ExportSyms.end();I != E; ++I) {
131 OffsetNamePair &Export = *I;
132// FIXME: The last export has a one byte size now.
133uint32_t NextOffset =I != E ?I->Offset :Export.Offset + 1;
134uint64_t SymbolStart = ImageBase +Export.Offset;
135uint64_t SymbolSize = NextOffset -Export.Offset;
136 Symbols.push_back({SymbolStart, SymbolSize,Export.Name, 0});
137 }
138returnError::success();
139}
140
141Error SymbolizableObjectFile::addSymbol(constSymbolRef &Symbol,
142uint64_t SymbolSize,
143DataExtractor *OpdExtractor,
144uint64_t OpdAddress) {
145// Avoid adding symbols from an unknown/undefined section.
146constObjectFile &Obj = *Symbol.getObject();
147Expected<StringRef> SymbolNameOrErr =Symbol.getName();
148if (!SymbolNameOrErr)
149return SymbolNameOrErr.takeError();
150StringRefSymbolName = *SymbolNameOrErr;
151
152uint32_t ELFSymIdx =
153 Obj.isELF() ?ELFSymbolRef(Symbol).getRawDataRefImpl().d.b : 0;
154Expected<section_iterator> Sec =Symbol.getSection();
155if (!Sec || Obj.section_end() == *Sec) {
156if (Obj.isELF()) {
157// Store the (index, filename) pair for a file symbol.
158ELFSymbolRef ESym(Symbol);
159if (ESym.getELFType() ==ELF::STT_FILE)
160 FileSymbols.emplace_back(ELFSymIdx, SymbolName);
161 }
162returnError::success();
163 }
164
165Expected<SymbolRef::Type> SymbolTypeOrErr =Symbol.getType();
166if (!SymbolTypeOrErr)
167return SymbolTypeOrErr.takeError();
168SymbolRef::TypeSymbolType = *SymbolTypeOrErr;
169if (Obj.isELF()) {
170// Ignore any symbols coming from sections that don't have runtime
171// allocated memory.
172if ((elf_section_iterator(*Sec)->getFlags() &ELF::SHF_ALLOC) == 0)
173returnError::success();
174
175// Allow function and data symbols. Additionally allow STT_NONE, which are
176// common for functions defined in assembly.
177uint8_tType =ELFSymbolRef(Symbol).getELFType();
178if (Type !=ELF::STT_NOTYPE &&Type !=ELF::STT_FUNC &&
179Type !=ELF::STT_OBJECT &&Type !=ELF::STT_GNU_IFUNC)
180returnError::success();
181// Some STT_NOTYPE symbols are not desired. This excludes STT_SECTION and
182// ARM mapping symbols.
183uint32_tFlags =cantFail(Symbol.getFlags());
184if (Flags & SymbolRef::SF_FormatSpecific)
185returnError::success();
186 }elseif (SymbolType !=SymbolRef::ST_Function &&
187SymbolType !=SymbolRef::ST_Data) {
188returnError::success();
189 }
190
191Expected<uint64_t> SymbolAddressOrErr =Symbol.getAddress();
192if (!SymbolAddressOrErr)
193return SymbolAddressOrErr.takeError();
194uint64_t SymbolAddress = *SymbolAddressOrErr;
195if (UntagAddresses) {
196// For kernel addresses, bits 56-63 need to be set, so we sign extend bit 55
197// into bits 56-63 instead of masking them out.
198 SymbolAddress &= (1ull << 56) - 1;
199 SymbolAddress = (int64_t(SymbolAddress) << 8) >> 8;
200 }
201if (OpdExtractor) {
202// For big-endian PowerPC64 ELF, symbols in the .opd section refer to
203// function descriptors. The first word of the descriptor is a pointer to
204// the function's code.
205// For the purposes of symbolization, pretend the symbol's address is that
206// of the function's code, not the descriptor.
207uint64_t OpdOffset = SymbolAddress - OpdAddress;
208if (OpdExtractor->isValidOffsetForAddress(OpdOffset))
209 SymbolAddress = OpdExtractor->getAddress(&OpdOffset);
210 }
211// Mach-O symbol table names have leading underscore, skip it.
212if (Module->isMachO())
213SymbolName.consume_front("_");
214
215if (Obj.isELF() &&ELFSymbolRef(Symbol).getBinding() !=ELF::STB_LOCAL)
216 ELFSymIdx = 0;
217 Symbols.push_back({SymbolAddress, SymbolSize,SymbolName, ELFSymIdx});
218returnError::success();
219}
220
221// Return true if this is a 32-bit x86 PE COFF module.
222boolSymbolizableObjectFile::isWin32Module() const{
223auto *CoffObject = dyn_cast<COFFObjectFile>(Module);
224return CoffObject && CoffObject->getMachine() ==COFF::IMAGE_FILE_MACHINE_I386;
225}
226
227uint64_tSymbolizableObjectFile::getModulePreferredBase() const{
228if (auto *CoffObject = dyn_cast<COFFObjectFile>(Module))
229return CoffObject->getImageBase();
230return 0;
231}
232
233bool SymbolizableObjectFile::getNameFromSymbolTable(
234uint64_tAddress, std::string &Name,uint64_t &Addr,uint64_t &Size,
235 std::string &FileName) const{
236 SymbolDesc SD{Address, UINT64_C(-1),StringRef(), 0};
237auto SymbolIterator =llvm::upper_bound(Symbols, SD);
238if (SymbolIterator == Symbols.begin())
239returnfalse;
240 --SymbolIterator;
241if (SymbolIterator->Size != 0 &&
242 SymbolIterator->Addr + SymbolIterator->Size <=Address)
243returnfalse;
244Name = SymbolIterator->Name.str();
245Addr = SymbolIterator->Addr;
246Size = SymbolIterator->Size;
247
248if (SymbolIterator->ELFLocalSymIdx != 0) {
249// If this is an ELF local symbol, find the STT_FILE symbol preceding
250// SymbolIterator to get the filename. The ELF spec requires the STT_FILE
251// symbol (if present) precedes the other STB_LOCAL symbols for the file.
252assert(Module->isELF());
253auto It =llvm::upper_bound(
254 FileSymbols,
255 std::make_pair(SymbolIterator->ELFLocalSymIdx,StringRef()));
256if (It != FileSymbols.begin())
257 FileName = It[-1].second.str();
258 }
259returntrue;
260}
261
262bool SymbolizableObjectFile::shouldOverrideWithSymbolTable(
263FunctionNameKind FNKind,bool UseSymbolTable) const{
264// When DWARF is used with -gline-tables-only / -gmlt, the symbol table gives
265// better answers for linkage names than the DIContext. Otherwise, we are
266// probably using PEs and PDBs, and we shouldn't do the override. PE files
267// generally only contain the names of exported symbols.
268return FNKind == FunctionNameKind::LinkageName && UseSymbolTable &&
269 isa<DWARFContext>(DebugInfoContext.get());
270}
271
272DILineInfo
273SymbolizableObjectFile::symbolizeCode(object::SectionedAddress ModuleOffset,
274DILineInfoSpecifier LineInfoSpecifier,
275bool UseSymbolTable) const{
276if (ModuleOffset.SectionIndex ==object::SectionedAddress::UndefSection)
277 ModuleOffset.SectionIndex =
278 getModuleSectionIndexForAddress(ModuleOffset.Address);
279DILineInfo LineInfo =
280 DebugInfoContext->getLineInfoForAddress(ModuleOffset, LineInfoSpecifier);
281
282// Override function name from symbol table if necessary.
283if (shouldOverrideWithSymbolTable(LineInfoSpecifier.FNKind, UseSymbolTable)) {
284 std::string FunctionName, FileName;
285uint64_t Start,Size;
286if (getNameFromSymbolTable(ModuleOffset.Address, FunctionName, Start,Size,
287 FileName)) {
288 LineInfo.FunctionName = FunctionName;
289 LineInfo.StartAddress = Start;
290if (LineInfo.FileName ==DILineInfo::BadString && !FileName.empty())
291 LineInfo.FileName = FileName;
292 }
293 }
294return LineInfo;
295}
296
297DIInliningInfoSymbolizableObjectFile::symbolizeInlinedCode(
298object::SectionedAddress ModuleOffset,
299DILineInfoSpecifier LineInfoSpecifier,bool UseSymbolTable) const{
300if (ModuleOffset.SectionIndex ==object::SectionedAddress::UndefSection)
301 ModuleOffset.SectionIndex =
302 getModuleSectionIndexForAddress(ModuleOffset.Address);
303DIInliningInfoInlinedContext = DebugInfoContext->getInliningInfoForAddress(
304 ModuleOffset, LineInfoSpecifier);
305
306// Make sure there is at least one frame in context.
307if (InlinedContext.getNumberOfFrames() == 0)
308InlinedContext.addFrame(DILineInfo());
309
310// Override the function name in lower frame with name from symbol table.
311if (shouldOverrideWithSymbolTable(LineInfoSpecifier.FNKind, UseSymbolTable)) {
312 std::string FunctionName, FileName;
313uint64_t Start,Size;
314if (getNameFromSymbolTable(ModuleOffset.Address, FunctionName, Start,Size,
315 FileName)) {
316DILineInfo *LI =InlinedContext.getMutableFrame(
317InlinedContext.getNumberOfFrames() - 1);
318 LI->FunctionName = FunctionName;
319 LI->StartAddress = Start;
320if (LI->FileName ==DILineInfo::BadString && !FileName.empty())
321 LI->FileName = FileName;
322 }
323 }
324
325returnInlinedContext;
326}
327
328DIGlobalSymbolizableObjectFile::symbolizeData(
329object::SectionedAddress ModuleOffset) const{
330DIGlobal Res;
331 std::string FileName;
332 getNameFromSymbolTable(ModuleOffset.Address, Res.Name, Res.Start, Res.Size,
333 FileName);
334 Res.DeclFile = FileName;
335
336// Try and get a better filename:lineno pair from the debuginfo, if present.
337DILineInfoDL = DebugInfoContext->getLineInfoForDataAddress(ModuleOffset);
338if (DL.Line != 0) {
339 Res.DeclFile =DL.FileName;
340 Res.DeclLine =DL.Line;
341 }
342return Res;
343}
344
345std::vector<DILocal>SymbolizableObjectFile::symbolizeFrame(
346object::SectionedAddress ModuleOffset) const{
347if (ModuleOffset.SectionIndex ==object::SectionedAddress::UndefSection)
348 ModuleOffset.SectionIndex =
349 getModuleSectionIndexForAddress(ModuleOffset.Address);
350return DebugInfoContext->getLocalsForAddress(ModuleOffset);
351}
352
353std::vector<object::SectionedAddress>
354SymbolizableObjectFile::findSymbol(StringRef Symbol,uint64_tOffset) const{
355 std::vector<object::SectionedAddress> Result;
356for (const SymbolDesc &Sym : Symbols) {
357if (Sym.Name == Symbol) {
358uint64_tAddr =Sym.Addr;
359if (Offset <Sym.Size)
360Addr +=Offset;
361object::SectionedAddressA{Addr, getModuleSectionIndexForAddress(Addr)};
362 Result.push_back(A);
363 }
364 }
365return Result;
366}
367
368/// Search for the first occurence of specified Address in ObjectFile.
369uint64_t SymbolizableObjectFile::getModuleSectionIndexForAddress(
370uint64_tAddress) const{
371
372for (SectionRef Sec :Module->sections()) {
373if (!Sec.isText() || Sec.isVirtual())
374continue;
375
376if (Address >= Sec.getAddress() &&
377Address < Sec.getAddress() + Sec.getSize())
378return Sec.getIndex();
379 }
380
381returnobject::SectionedAddress::UndefSection;
382}
DL
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Definition:ARMSLSHardening.cpp:73
COFF.h
A
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
Casting.h
DWARFContext.h
DataExtractor.h
Addr
uint64_t Addr
Definition:ELFObjHandler.cpp:79
Name
std::string Name
Definition:ELFObjHandler.cpp:77
Size
uint64_t Size
Definition:ELFObjHandler.cpp:81
ELFObjectFile.h
Sym
Symbol * Sym
Definition:ELF_riscv.cpp:479
I
#define I(x, y, z)
Definition:MD5.cpp:58
ObjectFile.h
COFF.h
P
#define P(N)
assert
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
STLExtras.h
This file contains some templates that are useful if you are working with the STL at all.
SymbolSize.h
SymbolizableObjectFile.h
Triple.h
llvm::DIInliningInfo
A format-neutral container for inlined code description.
Definition:DIContext.h:94
llvm::DataExtractor
Definition:DataExtractor.h:41
llvm::DataExtractor::getAddress
uint64_t getAddress(uint64_t *offset_ptr) const
Extract an pointer from *offset_ptr.
Definition:DataExtractor.h:325
llvm::DataExtractor::isValidOffsetForAddress
bool isValidOffsetForAddress(uint64_t offset) const
Test the availability of enough bytes of data for a pointer from offset.
Definition:DataExtractor.h:683
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition:Error.h:160
llvm::Error::success
static ErrorSuccess success()
Create a success value.
Definition:Error.h:337
llvm::Expected
Tagged union holding either a T or a Error.
Definition:Error.h:481
llvm::Expected::takeError
Error takeError()
Take ownership of the stored error.
Definition:Error.h:608
llvm::Module
A Module instance is used to store all the information related to an LLVM module.
Definition:Module.h:65
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:StringRef.h:51
llvm::Triple::ppc64
@ ppc64
Definition:Triple.h:71
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed.
Definition:Type.h:45
llvm::object::BasicSymbolRef::getRawDataRefImpl
DataRefImpl getRawDataRefImpl() const
Definition:SymbolicFile.h:210
llvm::object::Binary::isLittleEndian
bool isLittleEndian() const
Definition:Binary.h:155
llvm::object::Binary::isELF
bool isELF() const
Definition:Binary.h:123
llvm::object::COFFObjectFile
Definition:COFF.h:879
llvm::object::COFFObjectFile::export_directories
iterator_range< export_directory_iterator > export_directories() const
Definition:COFFObjectFile.cpp:1164
llvm::object::COFFObjectFile::getImageBase
uint64_t getImageBase() const
Definition:COFFObjectFile.cpp:454
llvm::object::ELFSectionRef::getFlags
uint64_t getFlags() const
Definition:ELFObjectFile.h:144
llvm::object::ELFSymbolRef
Definition:ELFObjectFile.h:168
llvm::object::ELFSymbolRef::getELFType
uint8_t getELFType() const
Definition:ELFObjectFile.h:190
llvm::object::ELFSymbolRef::getBinding
uint8_t getBinding() const
Definition:ELFObjectFile.h:182
llvm::object::ExportDirectoryEntryRef
Definition:COFF.h:1283
llvm::object::ObjectFile
This class is the base class for all object file types.
Definition:ObjectFile.h:229
llvm::object::ObjectFile::section_end
virtual section_iterator section_end() const =0
llvm::object::ObjectFile::getBytesInAddress
virtual uint8_t getBytesInAddress() const =0
The number of bytes used to represent an address in this object file format.
llvm::object::ObjectFile::sections
section_iterator_range sections() const
Definition:ObjectFile.h:329
llvm::object::ObjectFile::getArch
virtual Triple::ArchType getArch() const =0
llvm::object::SectionRef
This is a value type class that represents a single section in the list of sections in the object fil...
Definition:ObjectFile.h:81
llvm::object::SymbolRef
This is a value type class that represents a single symbol in the list of symbols in the object file.
Definition:ObjectFile.h:168
llvm::object::SymbolRef::Type
Type
Definition:ObjectFile.h:172
llvm::object::SymbolRef::ST_Function
@ ST_Function
Definition:ObjectFile.h:178
llvm::object::SymbolRef::ST_Data
@ ST_Data
Definition:ObjectFile.h:175
llvm::object::content_iterator< SectionRef >
llvm::object::elf_section_iterator
Definition:ELFObjectFile.h:153
llvm::symbolize::SymbolizableObjectFile
Definition:SymbolizableObjectFile.h:31
llvm::symbolize::SymbolizableObjectFile::symbolizeData
DIGlobal symbolizeData(object::SectionedAddress ModuleOffset) const override
Definition:SymbolizableObjectFile.cpp:328
llvm::symbolize::SymbolizableObjectFile::symbolizeCode
DILineInfo symbolizeCode(object::SectionedAddress ModuleOffset, DILineInfoSpecifier LineInfoSpecifier, bool UseSymbolTable) const override
Definition:SymbolizableObjectFile.cpp:273
llvm::symbolize::SymbolizableObjectFile::create
static Expected< std::unique_ptr< SymbolizableObjectFile > > create(const object::ObjectFile *Obj, std::unique_ptr< DIContext > DICtx, bool UntagAddresses)
Definition:SymbolizableObjectFile.cpp:30
llvm::symbolize::SymbolizableObjectFile::findSymbol
std::vector< object::SectionedAddress > findSymbol(StringRef Symbol, uint64_t Offset) const override
Definition:SymbolizableObjectFile.cpp:354
llvm::symbolize::SymbolizableObjectFile::getModulePreferredBase
uint64_t getModulePreferredBase() const override
Definition:SymbolizableObjectFile.cpp:227
llvm::symbolize::SymbolizableObjectFile::symbolizeFrame
std::vector< DILocal > symbolizeFrame(object::SectionedAddress ModuleOffset) const override
Definition:SymbolizableObjectFile.cpp:345
llvm::symbolize::SymbolizableObjectFile::isWin32Module
bool isWin32Module() const override
Definition:SymbolizableObjectFile.cpp:222
llvm::symbolize::SymbolizableObjectFile::symbolizeInlinedCode
DIInliningInfo symbolizeInlinedCode(object::SectionedAddress ModuleOffset, DILineInfoSpecifier LineInfoSpecifier, bool UseSymbolTable) const override
Definition:SymbolizableObjectFile.cpp:297
uint32_t
uint64_t
uint8_t
llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName
constexpr char SymbolName[]
Key for Kernel::Metadata::mSymbolName.
Definition:AMDGPUMetadata.h:387
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition:ARMBuildAttributes.h:83
llvm::COFF::IMAGE_FILE_MACHINE_I386
@ IMAGE_FILE_MACHINE_I386
Definition:COFF.h:104
llvm::ELF::SHF_ALLOC
@ SHF_ALLOC
Definition:ELF.h:1198
llvm::ELF::STB_LOCAL
@ STB_LOCAL
Definition:ELF.h:1351
llvm::ELF::STT_FUNC
@ STT_FUNC
Definition:ELF.h:1365
llvm::ELF::STT_NOTYPE
@ STT_NOTYPE
Definition:ELF.h:1363
llvm::ELF::STT_FILE
@ STT_FILE
Definition:ELF.h:1367
llvm::ELF::STT_GNU_IFUNC
@ STT_GNU_IFUNC
Definition:ELF.h:1370
llvm::ELF::STT_OBJECT
@ STT_OBJECT
Definition:ELF.h:1364
llvm::XCOFF::SymbolType
SymbolType
Definition:XCOFF.h:240
llvm::codeview::CompileSym2Flags::EC
@ EC
llvm::object::computeSymbolSizes
std::vector< std::pair< SymbolRef, uint64_t > > computeSymbolSizes(const ObjectFile &O)
Definition:SymbolSize.cpp:50
llvm::omp::RTLDependInfoFields::Flags
@ Flags
llvm::sampleprof::InlinedContext
@ InlinedContext
Definition:SampleProf.h:451
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:AddressRanges.h:18
llvm::Offset
@ Offset
Definition:DWP.cpp:480
llvm::operator<
bool operator<(int64_t V1, const APSInt &V2)
Definition:APSInt.h:361
llvm::stable_sort
void stable_sort(R &&Range)
Definition:STLExtras.h:2037
llvm::PassSummaryAction::Export
@ Export
Export information to summary.
llvm::upper_bound
auto upper_bound(R &&Range, T &&Value)
Provide wrappers to std::upper_bound which take ranges instead of having to pass begin/end explicitly...
Definition:STLExtras.h:1991
llvm::CaptureComponents::Address
@ Address
llvm::ModRefInfo::Ref
@ Ref
The access may reference the value stored in memory.
llvm::cantFail
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
Definition:Error.h:756
llvm::DINameKind
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
Definition:DIContext.h:142
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition:STLExtras.h:1873
llvm::array_pod_sort
void array_pod_sort(IteratorTy Start, IteratorTy End)
array_pod_sort - This sorts an array with the specified start and end extent.
Definition:STLExtras.h:1624
std
Implement std::hash so that hash_code can be used in STL containers.
Definition:BitVector.h:858
llvm::DIGlobal
Container for description of a global variable.
Definition:DIContext.h:120
llvm::DIGlobal::Size
uint64_t Size
Definition:DIContext.h:123
llvm::DIGlobal::Start
uint64_t Start
Definition:DIContext.h:122
llvm::DIGlobal::Name
std::string Name
Definition:DIContext.h:121
llvm::DIGlobal::DeclFile
std::string DeclFile
Definition:DIContext.h:124
llvm::DIGlobal::DeclLine
uint64_t DeclLine
Definition:DIContext.h:125
llvm::DILineInfoSpecifier
Controls which fields of DILineInfo container should be filled with data.
Definition:DIContext.h:146
llvm::DILineInfoSpecifier::FNKind
FunctionNameKind FNKind
Definition:DIContext.h:159
llvm::DILineInfo
A format-neutral container for source line information.
Definition:DIContext.h:32
llvm::DILineInfo::BadString
static constexpr const char *const BadString
Definition:DIContext.h:35
llvm::DILineInfo::StartAddress
std::optional< uint64_t > StartAddress
Definition:DIContext.h:49
llvm::DILineInfo::FileName
std::string FileName
Definition:DIContext.h:38
llvm::DILineInfo::FunctionName
std::string FunctionName
Definition:DIContext.h:39
llvm::object::SectionedAddress
Definition:ObjectFile.h:145
llvm::object::SectionedAddress::Address
uint64_t Address
Definition:ObjectFile.h:148
llvm::object::SectionedAddress::UndefSection
static const uint64_t UndefSection
Definition:ObjectFile.h:146
llvm::object::SectionedAddress::SectionIndex
uint64_t SectionIndex
Definition:ObjectFile.h:149
llvm::object::DataRefImpl::b
uint32_t b
Definition:SymbolicFile.h:39
llvm::object::DataRefImpl::d
struct llvm::object::DataRefImpl::@370 d

Generated on Fri Jul 18 2025 11:17:24 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp