1 | //===-- MSP430Attributes.cpp - MSP430 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/MSP430Attributes.h" |
10 | |
11 | using namespace llvm; |
12 | using namespace llvm::MSP430Attrs; |
13 | |
14 | static constexpr TagNameItem TagData[] = {{.attr: TagISA, .tagName: "Tag_ISA" }, |
15 | {.attr: TagCodeModel, .tagName: "Tag_Code_Model" }, |
16 | {.attr: TagDataModel, .tagName: "Tag_Data_Model" }, |
17 | {.attr: TagEnumSize, .tagName: "Tag_Enum_Size" }}; |
18 | |
19 | constexpr TagNameMap MSP430AttributeTags{TagData}; |
20 | const TagNameMap &llvm::MSP430Attrs::getMSP430AttributeTags() { |
21 | return MSP430AttributeTags; |
22 | } |
23 | |