Revert "include/llvm: Add R600 Intrinsics v6"
[oota-llvm.git] / lib / Target / AMDGPU / MCTargetDesc / AMDGPUMCAsmInfo.cpp
1 //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - TODO: Add brief description -------===//
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 // TODO: Add full description
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AMDGPUMCAsmInfo.h"
15 #ifndef NULL
16 #define NULL 0
17 #endif
18
19 using namespace llvm;
20 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Target &T, StringRef &TT) : MCAsmInfo()
21 {
22   //===------------------------------------------------------------------===//
23   HasSubsectionsViaSymbols = true;
24   HasMachoZeroFillDirective = false;
25   HasMachoTBSSDirective = false;
26   HasStaticCtorDtorReferenceInStaticMode = false;
27   LinkerRequiresNonEmptyDwarfLines = true;
28   MaxInstLength = 16;
29   PCSymbol = "$";
30   SeparatorString = "\n";
31   CommentColumn = 40;
32   CommentString = ";";
33   LabelSuffix = ":";
34   GlobalPrefix = "@";
35   PrivateGlobalPrefix = ";.";
36   LinkerPrivateGlobalPrefix = "!";
37   InlineAsmStart = ";#ASMSTART";
38   InlineAsmEnd = ";#ASMEND";
39   AssemblerDialect = 0;
40   AllowQuotesInName = false;
41   AllowNameToStartWithDigit = false;
42   AllowPeriodsInName = false;
43
44   //===--- Data Emission Directives -------------------------------------===//
45   ZeroDirective = ".zero";
46   AsciiDirective = ".ascii\t";
47   AscizDirective = ".asciz\t";
48   Data8bitsDirective = ".byte\t";
49   Data16bitsDirective = ".short\t";
50   Data32bitsDirective = ".long\t";
51   Data64bitsDirective = ".quad\t";
52   GPRel32Directive = NULL;
53   SunStyleELFSectionSwitchSyntax = true;
54   UsesELFSectionDirectiveForBSS = true;
55   HasMicrosoftFastStdCallMangling = false;
56
57   //===--- Alignment Information ----------------------------------------===//
58   AlignDirective = ".align\t";
59   AlignmentIsInBytes = true;
60   TextAlignFillValue = 0;
61
62   //===--- Global Variable Emission Directives --------------------------===//
63   GlobalDirective = ".global";
64   ExternDirective = ".extern";
65   HasSetDirective = false;
66   HasAggressiveSymbolFolding = true;
67   LCOMMDirectiveType = LCOMM::None;
68   COMMDirectiveAlignmentIsInBytes = false;
69   HasDotTypeDotSizeDirective = false;
70   HasSingleParameterDotFile = true;
71   HasNoDeadStrip = true;
72   HasSymbolResolver = false;
73   WeakRefDirective = ".weakref\t";
74   WeakDefDirective = ".weakdef\t";
75   LinkOnceDirective = NULL;
76   HiddenVisibilityAttr = MCSA_Hidden;
77   HiddenDeclarationVisibilityAttr = MCSA_Hidden;
78   ProtectedVisibilityAttr = MCSA_Protected;
79
80   //===--- Dwarf Emission Directives -----------------------------------===//
81   HasLEB128 = true;
82   SupportsDebugInformation = true;
83   ExceptionsType = ExceptionHandling::None;
84   DwarfUsesInlineInfoSection = false;
85   DwarfSectionOffsetDirective = ".offset";
86
87 }
88 const char*
89 AMDGPUMCAsmInfo::getDataASDirective(unsigned int Size, unsigned int AS) const
90 {
91   switch (AS) {
92     default:
93       return NULL;
94     case 0:
95       return NULL;
96   };
97   return NULL;
98 }
99
100 const MCSection*
101 AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const
102 {
103   return NULL;
104 }