clang  15.0.0git
Classes | Public Member Functions | List of all members
clang::Builtin::TargetFeatures Class Reference

TargetFeatures - This class is used to check whether the builtin function has the required tagert specific features. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Basic/BuiltinTargetFeatures.h"

Public Member Functions

bool hasRequiredFeatures (StringRef FeatureList)
 
 TargetFeatures (const llvm::StringMap< bool > &CallerFeatureMap)
 

Detailed 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.

Definition at line 32 of file BuiltinTargetFeatures.h.

Constructor & Destructor Documentation

◆ TargetFeatures()

clang::Builtin::TargetFeatures::TargetFeatures ( const llvm::StringMap< bool > &  CallerFeatureMap)
inline

Definition at line 89 of file BuiltinTargetFeatures.h.

Member Function Documentation

◆ hasRequiredFeatures()

bool clang::Builtin::TargetFeatures::hasRequiredFeatures ( StringRef  FeatureList)
inline

Definition at line 82 of file BuiltinTargetFeatures.h.


The documentation for this class was generated from the following file: