HomePhabricator

While reviewing the changes to Clang to add builtin support for the vsld, vsrd…

Description

While reviewing the changes to Clang to add builtin support for the vsld, vsrd, and vsrad instructions, it was pointed out that the builtins are generating the LLVM opcodes (shl, lshr, and ashr) not calls to the intrinsics. This patch changes the implementation of the vsld, vsrd, and vsrad instructions from from intrinsics to VXForm_1 instructions and makes them legal with P8 Altivec. It also removes the definition of the int_ppc_altivec_vsld, int_ppc_altivec_vsrd, and int_ppc_altivec_vsrad intrinsics.

Details

Committed
kbartonMar 5 2015, 8:24 AM
Parents
rL231377: Fixes for DataLayout moved from pass to Module. NFC intended.
Branches
Unknown
Tags
Unknown