clang
15.0.0git
lib
Basic
Targets
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
"
16
#include "
clang/Basic/MacroBuilder.h
"
17
#include "
clang/Basic/TargetBuiltins.h
"
18
19
using namespace
clang
;
20
using namespace
clang::targets
;
21
22
ArrayRef<Builtin::Info>
Le64TargetInfo::getTargetBuiltins
()
const
{
23
return
{};
24
}
25
26
void
Le64TargetInfo::getTargetDefines
(
const
LangOptions
&Opts,
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:58
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:78
clang
Definition:
CalledOnceCheck.h:17
clang::targets
Definition:
AArch64.h:22
clang::MacroBuilder
Definition:
MacroBuilder.h:23
clang::targets::defineCPUMacros
void defineCPUMacros(MacroBuilder &Builder, StringRef CPUName, bool Tuning)
Definition:
Targets.cpp:74
Generated on Thu May 19 2022 20:15:52 for clang by
1.8.17