LCOV - code coverage report
Current view: top level - lib/Target/AMDGPU/MCTargetDesc - AMDGPUMCAsmInfo.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 24 24 100.0 %
Date: 2017-09-14 15:23:50 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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        2404 : AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
      17        2404 :   CodePointerSize = (TT.getArch() == Triple::amdgcn) ? 8 : 4;
      18        2404 :   StackGrowsUp = true;
      19        2404 :   HasSingleParameterDotFile = false;
      20             :   //===------------------------------------------------------------------===//
      21        2404 :   MinInstAlignment = 4;
      22        2404 :   MaxInstLength = (TT.getArch() == Triple::amdgcn) ? 8 : 16;
      23        2404 :   SeparatorString = "\n";
      24        2404 :   CommentString = ";";
      25        2404 :   PrivateLabelPrefix = "";
      26        2404 :   InlineAsmStart = ";#ASMSTART";
      27        2404 :   InlineAsmEnd = ";#ASMEND";
      28             : 
      29             :   //===--- Data Emission Directives -------------------------------------===//
      30        2404 :   SunStyleELFSectionSwitchSyntax = true;
      31        2404 :   UsesELFSectionDirectiveForBSS = true;
      32             : 
      33             :   //===--- Global Variable Emission Directives --------------------------===//
      34        2404 :   HasAggressiveSymbolFolding = true;
      35        2404 :   COMMDirectiveAlignmentIsInBytes = false;
      36        2404 :   HasNoDeadStrip = true;
      37        2404 :   WeakRefDirective = ".weakref\t";
      38             :   //===--- Dwarf Emission Directives -----------------------------------===//
      39        2404 :   SupportsDebugInformation = true;
      40        2404 : }
      41             : 
      42       51739 : bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
      43      103478 :   return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" ||
      44       51739 :          SectionName == ".hsadata_global_program" ||
      45      103478 :          SectionName == ".hsarodata_readonly_agent" ||
      46      103478 :          MCAsmInfo::shouldOmitSectionDirective(SectionName);
      47             : }

Generated by: LCOV version 1.13