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