1//===-- HexagonAttributes.cpp - Qualcomm Hexagon 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
9#include "llvm/Support/HexagonAttributes.h"
10
11using namespace llvm;
12using namespace llvm::HexagonAttrs;
13
14static constexpr TagNameItem TagData[] = {
15 {.attr: ARCH, .tagName: "Tag_arch"},
16 {.attr: HVXARCH, .tagName: "Tag_hvx_arch"},
17 {.attr: HVXIEEEFP, .tagName: "Tag_hvx_ieeefp"},
18 {.attr: HVXQFLOAT, .tagName: "Tag_hvx_qfloat"},
19 {.attr: ZREG, .tagName: "Tag_zreg"},
20 {.attr: AUDIO, .tagName: "Tag_audio"},
21 {.attr: CABAC, .tagName: "Tag_cabac"},
22};
23
24constexpr TagNameMap HexagonAttributeTags{TagData};
25const TagNameMap &llvm::HexagonAttrs::getHexagonAttributeTags() {
26 return HexagonAttributeTags;
27}
28