[llvm] r261550 - docs/AMDGPUUsage: Update assembly example
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 22 10:36:02 PST 2016
Author: tstellar
Date: Mon Feb 22 12:36:00 2016
New Revision: 261550
URL: http://llvm.org/viewvc/llvm-project?rev=261550&view=rev
Log:
docs/AMDGPUUsage: Update assembly example
Reviewers: arsenm, nhaustov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D17461
Modified:
llvm/trunk/docs/AMDGPUUsage.rst
Modified: llvm/trunk/docs/AMDGPUUsage.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/AMDGPUUsage.rst?rev=261550&r1=261549&r2=261550&view=diff
==============================================================================
--- llvm/trunk/docs/AMDGPUUsage.rst (original)
+++ llvm/trunk/docs/AMDGPUUsage.rst Mon Feb 22 12:36:00 2016
@@ -153,7 +153,10 @@ Here is an example of a minimal amd_kern
.hsa_code_object_version 1,0
.hsa_code_object_isa
- .text
+ .hsatext
+ .globl hello_world
+ .p2align 8
+ .amdgpu_hsa_kernel hello_world
hello_world:
@@ -173,5 +176,7 @@ Here is an example of a minimal amd_kern
s_waitcnt lgkmcnt(0)
v_mov_b32 v1, s0
v_mov_b32 v2, s1
- flat_store_dword v0, v[1:2]
+ flat_store_dword v[1:2], v0
s_endpgm
+.Lfunc_end0:
+ .size hello_world, .Lfunc_end0-hello_world
More information about the llvm-commits
mailing list