search for: matrix_float

Displaying 4 results from an estimated 4 matches for "matrix_float".

2016 Oct 15
5
How to remove memcpy
...y source. > > > > My target is an instruction set simulator that doesn't support this. > > > > Thank you for your valuable time. > > > > Wolf > > > > Here are my compile commands: > > $ clang -emit-llvm -fno-builtin -o3 --target=mips -S matrix_float.c -o vl_matrix_float.ll > > Technically -fno-bultin prevents the compiler from understand the > memset in the original code. The right option to prevent the compiler > from insert libc calls “out-of-the-blue” is -ffreestanding. Huh? The -fno-builtin is not the problem. The compiler i...
2016 Oct 15
3
How to remove memcpy
...an help me figure out how to prevent the insertion of "memcpy" from the assembly source. My target is an instruction set simulator that doesn't support this. Thank you for your valuable time. Wolf *Here are my compile commands:* $ clang -emit-llvm -fno-builtin -o3 --target=mips -S matrix_float.c -o vl_matrix_float.ll $ llc vl_matrix_float.ll *IR File Snip:* %0 = bitcast [10 x [10 x float]]* %a to i8* call void @llvm.memcpy.p0i8.p0i8.i32(i8* %0, i8* bitcast ([10 x [10 x float]]* @main.a to i8*), i32 400, i32 4, i1 false) %1 = bitcast [10 x [10 x float]]* %b to i8* call void @llvm...
2016 Oct 15
2
How to remove memcpy
On Sat, Oct 15, 2016 at 06:10:05PM -0500, Wolfgang McSneed wrote: > Thanks for your fast response! attached is the matrix_float.c file. Are you intentionally not using static (& const) arrays? The compiler has to use a copy to initialize a & b, given the size, it will use a memcpy from a read-only section for that. Joerg
2016 Oct 15
2
How to remove memcpy
...y wanted to prevent libcalls, you could technically translate those memcpy/memset to loops in lowering. Kevin On Sat, Oct 15, 2016 at 4:10 PM, Wolfgang McSneed via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi Mehdi and Joerg, > > Thanks for your fast response! attached is the matrix_float.c file. > > Also - I should point out that I am using MIPS ISS. > > Thanks, > > Wolf > > Kind Regards, > > Wolf > > On Sat, Oct 15, 2016 at 6:07 PM, Joerg Sonnenberger via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> On Sat, Oct 15, 2016...