[llvm] c9f7cf5 - NFC: Comment in TargetTransformInfo.h reformatted (by Michael Kruse).

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 08:41:22 PDT 2020


Author: Jonas Paulsson
Date: 2020-04-02T17:40:53+02:00
New Revision: c9f7cf584b8c77663b09583ae85b1aba4e28a8d0

URL: https://github.com/llvm/llvm-project/commit/c9f7cf584b8c77663b09583ae85b1aba4e28a8d0
DIFF: https://github.com/llvm/llvm-project/commit/c9f7cf584b8c77663b09583ae85b1aba4e28a8d0.diff

LOG: NFC: Comment in TargetTransformInfo.h reformatted (by Michael Kruse).

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/TargetTransformInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index bf23de240b78..d70396a61bc4 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -844,18 +844,23 @@ class TargetTransformInfo {
   /// instructions.
   unsigned getPrefetchDistance() const;
 
-  /// \return Some HW prefetchers can handle accesses up to a certain
-  /// constant stride.  This is the minimum stride in bytes where it
-  /// makes sense to start adding SW prefetches.  The default is 1,
-  /// i.e. prefetch with any stride.  Sometimes prefetching is beneficial
-  /// even below the HW prefetcher limit, and the arguments provided are
-  /// meant to serve as a basis for deciding this for a particular loop:
-  /// \param NumMemAccesses Number of memory accesses in the loop.
+  /// Some HW prefetchers can handle accesses up to a certain constant stride.
+  /// Sometimes prefetching is beneficial even below the HW prefetcher limit,
+  /// and the arguments provided are meant to serve as a basis for deciding this
+  /// for a particular loop.
+  ///
+  /// \param NumMemAccesses        Number of memory accesses in the loop.
   /// \param NumStridedMemAccesses Number of the memory accesses that
-  /// ScalarEvolution could find a known stride for.
-  /// \param NumPrefetches Number of software prefetches that will be emitted
-  /// as determined by the addresses involved and the cache line size.
-  /// \param HasCall True if the loop contains a call.
+  ///                              ScalarEvolution could find a known stride
+  ///                              for.
+  /// \param NumPrefetches         Number of software prefetches that will be
+  ///                              emitted as determined by the addresses
+  ///                              involved and the cache line size.
+  /// \param HasCall               True if the loop contains a call.
+  ///
+  /// \return This is the minimum stride in bytes where it makes sense to start
+  ///         adding SW prefetches. The default is 1, i.e. prefetch with any
+  ///         stride.
   unsigned getMinPrefetchStride(unsigned NumMemAccesses,
                                 unsigned NumStridedMemAccesses,
                                 unsigned NumPrefetches,


        


More information about the llvm-commits mailing list