clang 17.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"
18
19using namespace clang;
20using 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}
Defines enum values for all the target-independent builtin functions.
Defines the clang::MacroBuilder utility class.
Enumerates target-specific builtins in their own namespaces within namespace clang.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:82
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition: Le64.cpp:26
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
void defineCPUMacros(MacroBuilder &Builder, StringRef CPUName, bool Tuning)
Definition: Targets.cpp:75
void DefineStd(MacroBuilder &Builder, StringRef MacroName, const LangOptions &Opts)
DefineStd - Define a macro name and standard variants.
Definition: Targets.cpp:59