xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCAsmInfo.cpp (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1*0b57cec5SDimitry Andric //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===//
2*0b57cec5SDimitry Andric //
3*0b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0b57cec5SDimitry Andric //
7*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
8*0b57cec5SDimitry Andric //
9*0b57cec5SDimitry Andric // This file contains the declarations of the HexagonMCAsmInfo properties.
10*0b57cec5SDimitry Andric //
11*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
12*0b57cec5SDimitry Andric 
13*0b57cec5SDimitry Andric #include "HexagonMCAsmInfo.h"
14*0b57cec5SDimitry Andric 
15*0b57cec5SDimitry Andric using namespace llvm;
16*0b57cec5SDimitry Andric 
17*0b57cec5SDimitry Andric // Pin the vtable to this file.
anchor()18*0b57cec5SDimitry Andric void HexagonMCAsmInfo::anchor() {}
19*0b57cec5SDimitry Andric 
HexagonMCAsmInfo(const Triple & TT)20*0b57cec5SDimitry Andric HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple &TT) {
21*0b57cec5SDimitry Andric   Data16bitsDirective = "\t.half\t";
22*0b57cec5SDimitry Andric   Data32bitsDirective = "\t.word\t";
23*0b57cec5SDimitry Andric   Data64bitsDirective = nullptr;  // .xword is only supported by V9.
24*0b57cec5SDimitry Andric   CommentString = "//";
25*0b57cec5SDimitry Andric   SupportsDebugInformation = true;
26*0b57cec5SDimitry Andric 
27*0b57cec5SDimitry Andric   LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
28*0b57cec5SDimitry Andric   InlineAsmStart = "# InlineAsm Start";
29*0b57cec5SDimitry Andric   InlineAsmEnd = "# InlineAsm End";
30*0b57cec5SDimitry Andric   ZeroDirective = "\t.space\t";
31*0b57cec5SDimitry Andric   AscizDirective = "\t.string\t";
32*0b57cec5SDimitry Andric 
33*0b57cec5SDimitry Andric   MinInstAlignment = 4;
34*0b57cec5SDimitry Andric   UsesELFSectionDirectiveForBSS  = true;
35*0b57cec5SDimitry Andric   ExceptionsType = ExceptionHandling::DwarfCFI;
36*0b57cec5SDimitry Andric   UseLogicalShr = false;
37*0b57cec5SDimitry Andric }
38