llvm::X86::getFeaturesForCPU

Fill in the features that CPU supports into Features.

Synopsis

Declared in <llvm/TargetParser/X86TargetParser.h>

void
getFeaturesForCPU(
    StringRef CPU,
    SmallVectorImpl<StringRef>& Features,
    bool NeedPlus = false);

Description

"+" will be appended in front of each feature if NeedPlus is true.

Parameters

NameDescription
CPUCPU name whose features are requested.
FeaturesVector that receives feature strings.
NeedPlusIf true, prefix each feature with '+'.