aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJinsong Ji <jji@us.ibm.com>2020-02-06 16:12:10 +0000
committerJinsong Ji <jji@us.ibm.com>2020-02-07 16:00:55 +0000
commit01edae1271778fdc88be668c2e6a828a4c4d1481 (patch)
treed1f83b69902102e451f83e43c359d35fdb9680b3 /clang/lib/Frontend/CompilerInvocation.cpp
parent205292740d88101e5124780c7bbee60b33bf2919 (diff)
downloadllvm-01edae1271778fdc88be668c2e6a828a4c4d1481.zip
llvm-01edae1271778fdc88be668c2e6a828a4c4d1481.tar.gz
llvm-01edae1271778fdc88be668c2e6a828a4c4d1481.tar.bz2
[AsmPrinter] Print FP constant in hexadecimal form instead
Printing floating point number in decimal is inconvenient for humans. Verbose asm output will print out floating point values in comments, it helps. But in lots of cases, users still need additional work to covert the decimal back to hex or binary to check the bit patterns, especially when there are small precision difference. Hexadecimal form is one of the supported form in LLVM IR, and easier for debugging. This patch try to print all FP constant in hex form instead. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D73566
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions