13#ifndef LLVM_REMARKS_YAML_REMARK_PARSER_H
14#define LLVM_REMARKS_YAML_REMARK_PARSER_H
94 template <
typename T =
unsigned>
107 return error(
"expected a value of scalar type.",
Node);
109 if (
Value->getValue(Tmp).getAsInteger(10, UnsignedValue))
110 return error(
"expected a value of integer type.", *
Value);
111 return UnsignedValue;
116 std::optional<StringRef> ExternalFilePrependPath = std::nullopt);
This file defines the BumpPtrAllocator interface.
This file defines the SmallVector class.
Base class for user error types.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
Represent a constant reference to a string, i.e.
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
A YAML Stream is a sequence of Documents.
Represents a YAML map created from either a block map for a flow map.
Abstract base class for all Nodes.
A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar val...
This class represents a YAML stream potentially containing multiple documents.
Iterator abstraction for Documents over a Stream.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
auto dyn_cast_if_present(const Y &Val)
dyn_cast_if_present<X> - Functionally identical to dyn_cast, except that a null (or none in the case ...
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
Implement std::hash so that hash_code can be used in STL containers.