Returns the default enabled features for CPU, or nullopt if unknown.
Synopsis
Declared in <llvm/TargetParser/TargetParser.h>
std::optional<llvm::StringMap<bool>>
getCPUDefaultTargetFeatures(
StringRef CPU,
ArrayRef<BasicSubtargetSubTypeKV> ProcDesc,
ArrayRef<BasicSubtargetFeatureKV> ProcFeatures);
Description
Looks up CPU in ProcDesc and expands transitively implied features from ProcFeatures into a name‐to‐enabled map.
Return Value
Map from feature name to true for each feature implied by CPU, or std::nullopt if CPU is empty or not found in ProcDesc.
Parameters
Name |
Description |
CPU |
CPU name to look up. |
ProcDesc |
Sorted table of CPU/subtype entries and implied features. |
ProcFeatures |
Feature table used to expand implied feature bits. |
Created with MrDocs