| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 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; |
| Tom Stellard | 022802a | 2014-10-07 21:09:23 +0000 | [diff] [blame^] | 14 | AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfoELF() { |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 15 | HasSingleParameterDotFile = false; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 16 | //===------------------------------------------------------------------===// |
| 17 | HasSubsectionsViaSymbols = true; |
| 18 | HasMachoZeroFillDirective = false; |
| 19 | HasMachoTBSSDirective = false; |
| 20 | HasStaticCtorDtorReferenceInStaticMode = false; |
| 21 | LinkerRequiresNonEmptyDwarfLines = true; |
| 22 | MaxInstLength = 16; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 23 | SeparatorString = "\n"; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 24 | CommentString = ";"; |
| 25 | LabelSuffix = ":"; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 26 | InlineAsmStart = ";#ASMSTART"; |
| 27 | InlineAsmEnd = ";#ASMEND"; |
| 28 | AssemblerDialect = 0; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 29 | |
| 30 | //===--- Data Emission Directives -------------------------------------===// |
| 31 | ZeroDirective = ".zero"; |
| 32 | AsciiDirective = ".ascii\t"; |
| 33 | AscizDirective = ".asciz\t"; |
| 34 | Data8bitsDirective = ".byte\t"; |
| 35 | Data16bitsDirective = ".short\t"; |
| 36 | Data32bitsDirective = ".long\t"; |
| 37 | Data64bitsDirective = ".quad\t"; |
| Craig Topper | 062a2ba | 2014-04-25 05:30:21 +0000 | [diff] [blame] | 38 | GPRel32Directive = nullptr; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 39 | SunStyleELFSectionSwitchSyntax = true; |
| 40 | UsesELFSectionDirectiveForBSS = true; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 41 | |
| 42 | //===--- Alignment Information ----------------------------------------===// |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 43 | AlignmentIsInBytes = true; |
| 44 | TextAlignFillValue = 0; |
| 45 | |
| 46 | //===--- Global Variable Emission Directives --------------------------===// |
| 47 | GlobalDirective = ".global"; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 48 | HasSetDirective = false; |
| 49 | HasAggressiveSymbolFolding = true; |
| 50 | COMMDirectiveAlignmentIsInBytes = false; |
| 51 | HasDotTypeDotSizeDirective = false; |
| 52 | HasNoDeadStrip = true; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 53 | WeakRefDirective = ".weakref\t"; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 54 | //===--- Dwarf Emission Directives -----------------------------------===// |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 55 | SupportsDebugInformation = true; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 56 | } |
| 57 | |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 58 | const MCSection* |
| 59 | AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const { |
| Craig Topper | 062a2ba | 2014-04-25 05:30:21 +0000 | [diff] [blame] | 60 | return nullptr; |
| Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 61 | } |