summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DiagnosticInfo.cpp
diff options
context:
space:
mode:
authorAshutosh Nema <ashu1212@gmail.com>2018-01-23 09:47:28 +0000
committerAshutosh Nema <ashu1212@gmail.com>2018-01-23 09:47:28 +0000
commit007b425b776a50b3b8d3caa482bb8ca96c48a80d (patch)
treebb7a21512da6398f42da0cdceca0e65819102fda /llvm/lib/IR/DiagnosticInfo.cpp
parent82f61151b377f59d667e9943d480c429c4d3e176 (diff)
downloadbcm5719-llvm-007b425b776a50b3b8d3caa482bb8ca96c48a80d.tar.gz
bcm5719-llvm-007b425b776a50b3b8d3caa482bb8ca96c48a80d.zip
This change add's optimization remark in LoopVersioning LICM pass.
Summary: This patch is adding remark messages to the LoopVersioning LICM pass, which will be useful for optimization remark emitter (ORE) infrastructure. Patch by: Deepak Porwal Reviewers: anemet, ashutosh.nema, eastig Subscribers: eastig, vivekvpandya, fhahn, llvm-commits llvm-svn: 323183
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
-rw-r--r--llvm/lib/IR/DiagnosticInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp
index b81d205306b..5ddb1196b07 100644
--- a/llvm/lib/IR/DiagnosticInfo.cpp
+++ b/llvm/lib/IR/DiagnosticInfo.cpp
@@ -35,6 +35,7 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/ScopedPrinter.h"
#include <atomic>
#include <cassert>
#include <memory>
@@ -167,6 +168,9 @@ DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, StringRef S)
DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, int N)
: Key(Key), Val(itostr(N)) {}
+DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, float N)
+ : Key(Key), Val(llvm::to_string(N)) {}
+
DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, long N)
: Key(Key), Val(itostr(N)) {}
OpenPOWER on IntegriCloud