ΒΆbool getHostCPUFeatures(
    StringMap<bool, llvm::MallocAllocator>&
        Features)

Description

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

Declared at: llvm/include/llvm/Support/Host.h:55

Parameters

StringMap<bool, llvm::MallocAllocator>& Features
- A string 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.

Returns

- True on success.