Advertisement
fwinter

module_copy.ll

Jan 23rd, 2021
2,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.51 KB | None | 0 0
  1. define amdgpu_kernel void @test( i32 %N , float* %out , float* %in ) {
  2. entrypoint:
  3.   %1 = icmp sge i32 %0, %N
  4.   br i1 %1, label %L0, label %L1
  5.  
  6. L0:
  7.   ret void
  8.  
  9. L1:
  10.   ;
  11.   ; read float from %in
  12.   ;
  13.   %2 = getelementptr float, float* %in, i32 %0
  14.   %3 = load float, float* %2, align 4
  15.   ;
  16.   ; store float into %out
  17.   ;
  18.   %4 = getelementptr float, float* %out, i32 %0
  19.   store float %3, float* %4, align 4
  20.   ret void
  21. }
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement