public
Created

LLVM code generated by Rust

  • Download Gist
trivial-kernel.ll
LLVM
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
; ModuleID = 'trivial-kernel.rc'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-apple-darwin"
 
%shapes = type opaque
%"~enum intrinsic::TyDesc[#0]" = type { [16 x i8] }
%tydesc = type { i64, i64, void (i1*, i1*, %tydesc**, i8*)*, void (i1*, i1*, %tydesc**, i8*)*, void (i1*, i1*, %tydesc**, i8*)*, void (i1*, i1*, %tydesc**, i8*)*, i8*, i8* }
 
@_rust_crate_map_trivial-kernel_0.0_68a2c114141ca = global { i32, i8*, i64, [2 x i64] } { i32 1, i8* bitcast (void (i1*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*)* @_ZN7cleanup10annihilate17_bde425c43da4f4993_05E to i8*), i64 ptrtoint ([1 x { i64, i64 }]* @_rust_mod_map to i64), [2 x i64] [i64 ptrtoint (i64* @_rust_crate_map_core_0.5_c3ca5d77d81b46c1 to i64), i64 0] }
@shapes = external global %shapes
@_ZN9intrinsic6TyDesc6TyDesc7descrim15_358fde799ef3ca3_00E = constant i64 0
@_rust_crate_map_core_0.5_c3ca5d77d81b46c1 = external global i64
@_rust_mod_map = internal global [1 x { i64, i64 }] zeroinitializer
@rust_abi_version = constant i64 1
@rust_metadata = internal global { [3141 x i8] } { [3141 x i8] c"rust\00\00\00\01\D5Zk\8C\1B\D5\15\B6\D7a\F3X\08\9B\02i\08\09!;wf\9B\84&\1E\8F=c\9B\A6,\84P\08m\A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ADBo\15z\AB\D0[\85\DE*\F4V\A1\B7\BA\1C\06\DE*x\AB\E0\AD\82\B7:\06\AB\C0n\84\DD\04\C3vE\9D\80m\81!OT\E4\89\8A<Q\C1[\05o\15\BCU\F0V\C1[\05o\15\BCU\F0V\C1[\05o\15\BCU\F0V\C1[\05o\15\BCU\F0V\C1[\05o\15\BC5\F0\D6\C0[\03o\0D\BC5\F0\D6\C0[\03o\0D\BC5\F0\D6\A0\B7\06\BD5\E8\ADAo\0D\BC5\F0\D6\C0[\03o\0Dzk\D0[\83\DE\1A\F4\D6\A0\B7\06\BD5\E8\ADAo\0Dzk\D0[C\9Eh\C8\13\0Dy\A2!O4\E4\89\86<\D1\90'\1A\F2DC\9Eh\C8\13\0Dy\A2!O\B4C0\F0\D6\C0[\03o\0D\BC5\F0\D6\C0\BB\1F\BC\FB\C1\BB\1F\BC\FB\C1\BB\1F\BC\FB\C1\BB\1F\BC\03\81\0F\00" }, section "__DATA,__note.rustc"
@llvm.used = appending global [1 x i8*] [i8* getelementptr inbounds ({ [3141 x i8] }* @rust_metadata, i32 0, i32 0, i32 0)]
 
declare void @llvm.gcroot(i8**, i8*) nounwind
 
declare void @llvm.gcread(i8*, i8**) nounwind readonly
 
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind
 
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
 
declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind
 
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
 
declare void @llvm.trap() noreturn nounwind
 
declare i8* @llvm.frameaddress(i32) nounwind readnone
 
declare void @upcall_trace(i8*, i8*, i64)
 
declare i64 @upcall_call_shim_on_c_stack(i8*, i8*)
 
declare i64 @upcall_call_shim_on_rust_stack(i8*, i8*)
 
declare i32 @upcall_rust_personality() nounwind
 
declare void @upcall_reset_stack_limit() nounwind
 
define internal void @_ZN9intrinsic6TyDesc6TyDesc6TyDesc17_54692b2985a7cd123_00E(%"~enum intrinsic::TyDesc[#0]"*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*, { { i64, i64 } }*) inlinehint {
static_allocas:
br label %3
 
return: ; preds = %3
ret void
 
; <label>:3 ; preds = %static_allocas
%4 = bitcast %"~enum intrinsic::TyDesc[#0]"* %0 to { { { i64, i64 } } }*
%5 = getelementptr inbounds { { { i64, i64 } } }* %4, i32 0, i32 0
%6 = bitcast { { i64, i64 } }* %2 to i8*
%7 = bitcast { { i64, i64 } }* %5 to i8*
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %7, i8* %6, i64 mul nuw (i64 ptrtoint (i64* getelementptr (i64* null, i32 1) to i64), i64 2), i32 1, i1 false)
br label %return
}
 
define void @_ZN9add_float16_cb9e1b436595b333_00E(i1*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*, double*, double*, double*) uwtable {
static_allocas:
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
br label %8
 
return: ; preds = %8
ret void
 
; <label>:8 ; preds = %static_allocas
store double* %2, double** %5
store double* %3, double** %6
store double* %4, double** %7
call void asm "# *z = *x + *y; (trivial-kernel.rs:3:4: 3:16)", ""()
%9 = load double** %5
%10 = load double** %6
%11 = load double* %9
%12 = load double* %10
%13 = fadd double %11, %12
%14 = load double** %7
store double %13, double* %14
br label %return
}
 
declare void @_ZN7cleanup10annihilate17_bde425c43da4f4993_05E(i1*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.