LLVM  14.0.0git
Classes | Typedefs | Functions
llvm::yaml Namespace Reference

Classes

struct  AArch64FunctionInfo
 
class  AliasNode
 Represents an alias to a Node with an anchor. More...
 
class  basic_collection_iterator
 This is an iterator abstraction over YAML collections shared by both sequences and maps. More...
 
class  BinaryRef
 Specialized YAMLIO scalar type for representing a binary blob. More...
 
class  BlockScalarNode
 A block scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values. More...
 
struct  BlockScalarTraits< BlockStringValue >
 
struct  BlockScalarTraits< MinidumpYAML::BlockStringRef >
 
struct  BlockScalarTraits< Module >
 This struct serializes the LLVM IR module. More...
 
struct  BlockScalarTraits< StringBlockVal >
 
struct  BlockStringValue
 
struct  CallSiteInfo
 Serializable representation of CallSiteInfo. More...
 
struct  CustomMappingTraits< BBNumberMap >
 
struct  CustomMappingTraits< GlobalValueSummaryMapTy >
 
struct  CustomMappingTraits< MapDocNode >
 YAMLIO for MapDocNode. More...
 
struct  CustomMappingTraits< std::map< std::vector< uint64_t >, WholeProgramDevirtResolution::ByArg > >
 
struct  CustomMappingTraits< std::map< uint64_t, WholeProgramDevirtResolution > >
 
struct  CustomMappingTraits< TypeIdSummaryMapTy >
 
struct  DebugValueSubstitution
 Serializable representation of debug value substitutions. More...
 
class  Document
 A YAML Stream is a sequence of Documents. More...
 
class  document_iterator
 Iterator abstraction for Documents over a Stream. More...
 
struct  DocumentListTraits< std::vector< const MachO::InterfaceFile * > >
 
struct  FixedMachineStackObject
 Serializable representation of the fixed stack object from the MachineFrameInfo class. More...
 
struct  FlowStringValue
 
struct  FrameIndex
 A serializaable representation of a reference to a stack object or fixed stack object. More...
 
struct  FunctionSummaryYaml
 
class  KeyValueNode
 A key and value pair. More...
 
struct  MachineConstantPoolValue
 
struct  MachineFrameInfo
 Serializable representation of MachineFrameInfo. More...
 
struct  MachineFunction
 
struct  MachineFunctionInfo
 Targets should override this in a way that mirrors the implementation of llvm::MachineFunctionInfo. More...
 
struct  MachineFunctionLiveIn
 
struct  MachineJumpTable
 
struct  MachineStackObject
 Serializable representation of stack object from the MachineFrameInfo class. More...
 
struct  MappingContextTraits< MetadataSection, MetadataSection::Option >
 
struct  MappingContextTraits< minidump::MemoryDescriptor, BinaryRef >
 
class  MappingNode
 Represents a YAML map created from either a block map for a flow map. More...
 
struct  MappingTraits
 
struct  MappingTraits< AArch64FunctionInfo >
 
struct  MappingTraits< ArchYAML::Archive >
 
struct  MappingTraits< ArchYAML::Archive::Child >
 
struct  MappingTraits< Argument >
 Implement this as a mapping for now to get proper quotation for the value. More...
 
struct  MappingTraits< CallSiteInfo >
 
struct  MappingTraits< CallSiteInfo::ArgRegPair >
 
struct  MappingTraits< COFF::AuxiliarybfAndefSymbol >
 
struct  MappingTraits< COFF::AuxiliaryCLRToken >
 
struct  MappingTraits< COFF::AuxiliaryFunctionDefinition >
 
struct  MappingTraits< COFF::AuxiliarySectionDefinition >
 
struct  MappingTraits< COFF::AuxiliaryWeakExternal >
 
struct  MappingTraits< COFF::DataDirectory >
 
struct  MappingTraits< COFF::header >
 
struct  MappingTraits< COFFYAML::Object >
 
struct  MappingTraits< COFFYAML::PEHeader >
 
struct  MappingTraits< COFFYAML::Relocation >
 
struct  MappingTraits< COFFYAML::Section >
 
struct  MappingTraits< COFFYAML::Symbol >
 
struct  MappingTraits< const InterfaceFile * >
 
