clang  14.0.0git
Le64.cpp
Go to the documentation of this file.
1 //===--- Le64.cpp - Implement Le64 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 Le64 TargetInfo objects.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "Le64.h"
14 #include "Targets.h"
15 #include "clang/Basic/Builtins.h"
18 
19 using namespace clang;
20 using namespace clang::targets;
21 
23  return {};
24 }
25 
27  MacroBuilder &Builder) const {
28  DefineStd(Builder, "unix", Opts);
29  defineCPUMacros(Builder, "le64", /*Tuning=*/false);
30  Builder.defineMacro("__ELF__");
31 }
Builtins.h
clang::targets::Le64TargetInfo::getTargetBuiltins
ArrayRef< Builtin::Info > getTargetBuiltins() const override
Return information about target-specific builtins for the current primary target, and info about whic...
Definition: Le64.cpp:22
clang::targets::Le64TargetInfo::getTargetDefines
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition: Le64.cpp:26
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
Le64.h
llvm::ArrayRef
Definition: LLVM.h:34
TargetBuiltins.h
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
clang
Definition: CalledOnceCheck.h:17
clang::targets
Definition: AArch64.h:21
clang::MacroBuilder
Definition: MacroBuilder.h:23
clang::targets::defineCPUMacros
void defineCPUMacros(MacroBuilder &Builder, StringRef CPUName, bool Tuning)
Definition: Targets.cpp:72