/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
Line | Count | Source |
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 | | /// \file |
9 | | //===----------------------------------------------------------------------===// |
10 | | |
11 | | #include "AMDGPUMCAsmInfo.h" |
12 | | #include "llvm/ADT/Triple.h" |
13 | | |
14 | | using namespace llvm; |
15 | | |
16 | 2.42k | AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() { |
17 | 2.42k | CodePointerSize = (TT.getArch() == Triple::amdgcn) ? 82.15k : 4273 ; |
18 | 2.42k | StackGrowsUp = true; |
19 | 2.42k | HasSingleParameterDotFile = false; |
20 | 2.42k | //===------------------------------------------------------------------===// |
21 | 2.42k | MinInstAlignment = 4; |
22 | 2.42k | MaxInstLength = (TT.getArch() == Triple::amdgcn) ? 82.15k : 16273 ; |
23 | 2.42k | SeparatorString = "\n"; |
24 | 2.42k | CommentString = ";"; |
25 | 2.42k | PrivateLabelPrefix = ""; |
26 | 2.42k | InlineAsmStart = ";#ASMSTART"; |
27 | 2.42k | InlineAsmEnd = ";#ASMEND"; |
28 | 2.42k | |
29 | 2.42k | //===--- Data Emission Directives -------------------------------------===// |
30 | 2.42k | SunStyleELFSectionSwitchSyntax = true; |
31 | 2.42k | UsesELFSectionDirectiveForBSS = true; |
32 | 2.42k | |
33 | 2.42k | //===--- Global Variable Emission Directives --------------------------===// |
34 | 2.42k | HasAggressiveSymbolFolding = true; |
35 | 2.42k | COMMDirectiveAlignmentIsInBytes = false; |
36 | 2.42k | HasNoDeadStrip = true; |
37 | 2.42k | WeakRefDirective = ".weakref\t"; |
38 | 2.42k | //===--- Dwarf Emission Directives -----------------------------------===// |
39 | 2.42k | SupportsDebugInformation = true; |
40 | 2.42k | } |
41 | | |
42 | 52.4k | bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { |
43 | 52.4k | return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" || |
44 | 52.4k | SectionName == ".hsadata_global_program" || |
45 | 52.4k | SectionName == ".hsarodata_readonly_agent" || |
46 | 52.4k | MCAsmInfo::shouldOmitSectionDirective(SectionName); |
47 | 52.4k | } |