lld/test/wasm/lto/Inputs/libcall.ll
raw| 1 | target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20" |
| 2 | target triple = "wasm32-unknown-unknown" |
| 3 | |
| 4 | ; This function, when compiled will generate a new undefined reference to |
| 5 | ; memcpy, that is not present in the bitcode object |
| 6 | define void @func_with_libcall(ptr %a, ptr %b) { |
| 7 | entry: |
| 8 | call void @llvm.memcpy.p0.p0.i64(ptr %a, ptr %b, i64 1024, i1 false) |
| 9 | ret void |
| 10 | } |
| 11 | |
| 12 | declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) |