[PATCH] Add support for optimization reports.

Diego Novillo dnovillo at google.com
Wed Apr 2 18:59:57 PDT 2014


  Address review feedback

    - When emitting an optimization report diagnostic, the lack of debug
      information sometimes causes internal failures. If debug information
      is not present, the diagnostic uses "<unknown>:0:0" as the location
      string.

    - Add LLVMContext::emitOptimizationRemark to simplify client's code.

    - Rename OptimizationReport to OptimizationRemark.

    - Add DiagnosticInfoOptimizationRemark::getLocation(). This returns the
      source file name, line and column number from the remark's location
      information. Used by DiagnosticInfoOptimizationRemark::getLocationStr()

Hi qcolombet, rsmith,

http://llvm-reviews.chandlerc.com/D3227

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D3227?vs=8245&id=8321#toc

Files:
  include/llvm/IR/DiagnosticInfo.h
  include/llvm/IR/LLVMContext.h
  lib/IR/DiagnosticInfo.cpp
  lib/IR/LLVMContext.cpp
  lib/Transforms/IPO/Inliner.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3227.3.patch
Type: text/x-patch
Size: 7982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140402/07e577d5/attachment.bin>


More information about the llvm-commits mailing list