struct  MappingTraits< DebugValueSubstitution >
 
struct  MappingTraits< ELFYAML::ARMIndexTableEntry >
 
struct  MappingTraits< ELFYAML::BBAddrMapEntry >
 
struct  MappingTraits< ELFYAML::BBAddrMapEntry::BBEntry >
 
struct  MappingTraits< ELFYAML::CallGraphEntryWeight >
 
struct  MappingTraits< ELFYAML::DynamicEntry >
 
struct  MappingTraits< ELFYAML::FileHeader >
 
struct  MappingTraits< ELFYAML::GnuHashHeader >
 
struct  MappingTraits< ELFYAML::LinkerOption >
 
struct  MappingTraits< ELFYAML::NoteEntry >
 
struct  MappingTraits< ELFYAML::Object >
 
struct  MappingTraits< ELFYAML::ProgramHeader >
 
struct  MappingTraits< ELFYAML::Relocation >
 
struct  MappingTraits< ELFYAML::SectionHeader >
 
struct  MappingTraits< ELFYAML::SectionOrType >
 
struct  MappingTraits< ELFYAML::StackSizeEntry >
 
struct  MappingTraits< ELFYAML::Symbol >
 
struct  MappingTraits< ELFYAML::VerdefEntry >
 
struct  MappingTraits< ELFYAML::VernauxEntry >
 
struct  MappingTraits< ELFYAML::VerneedEntry >
 
struct  MappingTraits< ExportSection >
 
struct  MappingTraits< FixedMachineStackObject >
 
struct  MappingTraits< FunctionSummary::ConstVCall >
 
struct  MappingTraits< FunctionSummary::VFuncId >
 
struct  MappingTraits< FunctionSummaryYaml >
 
struct  MappingTraits< HSAMD::Metadata >
 
struct  MappingTraits< IFSStub >
 YAML traits for ELFStub objects. More...
 
struct  MappingTraits< IFSStubTriple >
 YAML traits for ELFStubTriple objects. More...
 
struct  MappingTraits< IFSSymbol >
 YAML traits for ELFSymbol. More...
 
struct  MappingTraits< IFSTarget >
 
struct  MappingTraits< Kernel::Arg::Metadata >
 
struct  MappingTraits< Kernel::Attrs::Metadata >
 
struct  MappingTraits< Kernel::CodeProps::Metadata >
 
struct  MappingTraits< Kernel::DebugProps::Metadata >
 
struct  MappingTraits< Kernel::Metadata >
 
struct  MappingTraits< LeafRecordBase >
 
struct  MappingTraits< LocalVariableAddrGap >
 
struct  MappingTraits< LocalVariableAddrRange >
 
struct  MappingTraits< MachineConstantPoolValue >
 
struct  MappingTraits< MachineFrameInfo >
 
struct  MappingTraits< MachineFunction >
 
struct  MappingTraits< MachineFunctionLiveIn >
 
struct  MappingTraits< MachineJumpTable >
 
struct  MappingTraits< MachineJumpTable::Entry >
 
struct  MappingTraits< MachineStackObject >
 
struct  MappingTraits< MachO::build_tool_version >
 
struct  MappingTraits< MachO::dylib >
 
struct  MappingTraits< MachO::fvmlib >
 
struct  MappingTraits< MachO::section >
 
struct  MappingTraits< MachO::section_64 >
 
struct  MappingTraits< MachOYAML::BindOpcode >
 
struct  MappingTraits< MachOYAML::ExportEntry >
 
struct  MappingTraits< MachOYAML::FatArch >
 
struct  MappingTraits< MachOYAML::FatHeader >
 
struct  MappingTraits< MachOYAML::FileHeader >
 
struct  MappingTraits< MachOYAML::LinkEditData >
 
struct  MappingTraits< MachOYAML::LoadCommand >
 
struct  MappingTraits< MachOYAML::NListEntry >
 
struct  MappingTraits< MachOYAML::Object >
 
struct  MappingTraits< MachOYAML::RebaseOpcode >
 
struct  MappingTraits< MachOYAML::Relocation >
 
struct  MappingTraits< MachOYAML::Section >
 
struct  MappingTraits< MachOYAML::UniversalBinary >
 
