clang  6.0.0svn
SPIR.cpp
Go to the documentation of this file.
1 //===--- SPIR.cpp - Implement SPIR 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 SPIR TargetInfo objects.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "SPIR.h"
15 #include "Targets.h"
16 
17 using namespace clang;
18 using namespace clang::targets;
19 
21  MacroBuilder &Builder) const {
22  DefineStd(Builder, "SPIR", Opts);
23 }
24 
26  MacroBuilder &Builder) const {
27  DefineStd(Builder, "SPIR32", Opts);
28 }
29 
31  MacroBuilder &Builder) const {
32  DefineStd(Builder, "SPIR64", Opts);
33 }
void DefineStd(MacroBuilder &Builder, StringRef MacroName, const LangOptions &Opts)
DefineStd - Define a macro name and standard variants.
Definition: Targets.cpp:53
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods --------------------——===//
Definition: SPIR.cpp:30
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: SPIR.cpp:25
Dataflow Directional Tag Classes.
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods --------------------——===//
Definition: SPIR.cpp:20