class TargetFeatures
Declaration
class TargetFeatures { /* full declaration omitted */ };
Description
TargetFeatures - This class is used to check whether the builtin function has the required tagert specific features. It is able to support the combination of ','(and), '|'(or), and '()'. By default, the priority of ',' is higher than that of '|' . E.g: A,B|C means the builtin function requires both A and B, or C. If we want the builtin function requires both A and B, or both A and C, there are two ways: A,B|A,C or A,(B|C). The FeaturesList should not contain spaces, and brackets must appear in pairs.
Declared at: clang/lib/Basic/BuiltinTargetFeatures.h:32
Member Variables
- private const llvm::StringMap<bool>& CallerFeatureMap
Method Overview
- public TargetFeatures(const llvm::StringMap<bool> & CallerFeatureMap)
- private clang::Builtin::TargetFeatures::FeatureListStatus getAndFeatures(llvm::StringRef FeatureList)
- public bool hasRequiredFeatures(llvm::StringRef FeatureList)
Methods
¶TargetFeatures(
const llvm::StringMap<bool>& CallerFeatureMap)
TargetFeatures(
const llvm::StringMap<bool>& CallerFeatureMap)
Declared at: clang/lib/Basic/BuiltinTargetFeatures.h:89
Parameters
- const llvm::StringMap<bool>& CallerFeatureMap
¶clang::Builtin::TargetFeatures::FeatureListStatus
getAndFeatures(llvm::StringRef FeatureList)
clang::Builtin::TargetFeatures::FeatureListStatus
getAndFeatures(llvm::StringRef FeatureList)
Declared at: clang/lib/Basic/BuiltinTargetFeatures.h:40
Parameters
- llvm::StringRef FeatureList
¶bool hasRequiredFeatures(
llvm::StringRef FeatureList)
bool hasRequiredFeatures(
llvm::StringRef FeatureList)
Declared at: clang/lib/Basic/BuiltinTargetFeatures.h:82
Parameters
- llvm::StringRef FeatureList