LLVM  3.7.0
Classes | Functions
llvm::yaml Namespace Reference

Classes

struct  StringValue
 A wrapper around std::string which contains a source range that's being set during parsing. More...
 
struct  ScalarTraits< StringValue >
 
struct  FlowStringValue
 
struct  ScalarTraits< FlowStringValue >
 
struct  VirtualRegisterDefinition
 
struct  MappingTraits< VirtualRegisterDefinition >
 
struct  MachineBasicBlock
 
struct  MappingTraits< MachineBasicBlock >
 
struct  MachineStackObject
 Serializable representation of stack object from the MachineFrameInfo class. More...
 
struct  ScalarEnumerationTraits< MachineStackObject::ObjectType >
 
struct  MappingTraits< MachineStackObject >
 
struct  FixedMachineStackObject
 Serializable representation of the fixed stack object from the MachineFrameInfo class. More...
 
struct  ScalarEnumerationTraits< FixedMachineStackObject::ObjectType >
 
struct  MappingTraits< FixedMachineStackObject >
 
struct  MachineFrameInfo
 Serializable representation of MachineFrameInfo. More...
 
struct  MappingTraits< MachineFrameInfo >
 
struct  MachineFunction
 
struct  MappingTraits< MachineFunction >
 
class  BinaryRef
 Specialized YAMLIO scalar type for representing a binary blob. More...
 
struct  ScalarTraits< BinaryRef >
 
struct  ScalarEnumerationTraits< COFFYAML::WeakExternalCharacteristics >
 
struct  ScalarEnumerationTraits< COFFYAML::AuxSymbolType >
 
struct  ScalarEnumerationTraits< COFFYAML::COMDATType >
 
struct  ScalarEnumerationTraits< COFF::MachineTypes >
 
struct  ScalarEnumerationTraits< COFF::SymbolBaseType >
 
struct  ScalarEnumerationTraits< COFF::SymbolStorageClass >
 
struct  ScalarEnumerationTraits< COFF::SymbolComplexType >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypeI386 >
 
struct  ScalarEnumerationTraits< COFF::RelocationTypeAMD64 >
 
struct  ScalarEnumerationTraits< COFF::WindowsSubsystem >
 
struct  ScalarBitSetTraits< COFF::Characteristics >
 
struct  ScalarBitSetTraits< COFF::SectionCharacteristics >
 
struct  ScalarBitSetTraits< COFF::DLLCharacteristics >
 
struct  MappingTraits< COFFYAML::Relocation >
 
struct  MappingTraits< COFFYAML::PEHeader >
 
struct  MappingTraits< COFF::DataDirectory >
 
struct  MappingTraits< COFF::header >
 
struct  MappingTraits< COFF::AuxiliaryFunctionDefinition >
 
struct  MappingTraits< COFF::AuxiliarybfAndefSymbol >
 
struct  MappingTraits< COFF::AuxiliaryWeakExternal >
 
struct  MappingTraits< COFF::AuxiliarySectionDefinition >
 
struct  MappingTraits< COFF::AuxiliaryCLRToken >
 
struct  MappingTraits< COFFYAML::Symbol >
 
struct  MappingTraits< COFFYAML::Section >
 
struct  MappingTraits< COFFYAML::Object >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ET >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_EM >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFCLASS >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFDATA >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_ELFOSABI >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_EF >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_SHT >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_SHF >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_STT >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_STV >
 
struct  ScalarBitSetTraits< ELFYAML::ELF_STO >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_REL >
 
struct  ScalarEnumerationTraits< ELFYAML::ELF_RSS >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_AFL_REG >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_ABI_FP >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_AFL_EXT >
 
struct  ScalarEnumerationTraits< ELFYAML::MIPS_ISA >
 
struct  ScalarBitSetTraits< ELFYAML::MIPS_AFL_ASE >
 
struct  ScalarBitSetTraits< ELFYAML::MIPS_AFL_FLAGS1 >
 
struct  MappingTraits< ELFYAML::FileHeader >
 
struct  MappingTraits< ELFYAML::Symbol >
 
struct  MappingTraits< ELFYAML::LocalGlobalWeakSymbols >
 
struct  MappingTraits< ELFYAML::Relocation >
 
struct  MappingTraits< std::unique_ptr< ELFYAML::Section > >
 
struct  MappingTraits< ELFYAML::Object >
 
struct  MappingTraits< ELFYAML::SectionOrType >
 
class  Stream
 This class represents a YAML stream potentially containing multiple documents. More...
 
class  Node
 Abstract base class for all Nodes. More...
 
class  NullNode
 A null value. More...
 
class  ScalarNode
 A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values. 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...
 
class  KeyValueNode
 A key and value pair. More...
 
class  basic_collection_iterator
 This is an iterator abstraction over YAML collections shared by both sequences and maps. More...
 
class  MappingNode
 Represents a YAML map created from either a block map for a flow map. More...
 
class  SequenceNode
 Represents a YAML sequence created from either a block sequence for a flow sequence. More...
 
class  AliasNode
 Represents an alias to a Node with an anchor. More...
 
class  Document
 A YAML Stream is a sequence of Documents. More...
 
class  document_iterator
 Iterator abstraction for Documents over a Stream. More...
 
struct  MappingTraits
 This class should be specialized by any type that needs to be converted to/from a YAML mapping. More...
 
struct  ScalarEnumerationTraits
 This class should be specialized by any integral type that converts to/from a YAML scalar where there is a one-to-one mapping between in-memory values and a string in YAML. More...
 
struct  ScalarBitSetTraits
 This class should be specialized by any integer type that is a union of bit values and the YAML representation is a flow sequence of strings. More...
 
struct  ScalarTraits
 This class should be specialized by type that requires custom conversion to/from a yaml scalar. More...
 
struct  BlockScalarTraits
 This class should be specialized by type that requires custom conversion to/from a YAML literal block scalar. More...
 
struct  SequenceTraits
 This class should be specialized by any type that needs to be converted to/from a YAML sequence. More...
 
struct  DocumentListTraits
 This class should be specialized by any type that needs to be converted to/from a list of YAML documents. More...
 
struct  SameType
 
struct  MissingTrait
 
struct  has_ScalarEnumerationTraits
 
struct  has_ScalarBitSetTraits
 
struct  has_ScalarTraits
 
struct  has_BlockScalarTraits
 
struct  has_MappingTraits
 
struct  has_MappingValidateTraits
 
struct  has_SequenceMethodTraits
 
class  has_FlowTraits
 
struct  has_FlowTraits< T, true >
 
struct  has_SequenceTraits
 
struct  has_DocumentListTraits
 
struct  missingTraits
 
struct  validatedMappingTraits
 
struct  unvalidatedMappingTraits
 
class  IO
 
struct  ScalarTraits< bool >
 
struct  ScalarTraits< StringRef >
 
struct  ScalarTraits< std::string >
 
struct  ScalarTraits< uint8_t >
 
struct  ScalarTraits< uint16_t >
 
struct  ScalarTraits< uint32_t >
 
struct  ScalarTraits< uint64_t >
 
struct  ScalarTraits< int8_t >
 
struct  ScalarTraits< int16_t >
 
struct  ScalarTraits< int32_t >
 
struct  ScalarTraits< int64_t >
 
struct  ScalarTraits< float >
 
struct  ScalarTraits< double >
 
struct  MappingNormalization
 
struct  MappingNormalizationHeap
 
class  Input
 The Input class is used to parse a yaml document into in-memory structs and vectors. More...
 
class  Output
 The Output class is used to generate a yaml document from in-memory structs and vectors. More...
 
struct  ScalarTraits< Hex8 >
 Use these types instead of uintXX_t in any mapping to have its yaml output formatted as hexadecimal. More...
 
struct  ScalarTraits< Hex16 >
 
struct  ScalarTraits< Hex32 >
 
struct  ScalarTraits< Hex64 >
 
