llvm::sys::getHostCPUFeatures

getHostCPUFeatures - Get the LLVM names for the host CPU features.

Synopsis

Declared in <llvm/TargetParser/Host.h>

StringMap<bool, MallocAllocator>
getHostCPUFeatures();

Description

The particular format of the names are target dependent, and suitable for passing as -mattr to the target which matches the host.

Return Value

- A string map mapping feature names to either true (if enabled) or false (if disabled). This routine makes no guarantees about exactly which features may appear in this map, except that they are all valid LLVM feature names. The map can be empty, for example if feature detection fails.