1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #pragma once
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-parameter"
- #endif
- #ifndef LLVM_TEXTAPI_ARCHITECTURE_H
- #define LLVM_TEXTAPI_ARCHITECTURE_H
- #include <cstdint>
- #include <utility>
- namespace llvm {
- class raw_ostream;
- class StringRef;
- class Triple;
- namespace MachO {
- enum Architecture : uint8_t {
- #define ARCHINFO(Arch, Type, SubType, NumBits) AK_##Arch,
- #include "llvm/TextAPI/Architecture.def"
- #undef ARCHINFO
- AK_unknown,
- };
- Architecture getArchitectureFromCpuType(uint32_t CPUType, uint32_t CPUSubType);
- Architecture getArchitectureFromName(StringRef Name);
- StringRef getArchitectureName(Architecture Arch);
- std::pair<uint32_t, uint32_t> getCPUTypeFromArchitecture(Architecture Arch);
- Architecture mapToArchitecture(const llvm::Triple &Target);
- bool is64Bit(Architecture);
- raw_ostream &operator<<(raw_ostream &OS, Architecture Arch);
- }
- }
- #endif
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif
|