OSDN Git Service

[OptRemark] Move YAML writing to IR
authorAdam Nemet <anemet@apple.com>
Wed, 4 Oct 2017 15:18:11 +0000 (15:18 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 4 Oct 2017 15:18:11 +0000 (15:18 +0000)
commitc5599f675fb616a08e8f55b3eec79dc643a919c5
treef58f3ff7665db64f66a9cd7433e92efaa0327f41
parentaf1c4151ad259b3bcb3445ab14523d4d729c8e59
[OptRemark] Move YAML writing to IR

Before the patch this was in Analysis.  Moving it to IR and making it implicit
part of LLVMContext::diagnose allows the full opt-remark facility to be used
outside passes e.g. the pass manager.  Jessica is planning to use this to
report function size after each pass.  The same could be used for time
reports.

Tested with BUILD_SHARED_LIBS=On.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314909 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/OptimizationDiagnosticInfo.h
include/llvm/IR/DiagnosticInfo.h
lib/Analysis/OptimizationDiagnosticInfo.cpp
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
lib/IR/DiagnosticInfo.cpp
lib/IR/LLVMContext.cpp