LLVM 18.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 181 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 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 1340 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 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 1472 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 1533 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 1456 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 1543 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.
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().
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 1479 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 1467 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1508 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1388 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1498 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1492 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1367 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 1417 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1399 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1487 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1513 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 1424 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1411 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1372 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1445 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1451 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1394 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1462 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1434 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1428 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1439 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 151 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 95 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 161 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 156 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 51 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 146 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 136 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 111 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 131 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 106 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 71 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 121 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 63 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 81 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 141 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 116 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 126 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 89 of file WasmYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 101 of file WasmYAML.cpp.
References commonSectionMapping().
Definition at line 1539 of file ELFYAML.cpp.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
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 283 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(), 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 688 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().