mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
AMDGPU: Emit functions sizes
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
This commit is contained in:
parent
1b3af3b517
commit
54fa7b1f76
@ -28,7 +28,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
|
|||||||
//===--- Global Variable Emission Directives --------------------------===//
|
//===--- Global Variable Emission Directives --------------------------===//
|
||||||
HasAggressiveSymbolFolding = true;
|
HasAggressiveSymbolFolding = true;
|
||||||
COMMDirectiveAlignmentIsInBytes = false;
|
COMMDirectiveAlignmentIsInBytes = false;
|
||||||
HasDotTypeDotSizeDirective = false;
|
|
||||||
HasNoDeadStrip = true;
|
HasNoDeadStrip = true;
|
||||||
WeakRefDirective = ".weakref\t";
|
WeakRefDirective = ".weakref\t";
|
||||||
//===--- Dwarf Emission Directives -----------------------------------===//
|
//===--- Dwarf Emission Directives -----------------------------------===//
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
; ELF: Symbol {
|
; ELF: Symbol {
|
||||||
; ELF: Name: simple
|
; ELF: Name: simple
|
||||||
|
; ELF: Size: 296
|
||||||
; ELF: Type: AMDGPU_HSA_KERNEL (0xA)
|
; ELF: Type: AMDGPU_HSA_KERNEL (0xA)
|
||||||
; ELF: }
|
; ELF: }
|
||||||
|
|
||||||
@ -52,6 +53,9 @@
|
|||||||
; Make sure we generate flat store for HSA
|
; Make sure we generate flat store for HSA
|
||||||
; HSA: flat_store_dword v{{[0-9]+}}
|
; HSA: flat_store_dword v{{[0-9]+}}
|
||||||
|
|
||||||
|
; HSA: .Lfunc_end0:
|
||||||
|
; HSA: .size simple, .Lfunc_end0-simple
|
||||||
|
|
||||||
define void @simple(i32 addrspace(1)* %out) {
|
define void @simple(i32 addrspace(1)* %out) {
|
||||||
entry:
|
entry:
|
||||||
store i32 0, i32 addrspace(1)* %out
|
store i32 0, i32 addrspace(1)* %out
|
||||||
|
Loading…
Reference in New Issue
Block a user