Advertisement
Guest User

Untitled

a guest
May 5th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 1.13 KB | None | 0 0
  1. ; ModuleID = 'ir-opt.bc'
  2. source_filename = "trace"
  3.  
  4. define { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }* @trace({ i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }* %0, i8* %1) {
  5. entry:
  6.   %struct_elem_ptr = getelementptr { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }, { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }* %0, i64 0, i32 7, i64 1
  7.   %2 = bitcast i64* %struct_elem_ptr to double*
  8.   %struct_elem1 = load double, double* %2, align 4
  9.   %res = fadd double %struct_elem1, 2.300000e+00
  10.   %struct_elem_ptr2 = getelementptr { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }, { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }* %0, i64 0, i32 1
  11.   store i64 139816362188384, i64* %struct_elem_ptr2, align 4
  12.   %3 = bitcast i64* %struct_elem_ptr to i8*
  13.   %4 = bitcast double %res to i64
  14.   %5 = trunc i64 %4 to i8
  15.   store i8 %5, i8* %3, align 8
  16.   ret { i8*, i64, i8*, i8*, i8*, i8*, i8*, [2 x i64] }* %0
  17. }
  18.  
  19. ; Function Attrs: argmemonly nounwind willreturn
  20. declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg) #0
  21.  
  22. attributes #0 = { argmemonly nounwind willreturn }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement