clang 20.0.0git
Classes | Enumerations | Functions
clang::Builtin Namespace Reference

Classes

class  Context
 Holds information about both target-independent and target-specific builtins, allowing easy queries by clients. More...
 
struct  Info
 
class  TargetFeatures
 TargetFeatures - This class is used to check whether the builtin function has the required tagert specific features. More...
 

Enumerations

enum  ID { NotBuiltin = 0 , FirstTSBuiltin }
 

Functions

bool evaluateRequiredTargetFeatures (llvm::StringRef RequiredFatures, const llvm::StringMap< bool > &TargetFetureMap)
 Returns true if the required target features of a builtin function are enabled.
 

Enumeration Type Documentation

◆ ID

Enumerator
NotBuiltin 
FirstTSBuiltin 

Definition at line 64 of file Builtins.h.

Function Documentation

◆ evaluateRequiredTargetFeatures()

bool clang::Builtin::evaluateRequiredTargetFeatures ( llvm::StringRef  RequiredFatures,
const llvm::StringMap< bool > &  TargetFetureMap 
)

Returns true if the required target features of a builtin function are enabled.

TargetFeatureMap maps a target feature to true if it is enabled and false if it is disabled.

Referenced by clang::checkArmStreamingBuiltin(), clang::Sema::checkTypeSupport(), and clang::Sema::CheckVariableDeclarationType().