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; 14 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfo() { 15 HasSingleParameterDotFile = false; 16 WeakDefDirective = 0; 17 //===------------------------------------------------------------------===// 18 HasSubsectionsViaSymbols = true; 19 HasMachoZeroFillDirective = false; 20 HasMachoTBSSDirective = false; 21 HasStaticCtorDtorReferenceInStaticMode = false; 22 LinkerRequiresNonEmptyDwarfLines = true; 23 MaxInstLength = 16; 24 PCSymbol = "$"; 25 SeparatorString = "\n"; 26 CommentColumn = 40; 27 CommentString = ";"; 28 LabelSuffix = ":"; 29 GlobalPrefix = "@"; 30 PrivateGlobalPrefix = ";."; 31 LinkerPrivateGlobalPrefix = "!"; 32 InlineAsmStart = ";#ASMSTART"; 33 InlineAsmEnd = ";#ASMEND"; 34 AssemblerDialect = 0; 35 AllowQuotesInName = false; 36 AllowNameToStartWithDigit = false; 37 AllowPeriodsInName = false; 38 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"; 47 GPRel32Directive = 0; 48 SunStyleELFSectionSwitchSyntax = true; 49 UsesELFSectionDirectiveForBSS = true; 50 HasMicrosoftFastStdCallMangling = false; 51 52 //===--- Alignment Information ----------------------------------------===// 53 AlignDirective = ".align\t"; 54 AlignmentIsInBytes = true; 55 TextAlignFillValue = 0; 56 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 -----------------------------------===// 69 HasLEB128 = true; 70 SupportsDebugInformation = true; 71 } 72 73 const MCSection* 74 AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const { 75 return 0; 76 } 77