struct  MappingTraits< MemberRecordBase >
 
struct  MappingTraits< ModuleSummaryIndex >
 
struct  MappingTraits< RemarkLocation >
 
struct  MappingTraits< remarks::Remark * >
 
struct  MappingTraits< SIArgument >
 
struct  MappingTraits< SIArgumentInfo >
 
struct  MappingTraits< SIMachineFunctionInfo >
 
struct  MappingTraits< SIMode >
 
struct  MappingTraits< std::unique_ptr< ELFYAML::Chunk > >
 
struct  MappingTraits< std::unique_ptr< MachineFunctionInfo > >
 
struct  MappingTraits< std::unique_ptr< MinidumpYAML::Stream > >
 
struct  MappingTraits< std::unique_ptr< WasmYAML::Section > >
 
struct  MappingTraits< SymbolRecordBase >
 
struct  MappingTraits< SymbolSection >
 
struct  MappingTraits< TypeIdSummary >
 
struct  MappingTraits< TypeTestResolution >
 
struct  MappingTraits< UmbrellaSection >
 
struct  MappingTraits< UndefinedSection >
 
struct  MappingTraits< UUIDv4 >
 
struct  MappingTraits< VirtualRegisterDefinition >
 
struct  MappingTraits< wasm::WasmInitExpr >
 
struct  MappingTraits< WasmYAML::Comdat >
 
struct  MappingTraits< WasmYAML::ComdatEntry >
 
struct  MappingTraits< WasmYAML::DataSegment >
 
struct  MappingTraits< WasmYAML::DylinkExportInfo >
 
struct  MappingTraits< WasmYAML::DylinkImportInfo >
 
struct  MappingTraits< WasmYAML::ElemSegment >
 
struct  MappingTraits< WasmYAML::Export >
 
struct  MappingTraits< WasmYAML::FeatureEntry >
 
struct  MappingTraits< WasmYAML::FileHeader >
 
struct  MappingTraits< WasmYAML::Function >
 
struct  MappingTraits< WasmYAML::Global >
 
struct  MappingTraits< WasmYAML::Import >
 
struct  MappingTraits< WasmYAML::InitFunction >
 
struct  MappingTraits< WasmYAML::Limits >
 
struct  MappingTraits< WasmYAML::LocalDecl >
 
struct  MappingTraits< WasmYAML::NameEntry >
 
struct  MappingTraits< WasmYAML::Object >
 
struct  MappingTraits< WasmYAML::ProducerEntry >
 
struct  MappingTraits< WasmYAML::Relocation >
 
struct  MappingTraits< WasmYAML::SegmentInfo >
 
struct  MappingTraits< WasmYAML::Signature >
 
struct  MappingTraits< WasmYAML::SymbolInfo >
 
struct  MappingTraits< WasmYAML::Table >
 
struct  MappingTraits< WebAssemblyFunctionInfo >
 
struct  MappingTraits< WholeProgramDevirtResolution >
 
struct  MappingTraits< WholeProgramDevirtResolution::ByArg >
 
struct  MappingTraits< XCOFFYAML::FileHeader >
 
struct  MappingTraits< XCOFFYAML::Object >
 
struct  MappingTraits< XCOFFYAML::Relocation >
 
struct  MappingTraits< XCOFFYAML::Section >
 
struct  MappingTraits< XCOFFYAML::StringTable >
 
struct  MappingTraits< XCOFFYAML::Symbol >
 
struct  MappingTraits< xray::YAMLXRayFileHeader >
 
struct  MappingTraits< xray::YAMLXRayRecord >
 
struct  MappingTraits< xray::YAMLXRaySledEntry >
 
struct  MappingTraits< xray::YAMLXRayTrace >
 
struct  MappingTraits< YamlObjectFile >
 
class  Node
 Abstract base class for all Nodes. More...
 
struct  NSectionFlags
 
class  NullNode
 A null value. More...
 
struct  PolymorphicTraits< DocNode >
 YAMLIO for DocNode. More...
 
struct  ScalarBitSetTraits< COFF::Characteristics >
 
struct  ScalarBitSetTraits< COFF::DLLCharacteristics >
 
struct  ScalarBitSetTraits< COFF::SectionCharacteristics >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_EF >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_PF >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_SHF >
 
