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; AMDGPUMCAsmInfo(StringRef & TT)14AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfo() { 15 HasSingleParameterDotFile = false; 16 //===------------------------------------------------------------------===// 17 HasSubsectionsViaSymbols = true; 18 HasMachoZeroFillDirective = false; 19 HasMachoTBSSDirective = false; 20 HasStaticCtorDtorReferenceInStaticMode = false; 21 LinkerRequiresNonEmptyDwarfLines = true; 22 MaxInstLength = 16; 23 SeparatorString = "\n"; 24 CommentColumn = 40; 25 CommentString = ";"; 26 LabelSuffix = ":"; 27 GlobalPrefix = "@"; 28 PrivateGlobalPrefix = ";."; 29 LinkerPrivateGlobalPrefix = "!"; 30 InlineAsmStart = ";#ASMSTART"; 31 InlineAsmEnd = ";#ASMEND"; 32 AssemblerDialect = 0; 33 34 //===--- Data Emission Directives -------------------------------------===// 35 ZeroDirective = ".zero"; 36 AsciiDirective = ".ascii\t"; 37 AscizDirective = ".asciz\t"; 38 Data8bitsDirective = ".byte\t"; 39 Data16bitsDirective = ".short\t"; 40 Data32bitsDirective = ".long\t"; 41 Data64bitsDirective = ".quad\t"; 42 GPRel32Directive = 0; 43 SunStyleELFSectionSwitchSyntax = true; 44 UsesELFSectionDirectiveForBSS = true; 45 HasMicrosoftFastStdCallMangling = false; 46 47 //===--- Alignment Information ----------------------------------------===// 48 AlignDirective = ".align\t"; 49 AlignmentIsInBytes = true; 50 TextAlignFillValue = 0; 51 52 //===--- Global Variable Emission Directives --------------------------===// 53 GlobalDirective = ".global"; 54 HasSetDirective = false; 55 HasAggressiveSymbolFolding = true; 56 COMMDirectiveAlignmentIsInBytes = false; 57 HasDotTypeDotSizeDirective = false; 58 HasNoDeadStrip = true; 59 WeakRefDirective = ".weakref\t"; 60 //===--- Dwarf Emission Directives -----------------------------------===// 61 HasLEB128 = true; 62 SupportsDebugInformation = true; 63 } 64 65 const MCSection* getNonexecutableStackSection(MCContext & CTX) const66AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const { 67 return 0; 68 } 69