[LAA, LV] Port to new streaming interface for opt remarks. Update LV
authorAdam Nemet <anemet@apple.com>
Fri, 30 Sep 2016 00:01:30 +0000 (00:01 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 30 Sep 2016 00:01:30 +0000 (00:01 +0000)
commit877ccee8cc60ec54867ecdf535c710dc833f4888
treec9afa013911afe3067074adae899ae1eee0b97ce
parent9f1be9b95d4de351754748252a909ba296881d32
[LAA, LV] Port to new streaming interface for opt remarks.  Update LV

(Recommit after making sure IsVerbose gets properly initialized in
DiagnosticInfoOptimizationBase.  See previous commit that takes care of
this.)

OptimizationRemarkAnalysis directly takes the role of the report that is
generated by LAA.

Then we need the magic to be able to turn an LAA remark into an LV
remark.  This is done via a new OptimizationRemark ctor.

llvm-svn: 282813
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/include/llvm/IR/DiagnosticInfo.h
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp