Displaying 2 results from an estimated 2 matches for "test_unary_func_absolute_valu".
Did you mean:
test_unary_func_absolute_value
2008 Sep 15
3
[LLVMdev] Bad legalization?
...Can someone explain to me what this means in term of backend code
generation, how it might be occurring, and possible ways to fix this? I
don't see how the value type of an operation and the result being the
same can cause an issue.
The IR code in question is as follows:
define void @ test_unary_func_absolute_value(i32 %x, i32 addrspace(11)*
%result) {
entry:
%call = tail call i32 (...)* @abs( i32 %x ) ; <i32>
[#uses=1]
store i32 %call, i32 addrspace(11)* %result
ret void
}
declare i32 @abs(...)
Micah Villmow
Systems Engineer
Advanced Technology &...
2008 Sep 16
0
[LLVMdev] Bad legalization?
...see how the value type of an operation and the result
> being the same can cause an issue.
Quite the opposite. It's asserting because the value types of op
(before legalization) and Result (after) are different.
Evan
> The IR code in question is as follows:
>
> define void @ test_unary_func_absolute_value(i32 %x, i32
> addrspace(11)* %result) {
> entry:
> %call = tail call i32 (...)* @abs( i32 %x ) ;
> <i32> [#uses=1]
> store i32 %call, i32 addrspace(11)* %result
> ret void
> }
>
> declare i32 @abs(...)
>
> Micah Villmow...