17#define ELF_MACHINE(em, num, arch, gnuname) {{arch}, em},
18#include "llvm/BinaryFormat/ELF.def"
24 std::string LowerArch = Arch.
lower();
#define BUILD_ENUM_STRINGS(Tab)
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
Represent a constant reference to a string, i.e.
constexpr bool empty() const
Check if the string is empty.
LLVM_ABI std::string lower() const
A switch()-like statement whose cases are string literals.
StringSwitch & StartsWith(StringLiteral S, T Value)
LLVM_ABI StringRef convertOSABIToName(uint8_t OSABI)
LLVM_ABI uint16_t convertTripleArchTypeToEMachine(Triple::ArchType ArchType)
LLVM_ABI uint16_t convertArchNameToEMachine(StringRef Arch)
Convert an architecture name into ELF's e_machine value.
LLVM_ABI StringRef convertEMachineToArchName(uint16_t EMachine)
Convert an ELF's e_machine value into an architecture name.
LLVM_ABI uint8_t convertNameToOSABI(StringRef Name)
This is an optimization pass for GlobalISel generic memory operations.
EnumStrings(const EnumStringsStorage< T, NumStrs, N, StrLen > &) -> EnumStrings< T, NumStrs >
std::string toString(const APInt &I, unsigned Radix, bool Signed, bool formatAsCLiteral=false, bool UpperCase=true, bool InsertSeparators=false)
Compile-time data representation of enum entries.