[artiq] WIP

This commit is contained in:
David Mak 2024-08-15 13:44:31 +08:00
parent c00f6939e9
commit 0cd36c22b1
1 changed files with 20 additions and 20 deletions

View File

@ -666,13 +666,13 @@ fn format_rpc_ret<'ctx>(
// llvm_pdata_sizeof, // llvm_pdata_sizeof,
// llvm_i1.const_zero(), // llvm_i1.const_zero(),
// ); // );
call_memcpy_generic( // call_memcpy_generic(
ctx, // ctx,
ndarray.ptr_to_data(ctx), // ndarray.ptr_to_data(ctx),
buffer.base_ptr(ctx, generator), // buffer.base_ptr(ctx, generator),
llvm_pdata_sizeof, // llvm_pdata_sizeof,
llvm_i1.const_zero(), // llvm_i1.const_zero(),
); // );
let pbuffer_dims_begin = unsafe { let pbuffer_dims_begin = unsafe {
buffer.ptr_offset_unchecked(ctx, generator, &llvm_pdata_sizeof, None) buffer.ptr_offset_unchecked(ctx, generator, &llvm_pdata_sizeof, None)
@ -686,19 +686,19 @@ fn format_rpc_ret<'ctx>(
); );
// // TODO: Testing for buffer // // TODO: Testing for buffer
// ndarray.create_data( ndarray.create_data(
// ctx, ctx,
// llvm_elem_ty, llvm_elem_ty,
// call_ndarray_calc_size(generator, ctx, &ndarray.dim_sizes(), (None, None)), call_ndarray_calc_size(generator, ctx, &ndarray.dim_sizes(), (None, None)),
// ); );
//
// call_memcpy_generic( call_memcpy_generic(
// ctx, ctx,
// ndarray.data().base_ptr(ctx, generator), ndarray.data().base_ptr(ctx, generator),
// buffer.base_ptr(ctx, generator), buffer.base_ptr(ctx, generator),
// llvm_usize.const_int(8, false), llvm_usize.const_int(8, false),
// llvm_i1.const_zero(), llvm_i1.const_zero(),
// ); );
Ok(()) Ok(())
}, },