clang 20.0.0git
Xtensa.cpp
Go to the documentation of this file.
1//===--- Xtensa.cpp - Implement Xtensa target feature support -------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6// See https://llvm.org/LICENSE.txt for license information.
7// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8//
9//===----------------------------------------------------------------------===//
10//
11// This file implements Xtensa TargetInfo objects.
12//
13//===----------------------------------------------------------------------===//
14
15#include "Xtensa.h"
19
20using namespace clang;
21using namespace clang::targets;
22
24 MacroBuilder &Builder) const {
25 Builder.defineMacro("__xtensa__");
26 Builder.defineMacro("__XTENSA__");
27 if (BigEndian)
28 Builder.defineMacro("__XTENSA_EB__");
29 else
30 Builder.defineMacro("__XTENSA_EL__");
31 Builder.defineMacro("__XCHAL_HAVE_BE", BigEndian ? "1" : "0");
32 Builder.defineMacro("__XCHAL_HAVE_ABS"); // core arch
33 Builder.defineMacro("__XCHAL_HAVE_ADDX"); // core arch
34 Builder.defineMacro("__XCHAL_HAVE_L32R"); // core arch
35}
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:499
void getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const override
===-— Other target property query methods -----------------------—===//
Definition: Xtensa.cpp:23
The JSON file list parser is used to communicate input to InstallAPI.