LLVM 22.0.0git
|
#include "llvm/TargetParser/Host.h"
#include "llvm/ADT/Bitfields.h"
#include "llvm/ADT/STLFunctionalExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/RISCVTargetParser.h"
#include "llvm/TargetParser/Triple.h"
#include "llvm/TargetParser/X86TargetParser.h"
#include <string.h>
#include "Unix/Host.inc"
#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 > LLVM_ATTRIBUTE_UNUSED | 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. |
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().
|
static |
Definition at line 74 of file Host.cpp.
References llvm::errs(), llvm::MemoryBuffer::getFileAsStream(), and LLVM_ATTRIBUTE_UNUSED.