blob: 68b1d1ae83cc7ae29119bd67a856d353784c0a68 [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===-- 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
13using namespace llvm;
Daniel Sanders50f17232015-09-15 16:17:27 +000014AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
Tom Stellard75aadc22012-12-11 21:25:42 +000015 HasSingleParameterDotFile = false;
Tom Stellard75aadc22012-12-11 21:25:42 +000016 //===------------------------------------------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000017 MaxInstLength = 16;
Tom Stellard75aadc22012-12-11 21:25:42 +000018 SeparatorString = "\n";
Tom Stellard75aadc22012-12-11 21:25:42 +000019 CommentString = ";";
Matt Arsenault4e273432014-12-04 00:06:57 +000020 PrivateLabelPrefix = "";
Tom Stellard75aadc22012-12-11 21:25:42 +000021 InlineAsmStart = ";#ASMSTART";
22 InlineAsmEnd = ";#ASMEND";
Tom Stellard75aadc22012-12-11 21:25:42 +000023
24 //===--- Data Emission Directives -------------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000025 SunStyleELFSectionSwitchSyntax = true;
26 UsesELFSectionDirectiveForBSS = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000027
Tom Stellard75aadc22012-12-11 21:25:42 +000028 //===--- Global Variable Emission Directives --------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000029 HasAggressiveSymbolFolding = true;
30 COMMDirectiveAlignmentIsInBytes = false;
31 HasDotTypeDotSizeDirective = false;
32 HasNoDeadStrip = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000033 WeakRefDirective = ".weakref\t";
Tom Stellard75aadc22012-12-11 21:25:42 +000034 //===--- Dwarf Emission Directives -----------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000035 SupportsDebugInformation = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000036}
Tom Stellarde135ffd2015-09-25 21:41:28 +000037
38bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
Tom Stellard00f2f912015-12-02 19:47:57 +000039 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" ||
40 SectionName == ".hsadata_global_program" ||
Tom Stellard9760f032015-12-03 03:34:32 +000041 SectionName == ".hsarodata_readonly_agent" ||
Tom Stellarde135ffd2015-09-25 21:41:28 +000042 MCAsmInfo::shouldOmitSectionDirective(SectionName);
43}