[PATCH] [PowerPC] Initial VSX intrinsic support, with min/max for vector double

Bill Schmidt wschmidt at linux.vnet.ibm.com
Fri Oct 24 13:12:11 PDT 2014


This version now produces different error messages depending on whether or not VSX is enabled.  If so, vector double is fine; if not, it's an error.  I didn't have access to the TargetInfo information inside DeclSpec::SetTypeSpecType(), so I ended up having to pass that in from the caller.  To minimize the amount of churn, I created a new overload of that function and only used the new version for the handling of double.  I am certainly open to ideas of better ways to do this; this was the least invasive method I could think of.

http://reviews.llvm.org/D5949

Files:
  include/clang/Basic/BuiltinsPPC.def
  include/clang/Basic/DiagnosticParseKinds.td
  include/clang/Sema/DeclSpec.h
  lib/Basic/Targets.cpp
  lib/Headers/altivec.h
  lib/Parse/ParseDecl.cpp
  lib/Sema/DeclSpec.cpp
  test/CodeGen/builtins-ppc-vsx.c
  test/Parser/vsx.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5949.15434.patch
Type: text/x-patch
Size: 9207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141024/07eb8d90/attachment.bin>


More information about the cfe-commits mailing list