Le64.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #ifndef LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
  13. #define LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H
  14. #include "clang/Basic/TargetInfo.h"
  15. #include "clang/Basic/TargetOptions.h"
  16. #include "llvm/ADT/Triple.h"
  17. #include "llvm/Support/Compiler.h"
  18. namespace clang {
  19. namespace targets {
  20. class LLVM_LIBRARY_VISIBILITY Le64TargetInfo : public TargetInfo {
  21. public:
  22. Le64TargetInfo(const llvm::Triple &Triple, const TargetOptions &)
  23. : TargetInfo(Triple) {
  24. NoAsmVariants = true;
  25. LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
  26. MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
  27. resetDataLayout("e-m:e-v128:32-v16:16-v32:32-v96:32-n8:16:32:64-S128");
  28. }
  29. void getTargetDefines(const LangOptions &Opts,
  30. MacroBuilder &Builder) const override;
  31. ArrayRef<Builtin::Info> getTargetBuiltins() const override;
  32. BuiltinVaListKind getBuiltinVaListKind() const override {
  33. return TargetInfo::PNaClABIBuiltinVaList;
  34. }
  35. const char *getClobbers() const override { return ""; }
  36. ArrayRef<const char *> getGCCRegNames() const override { return None; }
  37. ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override {
  38. return None;
  39. }
  40. bool validateAsmConstraint(const char *&Name,
  41. TargetInfo::ConstraintInfo &Info) const override {
  42. return false;
  43. }
  44. bool hasProtectedVisibility() const override { return false; }
  45. };
  46. } // namespace targets
  47. } // namespace clang
  48. #endif // LLVM_CLANG_LIB_BASIC_TARGETS_LE64_H