LLVM  3.7.0
AMDGPUMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 /// \file
9 //===----------------------------------------------------------------------===//
10 
11 #include "AMDGPUMCAsmInfo.h"
12 
13 using namespace llvm;
16  //===------------------------------------------------------------------===//
17  MaxInstLength = 16;
18  SeparatorString = "\n";
19  CommentString = ";";
20  PrivateLabelPrefix = "";
21  InlineAsmStart = ";#ASMSTART";
22  InlineAsmEnd = ";#ASMEND";
23 
24  //===--- Data Emission Directives -------------------------------------===//
25  ZeroDirective = ".zero";
26  AsciiDirective = ".ascii\t";
27  AscizDirective = ".asciz\t";
28  Data8bitsDirective = ".byte\t";
29  Data16bitsDirective = ".short\t";
30  Data32bitsDirective = ".long\t";
31  Data64bitsDirective = ".quad\t";
34 
35  //===--- Global Variable Emission Directives --------------------------===//
39  HasNoDeadStrip = true;
40  WeakRefDirective = ".weakref\t";
41  //===--- Dwarf Emission Directives -----------------------------------===//
43 }
bool HasSingleParameterDotFile
True if the target has a single parameter .file directive, this is true for ELF targets.
Definition: MCAsmInfo.h:273
const char * Data64bitsDirective
Definition: MCAsmInfo.h:191
const char * ZeroDirective
This should be set to the directive used to get some number of zero bytes emitted to the current sect...
Definition: MCAsmInfo.h:173
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
Definition: MCAsmInfo.h:269
const char * AsciiDirective
This directive allows emission of an ascii string with the standard C escape characters embedded into...
Definition: MCAsmInfo.h:177
const char * SeparatorString
This string, if specified, is used to separate instructions from each other when on the same line...
Definition: MCAsmInfo.h:109
bool HasNoDeadStrip
True if this target supports the MachO .no_dead_strip directive.
Definition: MCAsmInfo.h:281
bool UsesELFSectionDirectiveForBSS
This is true if this target uses ELF '.section' directive before the '.bss' one.
Definition: MCAsmInfo.h:211
const char * Data8bitsDirective
These directives are used to output some unit of integer data to the current section.
Definition: MCAsmInfo.h:188
bool HasAggressiveSymbolFolding
False if the assembler requires that we use.
Definition: MCAsmInfo.h:253
bool SunStyleELFSectionSwitchSyntax
This is true if this target uses "Sun Style" syntax for section switching ("#alloc,#write" etc) instead of the normal ELF syntax (,"a,w") in .section directives.
Definition: MCAsmInfo.h:206
const char * CommentString
This indicates the comment character used by the assembler.
Definition: MCAsmInfo.h:113
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition: MCAsmInfo.h:182
const char * InlineAsmStart
If these are nonempty, they contain a directive to emit before and after an inline assembly statement...
Definition: MCAsmInfo.h:141
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n)...
Definition: MCAsmInfo.h:257
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:318
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol...
Definition: MCAsmInfo.h:288
const char * Data16bitsDirective
Definition: MCAsmInfo.h:189
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
const char * InlineAsmEnd
Definition: MCAsmInfo.h:142
const char * Data32bitsDirective
Definition: MCAsmInfo.h:190
AMDGPUMCAsmInfo(const Triple &TT)
const char * PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition: MCAsmInfo.h:131
unsigned MaxInstLength
This is the maximum possible length of an instruction, which is needed to compute the size of an inli...
Definition: MCAsmInfo.h:97