llvm::AArch64::getCpuSupportsMask

Compute the CPU-supports bitmask for the given FMV feature names.

Synopsis

Declared in <llvm/TargetParser/AArch64TargetParser.h>

APInt
getCpuSupportsMask(ArrayRef<StringRef> Features);

Description

For a given set of FMV feature names, expand their dependencies and then return a bitmask corresponding to the entries of AArch64::CPUFeatures. The values in CPUFeatures are not bitmasks themselves, they are sequential (0, 1, 2, 3, ...). The resulting bitmask is used at runtime to test whether a certain FMV feature is available on the host.

Return Value

Bitmask over AArch64::CPUFeatures indices.

Parameters

NameDescription
FeaturesFMV feature names.