CSKYAttributes.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. //===-- CSKYAttributes.cpp - CSKY Attributes ------------------------------===//
  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. #include "llvm/Support/CSKYAttributes.h"
  9. using namespace llvm;
  10. using namespace llvm::CSKYAttrs;
  11. static const TagNameItem tagData[] = {
  12. {CSKY_ARCH_NAME, "Tag_CSKY_ARCH_NAME"},
  13. {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
  14. {CSKY_CPU_NAME, "Tag_CSKY_CPU_NAME"},
  15. {CSKY_ISA_FLAGS, "Tag_CSKY_ISA_FLAGS"},
  16. {CSKY_ISA_EXT_FLAGS, "Tag_CSKY_ISA_EXT_FLAGS"},
  17. {CSKY_DSP_VERSION, "Tag_CSKY_DSP_VERSION"},
  18. {CSKY_VDSP_VERSION, "Tag_CSKY_VDSP_VERSION"},
  19. {CSKY_FPU_VERSION, "Tag_CSKY_FPU_VERSION"},
  20. {CSKY_FPU_ABI, "Tag_CSKY_FPU_ABI"},
  21. {CSKY_FPU_ROUNDING, "Tag_CSKY_FPU_ROUNDING"},
  22. {CSKY_FPU_DENORMAL, "Tag_CSKY_FPU_DENORMAL"},
  23. {CSKY_FPU_EXCEPTION, "Tag_CSKY_FPU_EXCEPTION"},
  24. {CSKY_FPU_NUMBER_MODULE, "Tag_CSKY_FPU_NUMBER_MODULE"},
  25. {CSKY_FPU_HARDFP, "Tag_CSKY_FPU_HARDFP"}};
  26. constexpr TagNameMap CSKYAttributeTags{tagData};
  27. const TagNameMap &llvm::CSKYAttrs::getCSKYAttributeTags() {
  28. return CSKYAttributeTags;
  29. }