summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-08-10 00:44:56 +0000
committerAdam Nemet <anemet@apple.com>2016-08-10 00:44:56 +0000
commit021eba31ddc18e2a7a2007388a4a699fd1904f78 (patch)
treea491b9d9ad93cd618af028df212b0d32ec3b5a96
parent896c09bd10d816edac4d0c5308ec95536c448191 (diff)
downloadbcm5719-llvm-021eba31ddc18e2a7a2007388a4a699fd1904f78.tar.gz
bcm5719-llvm-021eba31ddc18e2a7a2007388a4a699fd1904f78.zip
[OptDiag] Add class Doxygen comment
This was requested in D22694. llvm-svn: 278186
-rw-r--r--llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
index 0fa0cf0c7bd..0ba66aea2cf 100644
--- a/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
+++ b/llvm/include/llvm/Analysis/OptimizationDiagnosticInfo.h
@@ -29,6 +29,12 @@ class Pass;
class Twine;
class Value;
+/// The optimization diagnostic interface.
+///
+/// It allows reporting when optimizations are performed and when they are not
+/// along with the reasons for it. Hotness information of the corresponding
+/// code region can be included in the remark if DiagnosticHotnessRequested is
+/// enabled in the LLVM context.
class OptimizationRemarkEmitter {
public:
OptimizationRemarkEmitter(Function *F, BlockFrequencyInfo *BFI)
OpenPOWER on IntegriCloud