llvm::AArch64::targetFeatureToExtension

Return the extension which has the given -target-feature name.

Synopsis

Declared in <llvm/TargetParser/AArch64TargetParser.h>

std::optional<ExtensionInfo>
targetFeatureToExtension(StringRef TargetFeature);

Return Value

Matching ExtensionInfo, or std::nullopt if unrecognized.

Parameters

NameDescription
TargetFeatureFeature string such as "+spe" or "-spe".