struct  BlockScalarTraits< Module >
 This struct serializes the LLVM IR module. More...
 
struct  Token
 Token - A single YAML token. More...
 
class  Scanner
 Scans YAML tokens from a MemoryBuffer. More...
 

Functions

bool operator== (const BinaryRef &LHS, const BinaryRef &RHS)
 
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)
 Escape Input for a double quoted scalar. More...
 
template<class CollectionType >
CollectionType::iterator begin (CollectionType &C)
 
template<class CollectionType >
void skip (CollectionType &C)
 
bool isNumber (StringRef S)
 
bool isNumeric (StringRef S)
 
bool isNull (StringRef S)
 
bool isBool (StringRef S)
 
bool needsQuotes (StringRef S)
 
template<typename T >
std::enable_if
< has_ScalarEnumerationTraits
< T >::value, void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if
< has_ScalarBitSetTraits< T >
::value, void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if
< has_ScalarTraits< T >::value,
void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if
< has_BlockScalarTraits< T >
::value, void >::type 
yamlize (IO &YamlIO, T &Val, bool)
 
template<typename T >
std::enable_if
< validatedMappingTraits< T >
::value, void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if
< unvalidatedMappingTraits< T >
::value, void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if< missingTraits
< T >::value, void >::type 
yamlize (IO &io, T &Val, bool)
 
template<typename T >
std::enable_if
< has_SequenceTraits< T >
::value, void >::type 
yamlize (IO &io, T &Seq, bool)
 
template<typename T >
std::enable_if
< has_DocumentListTraits< T >
::value, Input & >::type 
operator>> (Input &yin, T &docList)
 
template<typename T >
std::enable_if
< has_MappingTraits< T >
::value, Input & >::type 
operator>> (Input &yin, T &docMap)
 
template<typename T >
std::enable_if
< has_SequenceTraits< T >
::value, Input & >::type 
operator>> (Input &yin, T &docSeq)
 
template<typename T >
std::enable_if
< has_BlockScalarTraits< T >
::value, Input & >::type 
operator>> (Input &In, T &Val)
 
template<typename T >
std::enable_if< missingTraits
< T >::value, Input & >::type 
operator>> (Input &yin, T &docSeq)
 
template<typename T >
std::enable_if
< has_DocumentListTraits< T >
::value, Output & >::type 
operator<< (Output &yout, T &docList)
 
template<typename T >
std::enable_if
< has_MappingTraits< T >
::value, Output & >::type 
operator<< (Output &yout, T &map)
 
template<typename T >
std::enable_if
< has_SequenceTraits< T >
::value, Output & >::type 
operator<< (Output &yout, T &seq)
 
template<typename T >
std::enable_if
< has_BlockScalarTraits< T >
::value, Output & >::type 
operator<< (Output &Out, T &Val)
 
template<typename T >
std::enable_if< missingTraits
< T >::value, Output & >::type 
operator<< (Output &yout, T &seq)
 
static void commonSectionMapping (IO &IO, ELFYAML::Section &Section)
 
static void sectionMapping (IO &IO, ELFYAML::RawContentSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::NoBitsSection &Section)
 
static void sectionMapping (IO &IO, ELFYAML::RelocationSection &Section)
 
static void groupSectionMapping (IO &IO, ELFYAML::Group &group)
 
static void sectionMapping (IO &IO, ELFYAML::MipsABIFlags &Section)
 

Function Documentation

template<class CollectionType >
CollectionType::iterator llvm::yaml::begin ( CollectionType &  C)
static void llvm::yaml::commonSectionMapping ( IO &  IO,
ELFYAML::Section &  Section 
)
static
bool llvm::yaml::dumpTokens ( StringRef  Input,
raw_ostream OS 
)
std::string llvm::yaml::escape ( StringRef  Input)
static void llvm::yaml::groupSectionMapping ( IO &  IO,
ELFYAML::Group &  group 
)
static
bool llvm::yaml::isBool ( StringRef  S)
inline

Definition at line 427 of file YAMLTraits.h.

References llvm::StringRef::equals().

