blob: 4bc80a028936e3489b2f0eaf442589193ec5605c [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;
Tom Stellard75aadc22012-12-11 21:25:42 +000031 HasNoDeadStrip = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000032 WeakRefDirective = ".weakref\t";
Tom Stellard75aadc22012-12-11 21:25:42 +000033 //===--- Dwarf Emission Directives -----------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000034 SupportsDebugInformation = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000035}
Tom Stellarde135ffd2015-09-25 21:41:28 +000036
37bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
Tom Stellard00f2f912015-12-02 19:47:57 +000038 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" ||
39 SectionName == ".hsadata_global_program" ||
Tom Stellard9760f032015-12-03 03:34:32 +000040 SectionName == ".hsarodata_readonly_agent" ||
Tom Stellarde135ffd2015-09-25 21:41:28 +000041 MCAsmInfo::shouldOmitSectionDirective(SectionName);
42}