LLVM 19.0.0git
Go to the documentation of this file.
1//===- MC/MCAsmInfoXCOFF.cpp - XCOFF asm properties ------------ *- C++ -*-===//
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
13using namespace llvm;
15namespace llvm {
19void MCAsmInfoXCOFF::anchor() {}
22 IsLittleEndian = false;
27 // For XCOFF, string constant consists of any number of characters enclosed in
28 // "" (double quotation marks).
31 PrivateGlobalPrefix = "L..";
32 PrivateLabelPrefix = "L..";
33 SupportsQuotedNames = false;
38 HasLEB128Directives = false;
39 ZeroDirective = "\t.space\t";
41 AsciiDirective = nullptr; // not supported
42 AscizDirective = nullptr; // not supported
43 ByteListDirective = "\t.byte\t";
44 PlainStringDirective = "\t.string\t";
47 // Use .vbyte for data definition to avoid directives that apply an implicit
48 // alignment.
49 Data16bitsDirective = "\t.vbyte\t2, ";
50 Data32bitsDirective = "\t.vbyte\t4, ";
62 // QualName is allowed for a MCSymbolXCOFF, and
63 // QualName contains '[' and ']'.
64 if (C == '[' || C == ']')
65 return true;
67 // For AIX assembler, symbols may consist of numeric digits,
68 // underscores, periods, uppercase or lowercase letters, or
69 // any combination of these.
70 return isAlnum(C) || C == '_' || C == '.';
This file contains some functions that are useful when dealing with strings.
bool isAcceptableChar(char C) const override
Return true if C is an acceptable character inside a symbol name.
const char * Data16bitsDirective
Definition: MCAsmInfo.h:289
const char * PlainStringDirective
This directive allows emission of a zero-terminated ascii string without the standard C escape charac...
Definition: MCAsmInfo.h:277
bool HasBasenameOnlyForFileDirective
True if the target only has basename for .file directive.
Definition: MCAsmInfo.h:376
const char * AsciiDirective
This directive allows emission of an ascii string with the standard C escape characters embedded into...
Definition: MCAsmInfo.h:262
const char * ByteListDirective
This directive accepts a comma-separated list of bytes for emission as a string of bytes.
Definition: MCAsmInfo.h:272
bool HasFourStringsDotFile
True if the target has a four strings .file directive, strings separated by comma.
Definition: MCAsmInfo.h:398
bool HasVisibilityOnlyWithLinkage
True if this is an XCOFF target that supports visibility attributes as part of .global,...
Definition: MCAsmInfo.h:107
bool UsesDwarfFileAndLocDirectives
True if the target supports generating the DWARF line table through using the .loc/....
Definition: MCAsmInfo.h:476
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:457
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ....
Definition: MCAsmInfo.h:168
bool UseDotAlignForAlignment
True if .align is to be used for alignment.
Definition: MCAsmInfo.h:238
const char * Data32bitsDirective
Definition: MCAsmInfo.h:290
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
Definition: MCAsmInfo.h:372
StringRef PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition: MCAsmInfo.h:172
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
Definition: MCAsmInfo.h:390
bool ParseInlineAsmUsingAsmParser
Use AsmParser to parse inlineAsm when UseIntegratedAssembler is not set.
Definition: MCAsmInfo.h:522
bool DwarfSectionSizeRequired
True if the target needs the DWARF section length in the header (if any) of the DWARF section in the ...
Definition: MCAsmInfo.h:484
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).
Definition: MCAsmInfo.h:368
AsmCharLiteralSyntax CharacterLiteralSyntax
Form used for character literals in the assembly syntax.
Definition: MCAsmInfo.h:282
bool NeedsFunctionDescriptors
Definition: MCAsmInfo.h:539
bool ZeroDirectiveSupportsNonZeroValue
This should be set to true if the zero directive supports a value to emit other than zero.
Definition: MCAsmInfo.h:257
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 SupportsQuotedNames
If this is true, symbol names with invalid characters will be printed in quotes.
Definition: MCAsmInfo.h:229
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition: MCAsmInfo.h:267
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:79
@ ACLS_SingleQuotePrefix
Unknown; character literals not used by LLVM for this target.
Definition: MCAsmInfo.h:62
bool HasLEB128Directives
True if the target supports LEB128 directives.
Definition: MCAsmInfo.h:241
bool HasPairedDoubleQuoteStringConstants
True if the target represents string constants as mostly raw characters in paired double quotation wi...
Definition: MCAsmInfo.h:382
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
@ Log2Alignment
Definition: MCAsmInfo.h:50
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
AIX Exception Handling.
cl::opt< cl::boolOrDefault > UseLEB128Directives("use-leb128-directives", cl::Hidden, cl::desc("Disable the usage of LEB128 directives, and generate .byte instead."), cl::init(cl::BOU_UNSET))