search for: v4v32

Displaying 2 results from an estimated 2 matches for "v4v32".

Did you mean: v4i32
2016 Mar 30
3
infer correct types from the pattern
i'm getting a Could not infer all types in pattern! error in my backend. it is happening on the following instruction: VGETITEM: (set GPR:{i32:f32}:$rD, (extractelt:{i32:f32} VR:{v4i32:v4f32}:$rA, GPR:i32:$rB)). how do i make it use appropriate types? in other words if it is f32 then use v4v32 and if it is i32 then use v4f32. i'm not sure even where to start? any help is appreciated. -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160...
2016 Mar 30
1
infer correct types from the pattern
...all types in pattern! > > error in my backend. it is happening on the following instruction: > > VGETITEM: (set GPR:{i32:f32}:$rD, (extractelt:{i32:f32} > VR:{v4i32:v4f32}:$rA, GPR:i32:$rB)). > > how do i make it use appropriate types? in other words if it is f32 then > use v4v32 and if it is i32 then use v4f32. i'm not sure even where to start? You can use a cast, and force one type in the pattern, then use the other one in a Pat: def VGETITEM: [(set GPR:$rD, (extractelt (v4i32 VR:$rA), GPR:$rB))] def: Pat<(extractelt (v4f32 VR:$rA), GPR:$rB)), (VGE...