LLVM
15.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 197 of file WebAssemblyMachineFunctionInfo.h.
using llvm::yaml::char_16 = typedef char[16] |
Definition at line 284 of file MachOYAML.h.
using llvm::yaml::ErrorHandler = typedef llvm::function_ref<void(const Twine &Msg)> |
Definition at line 59 of file yaml2obj.h.
using llvm::yaml::uuid_t = typedef raw_ostream::uuid_t |
Definition at line 294 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 389 of file YAMLParser.h.
References assert(), and ret().
Referenced by llvm::yaml::MappingNode::begin(), llvm::yaml::SequenceNode::begin(), and skip().
|
static |
Definition at line 1302 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 yaml2archive(), yaml2coff(), yaml2dxcontainer(), yaml2elf(), yaml2macho(), yaml2minidump(), 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(), decodeUTF8(), llvm::numbers::e, encodeUTF8(), i, and llvm::sys::unicode::isPrintable().
|
static |
Definition at line 1434 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 1495 of file ELFYAML.cpp.
Referenced by llvm::AttributeImpl::getValueAsString(), llvm::yaml::MappingTraits< ELFYAML::ARMIndexTableEntry >::mapping(), and llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
|
static |
Definition at line 1418 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().
|
static |
Definition at line 1505 of file ELFYAML.cpp.
References llvm::StringRef::getAsInteger().
Referenced by emitConjunctionRec(), llvm::NVPTXTargetLowering::LowerCall(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping(), and llvm::PatchLocation::set().
void llvm::yaml::mapLoadCommandData | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 209 of file MachOYAML.cpp.
void llvm::yaml::mapLoadCommandData< MachO::build_version_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 266 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Tools.
void llvm::yaml::mapLoadCommandData< MachO::dylib_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 224 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::dylinker_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 236 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::rpath_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 230 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
void llvm::yaml::mapLoadCommandData< MachO::segment_command > | ( | IO & | IO, |
MachOYAML::LoadCommand & | LoadCommand | ||
) |
Definition at line 212 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 218 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 254 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 242 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 260 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 248 of file MachOYAML.cpp.
References llvm::MachOYAML::LoadCommand::Content.
llvm::Optional< bool > llvm::yaml::parseBool | ( | StringRef | S | ) |
Parse S
as a bool according to https://yaml.org/type/bool.html.
Definition at line 763 of file YAMLParser.cpp.
References LLVM_FALLTHROUGH, llvm::None, and S.
bool llvm::yaml::scanTokens | ( | StringRef | Input | ) |
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 1441 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 1429 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1470 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1350 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1460 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1454 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1329 of file ELFYAML.cpp.
References commonSectionMapping().
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< WasmYAML::Section > >::mapping(), and llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
|
static |
Definition at line 1379 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1361 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1449 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1475 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 1386 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1373 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1334 of file ELFYAML.cpp.
References assert(), and commonSectionMapping().
|
static |
Definition at line 1407 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1413 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1356 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1424 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1396 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1390 of file ELFYAML.cpp.
References commonSectionMapping().
|
static |
Definition at line 1401 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 1501 of file ELFYAML.cpp.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Chunk > >::mapping().
void llvm::yaml::skip | ( | CollectionType & | C | ) |
Definition at line 397 of file YAMLParser.h.
References assert(), begin(), llvm::numbers::e, and i.
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::ArchYAML::Archive::Content, llvm::StringRef::data(), I, llvm::ArchYAML::Archive::Magic, llvm::ArchYAML::Archive::Members, P, llvm::StringRef::size(), and llvm::raw_ostream::write().
Referenced by convertYAML().
bool llvm::yaml::yaml2coff | ( | COFFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 594 of file COFFEmitter.cpp.
References llvm::HexagonISD::CP, layoutCOFF(), layoutOptionalHeader(), and writeCOFF().
Referenced by convertYAML().
bool llvm::yaml::yaml2dxcontainer | ( | DXContainerYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 178 of file DXContainerEmitter.cpp.
Referenced by convertYAML().
bool llvm::yaml::yaml2elf | ( | ELFYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH, | ||
uint64_t | MaxSize | ||
) |
Definition at line 1983 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 699 of file MachOEmitter.cpp.
Referenced by convertYAML().
bool llvm::yaml::yaml2minidump | ( | MinidumpYAML::Object & | Doc, |
raw_ostream & | Out, | ||
ErrorHandler | EH | ||
) |
Definition at line 229 of file MinidumpEmitter.cpp.
References llvm::enumerate(), llvm::MinidumpYAML::Object::Header, layout(), llvm::makeArrayRef(), 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 63 of file yaml2obj.cpp.
References llvm::SmallVectorImpl< T >::clear(), convertYAML(), llvm::object::ObjectFile::createObjectFile(), move, llvm::raw_svector_ostream::str(), llvm::Expected< T >::takeError(), and llvm::toString().
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().