[PATCH] [ARM] Emit ABI_FP_rounding attribute.
Charlie Turner
charlie.turner at arm.com
Tue Dec 2 09:20:55 PST 2014
LLVM understands a `-enable-sign-dependent-rounding-fp-math` codegen option. When the user has specified this option, the `Tag_ABI_FP_rounding` attribute should be emitted with value 1. This option currently does not appear to disable transformations and optimizations that assume default floating point rounding behavior, AFAICT, but the intention should be recorded in the build attributes, regardless of what the compiler actually does with the intention.
Aside: when Clang supports `-frounding-math`, it will be using this LLVM option in the translation IIUC. The `-frounding-math` is what toggles this build attribute.
http://reviews.llvm.org/D6481
Files:
lib/Target/ARM/ARMAsmPrinter.cpp
test/CodeGen/ARM/build-attributes.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6481.16816.patch
Type: text/x-patch
Size: 12138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141202/433640f5/attachment.bin>
More information about the llvm-commits
mailing list