Home | History | Annotate | Download | only in Basic

Lines Matching defs:Builtin

1 //===--- Builtins.h - Builtin function header -------------------*- C++ -*-===//
11 /// \brief Defines enum values for all the target-independent builtin
34 GNU_LANG = 0x1, // builtin requires GNU mode.
35 C_LANG = 0x2, // builtin for c only.
36 CXX_LANG = 0x4, // builtin for cplusplus only.
37 OBJC_LANG = 0x8, // builtin for objective-c and objective-c++
38 MS_LANG = 0x10, // builtin requires MS mode.
39 OCLC20_LANG = 0x20, // builtin for OpenCL C 2.0 only.
40 OCLC1X_LANG = 0x40, // builtin for OpenCL C 1.x only.
41 OMP_LANG = 0x80, // builtin requires OpenMP.
42 ALL_LANGUAGES = C_LANG | CXX_LANG | OBJC_LANG, // builtin for all languages.
43 ALL_GNU_LANGUAGES = ALL_LANGUAGES | GNU_LANG, // builtin requires GNU mode.
44 ALL_MS_LANGUAGES = ALL_LANGUAGES | MS_LANG, // builtin requires MS mode.
45 ALL_OCLC_LANGUAGES = OCLC1X_LANG | OCLC20_LANG // builtin for OCLC languages.
48 namespace Builtin {
50 NotBuiltin = 0, // This is not a builtin function.
51 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
80 /// appropriate builtin ID # and mark any non-portable builtin identifiers as
84 /// \brief Return the identifier name for the specified builtin,
90 /// \brief Get the type descriptor string for the specified builtin.
95 /// \brief Return true if this function is a target-specific builtin.
97 return ID >= Builtin::FirstTSBuiltin;
111 /// \brief Return true if we know this builtin never throws an exception.
116 /// \brief Return true if we know this builtin never returns.
121 /// \brief Return true if we know this builtin can return twice.
126 /// \brief Returns true if this builtin does not perform the side-effects
132 /// \brief Return true if this is a builtin for a libc/libm function,
138 /// \brief Determines whether this builtin is a predefined libc/libm
145 /// \brief Returns true if this builtin requires appropriate header in other
152 /// \brief Determines whether this builtin is a predefined compiler-rt/libgcc
159 /// \brief Determines whether this builtin has custom typechecking.
164 /// \brief Determines whether this builtin has a result or any arguments which
170 /// \brief Completely forget that the given ID was ever considered a builtin,
180 /// \brief Determine whether this builtin is like printf in its
185 /// \brief Determine whether this builtin is like scanf in its
202 /// \brief Return true if builtin ID belongs to AuxTarget.
204 return ID >= (Builtin::FirstTSBuiltin + TSRecords.size());
218 /// \brief Is this builtin supported according to the given language options?
219 bool builtinIsSupported(const Builtin::Info &BuiltinInfo,