LLVM: lib/TargetParser/Host.cpp File Reference (original) (raw)
#include "[llvm/TargetParser/Host.h](Host%5F8h%5Fsource.html)"#include "[llvm/ADT/Bitfields.h](Bitfields%5F8h%5Fsource.html)"#include "[llvm/ADT/STLFunctionalExtras.h](STLFunctionalExtras%5F8h%5Fsource.html)"#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"#include "[llvm/ADT/StringExtras.h](StringExtras%5F8h%5Fsource.html)"#include "[llvm/ADT/StringMap.h](ADT%5F2StringMap%5F8h%5Fsource.html)"#include "[llvm/ADT/StringRef.h](StringRef%5F8h%5Fsource.html)"#include "[llvm/ADT/StringSwitch.h](StringSwitch%5F8h%5Fsource.html)"#include "llvm/Config/llvm-config.h"#include "[llvm/Support/MemoryBuffer.h](MemoryBuffer%5F8h%5Fsource.html)"#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"#include "[llvm/TargetParser/RISCVTargetParser.h](RISCVTargetParser%5F8h%5Fsource.html)"#include "[llvm/TargetParser/Triple.h](Triple%5F8h%5Fsource.html)"#include "[llvm/TargetParser/X86TargetParser.h](X86TargetParser%5F8h%5Fsource.html)"#include <[string.h](string%5F8h%5Fsource.html)>#include "[Unix/Host.inc](Unix%5F2Host%5F8inc%5Fsource.html)"#include <sched.h>
Go to the source code of this file.
| Namespaces | |
|---|---|
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
| namespace | llvm::sys |
| namespace | llvm::sys::detail |
| namespace | llvm::sys::detail::x86 |
| Helper functions to extract CPU details from CPUID on x86. |
| Macros | |
|---|---|
| #define | DEBUG_TYPE "host-detection" |
| Functions | |
|---|---|
| static std::unique_ptr< llvm::MemoryBuffer > | getProcCpuinfoContent () |
| StringRef | getHostCPUNameForARMFromComponents (StringRef Implementer, StringRef Hardware, StringRef Part, ArrayRef< StringRef > Parts, function_ref< unsigned()> GetVariant) |
| LLVM_ABI VendorSignatures | llvm::sys::detail::x86::getVendorSignature (unsigned *MaxLeaf=nullptr) |
| Returns the host CPU's vendor. |
Macro Definition Documentation
◆ DEBUG_TYPE
#define DEBUG_TYPE "host-detection"
Definition at line 63 of file Host.cpp.
Function Documentation
◆ getHostCPUNameForARMFromComponents()
| StringRef getHostCPUNameForARMFromComponents | ( | StringRef | Implementer, |
|---|---|---|---|
| StringRef | Hardware, | ||
| StringRef | Part, | ||
| ArrayRef< StringRef > | Parts, | ||
| function_ref< unsigned()> | GetVariant ) |
Definition at line 174 of file Host.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), llvm::StringRef::ends_with(), llvm::StringRef::getAsInteger(), and llvm::ArrayRef< T >::size().
Referenced by llvm::sys::detail::getHostCPUNameForARM(), and llvm::sys::detail::getHostCPUNameForARM().
◆ getProcCpuinfoContent()
| std::unique_ptr< llvm::MemoryBuffer > getProcCpuinfoContent ( ) | static |
|---|
Definition at line 74 of file Host.cpp.
References llvm::errs(), and llvm::MemoryBuffer::getFileAsStream().