xref: /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 //===-- SystemZMCAsmInfo.cpp - SystemZ 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 #include "SystemZMCAsmInfo.h"
10 #include "llvm/MC/MCContext.h"
11 #include "llvm/MC/MCSectionELF.h"
12 
13 using namespace llvm;
14 
SystemZMCAsmInfo(const Triple & TT)15 SystemZMCAsmInfo::SystemZMCAsmInfo(const Triple &TT) {
16   CodePointerSize = 8;
17   CalleeSaveStackSlotSize = 8;
18   IsLittleEndian = false;
19 
20   AssemblerDialect = TT.isOSzOS() ? AD_HLASM : AD_ATT;
21 
22   MaxInstLength = 6;
23 
24   CommentString = AssemblerDialect == AD_HLASM ? "*" : "#";
25   RestrictCommentStringToStartOfStatement = (AssemblerDialect == AD_HLASM);
26   AllowAdditionalComments = (AssemblerDialect == AD_ATT);
27   AllowAtAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
28   AllowDollarAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
29   AllowHashAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
30   DotIsPC = (AssemblerDialect == AD_ATT);
31   StarIsPC = (AssemblerDialect == AD_HLASM);
32   EmitGNUAsmStartIndentationMarker = (AssemblerDialect == AD_ATT);
33 
34   ZeroDirective = "\t.space\t";
35   Data64bitsDirective = "\t.quad\t";
36   UsesELFSectionDirectiveForBSS = true;
37   SupportsDebugInformation = true;
38   ExceptionsType = ExceptionHandling::DwarfCFI;
39 }
40