clang  15.0.0git
Macros | Functions | Variables
Builtins.cpp File Reference
#include "clang/Basic/Builtins.h"
#include "BuiltinTargetFeatures.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringRef.h"
#include "clang/Basic/Builtins.def"
Include dependency graph for Builtins.cpp:

Go to the source code of this file.

Macros

#define BUILTIN(ID, TYPE, ATTRS)   { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, nullptr },
 
#define LANGBUILTIN(ID, TYPE, ATTRS, LANGS)   { #ID, TYPE, ATTRS, nullptr, LANGS, nullptr },
 
#define LIBBUILTIN(ID, TYPE, ATTRS, HEADER, LANGS)   { #ID, TYPE, ATTRS, HEADER, LANGS, nullptr },
 

Functions

static bool builtinIsSupported (const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts)
 Is this builtin supported according to the given language options? More...
 

Variables

static const Builtin::Info BuiltinInfo []
 

Macro Definition Documentation

◆ BUILTIN

#define BUILTIN (   ID,
  TYPE,
  ATTRS 
)    { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, nullptr },

◆ LANGBUILTIN

#define LANGBUILTIN (   ID,
  TYPE,
  ATTRS,
  LANGS 
)    { #ID, TYPE, ATTRS, nullptr, LANGS, nullptr },

◆ LIBBUILTIN

#define LIBBUILTIN (   ID,
  TYPE,
  ATTRS,
  HEADER,
  LANGS 
)    { #ID, TYPE, ATTRS, HEADER, LANGS, nullptr },

Function Documentation

◆ builtinIsSupported()

static bool builtinIsSupported ( const Builtin::Info BuiltinInfo,
const LangOptions LangOpts 
)
static

Is this builtin supported according to the given language options?

Definition at line 64 of file Builtins.cpp.

Variable Documentation

◆ BuiltinInfo

const Builtin::Info BuiltinInfo[]
static
Initial value:
= {
{ "not a builtin function", nullptr, nullptr, nullptr, ALL_LANGUAGES,nullptr},
#define BUILTIN(ID, TYPE, ATTRS)
#define LANGBUILTIN(ID, TYPE, ATTRS, LANGS)
#define LIBBUILTIN(ID, TYPE, ATTRS, HEADER, LANGS)
}

Definition at line 21 of file Builtins.cpp.

Referenced by clang::CodeGen::CodeGenFunction::EmitTargetBuiltinExpr(), getHeaderName(), and clang::Builtin::Context::isBuiltinFunc().

clang::ALL_LANGUAGES
@ ALL_LANGUAGES
Definition: Builtins.h:45