14#ifndef LLVM_SUPPORT_ENDIANSTREAM_H
15#define LLVM_SUPPORT_ENDIANSTREAM_H
28template <
typename value_type>
31 os.
write((
const char *)&
value,
sizeof(value_type));
45template <
typename value_type>
48 for (value_type v : vals)
52template <
typename value_type>
54 V = byte_swap<value_type>(V,
E);
55 Out.
append((
const char *)&V, (
const char *)&V +
sizeof(value_type));
66 template <
typename value_type>
void write(value_type Val) {
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Given that RA is a live value
This file defines the SmallVector class.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void append(ItTy in_start, ItTy in_end)
Add the specified range to the end of the SmallVector.
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & write(unsigned char C)
void write< float >(raw_ostream &os, float value, endianness endian)
void write< double >(raw_ostream &os, double value, endianness endian)
void write(void *memory, value_type value, endianness endian)
Write a value to memory with a particular endianness.
This is an optimization pass for GlobalISel generic memory operations.
Adapter to write values to a stream in a particular byte order.
void write(ArrayRef< value_type > Val)
void write(value_type Val)
Writer(raw_ostream &OS, endianness Endian)