[PATCH] D30949: [CodeGen] Add an option to enable LLVM IR linting

2017-05-11 Thread Vedant Kumar via Phabricator via cfe-commits
vsk abandoned this revision. vsk added a comment. I'll try doing this some other way, maybe with optimization remarks. https://reviews.llvm.org/D30949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D30949: [CodeGen] Add an option to enable LLVM IR linting

2017-03-14 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. LLVM has a nifty linter which checks for some common kinds of unusual or undefined behavior by doing some basic IR-level static analysis. Add a CC1 option to clang which enables this analysis. Having the linter available through clang could be a useful debugging tool.