llvm::InstrProfCorrelatorImpl::maybeSwap

Byte-swap Value when the profile and host endianness differ.

Synopsis

Declared in <llvm/ProfileData/InstrProfCorrelator.h>

template<class T>
T
maybeSwap(T Value) const;

Return Value

Value, byte-swapped when endianness differs.

Parameters

NameDescription
ValueValue that may need byte-swapping.