LLVM 17.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 188 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 63 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 248 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::BlockAuxEnt::LineNum, llvm::XCOFFYAML::BlockAuxEnt::LineNumHi, and llvm::XCOFFYAML::BlockAuxEnt::LineNumLo.
|
static |
Definition at line 228 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::SymbolAlignmentAndType, and llvm::XCOFFYAML::CsectAuxEnt::TypeChkSectNum.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< XCOFFYAML::AuxSymbolEnt > >::mapping().
|
static |
Definition at line 266 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::ExcpetionAuxEnt::OffsetToExceptionTbl, llvm::XCOFFYAML::ExcpetionAuxEnt::SizeOfFunction, and llvm::XCOFFYAML::ExcpetionAuxEnt::SymIdxOfNextBeyond.
|
static |
Definition at line 243 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::FileAuxEnt::FileNameOrString, and llvm::XCOFFYAML::FileAuxEnt::FileStringType.
|
static |
|
static |
Definition at line 272 of file XCOFFYAML.cpp.
References llvm::XCOFFYAML::SectAuxEntForDWARF::LengthOfSectionPortion, and llvm::XCOFFYAML::SectAuxEntForDWARF::NumberOfRelocEnt.
|
static |
Definition at line 277 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 390 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 1325 of file ELFYAML.cpp.
References assert().
Referenced by groupSectionMapping(), and sectionMapping().
|
static |
Definition at line 45 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::MachO, llvm::yaml::YamlObjectFile::Minidump, llvm::yaml::YamlObjectFile::Offload, llvm::yaml::YamlObjectFile::Wasm, llvm::yaml::YamlObjectFile::Xcoff, yaml2archive(), yaml2coff(), yaml2dxcontainer(), yaml2elf(), 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 600 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), 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 697 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 1457 of file ELFYAML.cpp.
References llvm::ELFYAML::Chunk::Name, llvm::ELFYAML::Chunk::Offset, llvm::ELFYAML::Fill::Pattern, and llvm::ELFYAML::Fill::Size.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
Definition at line 1518 of file ELFYAML.cpp.
Referenced by llvm::yaml::MappingTraits< ELFYAML::ARMIndexTableEntry >::mapping(), and llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
|
static |
Definition at line 1441 of file ELFYAML.cpp.
References commonSectionMapping(), llvm::ELFYAML::GroupSection::Members, and llvm::ELFYAML::GroupSection::Signature.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
Definition at line 1528 of file ELFYAML.cpp.
References llvm::StringRef::getAsInteger().
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
void llvm::yaml::mapLoadCommandData | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 219 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 276 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Tools.
void llvm::yaml::mapLoadCommandData< MachO::dylib_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 234 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::dylinker_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 246 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::rpath_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 240 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::segment_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 222 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 228 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 264 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 252 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 270 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 258 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
Parse S
as a bool according to https://yaml.org/type/bool.html.
Definition at line 763 of file YAMLParser.cpp.
References llvm::StringRef::drop_front(), llvm::StringRef::front(), and llvm::StringRef::size().
Scans all tokens in input without outputting anything.
This is used for benchmarking the tokenizer.
Definition at line 684 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::TK_Error, and llvm::yaml::Token::TK_StreamEnd.
|
static |
Definition at line 1464 of file ELFYAML.cpp.
References llvm::ELFYAML::SectionHeaderTable::Excluded, llvm::ELFYAML::SectionHeaderTable::NoHeaders, llvm::ELFYAML::Chunk::Offset, and llvm::ELFYAML::SectionHeaderTable::Sections.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
|
static |
Definition at line 1452 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1493 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1373 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1483 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1477 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1352 of file ELFYAML.cpp.
References commonSectionMapping().
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping(), and llvm::yaml::MappingTraits< std::unique_ptr< WasmYAML::Section > >::mapping().
|
static |
Definition at line 1402 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1384 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1472 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1498 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 1409 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1396 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1357 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1430 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1436 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1379 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1447 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1419 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1413 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1424 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 150 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 94 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 160 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 155 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 50 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 145 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 135 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 110 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 130 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 105 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 70 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 120 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 62 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 80 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 140 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 115 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 125 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 88 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 100 of file WasmYAML.cpp.
References commonSectionMapping().
Definition at line 1524 of file ELFYAML.cpp.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
void llvm::yaml::skip | ( | CollectionType & | C | ) |
Definition at line 398 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 595 of file COFFEmitter.cpp.
References layoutCOFF(), layoutOptionalHeader(), and writeCOFF().
Referenced by convertYAML().
bool llvm::yaml::yaml2dxcontainer | ( | DXContainerYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 218 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 1987 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::yaml2macho | ( | YamlObjectFile & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 746 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 230 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 65 of file yaml2obj.cpp.
References llvm::SmallVectorImpl< T >::clear(), convertYAML(), llvm::object::ObjectFile::createObjectFile(), llvm::raw_svector_ostream::str(), 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::SmallVectorTemplateCommon< T, typename >::begin(), llvm::Data, llvm::OffloadYAML::Binary::EntryOffset, llvm::OffloadYAML::Binary::EntrySize, llvm::MemoryBuffer::getMemBufferCopy(), llvm::OffloadYAML::Binary::Members, llvm::SmallVectorBase< Size_T >::size(), llvm::OffloadYAML::Binary::Size, llvm::raw_svector_ostream::str(), 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 678 of file WasmEmitter.cpp.
Referenced by convertYAML().
bool llvm::yaml::yaml2xcoff | ( | XCOFFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 779 of file XCOFFEmitter.cpp.
Referenced by convertYAML().