[PATCH] [PowerPC] Add vec_vsx_ld and vec_vsx_st intrinsics
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Wed Nov 5 14:34:20 PST 2014
Hi hfinkel, seurer, willschm,
This patch enables the vec_vsx_ld and vec_vsx_st intrinsics for PowerPC, which provide programmer access to the lxvd2x, lxvw4x, stxvd2x, and stxvw4x instructions.
New code in altivec.h defines these in terms of new builtins, which are themselves defined in BuiltinsPPC.def. The builtins are converted to LLVM intrinsics in CGBuiltin.cpp. Additional code is added to builtins-ppc-vsx.c to verify the correct generation of the intrinsics.
Note that I moved the other VSX builtins so all VSX builtins will be alphabetical in their own section in BuiltinsPPC.def.
There is a companion patch for LLVM, to be reviewed separately.
http://reviews.llvm.org/D6144
Files:
include/clang/Basic/BuiltinsPPC.def
lib/CodeGen/CGBuiltin.cpp
lib/Headers/altivec.h
test/CodeGen/builtins-ppc-vsx.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6144.15831.patch
Type: text/x-patch
Size: 7153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141105/7cce1f94/attachment.bin>
More information about the llvm-commits
mailing list