LLVM 19.0.0git
SystemZMCAsmInfo.cpp
Go to the documentation of this file.
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"
12
13using namespace llvm;
14
19 Data64bitsDirective = "\t.quad\t";
21 IsLittleEndian = false;
22 MaxInstLength = 6;
25 ZeroDirective = "\t.space\t";
26}
27
30 AllowAtInName = true;
37 CommentString = "*";
38 DotIsPC = false;
42 IsLittleEndian = false;
43 MaxInstLength = 6;
45 StarIsPC = true;
47}
48
50 return MCAsmInfo::isAcceptableChar(C) || C == '#';
51}
bool RestrictCommentStringToStartOfStatement
This indicates whether the comment string is only accepted as a comment at the beginning of statement...
Definition: MCAsmInfo.h:139
bool AllowAdditionalComments
This indicates whether to allow additional "comment strings" to be lexed as a comment.
Definition: MCAsmInfo.h:147
const char * Data64bitsDirective
Definition: MCAsmInfo.h:291
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:457
bool AllowDollarAtStartOfIdentifier
This is true if the assembler allows the "$" character at the start of of a string to be lexed as an ...
Definition: MCAsmInfo.h:211
bool AllowAtAtStartOfIdentifier
This is true if the assembler allows the "@" character at the start of a string to be lexed as an Asm...
Definition: MCAsmInfo.h:218
bool DotIsPC
Allow '.
Definition: MCAsmInfo.h:123
bool AllowAtInName
This is true if the assembler allows @ characters in symbol names.
Definition: MCAsmInfo.h:197
bool EmitLabelsInUpperCase
Emit labels in purely upper case. Defaults to false.
Definition: MCAsmInfo.h:157
unsigned MaxInstLength
This is the maximum possible length of an instruction, which is needed to compute the size of an inli...
Definition: MCAsmInfo.h:111
bool StarIsPC
Whether the '*' token refers to the current PC.
Definition: MCAsmInfo.h:127
bool UsesELFSectionDirectiveForBSS
This is true if this target uses ELF '.section' directive before the '.bss' one.
Definition: MCAsmInfo.h:322
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:454
virtual bool isAcceptableChar(char C) const
Return true if C is an acceptable character inside a symbol name.
Definition: MCAsmInfo.cpp:105
unsigned AssemblerDialect
Which dialect of an assembler variant to use. Defaults to 0.
Definition: MCAsmInfo.h:193
bool EmitGNUAsmStartIndentationMarker
Should we emit the '\t' as the starting indentation marker for GNU inline asm statements.
Definition: MCAsmInfo.h:151
const char * ZeroDirective
This should be set to the directive used to get some number of zero (and non-zero if supported by the...
Definition: MCAsmInfo.h:252
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:79
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:72
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition: MCAsmInfo.h:76
StringRef CommentString
This indicates the comment string used by the assembler.
Definition: MCAsmInfo.h:135
bool AllowHashAtStartOfIdentifier
This is true if the assembler allows the "#" character at the start of a string to be lexed as an Asm...
Definition: MCAsmInfo.h:225
SystemZMCAsmInfoELF(const Triple &TT)
bool isAcceptableChar(char C) const override
Return true if C is an acceptable character inside a symbol name.
SystemZMCAsmInfoGOFF(const Triple &TT)
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ ZOS
z/OS MVS Exception Handling.
@ DwarfCFI
DWARF-like instruction based exceptions.