LLVM: include/llvm/Support/SwapByteOrder.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_SUPPORT_SWAPBYTEORDER_H

15#define LLVM_SUPPORT_SWAPBYTEORDER_H

16

19#include

20#include <type_traits>

21

22namespace llvm {

23

24namespace sys {

25

28

30

34

37

40

43

46

50

54

55template

59

60template

64

65}

66}

67

68#endif

This file contains library features backported from future STL versions.

This file implements the C++20 header.

LLVM Value Representation.

@ C

The default llvm calling convention, compatible with C.

constexpr bool IsLittleEndianHost

Definition SwapByteOrder.h:29

unsigned char getSwappedBytes(unsigned char C)

Definition SwapByteOrder.h:31

constexpr bool IsBigEndianHost

Definition SwapByteOrder.h:26

void swapByteOrder(T &Value)

Definition SwapByteOrder.h:61

This is an optimization pass for GlobalISel generic memory operations.

constexpr T byteswap(T V) noexcept

Reverses the bytes in the given integer value V.

constexpr std::underlying_type_t< Enum > to_underlying(Enum E)

Returns underlying integer value of an enum.

To bit_cast(const From &from) noexcept