[PATCH] Check Compile Flow Consistency tool (check_cfc.py)

Russell Gallop russell.gallop at gmail.com
Tue Mar 31 09:07:55 PDT 2015


Hi echristo, rafael,

This is a tool for checking consistency of code generation with different compiler options (such as -g or outputting to .s). This tool has been used internally to Sony Computer Entertainment for a while. It has found a number of code generation issues (PR18590, 19051, 21807, 22854, 22947 and 22955). As such I thought that this would be beneficial to send upstream and I am presenting a lightning talk and poster about this at Euro LLVM.

The script is very simple. It acts as a wrapper to clang or clang++ but performs 2 (or more) compiles then compares the object files. Instructions for use are in check_cfc.py including how to use with LNT.

This works via the clang driver so I assume that it should live in cfe/trunk/utils (even though it tends to find issues in LLVM). Let me know if this is correct.

Russell Gallop
SN Systems - Sony Computer Entertainment Group

http://reviews.llvm.org/D8723

Files:
  utils/check_cfc/check_cfc.cfg
  utils/check_cfc/check_cfc.py
  utils/check_cfc/obj_diff.py
  utils/check_cfc/setup.py
  utils/check_cfc/test_check_cfc.py

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8723.22964.patch
Type: text/x-patch
Size: 25671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150331/ac0baf62/attachment.bin>


More information about the cfe-commits mailing list