struct  ScalarBitSetTraits< ELFYAML::MIPS_AFL_ASE >
 
struct  ScalarBitSetTraits< ELFYAML::MIPS_AFL_FLAGS1 >
 
struct  ScalarBitSetTraits< MachO::ArchitectureSet >
 
struct  ScalarBitSetTraits< TBDFlags >
 
struct  ScalarBitSetTraits< WasmYAML::LimitFlags >
 
struct  ScalarBitSetTraits< WasmYAML::SegmentFlags >
 
struct  ScalarBitSetTraits< WasmYAML::SymbolFlags >
 
struct  ScalarBitSetTraits< XCOFF::SectionTypeFlags >
 
struct  ScalarEnumerationTraits< AccessQualifier >
 
struct  ScalarEnumerationTraits< AddressSpaceQualifier >
 
struct  ScalarEnumerationTraits< COFF::MachineTypes >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypeAMD64 >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypeI386 >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypesARM >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypesARM64 >
 
struct  ScalarEnumerationTraits< COFF::SymbolBaseType >
 
struct  ScalarEnumerationTraits< COFF::SymbolComplexType >
 
struct  ScalarEnumerationTraits< COFF::SymbolStorageClass >
 
struct  ScalarEnumerationTraits< COFF::WindowsSubsystem >
 
struct  ScalarEnumerationTraits< COFFYAML::AuxSymbolType >
 
struct  ScalarEnumerationTraits< COFFYAML::COMDATType >
 
struct  ScalarEnumerationTraits< COFFYAML::WeakExternalCharacteristics >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_DYNTAG >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFCLASS >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFDATA >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFOSABI >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_EM >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ET >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_NT >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_PT >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_REL >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_RSS >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_SHN >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_SHT >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_STB >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_STT >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_ABI_FP >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_AFL_EXT >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_AFL_REG >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_ISA >
 
struct  ScalarEnumerationTraits< FixedMachineStackObject::ObjectType >
 
struct  ScalarEnumerationTraits< IFSSymbolType >
 YAML traits for ELFSymbolType. More...
 
struct  ScalarEnumerationTraits< MachineJumpTableInfo::JTEntryKind >
 
struct  ScalarEnumerationTraits< MachineStackObject::ObjectType >
 
struct  ScalarEnumerationTraits< MachO::BindOpcode >
 
struct  ScalarEnumerationTraits< MachO::LoadCommandType >
 
struct  ScalarEnumerationTraits< MachO::ObjCConstraintType >
 
struct  ScalarEnumerationTraits< MachO::RebaseOpcode >
 
struct  ScalarEnumerationTraits< TargetStackID::Value >
 
struct  ScalarEnumerationTraits< TypeTestResolution::Kind >
 
struct  ScalarEnumerationTraits< ValueKind >
 
struct  ScalarEnumerationTraits< ValueType >
 
struct  ScalarEnumerationTraits< WasmYAML::ComdatKind >
 
struct  ScalarEnumerationTraits< WasmYAML::ExportKind >
 
struct  ScalarEnumerationTraits< WasmYAML::FeaturePolicyPrefix >
 
struct  ScalarEnumerationTraits< WasmYAML::Opcode >
 
struct  ScalarEnumerationTraits< WasmYAML::RelocType >
 
struct  ScalarEnumerationTraits< WasmYAML::SectionType >
 
struct  ScalarEnumerationTraits< WasmYAML::SymbolKind >
 
struct  ScalarEnumerationTraits< WasmYAML::TableType >
 
struct  ScalarEnumerationTraits< WasmYAML::ValueType >
 
struct  ScalarEnumerationTraits< WholeProgramDevirtResolution::ByArg::Kind >
 
struct  ScalarEnumerationTraits< WholeProgramDevirtResolution::Kind >
 
struct  ScalarEnumerationTraits< XCOFF::StorageClass >
 
struct  ScalarEnumerationTraits< xray::RecordTypes >
 
struct  ScalarEnumerationTraits< xray::SledEntry::FunctionKinds >
 
class  ScalarNode
 A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values. More...
 
struct  ScalarTraits< Align >
 
struct  ScalarTraits< BinaryRef >
 
struct  ScalarTraits< char_16 >
 
struct  ScalarTraits< ELFYAML::YAMLFlowString >
 
struct  ScalarTraits< ELFYAML::YAMLIntUInt >
 
struct  ScalarTraits< FixedSizeHex< N > >
 
struct  ScalarTraits< FixedSizeString< N > >
 
struct  ScalarTraits< FlowStringRef >
 
struct  ScalarTraits< FlowStringValue >
 
struct  ScalarTraits< FrameIndex >
 
struct  ScalarTraits< IFSBitWidthType >
 
struct  ScalarTraits< IFSEndiannessType >
 
struct  ScalarTraits< MachO::Architecture >
 
struct  ScalarTraits< MachO::PackedVersion >
 
struct  ScalarTraits< MachO::PlatformSet >
 
struct  ScalarTraits< MaybeAlign >
 
struct  ScalarTraits< StOtherPiece >
 
struct  ScalarTraits< StringValue >
 
struct  ScalarTraits< SwiftVersion >
 
struct  ScalarTraits< Target >
 
struct  ScalarTraits< UnsignedValue >
 
struct  ScalarTraits< UUID >
 
struct  ScalarTraits< uuid_t >
 
class  Scanner
 Scans YAML tokens from a MemoryBuffer. More...
 
struct  SequenceElementTraits< ELFYAML::YAMLFlowString >
 
struct  SequenceElementTraits< StOtherPiece >
 
class  SequenceNode
 Represents a YAML sequence created from either a block sequence for a flow sequence. More...
 
struct  SequenceTraits< ArrayDocNode >
 YAMLIO for ArrayNode. More...
 
struct  SequenceTraits< ArrayRef< T > >
 ArrayRef is not really compatible with the YAMLTraits. More...
 
struct  SIArgument
 
struct  SIArgumentInfo
 
struct  SIMachineFunctionInfo
 
struct  SIMode
 
class  Stream
 This class represents a YAML stream potentially containing multiple documents. More...
 
struct  StringBlockVal
 Helper struct for multiline string block literals. More...
 
struct  StringValue
 A wrapper around std::string which contains a source range that's being set during parsing. More...
 
struct  TaggedScalarTraits< ScalarDocNode >
 YAMLIO for ScalarDocNode. More...
 
struct  Token
 Token - A single YAML token. More...
 
struct  UnsignedValue
 A wrapper around unsigned which contains a source range that's being set during parsing. More...
 
struct  VirtualRegisterDefinition
 
struct  WebAssemblyFunctionInfo
 
struct  YamlObjectFile
 

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 >
 

Functions

bool operator== (const BinaryRef &LHS, const BinaryRef &RHS)
 
bool yaml2archive (ArchYAML::Archive &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool yaml2coff (COFFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool yaml2elf (ELFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH, uint64_t MaxSize)
 
bool yaml2macho (YamlObjectFile &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool yaml2minidump (MinidumpYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool yaml2wasm (WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool yaml2xcoff (XCOFFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)
 
bool convertYAML (Input &YIn, raw_ostream &Out, ErrorHandler ErrHandler, unsigned DocNum=1, uint64_t MaxSize=UINT64_MAX)
 
std::unique_ptr< object::ObjectFileyaml2ObjectFile (SmallVectorImpl< char > &Storage, StringRef Yaml, ErrorHandler ErrHandler)
 Convenience function for tests. More...
 
bool dumpTokens (StringRef Input, raw_ostream &)
 Dump all the tokens in this stream to OS. More...
 
bool scanTokens (StringRef Input)
 Scans all tokens in input without outputting anything. More...
 
std::string escape (StringRef Input, bool EscapePrintable=true)
 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. More...
 
llvm::Optional< bool > parseBool (StringRef S)
 Parse S as a bool according to https://yaml.org/type/bool.html. More...
 
template<class CollectionType >
CollectionType::iterator begin (CollectionType &C)
 
template<class CollectionType >
void skip (CollectionType &C)
 
static void commonSectionMapping (IO &IO, ELFYAML::Section &Section)
 
static void sectionMapping (IO &IO, ELFYAML::DynamicSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::RawContentSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::BBAddrMapSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::StackSizesSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::HashSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::NoteSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::GnuHashSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::NoBitsSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::VerdefSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::SymverSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::VerneedSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::RelocationSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::RelrSection &Section)
 
static void groupSectionMapping (IO &IO, ELFYAML::GroupSection &Group)
 
static void sectionMapping (IO &IO, ELFYAML::SymtabShndxSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::AddrsigSection &Section)
 
static void fillMapping (IO &IO, ELFYAML::Fill &Fill)
 
static void sectionHeaderTableMapping (IO &IO, ELFYAML::SectionHeaderTable &SHT)
 
static void sectionMapping (IO &IO, ELFYAML::LinkerOptionsSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::DependentLibrariesSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::CallGraphProfileSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::ARMIndexTableSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::MipsABIFlags &Section)
 
static StringRef getStringValue (IO &IO, const char *Key)
 
static void setStringValue (IO &IO, const char *Key, StringRef Val)
 
static bool isInteger (StringRef Val)
 
template<typename StructType >
void mapLoadCommandData (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::segment_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::segment_command_64 > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::dylib_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::rpath_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::dylinker_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::sub_framework_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::sub_umbrella_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::sub_client_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::sub_library_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
template<>
void mapLoadCommandData< MachO::build_version_command > (IO &IO, MachOYAML::LoadCommand &LoadCommand)
 
static void commonSectionMapping (IO &IO, WasmYAML::Section &Section)
 
static void sectionMapping (IO &IO, WasmYAML::DylinkSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::NameSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::LinkingSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::ProducersSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::TargetFeaturesSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::CustomSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::TypeSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::ImportSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::FunctionSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::TableSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::MemorySection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::TagSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::GlobalSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::ExportSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::StartSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::ElemSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::CodeSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::DataSection &Section)
 
static void sectionMapping (IO &IO, WasmYAML::DataCountSection &Section)
 
bool convertYAML (yaml::Input &YIn, raw_ostream &Out, ErrorHandler ErrHandler, unsigned DocNum, uint64_t MaxSize)
 

Typedef Documentation

◆ BBNumberMap

Definition at line 188 of file WebAssemblyMachineFunctionInfo.h.

◆ char_16

using llvm::yaml::char_16 = typedef char[16]

Definition at line 281 of file MachOYAML.h.

◆ ErrorHandler

Definition at line 55 of file yaml2obj.h.

◆ uuid_t

Definition at line 291 of file MachOYAML.h.

Function Documentation

◆ begin()

template<class CollectionType >
CollectionType::iterator llvm::yaml::begin ( CollectionType &  C)

Definition at line 390 of file YAMLParser.h.

References assert(), and ret().

Referenced by llvm::yaml::MappingNode::begin(), llvm::yaml::SequenceNode::begin(), and skip().

◆ commonSectionMapping() [1/2]

static void llvm::yaml::commonSectionMapping ( IO &  IO,
ELFYAML::Section Section 
)
static

Definition at line 1249 of file ELFYAML.cpp.

References assert(), and llvm::ARMBuildAttrs::Section.

Referenced by groupSectionMapping(), and sectionMapping().

◆ commonSectionMapping() [2/2]

static void llvm::yaml::commonSectionMapping ( IO &  IO,
WasmYAML::Section Section 
)
static

Definition at line 45 of file WasmYAML.cpp.

References llvm::ARMBuildAttrs::Section.

◆ convertYAML() [1/2]

bool llvm::yaml::convertYAML ( Input &  YIn,
raw_ostream Out,
ErrorHandler  ErrHandler,
unsigned  DocNum = 1,
uint64_t  MaxSize = UINT64_MAX 
)

Referenced by yaml2ObjectFile().

◆ convertYAML() [2/2]

bool llvm::yaml::convertYAML ( yaml::Input &  YIn,
raw_ostream Out,
ErrorHandler  ErrHandler,
unsigned  DocNum,
uint64_t  MaxSize 
)

◆ dumpTokens()

bool llvm::yaml::dumpTokens ( StringRef  Input,
raw_ostream OS 
)

◆ escape()

std::string llvm::yaml::escape ( StringRef  Input,
bool  EscapePrintable = true 
)

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 683 of file YAMLParser.cpp.

References llvm::append_range(), llvm::StringRef::begin(), decodeUTF8(), llvm::numbers::e, encodeUTF8(), llvm::StringRef::end(), i, and llvm::sys::unicode::isPrintable().

◆ fillMapping()

static void llvm::yaml::fillMapping ( IO &  IO,
ELFYAML::Fill Fill 
)
static

◆ getStringValue()

static StringRef llvm::yaml::getStringValue ( IO &  IO,
const char *  Key 
)
static

◆ groupSectionMapping()

static void llvm::yaml::groupSectionMapping ( IO &  IO,
ELFYAML::GroupSection Group 
)
static

◆ isInteger()

static bool llvm::yaml::isInteger ( StringRef  Val)
static

◆ mapLoadCommandData()

template<typename StructType >
void llvm::yaml::mapLoadCommandData ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 204 of file MachOYAML.cpp.

◆ mapLoadCommandData< MachO::build_version_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::build_version_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 261 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Tools.

◆ mapLoadCommandData< MachO::dylib_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::dylib_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 219 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::dylinker_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::dylinker_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 231 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::rpath_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::rpath_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 225 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::segment_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::segment_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 207 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Sections.

◆ mapLoadCommandData< MachO::segment_command_64 >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::segment_command_64 > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 213 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Sections.

◆ mapLoadCommandData< MachO::sub_client_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::sub_client_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 249 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::sub_framework_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::sub_framework_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 237 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::sub_library_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::sub_library_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 255 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ mapLoadCommandData< MachO::sub_umbrella_command >()

template<>
void llvm::yaml::mapLoadCommandData< MachO::sub_umbrella_command > ( IO &  IO,
MachOYAML::LoadCommand LoadCommand 
)

Definition at line 243 of file MachOYAML.cpp.

References llvm::MachOYAML::LoadCommand::Content.

◆ operator==()

bool llvm::yaml::operator== ( const BinaryRef LHS,
const BinaryRef RHS 
)
inline

Definition at line 98 of file YAML.h.

References llvm::ArrayRef< T >::empty().

◆ parseBool()

llvm::Optional< bool > llvm::yaml::parseBool ( StringRef  S)

Parse S as a bool according to https://yaml.org/type/bool.html.

Definition at line 749 of file YAMLParser.cpp.

References LLVM_FALLTHROUGH, llvm::None, and S.

◆ scanTokens()

bool llvm::yaml::scanTokens ( StringRef  Input)

Scans all tokens in input without outputting anything.

This is used for benchmarking the tokenizer.

Returns
true if there was an error, false otherwise.

Definition at line 670 of file YAMLParser.cpp.

References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::TK_Error, and llvm::yaml::Token::TK_StreamEnd.

◆ sectionHeaderTableMapping()

static void llvm::yaml::sectionHeaderTableMapping ( IO &  IO,
ELFYAML::SectionHeaderTable SHT 
)
static

◆ sectionMapping() [1/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::AddrsigSection Section 
)
static

Definition at line 1377 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [2/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::ARMIndexTableSection Section 
)
static

Definition at line 1418 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [3/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::BBAddrMapSection Section 
)
static

Definition at line 1297 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [4/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::CallGraphProfileSection Section 
)
static

Definition at line 1408 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [5/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::DependentLibrariesSection Section 
)
static

Definition at line 1402 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [6/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::DynamicSection Section 
)
static

◆ sectionMapping() [7/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::GnuHashSection Section 
)
static

Definition at line 1327 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [8/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::HashSection Section 
)
static

Definition at line 1308 of file ELFYAML.cpp.

References assert(), commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [9/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::LinkerOptionsSection Section 
)
static

Definition at line 1397 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [10/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::MipsABIFlags Section 
)
static

◆ sectionMapping() [11/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::NoBitsSection Section 
)
static

Definition at line 1334 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [12/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::NoteSection Section 
)
static

Definition at line 1321 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [13/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::RawContentSection Section 
)
static

Definition at line 1281 of file ELFYAML.cpp.

References assert(), commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [14/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::RelocationSection Section 
)
static

Definition at line 1355 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [15/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::RelrSection Section 
)
static

Definition at line 1361 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [16/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::StackSizesSection Section 
)
static

Definition at line 1303 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [17/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::SymtabShndxSection Section 
)
static

Definition at line 1372 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [18/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::SymverSection Section 
)
static

Definition at line 1344 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [19/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::VerdefSection Section 
)
static

Definition at line 1338 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [20/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::VerneedSection Section 
)
static

Definition at line 1349 of file ELFYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [21/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::CodeSection Section 
)
static

Definition at line 150 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [22/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::CustomSection Section 
)
static

Definition at line 94 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [23/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::DataCountSection Section 
)
static

Definition at line 160 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [24/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::DataSection Section 
)
static

Definition at line 155 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [25/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::DylinkSection Section 
)
static

Definition at line 50 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [26/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::ElemSection Section 
)
static

Definition at line 145 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [27/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::ExportSection Section 
)
static

Definition at line 135 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [28/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::FunctionSection Section 
)
static

Definition at line 110 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [29/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::GlobalSection Section 
)
static

Definition at line 130 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [30/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::ImportSection Section 
)
static

Definition at line 105 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [31/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::LinkingSection Section 
)
static

Definition at line 70 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [32/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::MemorySection Section 
)
static

Definition at line 120 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [33/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::NameSection Section 
)
static

Definition at line 62 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [34/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::ProducersSection Section 
)
static

Definition at line 80 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [35/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::StartSection Section 
)
static

Definition at line 140 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [36/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::TableSection Section 
)
static

Definition at line 115 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [37/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::TagSection Section 
)
static

Definition at line 125 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [38/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::TargetFeaturesSection Section 
)
static

Definition at line 88 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ sectionMapping() [39/39]

static void llvm::yaml::sectionMapping ( IO &  IO,
WasmYAML::TypeSection Section 
)
static

Definition at line 100 of file WasmYAML.cpp.

References commonSectionMapping(), and llvm::ARMBuildAttrs::Section.

◆ setStringValue()

static void llvm::yaml::setStringValue ( IO &  IO,
const char *  Key,
StringRef  Val 
)
static

◆ skip()

template<class CollectionType >
void llvm::yaml::skip ( CollectionType &  C)

Definition at line 398 of file YAMLParser.h.

References assert(), begin(), llvm::numbers::e, and i.

Referenced by llvm::yaml::MappingNode::skip(), and llvm::yaml::SequenceNode::skip().

◆ yaml2archive()

bool llvm::yaml::yaml2archive ( ArchYAML::Archive Doc,
raw_ostream Out,
ErrorHandler  EH 
)

◆ yaml2coff()

bool llvm::yaml::yaml2coff ( COFFYAML::Object Doc,
raw_ostream Out,
ErrorHandler  EH 
)

Definition at line 605 of file COFFEmitter.cpp.

References llvm::HexagonISD::CP, layoutCOFF(), layoutOptionalHeader(), and writeCOFF().

Referenced by convertYAML().

◆ yaml2elf()

bool llvm::yaml::yaml2elf ( ELFYAML::Object Doc,
raw_ostream Out,
ErrorHandler  EH,
uint64_t  MaxSize 
)

◆ yaml2macho()

bool llvm::yaml::yaml2macho ( YamlObjectFile Doc,
raw_ostream Out,
ErrorHandler  EH 
)

Definition at line 659 of file MachOEmitter.cpp.

Referenced by convertYAML().

◆ yaml2minidump()

bool llvm::yaml::yaml2minidump ( MinidumpYAML::Object Doc,
raw_ostream Out,
ErrorHandler  EH 
)

◆ yaml2ObjectFile()

std::unique_ptr< object::ObjectFile > llvm::yaml::yaml2ObjectFile ( SmallVectorImpl< char > &  Storage,
StringRef  Yaml,
ErrorHandler  ErrHandler 
)

◆ yaml2wasm()

bool llvm::yaml::yaml2wasm ( WasmYAML::Object Doc,
raw_ostream Out,
ErrorHandler  EH 
)

Definition at line 687 of file WasmEmitter.cpp.

Referenced by convertYAML().

◆ yaml2xcoff()

bool llvm::yaml::yaml2xcoff ( XCOFFYAML::Object Doc,
raw_ostream Out,
ErrorHandler  EH 
)

Definition at line 489 of file XCOFFEmitter.cpp.

Referenced by convertYAML().