13 lines · plain
1target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"2target triple = "wasm32-unknown-unknown"3 4; This function, when compiled will generate a new undefined reference to5; memcpy, that is not present in the bitcode object6define void @func_with_libcall(ptr %a, ptr %b) {7entry:8 call void @llvm.memcpy.p0.p0.i64(ptr %a, ptr %b, i64 1024, i1 false)9 ret void10}11 12declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1)13