145bb48eaSTom Stellard //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
245bb48eaSTom Stellard //
345bb48eaSTom Stellard //                     The LLVM Compiler Infrastructure
445bb48eaSTom Stellard //
545bb48eaSTom Stellard // This file is distributed under the University of Illinois Open Source
645bb48eaSTom Stellard // License. See LICENSE.TXT for details.
745bb48eaSTom Stellard //
845bb48eaSTom Stellard /// \file
945bb48eaSTom Stellard //===----------------------------------------------------------------------===//
1045bb48eaSTom Stellard 
1145bb48eaSTom Stellard #include "AMDGPUMCAsmInfo.h"
1245bb48eaSTom Stellard 
1345bb48eaSTom Stellard using namespace llvm;
1450f17235SDaniel Sanders AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
1545bb48eaSTom Stellard   HasSingleParameterDotFile = false;
1645bb48eaSTom Stellard   //===------------------------------------------------------------------===//
1745bb48eaSTom Stellard   MaxInstLength = 16;
1845bb48eaSTom Stellard   SeparatorString = "\n";
1945bb48eaSTom Stellard   CommentString = ";";
2045bb48eaSTom Stellard   PrivateLabelPrefix = "";
2145bb48eaSTom Stellard   InlineAsmStart = ";#ASMSTART";
2245bb48eaSTom Stellard   InlineAsmEnd = ";#ASMEND";
2345bb48eaSTom Stellard 
2445bb48eaSTom Stellard   //===--- Data Emission Directives -------------------------------------===//
2545bb48eaSTom Stellard   ZeroDirective = ".zero";
2645bb48eaSTom Stellard   AsciiDirective = ".ascii\t";
2745bb48eaSTom Stellard   AscizDirective = ".asciz\t";
2845bb48eaSTom Stellard   Data8bitsDirective = ".byte\t";
2945bb48eaSTom Stellard   Data16bitsDirective = ".short\t";
3045bb48eaSTom Stellard   Data32bitsDirective = ".long\t";
3145bb48eaSTom Stellard   Data64bitsDirective = ".quad\t";
3245bb48eaSTom Stellard   SunStyleELFSectionSwitchSyntax = true;
3345bb48eaSTom Stellard   UsesELFSectionDirectiveForBSS = true;
3445bb48eaSTom Stellard 
3545bb48eaSTom Stellard   //===--- Global Variable Emission Directives --------------------------===//
3645bb48eaSTom Stellard   HasAggressiveSymbolFolding = true;
3745bb48eaSTom Stellard   COMMDirectiveAlignmentIsInBytes = false;
3845bb48eaSTom Stellard   HasDotTypeDotSizeDirective = false;
3945bb48eaSTom Stellard   HasNoDeadStrip = true;
4045bb48eaSTom Stellard   WeakRefDirective = ".weakref\t";
4145bb48eaSTom Stellard   //===--- Dwarf Emission Directives -----------------------------------===//
4245bb48eaSTom Stellard   SupportsDebugInformation = true;
4345bb48eaSTom Stellard }
44*e135ffd5STom Stellard 
45*e135ffd5STom Stellard bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
46*e135ffd5STom Stellard   return SectionName == ".hsatext" ||
47*e135ffd5STom Stellard          MCAsmInfo::shouldOmitSectionDirective(SectionName);
48*e135ffd5STom Stellard }
49