clang  14.0.0git
TCE.cpp
Go to the documentation of this file.
1 //===--- TCE.cpp - Implement TCE 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 TCE TargetInfo objects.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "TCE.h"
14 #include "Targets.h"
16 
17 using namespace clang;
18 using namespace clang::targets;
19 
21  MacroBuilder &Builder) const {
22  DefineStd(Builder, "tce", Opts);
23  Builder.defineMacro("__TCE__");
24  Builder.defineMacro("__TCE_V1__");
25 }
26 
28  MacroBuilder &Builder) const {
29  DefineStd(Builder, "tcele", Opts);
30  Builder.defineMacro("__TCE__");
31  Builder.defineMacro("__TCE_V1__");
32  Builder.defineMacro("__TCELE__");
33  Builder.defineMacro("__TCELE_V1__");
34 }
clang::targets::TCETargetInfo::getTargetDefines
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition: TCE.cpp:20
clang::targets::TCELETargetInfo::getTargetDefines
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition: TCE.cpp:27
Targets.h
MacroBuilder.h
clang::targets::DefineStd
void DefineStd(MacroBuilder &Builder, StringRef MacroName, const LangOptions &Opts)
DefineStd - Define a macro name and standard variants.
Definition: Targets.cpp:56
clang::LangOptions
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:58
TCE.h
clang
Definition: CalledOnceCheck.h:17
clang::targets
Definition: AArch64.h:21
clang::MacroBuilder
Definition: MacroBuilder.h:23