[PATCH] D22940: [OpenCL] Handle -cl-fp32-correctly-rounded-divide-sqrt

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 14:35:56 PDT 2016


yaxunl created this revision.
yaxunl added reviewers: Anastasia, nhaustov.
yaxunl added subscribers: cfe-commits, tstellarAMD.

Let the driver pass the option to frontend. Do not set precision metadata for division instructions when this option is set. Set function attribute "correctly-rounded-divide-sqrt-fp-math" based on this option.

https://reviews.llvm.org/D22940

Files:
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/CGCall.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGenOpenCL/fpmath.cl
  test/Driver/opencl.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22940.66002.patch
Type: text/x-patch
Size: 7274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160728/25b4aff1/attachment.bin>


More information about the cfe-commits mailing list