Displaying 2 results from an estimated 2 matches for "func_i32".
2013 May 30
3
[LLVMdev] Expected behavior of calling bitcasted functions?
Hi,
I'm not sure what the expected behavior of calling a bitcasted function is. Suppose you have a case like this (which you get on the source level from attribute alias):
@alias_f32 = alias bitcast (i32 (i32)* @func_i32 to float (float)*)
define internal i32 @func_i32(i32 %v) noinline nounwind {
entry:
ret i32 %v
}
define void @bitcast_alias_scalar(float* noalias %source, float* noalias %dest) nounwind {
entry:
%arrayidx = getelementptr float* %source, i32 0
%tmp2 = load float* %arrayidx, align 8
%call =...
2013 May 30
0
[LLVMdev] Expected behavior of calling bitcasted functions?
...ew <
Matthew.Arsenault at amd.com> wrote:
> Hi,
>
> I'm not sure what the expected behavior of calling a bitcasted function
> is. Suppose you have a case like this (which you get on the source level
> from attribute alias):
>
> @alias_f32 = alias bitcast (i32 (i32)* @func_i32 to float (float)*)
>
> define internal i32 @func_i32(i32 %v) noinline nounwind {
> entry:
> ret i32 %v
> }
>
> define void @bitcast_alias_scalar(float* noalias %source, float* noalias
> %dest) nounwind {
> entry:
> %arrayidx = getelementptr float* %source, i32 0
&g...