LLVM 20.0.0git
|
Typedefs | |
using | char_16 = char[16] |
using | uuid_t = raw_ostream::uuid_t |
using | ErrorHandler = llvm::function_ref< void(const Twine &Msg)> |
using | BBNumberMap = DenseMap< int, int > |
using llvm::yaml::BBNumberMap = typedef DenseMap<int, int> |
Definition at line 180 of file WebAssemblyMachineFunctionInfo.h.
using llvm::yaml::char_16 = typedef char[16] |
Definition at line 298 of file MachOYAML.h.
using llvm::yaml::ErrorHandler = typedef llvm::function_ref<void(const Twine &Msg)> |
Definition at line 67 of file yaml2obj.h.
using llvm::yaml::uuid_t = typedef raw_ostream::uuid_t |
Definition at line 308 of file MachOYAML.h.
|
static |
Definition at line 280 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::BlockAuxEnt::LineNum, llvm::XCOFFYAML::BlockAuxEnt::LineNumHi, and llvm::XCOFFYAML::BlockAuxEnt::LineNumLo.
|
static |
Definition at line 258 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::CsectAuxEnt::ParameterHashIndex, llvm::XCOFFYAML::CsectAuxEnt::SectionOrLength, llvm::XCOFFYAML::CsectAuxEnt::SectionOrLengthHi, llvm::XCOFFYAML::CsectAuxEnt::SectionOrLengthLo, llvm::XCOFFYAML::CsectAuxEnt::StabInfoIndex, llvm::XCOFFYAML::CsectAuxEnt::StabSectNum, llvm::XCOFFYAML::CsectAuxEnt::StorageMappingClass, llvm::XCOFFYAML::CsectAuxEnt::SymbolAlignment, llvm::XCOFFYAML::CsectAuxEnt::SymbolAlignmentAndType, llvm::XCOFFYAML::CsectAuxEnt::SymbolType, and llvm::XCOFFYAML::CsectAuxEnt::TypeChkSectNum.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< XCOFFYAML::AuxSymbolEnt > >::mapping().
|
static |
Definition at line 298 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::ExcpetionAuxEnt::OffsetToExceptionTbl, llvm::XCOFFYAML::ExcpetionAuxEnt::SizeOfFunction, and llvm::XCOFFYAML::ExcpetionAuxEnt::SymIdxOfNextBeyond.
|
static |
Definition at line 275 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::FileAuxEnt::FileNameOrString, and llvm::XCOFFYAML::FileAuxEnt::FileStringType.
|
static |
|
static |
Definition at line 304 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::SectAuxEntForDWARF::LengthOfSectionPortion, and llvm::XCOFFYAML::SectAuxEntForDWARF::NumberOfRelocEnt.
|
static |
Definition at line 309 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::SectAuxEntForStat::NumberOfLineNum, llvm::XCOFFYAML::SectAuxEntForStat::NumberOfRelocEnt, and llvm::XCOFFYAML::SectAuxEntForStat::SectionLength.
CollectionType::iterator llvm::yaml::begin | ( | CollectionType & | C | ) |
Definition at line 395 of file YAMLParser.h.
References assert(), and llvm::CallingConv::C.
Referenced by llvm::yaml::MappingNode::begin(), and llvm::yaml::SequenceNode::begin().
|
static |
Definition at line 1374 of file ELFYAML.cpp.
References assert().
Referenced by groupSectionMapping(), and sectionMapping().
|
static |
Definition at line 46 of file WasmYAML.cpp.
bool llvm::yaml::convertYAML | ( | Input & | YIn, |
raw_ostream & | Out, | ||
ErrorHandler | ErrHandler, | ||
unsigned | DocNum = 1 , |
||
uint64_t | MaxSize = UINT64_MAX |
||
) |
Referenced by yaml2ObjectFile().
bool llvm::yaml::convertYAML | ( | yaml::Input & | YIn, |
raw_ostream & | Out, | ||
ErrorHandler | ErrHandler, | ||
unsigned | DocNum, | ||
uint64_t | MaxSize | ||
) |
Definition at line 21 of file yaml2obj.cpp.
References llvm::yaml::YamlObjectFile::Arch, llvm::yaml::YamlObjectFile::Coff, llvm::yaml::YamlObjectFile::DXContainer, llvm::yaml::YamlObjectFile::Elf, llvm::yaml::YamlObjectFile::FatMachO, llvm::yaml::YamlObjectFile::Goff, llvm::yaml::YamlObjectFile::MachO, llvm::yaml::YamlObjectFile::Minidump, llvm::yaml::YamlObjectFile::Offload, llvm::yaml::YamlObjectFile::Wasm, llvm::yaml::YamlObjectFile::Xcoff, yaml2archive(), yaml2coff(), yaml2dxcontainer(), yaml2elf(), yaml2goff(), yaml2macho(), yaml2minidump(), yaml2offload(), yaml2wasm(), and yaml2xcoff().
bool llvm::yaml::dumpTokens | ( | StringRef | Input, |
raw_ostream & | OS | ||
) |
Dump all the tokens in this stream to OS.
Definition at line 608 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), OS, llvm::yaml::Token::TK_Alias, llvm::yaml::Token::TK_Anchor, llvm::yaml::Token::TK_BlockEnd, llvm::yaml::Token::TK_BlockEntry, llvm::yaml::Token::TK_BlockMappingStart, llvm::yaml::Token::TK_BlockScalar, llvm::yaml::Token::TK_BlockSequenceStart, llvm::yaml::Token::TK_DocumentEnd, llvm::yaml::Token::TK_DocumentStart, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowEntry, llvm::yaml::Token::TK_FlowMappingEnd, llvm::yaml::Token::TK_FlowMappingStart, llvm::yaml::Token::TK_FlowSequenceEnd, llvm::yaml::Token::TK_FlowSequenceStart, llvm::yaml::Token::TK_Key, llvm::yaml::Token::TK_Scalar, llvm::yaml::Token::TK_StreamEnd, llvm::yaml::Token::TK_StreamStart, llvm::yaml::Token::TK_Tag, llvm::yaml::Token::TK_TagDirective, llvm::yaml::Token::TK_Value, and llvm::yaml::Token::TK_VersionDirective.
Escape Input for a double quoted scalar; if EscapePrintable
is true, all UTF8 sequences will be escaped, if EscapePrintable
is false, those UTF8 sequences encoding printable unicode scalars will not be escaped, but emitted verbatim.
Definition at line 705 of file YAMLParser.cpp.
References llvm::append_range(), llvm::StringRef::begin(), decodeUTF8(), encodeUTF8(), llvm::StringRef::end(), and llvm::sys::unicode::isPrintable().
|
static |
Definition at line 1507 of file ELFYAML.cpp.
References llvm::ELFYAML::Chunk::Name, llvm::ELFYAML::Chunk::Offset, llvm::ELFYAML::Fill::Pattern, and llvm::ELFYAML::Fill::Size.
Definition at line 1568 of file ELFYAML.cpp.
|
static |
Definition at line 1491 of file ELFYAML.cpp.
References commonSectionMapping(), llvm::ELFYAML::GroupSection::Members, and llvm::ELFYAML::GroupSection::Signature.
Definition at line 1578 of file ELFYAML.cpp.
References llvm::StringRef::getAsInteger().
void llvm::yaml::mapLoadCommandData | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 220 of file MachOYAML.cpp.
References mapLoadCommandData().
Referenced by mapLoadCommandData().
void llvm::yaml::mapLoadCommandData< MachO::build_version_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 277 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Tools.
void llvm::yaml::mapLoadCommandData< MachO::dylib_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 235 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::dylinker_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 247 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::rpath_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 241 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::segment_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 223 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Sections.
void llvm::yaml::mapLoadCommandData< MachO::segment_command_64 > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 229 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Sections.
void llvm::yaml::mapLoadCommandData< MachO::sub_client_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 265 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::sub_framework_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 253 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::sub_library_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 271 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::sub_umbrella_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 259 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
Definition at line 566 of file COFFYAML.cpp.
References MCase.
Referenced by llvm::yaml::MappingTraits< object::coff_load_configuration32 >::mapping(), and llvm::yaml::MappingTraits< object::coff_load_configuration64 >::mapping().
void llvm::yaml::mapLoadConfigMember | ( | IO & | IO, |
T & | LoadConfig, | ||
const char * | Name, | ||
M & | Member | ||
) |
Definition at line 558 of file COFFYAML.cpp.
References Name.
Parse S
as a bool according to https://yaml.org/type/bool.html.
Definition at line 771 of file YAMLParser.cpp.
References llvm::StringRef::drop_front(), llvm::StringRef::front(), and llvm::StringRef::size().
|
static |
Definition at line 316 of file XCOFFYAML.cpp.
Scans all tokens in input without outputting anything.
This is used for benchmarking the tokenizer.
Definition at line 692 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::TK_Error, and llvm::yaml::Token::TK_StreamEnd.
|
static |
Definition at line 1514 of file ELFYAML.cpp.
References llvm::ELFYAML::SectionHeaderTable::Excluded, llvm::ELFYAML::SectionHeaderTable::NoHeaders, llvm::ELFYAML::Chunk::Offset, and llvm::ELFYAML::SectionHeaderTable::Sections.
|
static |
Definition at line 1502 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1543 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1422 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1533 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1527 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1401 of file ELFYAML.cpp.
References commonSectionMapping().
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< WasmYAML::Section > >::mapping().
|
static |
Definition at line 1452 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1434 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1522 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1548 of file ELFYAML.cpp.
References llvm::Mips::AFL_EXT_NONE, llvm::Mips::AFL_REG_NONE, commonSectionMapping(), and llvm::Mips::Val_GNU_MIPS_ABI_FP_ANY.
|
static |
Definition at line 1459 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1446 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1406 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1480 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1486 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1429 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1497 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1469 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1463 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1474 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 152 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 96 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 162 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 157 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 52 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 147 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 137 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 112 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 132 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 107 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 72 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 122 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 64 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 82 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 142 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 117 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 127 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 90 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 102 of file WasmYAML.cpp.
References commonSectionMapping().
Definition at line 1574 of file ELFYAML.cpp.
void llvm::yaml::skip | ( | CollectionType & | C | ) |
Definition at line 403 of file YAMLParser.h.
References assert(), and llvm::CallingConv::C.
Referenced by llvm::yaml::MappingNode::skip(), and llvm::yaml::SequenceNode::skip().
bool llvm::yaml::yaml2archive | ( | ArchYAML::Archive & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 20 of file ArchiveEmitter.cpp.
References llvm::CallingConv::C, llvm::ArchYAML::Archive::Content, llvm::StringRef::data(), I, llvm::ArchYAML::Archive::Magic, llvm::ArchYAML::Archive::Members, P, llvm::StringRef::size(), Size, and llvm::raw_ostream::write().
Referenced by convertYAML().
bool llvm::yaml::yaml2coff | ( | COFFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 624 of file COFFEmitter.cpp.
References layoutCOFF(), layoutOptionalHeader(), writeCOFF(), and yaml2coff().
Referenced by convertYAML(), and yaml2coff().
bool llvm::yaml::yaml2dxcontainer | ( | DXContainerYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 284 of file DXContainerEmitter.cpp.
References llvm::handleAllErrors().
Referenced by convertYAML().
bool llvm::yaml::yaml2elf | ( | ELFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH, | ||
uint64_t | MaxSize | ||
) |
Definition at line 2107 of file ELFEmitter.cpp.
References llvm::ELFYAML::FileHeader::Class, llvm::ELFYAML::FileHeader::Data, llvm::ELF::ELFCLASS64, llvm::ELF::ELFDATA2LSB, and llvm::ELFYAML::Object::Header.
Referenced by convertYAML().
bool llvm::yaml::yaml2goff | ( | GOFFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 276 of file GOFFEmitter.cpp.
Referenced by convertYAML().
bool llvm::yaml::yaml2macho | ( | YamlObjectFile & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 747 of file MachOEmitter.cpp.
References llvm::handleAllErrors().
Referenced by convertYAML().
bool llvm::yaml::yaml2minidump | ( | MinidumpYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 257 of file MinidumpEmitter.cpp.
References llvm::enumerate(), llvm::MinidumpYAML::Object::Header, layout(), llvm::minidump::Header::NumberOfStreams, llvm::minidump::Header::StreamDirectoryRVA, and llvm::MinidumpYAML::Object::Streams.
Referenced by convertYAML().
std::unique_ptr< object::ObjectFile > llvm::yaml::yaml2ObjectFile | ( | SmallVectorImpl< char > & | Storage, |
StringRef | Yaml, | ||
ErrorHandler | ErrHandler | ||
) |
Convenience function for tests.
Definition at line 67 of file yaml2obj.cpp.
References llvm::SmallVectorImpl< T >::clear(), convertYAML(), llvm::object::ObjectFile::createObjectFile(), OS, llvm::Expected< T >::takeError(), and llvm::dwarf::toString().
bool llvm::yaml::yaml2offload | ( | OffloadYAML::Binary & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 21 of file OffloadEmitter.cpp.
References llvm::Data, llvm::OffloadYAML::Binary::EntryOffset, llvm::OffloadYAML::Binary::EntrySize, llvm::MemoryBuffer::getMemBufferCopy(), llvm::OffloadYAML::Binary::Members, OS, llvm::OffloadYAML::Binary::Size, llvm::object::OffloadBinary::Header::Version, llvm::OffloadYAML::Binary::Version, llvm::object::OffloadBinary::write(), and llvm::raw_ostream::write().
Referenced by convertYAML().
bool llvm::yaml::yaml2wasm | ( | WasmYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 689 of file WasmEmitter.cpp.
Referenced by convertYAML().
bool llvm::yaml::yaml2xcoff | ( | XCOFFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 893 of file XCOFFEmitter.cpp.
Referenced by convertYAML().