clang  6.0.0svn
Le64.h
Go to the documentation of this file.
1 //===--- Le64.h - Declare Le64 target feature support -----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares Le64 TargetInfo objects.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
15 #define LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
16 
17 #include "clang/Basic/TargetInfo.h"
19 #include "llvm/ADT/Triple.h"
20 #include "llvm/Support/Compiler.h"
21 
22 namespace clang {
23 namespace targets {
24 
25 class LLVM_LIBRARY_VISIBILITY Le64TargetInfo : public TargetInfo {
26  static const Builtin::Info BuiltinInfo[];
27 
28 public:
29  Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
30  : TargetInfo(Triple) {
31  NoAsmVariants = true;
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");
35  }
36 
37  void getTargetDefines(const LangOptions &Opts,
38  MacroBuilder &Builder) const override;
39 
40  ArrayRef<Builtin::Info> getTargetBuiltins() const override;
41 
44  }
45 
46  const char *getClobbers() const override { return ""; }
47 
48  ArrayRef<const char *> getGCCRegNames() const override { return None; }
49 
51  return None;
52  }
53 
54  bool validateAsmConstraint(const char *&Name,
55  TargetInfo::ConstraintInfo &Info) const override {
56  return false;
57  }
58 
59  bool hasProtectedVisibility() const override { return false; }
60 };
61 
62 } // namespace targets
63 } // namespace clang
64 #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:165
static const Builtin::Info BuiltinInfo[]
Definition: Builtins.cpp:21
bool hasProtectedVisibility() const override
Does this target support "protected" visibility?
Definition: Le64.h:59
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:42
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Definition: LangOptions.h:48
ArrayRef< const char * > getGCCRegNames() const override
Definition: Le64.h:48
const char * getClobbers() const override
Returns a string of target-specific clobbers, in LLVM format.
Definition: Le64.h:46
Exposes information about the current target.
Definition: TargetInfo.h:54
Defines the clang::TargetOptions class.
ArrayRef< TargetInfo::GCCRegAlias > getGCCRegAliases() const override
Definition: Le64.h:50
Dataflow Directional Tag Classes.
Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
Definition: Le64.h:29
BuiltinVaListKind
The different kinds of __builtin_va_list types defined by the target implementation.
Definition: TargetInfo.h:152
bool validateAsmConstraint(const char *&Name, TargetInfo::ConstraintInfo &Info) const override
Definition: Le64.h:54
Defines the clang::TargetInfo interface.