RISCVAttributes.cpp 902 B

1234567891011121314151617181920212223242526
  1. //===-- RISCVAttributes.cpp - RISCV 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/RISCVAttributes.h"
  9. using namespace llvm;
  10. using namespace llvm::RISCVAttrs;
  11. static constexpr TagNameItem tagData[] = {
  12. {STACK_ALIGN, "Tag_stack_align"},
  13. {ARCH, "Tag_arch"},
  14. {UNALIGNED_ACCESS, "Tag_unaligned_access"},
  15. {PRIV_SPEC, "Tag_priv_spec"},
  16. {PRIV_SPEC_MINOR, "Tag_priv_spec_minor"},
  17. {PRIV_SPEC_REVISION, "Tag_priv_spec_revision"},
  18. };
  19. constexpr TagNameMap RISCVAttributeTags{tagData};
  20. const TagNameMap &llvm::RISCVAttrs::getRISCVAttributeTags() {
  21. return RISCVAttributeTags;
  22. }