[Mlir-commits] [mlir] c40277f - [MLIR] NFC. Pass affine copy options by const ref

Uday Bondhugula llvmlistbot at llvm.org
Sat May 13 03:08:03 PDT 2023


Author: Uday Bondhugula
Date: 2023-05-13T15:37:05+05:30
New Revision: c40277f1072abc32d738b3834e0aa407ddd56401

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

LOG: [MLIR] NFC. Pass affine copy options by const ref

NFC. Pass affine copy options by const ref.

Differential Revision: https://reviews.llvm.org/D150507

Added: 
    

Modified: 
    mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp b/mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
index 01c7c77319f0c..b54c2b359ba6b 100644
--- a/mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
+++ b/mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
@@ -1972,7 +1972,7 @@ static LogicalResult generateCopy(
     const MemRefRegion &region, Block *block, Block::iterator begin,
     Block::iterator end, Block *copyPlacementBlock,
     Block::iterator copyInPlacementStart, Block::iterator copyOutPlacementStart,
-    AffineCopyOptions copyOptions, DenseMap<Value, Value> &fastBufferMap,
+    const AffineCopyOptions &copyOptions, DenseMap<Value, Value> &fastBufferMap,
     DenseSet<Operation *> &copyNests, uint64_t *sizeInBytes,
     Block::iterator *nBegin, Block::iterator *nEnd) {
   *nBegin = begin;


        


More information about the Mlir-commits mailing list