clang  6.0.0svn
TCE.cpp
Go to the documentation of this file.
1 //===--- TCE.cpp - Implement TCE target feature support -------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements TCE TargetInfo objects.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "TCE.h"
15 #include "Targets.h"
17 
18 using namespace clang;
19 using namespace clang::targets;
20 
22  MacroBuilder &Builder) const {
23  DefineStd(Builder, "tce", Opts);
24  Builder.defineMacro("__TCE__");
25  Builder.defineMacro("__TCE_V1__");
26 }
27 
29  MacroBuilder &Builder) const {
30  DefineStd(Builder, "tcele", Opts);
31  Builder.defineMacro("__TCE__");
32  Builder.defineMacro("__TCE_V1__");
33  Builder.defineMacro("__TCELE__");
34  Builder.defineMacro("__TCELE_V1__");
35 }
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods --------------------——===//
Definition: TCE.cpp:28
void DefineStd(MacroBuilder &Builder, StringRef MacroName, const LangOptions &Opts)
DefineStd - Define a macro name and standard variants.
Definition: Targets.cpp:53
Defines the clang::MacroBuilder utility class.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:48
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods --------------------——===//
Definition: TCE.cpp:21
Dataflow Directional Tag Classes.
void defineMacro(const Twine &Name, const Twine &Value="1")
Append a #define line for macro of the form "\#define Name Value\n".
Definition: MacroBuilder.h:30