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//===----------------------------------------------------------------------===//
9
10#include "AMDGPUMCAsmInfo.h"
11
12using namespace llvm;
13AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Target &T, StringRef &TT) : MCAsmInfo()
14{
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  LCOMMDirectiveType = LCOMM::None;
63  COMMDirectiveAlignmentIsInBytes = false;
64  HasDotTypeDotSizeDirective = false;
65  HasNoDeadStrip = true;
66  HasSymbolResolver = false;
67  WeakRefDirective = ".weakref\t";
68  LinkOnceDirective = 0;
69  //===--- Dwarf Emission Directives -----------------------------------===//
70  HasLEB128 = true;
71  SupportsDebugInformation = true;
72  ExceptionsType = ExceptionHandling::None;
73  DwarfUsesInlineInfoSection = false;
74  DwarfSectionOffsetDirective = ".offset";
75  DwarfUsesLabelOffsetForRanges = true;
76
77  //===--- CBE Asm Translation Table -----------------------------------===//
78  AsmTransCBE = 0;
79}
80const char*
81AMDGPUMCAsmInfo::getDataASDirective(unsigned int Size, unsigned int AS) const
82{
83  switch (AS) {
84    default:
85      return 0;
86    case 0:
87      return 0;
88  };
89  return 0;
90}
91
92const MCSection*
93AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const
94{
95  return 0;
96}
97