AMDGPU: Emit functions sizes
authorTom Stellard <thomas.stellard@amd.com>
Fri, 8 Jan 2016 14:50:23 +0000 (14:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 8 Jan 2016 14:50:23 +0000 (14:50 +0000)
Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D15951

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257172 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
test/CodeGen/AMDGPU/hsa.ll

index 68b1d1ae83cc7ae29119bd67a856d353784c0a68..4bc80a028936e3489b2f0eaf442589193ec5605c 100644 (file)
@@ -28,7 +28,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
   //===--- Global Variable Emission Directives --------------------------===//
   HasAggressiveSymbolFolding = true;
   COMMDirectiveAlignmentIsInBytes = false;
-  HasDotTypeDotSizeDirective = false;
   HasNoDeadStrip = true;
   WeakRefDirective = ".weakref\t";
   //===--- Dwarf Emission Directives -----------------------------------===//
index abc89b7fd837c1f914ac7e824e321edfdc378221..c089dfd9a9718c8a0638d6186738a6713c357ab1 100644 (file)
@@ -28,6 +28,7 @@
 
 ; ELF: Symbol {
 ; ELF: Name: simple
+; ELF: Size: 296
 ; ELF: Type: AMDGPU_HSA_KERNEL (0xA)
 ; ELF: }
 
@@ -52,6 +53,9 @@
 ; Make sure we generate flat store for HSA
 ; HSA: flat_store_dword v{{[0-9]+}}
 
+; HSA: .Lfunc_end0:
+; HSA: .size   simple, .Lfunc_end0-simple
+
 define void @simple(i32 addrspace(1)* %out) {
 entry:
   store i32 0, i32 addrspace(1)* %out