/src/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCAsmInfo.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===// |
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 contains the declarations of the HexagonMCAsmInfo properties. |
10 | | // |
11 | | //===----------------------------------------------------------------------===// |
12 | | |
13 | | #include "HexagonMCAsmInfo.h" |
14 | | |
15 | | using namespace llvm; |
16 | | |
17 | | // Pin the vtable to this file. |
18 | 0 | void HexagonMCAsmInfo::anchor() {} |
19 | | |
20 | 2 | HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple &TT) { |
21 | 2 | Data16bitsDirective = "\t.half\t"; |
22 | 2 | Data32bitsDirective = "\t.word\t"; |
23 | 2 | Data64bitsDirective = nullptr; // .xword is only supported by V9. |
24 | 2 | CommentString = "//"; |
25 | 2 | SupportsDebugInformation = true; |
26 | | |
27 | 2 | LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment; |
28 | 2 | InlineAsmStart = "# InlineAsm Start"; |
29 | 2 | InlineAsmEnd = "# InlineAsm End"; |
30 | 2 | ZeroDirective = "\t.space\t"; |
31 | 2 | AscizDirective = "\t.string\t"; |
32 | | |
33 | 2 | MinInstAlignment = 4; |
34 | 2 | UsesELFSectionDirectiveForBSS = true; |
35 | 2 | ExceptionsType = ExceptionHandling::DwarfCFI; |
36 | 2 | UseLogicalShr = false; |
37 | 2 | } |