clang 20.0.0git
|
#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/BuiltinHeaders.def"
#include "clang/Basic/Builtins.inc"
Go to the source code of this file.
Macros | |
#define | HEADER(ID, NAME) |
#define | BUILTIN(ID, TYPE, ATTRS) {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES}, |
#define | LANGBUILTIN(ID, TYPE, ATTRS, LANGS) {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, LANGS}, |
#define | LIBBUILTIN(ID, TYPE, ATTRS, HEADER, LANGS) {#ID, TYPE, ATTRS, nullptr, HeaderDesc::HEADER, LANGS}, |
Functions | |
static bool | builtinIsSupported (const Builtin::Info &BuiltinInfo, const LangOptions &LangOpts) |
Is this builtin supported according to the given language options? | |
Variables | |
static constexpr Builtin::Info | BuiltinInfo [] |
#define BUILTIN | ( | ID, | |
TYPE, | |||
ATTRS | |||
) | {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES}, |
#define HEADER | ( | ID, | |
NAME | |||
) |
#define LANGBUILTIN | ( | ID, | |
TYPE, | |||
ATTRS, | |||
LANGS | |||
) | {#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, LANGS}, |
#define LIBBUILTIN | ( | ID, | |
TYPE, | |||
ATTRS, | |||
HEADER, | |||
LANGS | |||
) | {#ID, TYPE, ATTRS, nullptr, HeaderDesc::HEADER, LANGS}, |
|
static |
Is this builtin supported according to the given language options?
Definition at line 76 of file Builtins.cpp.
References clang::ALL_OCL_LANGUAGES, clang::Builtin::Info::Attributes, BuiltinInfo, clang::COR_LANG, clang::CUDA_LANG, clang::CXX_LANG, clang::LangOptions::getOpenCLCompatibleVersion(), clang::GNU_LANG, clang::Builtin::Info::Header, clang::HLSL_LANG, clang::HeaderDesc::ID, clang::Builtin::Info::Langs, clang::MS_LANG, clang::OBJC_LANG, clang::OCL_DSE, clang::OCL_GAS, clang::OCL_PIPE, and clang::OMP_LANG.
Referenced by clang::Builtin::Context::initializeBuiltins().
|
staticconstexpr |
Definition at line 32 of file Builtins.cpp.
Referenced by builtinIsSupported(), clang::SemaHexagon::CheckHexagonBuiltinArgument(), getHeaderName(), clang::targets::AArch64TargetInfo::getTargetBuiltins(), clang::targets::AMDGPUTargetInfo::getTargetBuiltins(), clang::targets::ARMTargetInfo::getTargetBuiltins(), clang::targets::BPFTargetInfo::getTargetBuiltins(), clang::targets::HexagonTargetInfo::getTargetBuiltins(), clang::targets::LoongArchTargetInfo::getTargetBuiltins(), clang::targets::MipsTargetInfo::getTargetBuiltins(), clang::targets::NVPTXTargetInfo::getTargetBuiltins(), clang::targets::PPCTargetInfo::getTargetBuiltins(), clang::targets::RISCVTargetInfo::getTargetBuiltins(), clang::targets::SystemZTargetInfo::getTargetBuiltins(), clang::targets::VETargetInfo::getTargetBuiltins(), clang::targets::XCoreTargetInfo::getTargetBuiltins(), clang::Builtin::Context::initializeBuiltins(), clang::Builtin::Context::isBuiltinFunc(), clang::SemaARM::SmeAliasValid(), and clang::SemaARM::SveAliasValid().