1 //===--- Le64.h - Declare Le64 target feature support -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares Le64 TargetInfo objects.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
15 #define LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
17 #include "clang/Basic/TargetInfo.h"
18 #include "clang/Basic/TargetOptions.h"
19 #include "llvm/ADT/Triple.h"
20 #include "llvm/Support/Compiler.h"
25 class LLVM_LIBRARY_VISIBILITY Le64TargetInfo : public TargetInfo {
26 static const Builtin::Info BuiltinInfo[];
29 Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
30 : TargetInfo(Triple) {
32 LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
33 MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
34 resetDataLayout("e-m:e-v128:32-v16:16-v32:32-v96:32-n8:16:32:64-S128");
37 void getTargetDefines(const LangOptions &Opts,
38 MacroBuilder &Builder) const override;
40 ArrayRef<Builtin::Info> getTargetBuiltins() const override;
42 BuiltinVaListKind getBuiltinVaListKind() const override {
43 return TargetInfo::PNaClABIBuiltinVaList;
46 const char *getClobbers() const override { return ""; }
48 ArrayRef<const char *> getGCCRegNames() const override { return None; }
50 ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override {
54 bool validateAsmConstraint(const char *&Name,
55 TargetInfo::ConstraintInfo &Info) const override {
59 bool hasProtectedVisibility() const override { return false; }
62 } // namespace targets
64 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H