Path: blob/main/contrib/llvm-project/clang/lib/Basic/Targets/Le64.h
35267 views
//===--- Le64.h - Declare Le64 target feature support -----------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file declares Le64 TargetInfo objects.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H13#define LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H1415#include "clang/Basic/TargetInfo.h"16#include "clang/Basic/TargetOptions.h"17#include "llvm/Support/Compiler.h"18#include "llvm/TargetParser/Triple.h"1920namespace clang {21namespace targets {2223class LLVM_LIBRARY_VISIBILITY Le64TargetInfo : public TargetInfo {2425public:26Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)27: TargetInfo(Triple) {28NoAsmVariants = true;29LongWidth = LongAlign = PointerWidth = PointerAlign = 64;30MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;31resetDataLayout("e-m:e-v128:32-v16:16-v32:32-v96:32-n8:16:32:64-S128");32}3334void getTargetDefines(const LangOptions &Opts,35MacroBuilder &Builder) const override;3637ArrayRef<Builtin::Info> getTargetBuiltins() const override;3839BuiltinVaListKind getBuiltinVaListKind() const override {40return TargetInfo::PNaClABIBuiltinVaList;41}4243std::string_view getClobbers() const override { return ""; }4445ArrayRef<const char *> getGCCRegNames() const override {46return std::nullopt;47}4849ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override {50return std::nullopt;51}5253bool validateAsmConstraint(const char *&Name,54TargetInfo::ConstraintInfo &Info) const override {55return false;56}5758bool hasProtectedVisibility() const override { return false; }59};6061} // namespace targets62} // namespace clang63#endif // LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H646566