projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af9793d
)
Allow derived classes of OptimizationRemarkAnalysis in YAML
author
Adam Nemet
<anemet@apple.com>
Tue, 4 Oct 2016 17:05:01 +0000
(17:05 +0000)
committer
Adam Nemet
<anemet@apple.com>
Tue, 4 Oct 2016 17:05:01 +0000
(17:05 +0000)
llvm-svn: 283230
llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
b/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
index
181e375
..
bfb1976
100644
(file)
--- a/
llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
+++ b/
llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp
@@
-67,6
+67,14
@@
template <> struct MappingTraits<DiagnosticInfoOptimizationBase *> {
else if (io.mapTag("!Analysis",
OptDiag->getKind() == DK_OptimizationRemarkAnalysis))
;
+ else if (io.mapTag("!AnalysisFPCommute",
+ OptDiag->getKind() ==
+ DK_OptimizationRemarkAnalysisFPCommute))
+ ;
+ else if (io.mapTag("!AnalysisAliasing",
+ OptDiag->getKind() ==
+ DK_OptimizationRemarkAnalysisAliasing))
+ ;
else
llvm_unreachable("todo");