1 //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #include "AMDGPUMCAsmInfo.h"
14 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Target &T, StringRef &TT) : MCAsmInfo() {
15 HasSingleParameterDotFile = false;
17 //===------------------------------------------------------------------===//
18 HasSubsectionsViaSymbols = true;
19 HasMachoZeroFillDirective = false;
20 HasMachoTBSSDirective = false;
21 HasStaticCtorDtorReferenceInStaticMode = false;
22 LinkerRequiresNonEmptyDwarfLines = true;
25 SeparatorString = "\n";
30 PrivateGlobalPrefix = ";.";
31 LinkerPrivateGlobalPrefix = "!";
32 InlineAsmStart = ";#ASMSTART";
33 InlineAsmEnd = ";#ASMEND";
35 AllowQuotesInName = false;
36 AllowNameToStartWithDigit = false;
37 AllowPeriodsInName = false;
39 //===--- Data Emission Directives -------------------------------------===//
40 ZeroDirective = ".zero";
41 AsciiDirective = ".ascii\t";
42 AscizDirective = ".asciz\t";
43 Data8bitsDirective = ".byte\t";
44 Data16bitsDirective = ".short\t";
45 Data32bitsDirective = ".long\t";
46 Data64bitsDirective = ".quad\t";
48 SunStyleELFSectionSwitchSyntax = true;
49 UsesELFSectionDirectiveForBSS = true;
50 HasMicrosoftFastStdCallMangling = false;
52 //===--- Alignment Information ----------------------------------------===//
53 AlignDirective = ".align\t";
54 AlignmentIsInBytes = true;
55 TextAlignFillValue = 0;
57 //===--- Global Variable Emission Directives --------------------------===//
58 GlobalDirective = ".global";
59 ExternDirective = ".extern";
60 HasSetDirective = false;
61 HasAggressiveSymbolFolding = true;
62 COMMDirectiveAlignmentIsInBytes = false;
63 HasDotTypeDotSizeDirective = false;
64 HasNoDeadStrip = true;
65 HasSymbolResolver = false;
66 WeakRefDirective = ".weakref\t";
67 LinkOnceDirective = 0;
68 //===--- Dwarf Emission Directives -----------------------------------===//
70 SupportsDebugInformation = true;
71 DwarfSectionOffsetDirective = ".offset";
76 AMDGPUMCAsmInfo::getDataASDirective(unsigned int Size, unsigned int AS) const {
81 AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const {