Referenced by needsQuotes().

bool llvm::yaml::isNull ( StringRef  S)
inline

Definition at line 422 of file YAMLTraits.h.

References llvm::StringRef::equals().

Referenced by ConstantFoldGetElementPtrImpl(), and needsQuotes().

bool llvm::yaml::isNumber ( StringRef  S)
inline
bool llvm::yaml::isNumeric ( StringRef  S)
inline
bool llvm::yaml::needsQuotes ( StringRef  S)
inline
template<typename T >
std::enable_if<has_DocumentListTraits<T>::value, Output &>::type llvm::yaml::operator<< ( Output &  yout,
T docList 
)
inline
template<typename T >
std::enable_if<has_MappingTraits<T>::value, Output &>::type llvm::yaml::operator<< ( Output &  yout,
T map 
)
inline
template<typename T >
std::enable_if<has_SequenceTraits<T>::value, Output &>::type llvm::yaml::operator<< ( Output &  yout,
T seq 
)
inline
template<typename T >
std::enable_if<has_BlockScalarTraits<T>::value, Output &>::type llvm::yaml::operator<< ( Output &  Out,
T Val 
)
inline
template<typename T >
std::enable_if<missingTraits<T>::value, Output &>::type llvm::yaml::operator<< ( Output &  yout,
T seq 
)
inline

Definition at line 1370 of file YAMLTraits.h.

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

Definition at line 79 of file YAML.h.

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

template<typename T >
std::enable_if<has_DocumentListTraits<T>::value, Input &>::type llvm::yaml::operator>> ( Input &  yin,
T docList 
)
inline
template<typename T >
std::enable_if<has_MappingTraits<T>::value, Input &>::type llvm::yaml::operator>> ( Input &  yin,
T docMap 
)
inline

Definition at line 1270 of file YAMLTraits.h.

References llvm::yaml::Input::setCurrentDocument(), and yamlize().

template<typename T >
std::enable_if<has_SequenceTraits<T>::value, Input &>::type llvm::yaml::operator>> ( Input &  yin,
T docSeq 
)
inline

Definition at line 1281 of file YAMLTraits.h.

References llvm::yaml::Input::setCurrentDocument(), and yamlize().

template<typename T >
std::enable_if<has_BlockScalarTraits<T>::value, Input &>::type llvm::yaml::operator>> ( Input &  In,
T Val 
)
inline
template<typename T >
std::enable_if<missingTraits<T>::value, Input &>::type llvm::yaml::operator>> ( Input &  yin,
T docSeq 
)
inline

Definition at line 1301 of file YAMLTraits.h.

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

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

static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::RawContentSection &  Section 
)
static
static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::NoBitsSection &  Section 
)
static
static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::RelocationSection &  Section 
)
static
static void llvm::yaml::sectionMapping ( IO &  IO,
ELFYAML::MipsABIFlags &  Section 
)
static
template<class CollectionType >
void llvm::yaml::skip ( CollectionType &  C)

Definition at line 358 of file YAMLParser.h.

References begin().

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

template<typename T >
std::enable_if<has_ScalarEnumerationTraits<T>::value,void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)
template<typename T >
std::enable_if<has_ScalarBitSetTraits<T>::value,void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)
template<typename T >
std::enable_if<has_ScalarTraits<T>::value,void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)
template<typename T >
std::enable_if<has_BlockScalarTraits<T>::value, void>::type llvm::yaml::yamlize ( IO &  YamlIO,
T Val,
bool   
)
template<typename T >
std::enable_if<validatedMappingTraits<T>::value, void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)
template<typename T >
std::enable_if<unvalidatedMappingTraits<T>::value, void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)
template<typename T >
std::enable_if<missingTraits<T>::value, void>::type llvm::yaml::yamlize ( IO &  io,
T Val,
bool   
)

Definition at line 761 of file YAMLTraits.h.

template<typename T >
std::enable_if<has_SequenceTraits<T>::value,void>::type llvm::yaml::yamlize ( IO &  io,
T Seq,
bool   
)