Displaying 3 results from an estimated 3 matches for "vl_matrix_float".
2016 Oct 15
3
How to remove memcpy
...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.memcpy.p0i8.p0i8.i32...
2016 Oct 15
5
How to remove memcpy
...t;
> > 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 is *expected* to
call...
2016 Oct 15
2
How to remove memcpy
...9;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...