clang 22.0.0git
XCore.cpp
Go to the documentation of this file.
1//===--- XCore.cpp - Implement XCore target feature support ---------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file implements XCore TargetInfo objects.
10//
11//===----------------------------------------------------------------------===//
12
13#include "XCore.h"
17
18using namespace clang;
19using namespace clang::targets;
20
21static constexpr int NumBuiltins =
23
24static constexpr llvm::StringTable BuiltinStrings =
26#define BUILTIN CLANG_BUILTIN_STR_TABLE
27#include "clang/Basic/BuiltinsXCore.def"
28 ;
29
31#define BUILTIN CLANG_BUILTIN_ENTRY
32#define LIBBUILTIN CLANG_LIBBUILTIN_ENTRY
33#include "clang/Basic/BuiltinsXCore.def"
34});
35
37 MacroBuilder &Builder) const {
38 Builder.defineMacro("__xcore__");
39 Builder.defineMacro("__XS1B__");
40}
41
static constexpr llvm::StringTable BuiltinStrings
Definition AMDGPU.cpp:101
static constexpr Builtin::Info BuiltinInfos[]
Definition Builtins.cpp:38
static constexpr unsigned NumBuiltins
Definition Builtins.cpp:32
Defines enum values for all the target-independent builtin functions.
#define CLANG_BUILTIN_STR_TABLE_START
Definition Builtins.h:158
Defines the clang::MacroBuilder utility class.
Enumerates target-specific builtins in their own namespaces within namespace clang.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
llvm::SmallVector< Builtin::InfosShard > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
Definition XCore.cpp:43
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition XCore.cpp:36
static constexpr std::array< Info, N > MakeInfos(std::array< Info, N > Infos)
A constexpr function to construct an infos array from X-macros.
Definition Builtins.h:107
The JSON file list parser is used to communicate input to InstallAPI.