[llvm-commits] Patch: Fast-math flags for intrinsics
Michael Ilseman
milseman at apple.com
Tue Dec 18 14:07:49 PST 2012
Attached are patches for fast-math support for IntrinsicInst. This includes bitcode changes to separate out IntrinsicInsts from CallInsts.
First patch:
Helper functions and minor refactoring.
Added explicit const to unchanged record reference for API clarity. Added helper functions for the reading and setting of fast-math flags and call arguments. Cleaned up the include lines.
Second Patch:
Intrinsic support for fast-math flags.
Previously, IntrinsicInsts were handled as CallInsts. However, intrinsics can now have fast-math flags, and thus merit a separate bitcode encoding. This change adds FUNC_CODE_INST_INTRINSIC for intrinsic calls, separates them out from general calls, and adds encoding and decoding of fast-math flags. Backwards compatibility is retained. Adds parsing fast-math flags for IntrinsicInsts, and more tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Helper-functions-and-minor-refactoring.patch
Type: application/octet-stream
Size: 8959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121218/657c1af2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Intrinsic-support-for-fast-math-flags.patch
Type: application/octet-stream
Size: 9056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121218/657c1af2/attachment-0001.obj>
More information about the llvm-commits
mailing list