clang  9.0.0
Le64.h
Go to the documentation of this file.
1 //===--- Le64.h - Declare Le64 target feature support -----------*- C++ -*-===//
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 declares Le64 TargetInfo objects.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
14 #define LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
15 
16 #include "clang/Basic/TargetInfo.h"
18 #include "llvm/ADT/Triple.h"
19 #include "llvm/Support/Compiler.h"
20 
21 namespace clang {
22 namespace targets {
23 
24 class LLVM_LIBRARY_VISIBILITY Le64TargetInfo : public TargetInfo {
25  static const Builtin::Info BuiltinInfo[];
26 
27 public:
28  Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
29  : TargetInfo(Triple) {
30  NoAsmVariants = true;
31  LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
32  MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
33  resetDataLayout("e-m:e-v128:32-v16:16-v32:32-v96:32-n8:16:32:64-S128");
34  }
35 
36  void getTargetDefines(const LangOptions &Opts,
37  MacroBuilder &Builder) const override;
38 
39  ArrayRef<Builtin::Info> getTargetBuiltins() const override;
40 
43  }
44 
45  const char *getClobbers() const override { return ""; }
46 
47  ArrayRef<const char *> getGCCRegNames() const override { return None; }
48 
50  return None;
51  }
52 
53  bool validateAsmConstraint(const char *&Name,
54  TargetInfo::ConstraintInfo &Info) const override {
55  return false;
56  }
57 
58  bool hasProtectedVisibility() const override { return false; }
59 };
60 
61 } // namespace targets
62 } // namespace clang
63 #endif // LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
__builtin_va_list as defined by the PNaCl ABI: http://www.chromium.org/nativeclient/pnacl/bitcode-abi...
Definition: TargetInfo.h:236
static const Builtin::Info BuiltinInfo[]
Definition: Builtins.cpp:20
bool hasProtectedVisibility() const override
Does this target support "protected" visibility?
Definition: Le64.h:58
Options for controlling the target.
Definition: TargetOptions.h:26
BuiltinVaListKind getBuiltinVaListKind() const override
Returns the kind of __builtin_va_list type that should be used with this target.
Definition: Le64.h:41
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:49
ArrayRef< const char * > getGCCRegNames() const override
Definition: Le64.h:47
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
Definition: Le64.h:45
Exposes information about the current target.
Definition: TargetInfo.h:161
Defines the clang::TargetOptions class.
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Definition: Le64.h:49
Dataflow Directional Tag Classes.
Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
Definition: Le64.h:28
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
Definition: TargetInfo.h:223
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
Definition: Le64.h:53
Defines the clang::TargetInfo interface.