14#ifndef LLVM_OBJECT_MACHOUNIVERSALWRITER_H
15#define LLVM_OBJECT_MACHOUNIVERSALWRITER_H
75 return static_cast<uint64_t>(CPUType) << 32 | CPUSubType;
79 if (!ArchName.empty())
81 return (
"unknown(" +
Twine(CPUType) +
"," +
87 if (Lhs.CPUType == Rhs.CPUType)
88 return Lhs.CPUSubType < Rhs.CPUSubType;
96 return Lhs.P2Alignment < Rhs.P2Alignment;
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
This is an important class for using LLVM in a threaded context.
StringRef - Represent a constant reference to a string, i.e.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
uint32_t getP2Alignment() const
uint32_t getCPUType() const
std::string getArchString() const
const Binary * getBinary() const
void setP2Alignment(uint32_t Align)
uint32_t getCPUSubType() const
static Expected< Slice > create(const Archive &A, LLVMContext *LLVMCtx=nullptr)
uint64_t getCPUID() const
friend bool operator<(const Slice &Lhs, const Slice &Rhs)
This class implements an extremely fast bulk output stream that can only output to a stream.
Error writeUniversalBinary(ArrayRef< Slice > Slices, StringRef OutputFileName, FatHeaderType FatHeader=FatHeaderType::FatHeader)
Error writeUniversalBinaryToStream(ArrayRef< Slice > Slices, raw_ostream &Out, FatHeaderType FatHeader=FatHeaderType::FatHeader)
This is an optimization pass for GlobalISel generic memory operations.
This struct is a compact representation of a valid (non-zero power of two) alignment.