Displaying 2 results from an estimated 2 matches for "bitcast_alias_scalar".
2013 May 30
3
[LLVMdev] Expected behavior of calling bitcasted functions?
...ehavior 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 = call float @alias_f32(float %tmp2) nounwind
%arrayidx8 = getelementptr float* %dest, i32 0
store float %call, float* %arrayidx8, a...
2013 May 30
0
[LLVMdev] Expected behavior of calling bitcasted functions?
...pose 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 = call float @alias_f32(float %tmp2) nounwind
> %arrayidx8 = getelementptr float* %dest, i32 0
> stor...